JP2017108323A - Image processing apparatus, image processing method, image reading apparatus, and program - Google Patents

Image processing apparatus, image processing method, image reading apparatus, and program Download PDF

Info

Publication number
JP2017108323A
JP2017108323A JP2015241698A JP2015241698A JP2017108323A JP 2017108323 A JP2017108323 A JP 2017108323A JP 2015241698 A JP2015241698 A JP 2015241698A JP 2015241698 A JP2015241698 A JP 2015241698A JP 2017108323 A JP2017108323 A JP 2017108323A
Authority
JP
Japan
Prior art keywords
data
positional deviation
reliability
similarity
deviation amount
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
JP2015241698A
Other languages
Japanese (ja)
Other versions
JP2017108323A5 (en
JP6422428B2 (en
Inventor
まさ子 浅村
Masako Asamura
まさ子 浅村
善隆 豊田
Yoshitaka Toyoda
善隆 豊田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2015241698A priority Critical patent/JP6422428B2/en
Publication of JP2017108323A publication Critical patent/JP2017108323A/en
Publication of JP2017108323A5 publication Critical patent/JP2017108323A5/ja
Application granted granted Critical
Publication of JP6422428B2 publication Critical patent/JP6422428B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

PROBLEM TO BE SOLVED: To eliminate erroneous detection of a positional deviation amount, accurately acquire a positional deviation amount of an image, and generate high-quality synthesized image data.SOLUTION: An image processing apparatus 4 comprises: a similarity calculation unit 42 that calculates similarity between reference data and a plurality of pieces of comparison data, from image data in an overlapping area; a positional deviation estimation unit 43 that generates positional deviation amount data dyb from similarity data; a reliability determination unit 44 that detects an extreme value of the similarity data and, on the basis of the extreme value, sets reliability of a positional deviation amount in the overlapping area; a lateral correlation position correction unit 45 that on the basis of set reliability data, corrects positional deviation amount data in a first area, which is an overlapping area, by using positional deviation amount data in a second area, which has reliability higher than that in the first area and is an overlapping area differing from the first area; and a coupling processing unit 46 that generates synthesized image data.SELECTED DRAWING: Figure 1

Description

本発明は、複数のラインセンサで被読取物を読み取ることによって得られる複数の画像データを結合して被読取物に対応する合成画像データを生成する画像処理装置、画像処理方法、及び画像読取装置、並びに、前記画像データを結合させる処理を実行させるプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and an image reading apparatus that combine a plurality of image data obtained by reading a reading object with a plurality of line sensors to generate composite image data corresponding to the reading object. And a program for executing processing for combining the image data.

主走査方向にライン状に並ぶ複数の撮像素子を有するラインセンサ(一次元撮像素子)によって被読取物をスキャンして、被読取物に対応する画像データを生成する画像読取装置が、複写機、スキャナ、及びファクシミリ等に広く使用されている。例えば、特許文献1は、複数のラインセンサを千鳥状又は直線状に並べて配置した撮像部を有する画像読取装置を説明している。   An image reading device that scans an object to be read by a line sensor (one-dimensional image sensor) having a plurality of image sensors arranged in a line in the main scanning direction and generates image data corresponding to the object to be read is a copier, Widely used in scanners and facsimiles. For example, Patent Document 1 describes an image reading apparatus having an imaging unit in which a plurality of line sensors are arranged in a staggered pattern or a linear pattern.

複数のラインセンサによって生成された複数の画像データは、原稿を裁断することによって得られる副走査方向に長い複数の矩形形状の原稿部分に対応する。すなわち、生成された複数の画像データは、副走査方向に長い矩形形状の原稿部分に対応する複数の読取画像に対応し、これら複数の読取画像は主走査方向に並んだ複数の画像である。そのため、画像読取装置は、複数のラインセンサの内の隣り合うラインセンサの複数の読取画像(読取範囲)の端部同士が互いに重なる重複領域(オーバーラップ領域)の画像部分の比較を行うことで特性データを生成するとともに、周期性検出部により重複領域の周期性を検出する。画像読取装置は、周期性が高い場合には特性データに対し補正量を加算して補正データを生成し、この補正データから繋ぎ位置を決定すること(例えば、特許文献1)により、複数の画像データの副走査方向又は主走査方向の繋ぎ位置を求め、複数の画像データを繋ぎ合せて、被読取物に対応する合成画像データを生成している。   The plurality of image data generated by the plurality of line sensors correspond to a plurality of rectangular document portions that are long in the sub-scanning direction and are obtained by cutting the document. That is, the plurality of generated image data correspond to a plurality of read images corresponding to a rectangular document portion that is long in the sub-scanning direction, and the plurality of read images are a plurality of images arranged in the main scanning direction. For this reason, the image reading apparatus compares the image portions of the overlapping region (overlapping region) where the ends of the plurality of reading images (reading ranges) of the adjacent line sensors among the plurality of line sensors overlap each other. The characteristic data is generated, and the periodicity of the overlapping region is detected by the periodicity detection unit. When the periodicity is high, the image reading device generates correction data by adding a correction amount to the characteristic data, and determines a connection position from the correction data (for example, Patent Document 1), thereby a plurality of images. The connecting position of the data in the sub-scanning direction or the main scanning direction is obtained, and a plurality of image data are connected to generate composite image data corresponding to the object to be read.

特開2000−13589号公報(段落0041、0048、0072、図1)JP 2000-13589 (paragraphs 0041, 0048, 0072, FIG. 1)

特許文献1の画像読取装置は、複数のラインセンサの内の隣り合うラインセンサで取得された画像データを比較することにより、画像データが一致する繋ぎ位置を検出していた(すなわち、画像データ間の位置ずれ量を求めていた)。   The image reading apparatus disclosed in Patent Document 1 detects a joint position where image data matches by comparing image data acquired by adjacent line sensors among a plurality of line sensors (that is, between image data). ).

しかしながら、画像読取装置には、駆動系の動作(例えば、原稿搬送ローラの振動、駆動モータの回転速度ムラ、原稿搬送速度の小刻みな変動など)によって原稿の位置が変位(変動)する現象(ジッター)が存在することがある。ジッターが存在すると、ジッターの影響を受ける位置に配置されたラインセンサの読取位置が変位(変動)することになり、隣り合うラインセンサの読取位置のずれ(本来の位置ずれ)に、ジッターに起因する読取位置のずれ(ジッターによる位置ずれ)が加わり、隣り合うラインセンサの読み取りによって取得されるオーバーラップ領域の画像データ間に相違が生じる。   However, the image reading apparatus has a phenomenon (jitter) in which the position of the document is displaced (fluctuated) by the operation of the drive system (for example, vibration of the document transport roller, uneven rotation speed of the drive motor, and small variations in the document transport speed). ) May exist. If jitter exists, the reading position of the line sensor placed at the position affected by jitter will be displaced (fluctuated), and the deviation of the reading position of the adjacent line sensor (original position deviation) will result from jitter. The reading position shift (position shift due to jitter) is added, and a difference occurs between the image data in the overlap region acquired by the reading of the adjacent line sensors.

また、撮像部の光学系(ラインセンサ又はレンズなど)に埃などの異物(光学系付着ゴミ)が存在する場合には、隣り合うラインセンサの読み取りで得られるオーバーラップ領域の画像データが互いに異なるものとなる。光学系付着ゴミ(ゴミすじ)の副走査方向の大きさが、数ラインに跨る場合は、隣り合うラインセンサの読み取りで得られたオーバーラップ領域の画像データ間に大きな違いが生じる。   In addition, when there is foreign matter (such as dust attached to the optical system) such as dust in the optical system (line sensor or lens, etc.) of the image pickup unit, the image data of the overlap areas obtained by reading of adjacent line sensors are different from each other. It will be a thing. When the size of dust attached to the optical system in the sub-scanning direction extends over several lines, there is a large difference between the image data in the overlap area obtained by reading of adjacent line sensors.

また、縞模様又は網点などのような繰り返しパターンとなる画像部分を読み取る場合には、オーバーラップ領域内に同じ画像が複数存在するため、ジッター又は光学系付着ゴミの存在により、誤った繋ぎ位置を検出し易い(すなわち、位置ずれ量の誤検出が発生し易い)。   Also, when reading an image part that has a repeated pattern such as a striped pattern or a halftone dot, there are multiple identical images in the overlap area, so there is an incorrect splice position due to the presence of jitter or optical system debris. (That is, misdetection of misalignment is likely to occur).

したがって、撮像部にジッター又は光学系付着ゴミが存在する場合に、隣り合うラインセンサの読み取りによって取得された画像データの比較を行うと、位置ずれ量の誤検出が発生し、画像データ間の繋ぎ位置(又は、隣り合う画像データ間の位置ずれ量)を良好な精度で検出することができないという問題点があった。   Therefore, when there is jitter or optical system adhering dust in the imaging unit, if image data acquired by reading adjacent line sensors is compared, misdetection of the amount of misalignment occurs, and the connection between the image data is lost. There has been a problem that the position (or the amount of positional deviation between adjacent image data) cannot be detected with good accuracy.

本発明は、上記の課題を解決するためになされたものであり、その目的は、隣り合うラインセンサの読み取りによって取得される画像データ間の繋ぎ位置を良好な精度で求め、被読取物に対応する高品質な合成画像データを生成することができる画像処理装置、画像処理方法、及び画像読取装置、並びに、前記画像データを結合する処理を実行させるプログラムを提供することである。   The present invention has been made to solve the above-described problems, and its purpose is to obtain a connection position between image data acquired by reading of adjacent line sensors with good accuracy, and to cope with an object to be read. The present invention provides an image processing apparatus, an image processing method, an image reading apparatus, and a program for executing a process for combining the image data.

本発明の一態様に係る画像処理装置は、主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号を処理する画像処理装置であって、前記画像信号に基づく画像データを格納する画像メモリと、前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出部と、前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も高い類似度を持つ比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定部と、前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定部と、前記信頼度判定部から出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正部と、前記相関位置補正部によって補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理部とを備えることを特徴としている。   In the image processing device according to one aspect of the present invention, the plurality of line sensors arranged in the main scanning direction have an overlap region in which ends of reading ranges of adjacent line sensors among the plurality of line sensors overlap each other. An image processing apparatus that processes an image signal generated by an imaging unit arranged as described above, the image memory storing image data based on the image signal, and the image data read from the image memory The reference data of the reference position in the sub-scanning direction and the comparison data in the area overlapping the overlap area of the reference data are obtained from the image data of the overlap area, and the reference data and the comparison data are compared Processing is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, and the reference data and the plurality of sub-data are A similarity calculation unit that calculates the similarity with the comparison data for the position in the inspection direction and outputs the similarity data indicating the similarity, and the comparison at the positions in the plurality of sub-scanning directions from the similarity data Find the position of the comparison data having the highest similarity in the data, calculate the amount of displacement based on the difference between the position of the reference data in the sub-scanning direction and the position of the comparison data having the highest similarity, A positional deviation estimation unit that outputs positional deviation amount data indicating the positional deviation amount; and a process of detecting an extreme value of the similarity degree data based on the value of the similarity degree data, and based on a result of the processing, Based on the reliability data output from the reliability determination unit, the reliability determination unit that sets the reliability of the positional deviation amount in the lap region, and outputs reliability data indicating the reliability, The positional deviation amount data in the first area, which is the overlap area, has a reliability higher than the reliability in the first area and is a different overlap area from the first area. A correlation position correction unit that corrects the positional deviation amount data in the region 2 and the adjacent line sensor among the image data read from the image memory based on the positional deviation amount data corrected by the correlation position correction unit. And a combining processing unit that generates combined image data by combining the image data read out by the above.

本発明の他の態様に係る画像処理方法は、主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号を処理する画像処理方法であって、前記画像信号に基づく画像データを画像メモリに格納する格納ステップと、前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出ステップと、前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も高い類似度を持つ比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定ステップと、前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定ステップと、前記信頼度判定ステップで出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正ステップと、前記相関位置補正ステップで補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理ステップとを有することを特徴としている。   In the image processing method according to another aspect of the present invention, the plurality of line sensors arranged in the main scanning direction has an overlap region in which ends of reading ranges of adjacent line sensors of the plurality of line sensors overlap each other. An image processing method for processing a generated image signal by an imaging unit arranged to have a storage step of storing image data based on the image signal in an image memory, and reading from the image memory The reference data of the reference position in the sub-scanning direction and the comparison data in the area overlapping the overlap area of the reference data are obtained from the image data of the overlap area of the image data, and the reference data and the comparison A process of comparing data is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, and the reference data is Calculating a similarity between the plurality of sub-scanning direction positions and the comparison data, and outputting similarity data indicating the similarity, and calculating the plurality of sub-scanning directions from the similarity data The position of the comparison data having the highest similarity in the comparison data at the position is obtained, and the position shift is based on the difference between the position of the reference data in the sub-scanning direction and the position of the comparison data having the highest similarity. A positional deviation estimation step for calculating a quantity and outputting positional deviation amount data indicating the positional deviation amount; and a process for detecting an extreme value of the similarity degree data based on the value of the similarity degree data. A reliability determination step of setting reliability of the amount of positional deviation in the overlap region based on the reliability and outputting reliability data indicating the reliability, and the reliability determination step Based on the inputted reliability data, the positional deviation amount data in the first area which is the overlap area has higher reliability than the reliability in the first area, and the first area A correlation position correction step that is corrected based on positional deviation amount data in a second region that is another overlap region different from the region, and the positional deviation amount data that is corrected in the correlation position correction step is read from the image memory. A combination processing step of generating composite image data by combining image data read out by the adjacent line sensors in the image data.

本発明の他の態様に係る画像読取装置は、主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部と、前記撮像部によって、生成された画像信号に基づく画像データを格納する画像メモリと、前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出部と、前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も類似度が高い比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定部と、前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定部と、前記信頼度判定部から出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正部と、前記相関位置補正部によって補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理部とを備えることを特徴としている。   In the image reading apparatus according to another aspect of the present invention, the plurality of line sensors arranged in the main scanning direction have an overlap region in which ends of reading ranges of adjacent line sensors of the plurality of line sensors overlap each other. An imaging unit arranged to have, an image memory for storing image data based on an image signal generated by the imaging unit, and an overlap region in the image data read from the image memory A process of obtaining reference data at a reference position in the sub-scanning direction and comparison data in an area overlapping with an overlap area of the reference data from image data, and comparing the reference data with the comparison data. For the plurality of positions moved in the sub-scanning direction, and the reference data and the plurality of positions in the sub-scanning direction A similarity calculation unit that calculates similarity to comparison data and outputs similarity data indicating the similarity; and highest similarity among comparison data at the plurality of sub-scanning direction positions from the similarity data A position of comparison data having a degree, a position shift amount is calculated based on a difference between the position of the reference data in the sub-scanning direction and the position of the comparison data having the highest degree of similarity, and the position shift indicating the position shift amount A positional deviation estimation unit that outputs amount data, and a process of detecting an extreme value of the similarity data based on the value of the similarity data, and based on a result of the processing, the positional deviation amount in the overlap region A reliability determination unit that sets reliability and outputs reliability data indicating the reliability, and a first region that is the overlap region based on the reliability data output from the reliability determination unit The positional deviation amount data in the region is determined by the positional deviation amount data in the second region which is another overlap region different from the first region and has a higher reliability than the reliability in the first region. The correlation position correction unit to be corrected and the image data read by the adjacent line sensor among the image data read from the image memory based on the positional deviation amount data corrected by the correlation position correction unit are combined. And a combination processing unit for generating composite image data.

本発明の他の態様に係るプログラムは、主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号に基づく画像データを格納する画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出処理と、前記類似度データから前記複数の副走査方向の位置での比較データの内の最も類似度が高い比較データの位置を求め、前記基準データの副走査方向の位置と前記最も類似度が高い比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定処理と、前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定処理と、前記信頼度判定処理で出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正処理と、前記相関位置補正処理で補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理とをコンピュータに実行させることを特徴としている。   In the program according to another aspect of the present invention, the plurality of line sensors arranged in the main scanning direction have an overlap region in which ends of reading ranges of adjacent line sensors among the plurality of line sensors overlap each other. A reference position reference in the sub-scanning direction from the image data in the overlap area of the image data read from the image memory storing image data based on the generated image signal by the imaging unit arranged in Data and comparison data in an area overlapping with an overlap area of the reference data, and a process of comparing the reference data and the comparison data is performed by moving a position of the comparison data in a sub-scanning direction. Performing the position, calculating the similarity between the reference data and the comparison data for the plurality of positions in the sub-scanning direction, Similarity calculation processing for outputting similarity data indicating similarity, and obtaining the position of comparison data having the highest similarity among the comparison data at the plurality of positions in the sub-scanning direction from the similarity data, A positional deviation estimation process for calculating a positional deviation amount based on a difference between a position in the sub-scanning direction of data and the position of the comparison data having the highest similarity, and outputting positional deviation amount data indicating the positional deviation amount; A process of detecting an extreme value of the similarity data based on the value of the similarity data, setting a reliability of the positional deviation amount in the overlap region based on the result of the process, and indicating the reliability Reliability determination processing for outputting degree data, and the positional deviation amount data in the first region which is the overlap region based on the reliability data output in the reliability determination processing. A correlation position correction process that corrects the error with the positional deviation amount data in the second area, which is another overlap area different from the first area, and having a higher reliability than the reliability in the first area; The combined image data is obtained by combining the image data read out by the adjacent line sensors out of the image data read out from the image memory based on the positional deviation amount data corrected by the correlation position correction processing. It is characterized by causing a computer to execute a combining process to be generated.

本発明によれば、撮像部にジッター又は光学系付着ゴミが存在する場合であっても、画像データ間の繋ぎ位置の誤検出がなく、隣接するオーバーラップ領域における画像の位置ずれ量を良好な精度で求めることができるので、被読取物に対応する高品質な合成画像データを生成することができる。   According to the present invention, even when jitter or dust attached to the optical system is present in the image pickup unit, there is no erroneous detection of the connection position between the image data, and the image displacement amount in the adjacent overlap region is excellent. Since it can obtain | require with precision, the high quality synthetic | combination image data corresponding to a to-be-read object can be produced | generated.

本発明の実施の形態1に係る画像読取装置の構成を概略的に示すブロック図である。1 is a block diagram schematically showing a configuration of an image reading apparatus according to Embodiment 1 of the present invention. (a)は、図1に示される撮像部を構成する第1列のラインセンサ群と第2列のラインセンサ群とを概略的に示す平面図であり、(b)は、第1列のラインセンサ群と第2列のラインセンサ群により読み取られた被読取部としての原稿を示す図である。(A) is a top view which shows roughly the 1st line | wire line sensor group and the 2nd line | wire line sensor group which comprise the imaging part shown by FIG. 1, (b) is a 1st row | line | column. It is a figure which shows the original as a to-be-read part read by the line sensor group and the line sensor group of the 2nd row. 図2(a)に示される1個のラインセンサを拡大して示す概略平面図である。It is a schematic plan view which expands and shows one line sensor shown by Fig.2 (a). (a)〜(c)は、原稿がガラス面に密着している場合を示し、(a)は、撮像部の概略的な側面図、(b)は、撮像部の概略的な平面図及び原稿の平面図、(c)は、読み取りによって得られた画像データを概念的に示す図である。(A)-(c) shows the case where the original document is in close contact with the glass surface, (a) is a schematic side view of the imaging unit, (b) is a schematic plan view of the imaging unit, and A plan view of a document, (c) is a diagram conceptually showing image data obtained by reading. (a)〜(c)は、原稿がガラス面から離れている場合を示し、(a)は、撮像部の概略的な側面図、(b)は、撮像部の概略的な平面図及び原稿の平面図、(c)は、読み取りによって得られた画像データを概念的に示す図である。(A)-(c) shows the case where the original is separated from the glass surface, (a) is a schematic side view of the imaging unit, and (b) is a schematic plan view of the imaging unit and the original (C) is a diagram conceptually showing image data obtained by reading. 実施の形態1における類似度算出部の動作(原稿がガラス面に密着しているとき)を説明するための図である。6 is a diagram for explaining the operation of the similarity calculation unit (when the document is in close contact with the glass surface) in the first embodiment. FIG. 実施の形態1における類似度算出部の動作(原稿がガラス面から離れているとき)を説明するための図である。6 is a diagram for explaining the operation of the similarity calculation unit according to Embodiment 1 (when the document is separated from the glass surface). FIG. (a)は、実施の形態1における類似度算出部による類似度の算出の動作を説明するための図であり、(b)は、算出された類似度データと副走査方向の位置ずれ量の関係の例を示す図である。(A) is a figure for demonstrating the operation | movement of the similarity calculation by the similarity calculation part in Embodiment 1, (b) is the calculated similarity data and the position shift amount of a subscanning direction. It is a figure which shows the example of a relationship. 実施の形態1における類似度算出部によって算出される類似度データと副走査方向の位置ずれ量の関係の例(撮像部にジッター又は光学系付着ゴミが存在する場合)を示す図である。6 is a diagram illustrating an example of a relationship between similarity data calculated by a similarity calculation unit according to Embodiment 1 and a positional deviation amount in a sub-scanning direction (when jitter or optical system attached dust exists in an imaging unit); FIG. 実施の形態1における類似度算出部によって算出される類似度データと副走査方向の位置ずれ量の関係の例(繰り返しパターンを読み取った場合)を示す図である。6 is a diagram illustrating an example of a relationship between similarity data calculated by a similarity calculation unit according to Embodiment 1 and a positional deviation amount in the sub-scanning direction (when a repeated pattern is read). FIG. 実施の形態1における類似度算出部によって算出される類似度データと副走査方向の位置ずれ量の関係の例(繰り返しパターンを読み取った場合であって、撮像部にジッター又は光学系付着ゴミが存在する場合)を示す図である。Example of relationship between similarity data calculated by similarity calculation unit and sub-scanning direction displacement amount in Embodiment 1 (when repeated pattern is read, jitter or optical system attached dust exists in imaging unit) FIG. 実施の形態1に係る画像処理装置(画像処理部)における信頼度判定部の一構成例を概略的に示すブロック図である。4 is a block diagram schematically showing a configuration example of a reliability determination unit in the image processing apparatus (image processing unit) according to Embodiment 1. FIG. 実施の形態1に係る画像処理装置における横相関位置補正部の一構成例を概略的に示すブロック図である。3 is a block diagram schematically showing a configuration example of a lateral correlation position correction unit in the image processing apparatus according to Embodiment 1. FIG. 実施の形態1の結合処理部での結合動作の一例を示す説明図である。FIG. 10 is an explanatory diagram illustrating an example of a combining operation in the combining processing unit according to the first embodiment. (a)及び(b)は、実施の形態1の結合処理部での結合動作の他の例を示す説明図である。(A) And (b) is explanatory drawing which shows the other example of the joint operation | movement in the joint process part of Embodiment 1. FIG. 実施の形態1の結合処理部から出力される画像データを概念的に示す図である。3 is a diagram conceptually illustrating image data output from a combination processing unit according to Embodiment 1. FIG. (a)及び(b)は、撮像部を搬送中に、原稿の位置が変わる例を示す図である。(A) And (b) is a figure which shows the example from which the position of a document changes during conveyance of an imaging part. 本発明の実施の形態2に係る画像処理装置における信頼度判定部の一構成例を概略的に示すブロック図である。It is a block diagram which shows roughly the example of 1 structure of the reliability determination part in the image processing apparatus which concerns on Embodiment 2 of this invention. 実施の形態2の信頼度判定部において、信頼度判定の動作を説明するための類似度データと副走査方向の位置ずれ量の関係を示す図である。FIG. 10 is a diagram illustrating a relationship between similarity data and a positional deviation amount in the sub-scanning direction for explaining an operation of reliability determination in the reliability determination unit according to the second embodiment. 本発明の実施の形態3に係る画像処理装置における横相関位置補正部の一構成例を概略的に示すブロック図である。It is a block diagram which shows roughly the example of 1 structure of the horizontal correlation position correction | amendment part in the image processing apparatus which concerns on Embodiment 3 of this invention. 本発明の実施の形態4に係る画像処理装置における横相関位置補正部の一構成例を概略的に示すブロック図である。It is a block diagram which shows roughly the example of 1 structure of the horizontal correlation position correction | amendment part in the image processing apparatus which concerns on Embodiment 4 of this invention. 本発明の実施の形態5に係る画像処理装置における横相関位置補正部の一構成例を概略的に示すブロック図である。It is a block diagram which shows roughly the example of 1 structure of the horizontal correlation position correction | amendment part in the image processing apparatus which concerns on Embodiment 5 of this invention. 本発明の実施の形態6に係る画像処理装置における横相関位置補正部の一構成例を概略的に示すブロック図である。It is a block diagram which shows roughly the example of 1 structure of the horizontal correlation position correction | amendment part in the image processing apparatus which concerns on Embodiment 6 of this invention. 本発明の実施の形態7に係る画像読取装置及び画像処理装置の構成を概略的に示すブロック図である。It is a block diagram which shows roughly the structure of the image reading apparatus and image processing apparatus which concern on Embodiment 7 of this invention. 実施の形態7の演算装置による処理手順の一例を概略的に示すフローチャートである。18 is a flowchart schematically illustrating an example of a processing procedure performed by the arithmetic device according to the seventh embodiment. 本発明の実施の形態8に係る画像読取装置の撮像部の構成を概略的に示す側面図である。It is a side view which shows roughly the structure of the imaging part of the image reading apparatus which concerns on Embodiment 8 of this invention. 実施の形態8の撮像部の読み取りによって得られた画像データの一例を示す図である。FIG. 20 is a diagram illustrating an example of image data obtained by reading by an imaging unit according to the eighth embodiment. 実施の形態8において、一定量の副走査方向の位置ずれ量を補正後の画像データを説明するための図である。In Embodiment 8, it is a figure for demonstrating the image data after correct | amending the amount of positional deviation of the fixed amount of subscanning directions. 本発明の実施の形態9に係る画像読取装置の撮像部の構成を概略的に示す側面図である。It is a side view which shows roughly the structure of the imaging part of the image reading apparatus which concerns on Embodiment 9 of this invention.

《1》実施の形態1.
《1−1》画像読取装置1
図1は、本発明の実施の形態1に係る画像読取装置1の構成を概略的に示すブロック図である。図1に示されるように、実施の形態1に係る画像読取装置1は、撮像部2と、A/D(analog to digital)変換部3と、画像処理部4とを備えている。画像処理部4は、実施の形態1に係る画像処理装置(実施の形態1に係る画像処理方法を実施することができる装置)である。画像処理部4は、記憶部としての画像メモリ41と、類似度算出部42と、位置ずれ推定部43と、信頼度判定部44と、相関位置補正部としての横相関位置補正部45と、結合処理部46とを備えている。
<< 1 >> Embodiment 1
<< 1-1 >> Image Reading Apparatus 1
FIG. 1 is a block diagram schematically showing a configuration of an image reading apparatus 1 according to Embodiment 1 of the present invention. As shown in FIG. 1, the image reading apparatus 1 according to Embodiment 1 includes an imaging unit 2, an A / D (analog to digital) conversion unit 3, and an image processing unit 4. The image processing unit 4 is an image processing apparatus according to the first embodiment (an apparatus that can perform the image processing method according to the first embodiment). The image processing unit 4 includes an image memory 41 as a storage unit, a similarity calculation unit 42, a positional deviation estimation unit 43, a reliability determination unit 44, a lateral correlation position correction unit 45 as a correlation position correction unit, A combination processing unit 46.

画像読取装置1における撮像部2は、主走査方向に間隔を開けてライン状に並ぶ複数(例えば、n個)の第1列のラインセンサを含む第1列のラインセンサ群(例えば、図2(a)における、21O又は21Eによる列)と、主走査方向に間隔を開けてライン状に並ぶ複数(例えば、n個)の第2列のラインセンサを含む第2列のラインセンサ群(例えば、図2(a)における、21E又は21Oによる列)とを備えている。ここで、nは正の整数である。複数の第1列のラインセンサの主走査方向の位置は、複数の第2列のラインセンサが備えられていない領域(すなわち、主走査方向に隣り合う第2列のラインセンサの間の領域)に対向する位置であり、複数の第2列のラインセンサの主走査方向の位置は、複数の第1列のラインセンサが備えられていない領域(すなわち、主走査方向に隣り合う第1列のラインセンサの間の領域)に対向する位置となる。その結果、複数の第1列のラインセンサと複数の第2列のラインセンサとは、センサ基板上に千鳥状に配列される。また、複数の第1列のラインセンサと複数の第2列のラインセンサの内の互いに隣り合う第1列のラインセンサと第2列のラインセンサとは、隣り合う端部同士(例えば、図2(a)における、sr,sl)が、主走査方向に重なる重複領域(以下「オーバーラップ領域」と呼ぶ。例えば、図2(b)における、Ak,kなど)を有するよう配置される。言い換えれば、オーバーラップ領域は、複数のラインセンサの内の隣り合うラインセンサの複数の読取画像(読取範囲)の端部同士が互いに重なる領域である。 The imaging unit 2 in the image reading apparatus 1 includes a first row of line sensor groups (for example, FIG. 2) including a plurality of (for example, n) first row line sensors arranged in a line at intervals in the main scanning direction. In (a), a line sensor group (for example, 21O or 21E) and a second line of line sensors (for example, n lines) arranged in a line at intervals in the main scanning direction (for example, n) 2E in FIG. 2A). Here, n is a positive integer. The positions of the plurality of first row line sensors in the main scanning direction are regions where the plurality of second row line sensors are not provided (that is, regions between the second row line sensors adjacent in the main scanning direction). The positions of the plurality of second row line sensors in the main scanning direction are regions where the plurality of first row line sensors are not provided (that is, in the first row adjacent in the main scanning direction). This is the position facing the area between the line sensors). As a result, the plurality of first row line sensors and the plurality of second row line sensors are arranged in a staggered pattern on the sensor substrate. The first row line sensor and the second row line sensor adjacent to each other among the plurality of first row line sensors and the plurality of second row line sensors are adjacent to each other (for example, FIG. 2 (a), sr, sl) are arranged so as to have an overlapping region (hereinafter referred to as “overlap region”, for example, A k, k, etc. in FIG. 2B) overlapping in the main scanning direction. . In other words, the overlap region is a region where the ends of a plurality of read images (reading ranges) of adjacent line sensors among the plurality of line sensors overlap each other.

撮像部2は、被読取物としての原稿の画像を光学的に読み取り、原稿の画像に対応する電気信号(画像データ)SIを生成する。撮像部2で生成される電気信号(画像データ)SIは、第1列のラインセンサ群を構成する複数の第1列のラインセンサから出力される第1の画像データと、第2列のラインセンサ群を構成する複数の第2のラインセンサから出力される第2の画像データとを含む。なお、第1列のラインセンサ群及び第2列のラインセンサ群と原稿との間には、例えば、第1列のラインセンサ群及び第2列のラインセンサ群のそれぞれに正立像を結像させるレンズなどのような光学系を備えてもよい。   The imaging unit 2 optically reads an image of a document as an object to be read and generates an electrical signal (image data) SI corresponding to the image of the document. The electrical signal (image data) SI generated by the imaging unit 2 includes first image data output from a plurality of first row line sensors constituting the first row line sensor group, and second row lines. And second image data output from a plurality of second line sensors constituting the sensor group. Note that, for example, an erect image is formed on each of the first row line sensor group and the second row line sensor group between the first row line sensor group and the second row line sensor group and the original. An optical system such as a lens may be provided.

以下の説明においては、撮像部2が2列のラインセンサ群を備えた例を説明するが、ラインセンサ群の列数が3列以上の場合にも、本発明は適用可能である。また、本発明は、ラインセンサを千鳥状に配列し、隣り合うラインセンサの端部同士が主走査方向に重なるオーバーラップ領域を持つ場合について説明するが、読み取られる被撮像領域において、隣り合うラインセンサで読み取られる被撮像領域が主走査方向に一部重複する領域を有するように構成される配置であれば、千鳥状以外(例えば、直線状)の配置であってもよい。   In the following description, an example in which the imaging unit 2 includes two lines of line sensor groups will be described. However, the present invention can also be applied when the number of lines of the line sensor groups is three or more. Further, the present invention describes a case in which line sensors are arranged in a zigzag pattern and have overlapping regions in which ends of adjacent line sensors overlap in the main scanning direction. Any arrangement other than a staggered pattern (for example, a linear pattern) may be used as long as the imaged area read by the sensor has an area that partially overlaps in the main scanning direction.

図2(a)及び(b)は、撮像部2を説明するための図であり、図2(a)は、撮像部2を概略的に示す平面図であり、図2(b)は、被読取物としての原稿60を示す平面図である。図2(a)は、例えば、複写機の原稿台ガラス(以下「ガラス面」とも言う)26を上から見た状態を示している。図3は、図2(a)に示される1個のラインセンサ21Oを拡大して示す概略平面図である。 2 (a) and 2 (b) are diagrams for explaining the imaging unit 2, FIG. 2 (a) is a plan view schematically showing the imaging unit 2, and FIG. It is a top view which shows the original 60 as a to-be-read object. FIG. 2A shows, for example, a state in which an original table glass (hereinafter also referred to as “glass surface”) 26 of a copying machine is viewed from above. FIG. 3 is an enlarged schematic plan view showing one line sensor 21O 1 shown in FIG.

図2(a)に示されるように、撮像部2は、センサ基板20を有する。センサ基板20には、複数のラインセンサが2列配置されている。センサ基板20において、一方の端部(例えば、左側)から数えて奇数番目に位置するラインセンサ21O,…,21O,…,21Oは、主走査方向の直線状に間隔を開けて配置されており、左から数えて偶数番目に位置するラインセンサ21E,…,21E,…,21Eは、奇数番目に位置するラインセンサ21O,…,21O,…,21Oとは、互いが対向し千鳥状となるように、主走査方向(X方向)について異なる位置に、主走査方向の直線状に配置される。ここで、nは2以上の整数であり、kは1以上n以下の整数である。奇数番目に位置するラインセンサ21O,…,21O,…,21Oは、複数の第1のラインセンサを含む第1列のラインセンサ群(又は、複数の第2のラインセンサを含む第2列のラインセンサ群)を構成し、偶数番目に位置するラインセンサ21E,…,21E,…,21Eは、複数の第2のラインセンサを含む第2列のラインセンサ群(又は、複数の第1のラインセンサを含む第1列のラインセンサ群)を構成する。 As illustrated in FIG. 2A, the imaging unit 2 includes a sensor substrate 20. A plurality of line sensors are arranged in two rows on the sensor substrate 20. In the sensor substrate 20, one end (e.g., left side) line sensor 21O 1 located odd counted from, ..., 21O k, ..., 21O n is spaced linearly interval in the main scanning direction are, the line sensor 21E 1 located to the even-numbered from the left, ..., 21E k, ..., 21E n is the line sensor 21O 1 located odd, ..., 21O k, ..., and 21O n These are arranged in a straight line in the main scanning direction at different positions in the main scanning direction (X direction) so as to face each other in a staggered pattern. Here, n is an integer of 2 or more, and k is an integer of 1 to n. Line sensor 21O 1 located odd, ..., 21O k, ..., 21O n is the first column line group of sensors comprising a plurality of first line sensor (or first comprises a plurality second line sensor The line sensors 21E 1 ,..., 21E k ,..., 21E n located in the even-numbered line sensors are configured as a second line sensor group (or a plurality of second line sensors) (or 1st line sensor group including a plurality of first line sensors).

図2(a)に示されるように、第1列のラインセンサ群に属する複数の第1のラインセンサ(例えば、21E,…,21E,…,21E)が、第2列のラインセンサ群におけるラインセンサの主走査方向の間隔に対向するように配置され、第2列のラインセンサ群に属する複数のラインセンサ(例えば、21O,…,21O,…,21O)が、第1列のラインセンサ群におけるラインセンサの主走査方向の間隔に対向するように配置され、隣り合う第1のラインセンサと第2のラインセンサの隣り合う端部同士(端部srとsl)が主走査方向に重なるオーバーラップ領域を有している。 As shown in FIG. 2A, a plurality of first line sensors (for example, 21E 1 ,..., 21E k ,..., 21E n ) belonging to the first row line sensor group are connected to the second row line. A plurality of line sensors (for example, 21O 1 ,..., 21O k ,..., 21O n ) arranged so as to face the interval in the main scanning direction of the line sensors in the sensor group and belonging to the second row line sensor group, Adjacent end portions (end portions sr and sl) of the adjacent first line sensor and the second line sensor are disposed so as to face the interval in the main scanning direction of the line sensors in the first row line sensor group. Has an overlapping region overlapping in the main scanning direction.

図2(a)に示されるように、撮像部2は、搬送部24によって副走査方向(Y方向)に移動し、被読取物としての原稿60を読み取る。また、搬送部24は、撮像部2を固定し、副走査方向の反対方向(−Y方向)に原稿60を搬送させ、被読取物としての原稿60を読み取る装置であってもよい。ここで、本出願の各実施の形態においては、搬送部24によって撮像部2が矢印Dyの方向(図2(a)の矢印Dy)へ移動する場合を説明する。なお、副走査方向(Y方向)は、撮像部2の移動方向を示し(図2(a)の矢印Dy)、主走査方向は、奇数番目に位置するラインセンサ21O,…,21O,…,21Oの配列方向、又は、偶数番目に位置するラインセンサ21E,…,21E,…,21Eの配列方向を示す。 As shown in FIG. 2A, the imaging unit 2 is moved in the sub-scanning direction (Y direction) by the transport unit 24, and reads a document 60 as a read object. Further, the transport unit 24 may be a device that fixes the imaging unit 2, transports the document 60 in the direction opposite to the sub-scanning direction (−Y direction), and reads the document 60 as an object to be read. Here, in each embodiment of the present application, a case where the imaging unit 2 moves in the direction of the arrow Dy (the arrow Dy in FIG. 2A) by the transport unit 24 will be described. The sub-scanning direction (Y direction) indicates the moving direction of the imaging unit 2 (arrow Dy in FIG. 2A), and the main scanning direction is the odd-numbered line sensors 21O 1 ,..., 21O k , ..., the arranging direction of 21O n, or line sensor 21E 1 located even-numbered, ..., 21E k, ..., indicating the arrangement direction of 21E n.

図3に示されるように、ラインセンサ21Oは、受光した光の内の赤色成分の光を電気信号に変換する複数の赤色用光電変換素子(R光電変換素子)26Rと、受光した光の内の緑色成分の光を電気信号に変換する複数の緑色用光電変換素子(G光電変換素子)26Gと、受光した光の内の青色成分の光を電気信号に変換する複数の青色用光電変換素子(B光電変換素子)26Bとを備えている。図3に示されるように、複数のR光電変換素子26Rは、主走査方向(X方向)に直線状に配列され、複数のG光電変換素子26Gは、主走査方向(X方向)に直線状に配列され、複数のB光電変換素子26Bは、主走査方向(X方向)に直線状に配列されている。実施の形態1においては、図3の構成のラインセンサについて説明するが、本発明は、色を識別しない白黒の光電変換素子が1列に並んだラインセンサについても適用可能である。また、複数のR光電変換素子26R、複数のG光電変換素子26G、及び複数のB光電変換素子26Bの配列は、図3の例に限定されない。ラインセンサ21Oは、受光した情報を電気信号SI(O)として出力する。また、ラインセンサ21E,21O,…,21O,21Eも同様に受光した情報を電気信号SI(E),SI(O),…,SI(O),SI(E)として出力する。ラインセンサから出力される電気信号を、電気信号SIとも表記する。撮像部2から出力された電気信号SIは、A/D変換部3に入力される。 As shown in FIG. 3, the line sensor 21O 1 includes a plurality of red photoelectric conversion elements (R photoelectric conversion elements) 26R that convert red component light of received light into electrical signals, and the received light. A plurality of green photoelectric conversion elements (G photoelectric conversion elements) 26G for converting green component light into electrical signals and a plurality of blue photoelectric conversions for converting blue component light of received light into electrical signals And an element (B photoelectric conversion element) 26B. As shown in FIG. 3, the plurality of R photoelectric conversion elements 26R are linearly arranged in the main scanning direction (X direction), and the plurality of G photoelectric conversion elements 26G are linear in the main scanning direction (X direction). The plurality of B photoelectric conversion elements 26B are linearly arranged in the main scanning direction (X direction). In the first embodiment, the line sensor having the configuration shown in FIG. 3 will be described. However, the present invention can also be applied to a line sensor in which black and white photoelectric conversion elements that do not identify colors are arranged in a line. Further, the arrangement of the plurality of R photoelectric conversion elements 26R, the plurality of G photoelectric conversion elements 26G, and the plurality of B photoelectric conversion elements 26B is not limited to the example of FIG. The line sensor 21O 1 outputs the received information as an electric signal SI (O 1 ). Similarly, the line sensors 21E 1 , 21O 2 ,..., 21O n , 21E n also receive the received information as electrical signals SI (E 1 ), SI (O 2 ),..., SI (O n ), SI (E n ). ). The electric signal output from the line sensor is also expressed as an electric signal SI. The electrical signal SI output from the imaging unit 2 is input to the A / D conversion unit 3.

奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eとは、一部重複して原稿60を読み取るオーバーラップ領域A1,1,A1,2,…,Ak,k,Ak,k+1,Ak+1,k+1,…,An,nを有している。なお、オーバーラップ領域の詳細は、後述する。 Line sensor 21O 1 located odd, ..., 21O k, ..., 21O n a line sensor 21E 1 located even-numbered, ..., 21E k, ..., A 21E n, the original 60 and partially overlapping overlap region a 1,1, a 1,2 reading, ..., a k, k, a k, k + 1, a k + 1, k + 1, ..., has a n, a n. Details of the overlap area will be described later.

A/D変換部3は、撮像部2から出力される電気信号SIをデジタルデータ(画像データ)DIに変換する。画像データDIは、画像処理部4に入力され、画像処理部4の画像メモリ41に格納される。   The A / D converter 3 converts the electrical signal SI output from the imaging unit 2 into digital data (image data) DI. The image data DI is input to the image processing unit 4 and stored in the image memory 41 of the image processing unit 4.

図4(a)〜(c)は、画像処理部4内の画像メモリ41に格納される画像データDIを説明するための図である。図4(a)は、奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの光軸27Oと光軸27Eが交差する位置に原稿60がある場合(すなわち、光軸27Oと27EをY方向に見たときに、光軸27Oと光軸27Eとがガラス面26上で交差する場合)の原稿60とラインセンサの位置関係を示す図である。図4(b)は、原稿60の一例を示す図である。図4(c)は、原稿60とラインセンサが図4(a)の位置関係にある場合に読み取られた図4(b)の原稿60に対応する画像データDIを概念的に示す図である。 FIGS. 4A to 4C are diagrams for explaining the image data DI stored in the image memory 41 in the image processing unit 4. 4 (a) is a line sensor 21O 1 located odd, ..., 21O k, ..., 21O n a line sensor 21E 1 located even-numbered, ..., 21E k, ..., the optical axis 27O of 21E n And the optical axis 27E at the position where the document 60 is present (that is, when the optical axis 27O and the optical axis 27E intersect on the glass surface 26 when the optical axes 27O and 27E are viewed in the Y direction). It is a figure which shows the positional relationship of the original document 60 and a line sensor. FIG. 4B is a diagram illustrating an example of the document 60. FIG. 4C conceptually shows image data DI corresponding to the document 60 of FIG. 4B read when the document 60 and the line sensor are in the positional relationship of FIG. 4A. .

図4(a)は、画像読取装置1の概略的な側面図であり、画像読取装置1を備えた装置(例えば、複写機)を横から見た状態を示している。図2(a)に示される奇数番目に位置するラインセンサ21O,…,21O,…,21Oは、ラインセンサ21Oとも表記し、偶数番目に位置するラインセンサ21E,…,21E,…,21Eは、ラインセンサ21Eとも表記する。発光ダイオード(LED)などの照明光源25で光照射された原稿60の反射光は、光軸27Oに沿ってラインセンサ21Oに誘導され、光軸27Eに沿ってラインセンサ21Eに誘導される。副走査方向(Y方向)に搬送される撮像部2は、ガラス面26に置かれた原稿60の反射光を逐次光電変換し、変換した電気信号SIを出力し、A/D変換部3は、その電気信号SIを画像データDIに変換して出力する。 FIG. 4A is a schematic side view of the image reading apparatus 1 and shows a state in which an apparatus (for example, a copying machine) including the image reading apparatus 1 is viewed from the side. Line sensor 21O 1 positioned to the odd-numbered as shown in FIG. 2 (a), ..., 21O k, ..., 21O n is also the line sensor 21O expressed, the line sensor 21E 1 located even-numbered, ..., 21E k ,..., 21E n are also expressed as a line sensor 21E. The reflected light of the document 60 irradiated with the illumination light source 25 such as a light emitting diode (LED) is guided to the line sensor 21O along the optical axis 27O, and is guided to the line sensor 21E along the optical axis 27E. The imaging unit 2 conveyed in the sub-scanning direction (Y direction) sequentially photoelectrically converts the reflected light of the document 60 placed on the glass surface 26 and outputs the converted electric signal SI. The A / D conversion unit 3 The electric signal SI is converted into image data DI and output.

図4(b)に示されるような原稿60を、撮像部2により逐次光電変換し、A/D変換部3によりデジタルデータに変換すると、図4(c)に示されるような画像データDIが画像メモリ41に格納される。画像データDIは、奇数番目に位置するラインセンサ21O,…,21O,…,21Oが生成する画像データDI(O),…,DI(O),…,DI(O)と、偶数番目に位置するラインセンサ21E,…,21E,…,21Eが生成する画像データDI(E),…,DI(E),…,DI(E)とから成る。図4(c)では、奇数番目に位置するラインセンサ21Oと21Ok+1が生成する画像データDI(O)及びDI(Ok+1)と、偶数番目に位置するラインセンサ21Eと21Ek+1が生成する画像データDI(E)及びDI(Ek+1)とを示している。 When a document 60 as shown in FIG. 4B is sequentially photoelectrically converted by the imaging unit 2 and converted into digital data by the A / D conversion unit 3, image data DI as shown in FIG. Stored in the image memory 41. Image data DI, the line sensor 21O 1 located odd, ..., 21O k, ..., image data DI (O 1) generated by 21O n, ..., DI (O k), ..., DI (O n) , 21E k ,..., 21E n generate image data DI (E 1 ),..., DI (E k ),..., DI (E n ) generated by the even-numbered line sensors 21E 1 ,. . In FIG. 4C, the image data DI (O k ) and DI (O k + 1 ) generated by the odd-numbered line sensors 21O k and 21O k + 1 and the even-numbered line sensors 21E k and 21E k + 1 are included. Image data DI (E k ) and DI (E k + 1 ) to be generated are shown.

ここで、オーバーラップ領域A1,1,A1,2,…,Ak,k,Ak,k+1,Ak+1,k+1,…,An,nについて説明する。図2(a)に示されるように、撮像部2が副走査方向(Y方向)に搬送されて原稿60を読み取ると、奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eで一部重複した領域(オーバーラップ領域)を読み取る。例えば、ラインセンサ21Oの右端srとラインセンサ21Eの左端slは、原稿60の領域A1,1を読み取る。同様に、ラインセンサ21Eの右端srとラインセンサ21Oの左端slは、原稿60の領域A1,2を読み取る。 Here, the overlap area A 1,1, A 1,2, ..., A k, k, A k, k + 1, A k + 1, k + 1, ..., A n, n will be described. As shown in FIG. 2A, when the imaging unit 2 is conveyed in the sub-scanning direction (Y direction) and reads the document 60, the odd-numbered line sensors 21O 1 ,..., 21O k ,. line sensor 21E 1 positioned in the n and the even-numbered, ..., 21E k, ..., reads a portion overlapping region (overlapping region) at 21E n. For example, the left end sl the right sr and the line sensor 21E 1 of the line sensor 21O 1 reads the area A 1, 1 of the document 60. Similarly, the right end sr of the line sensor 21 E 1 and the left end sl of the line sensor 21 O 2 read the areas A 1 and 2 of the document 60.

図4(b)に示される例で説明すると、ラインセンサ21Oの右端srとラインセンサ21Eの左端slは、ともに原稿60の領域Ak,kを読み取り、ラインセンサ21Eの右端srとラインセンサ21Ok+1の左端slは、ともに原稿60の領域Ak,k+1を読み取り、ラインセンサ21Ok+1の右端srとラインセンサ21Ek+1の左端slは、ともに原稿60の領域Ak+1,k+1を読み取る。 Referring to the example shown in FIG. 4 (b), the left end sl the right sr and the line sensor 21E k of the line sensor 21O k are both read the area A k, k of the original 60, and the right end sr line sensor 21E k left sl line sensor 21O k + 1 reads both areas a k of the original 60, a k + 1, the left end sl the right sr and the line sensor 21E k + 1 of the line sensor 21O k + 1 are both read the area a k + 1, k + 1 of the document 60.

したがって、ラインセンサ21Oに対応する画像データDI(O)は、原稿60のオーバーラップ領域Ak,kに対応するデジタルデータdrを含み、ラインセンサ21Eに対応する画像データDI(E)は、原稿60の領域Ak,kに対応するデジタルデータdlを含んでいる。原稿60が、図4(a)で示されるように、ガラス面26に密着している場合、ラインセンサ21Oとラインセンサ21Eの、原稿60の副走査方向(Y方向)についての読み取り位置は、ほぼ同じ位置であるため、図4(c)に示されるように、隣り合うデジタルデータdrとdlは、原稿60の副走査方向(Y方向)についての位置ずれの無いデータになる。言い替えれば、ラインセンサ21Oとラインセンサ21Eによって読み取られる副走査方向(Y方向)の位置すなわちライン(以下「読取ライン」とも言う)は、隣り合うデジタルデータdrとdlではほぼ同じ位置になり、ラインセンサによる読み取りによって得られた画像データとの間の副走査方向の位置ずれ量(ライン数)はゼロに近い値となる。 Thus, image data DI (O k) corresponding to the line sensor 21O k includes digital data dr corresponding to the overlapping area A k, k of the original 60, the image data DI (E k corresponding to the line sensor 21E k ) Includes digital data dl corresponding to the areas A k, k of the document 60. When the original 60 is in close contact with the glass surface 26 as shown in FIG. 4A, the reading positions of the line sensor 21O and the line sensor 21E in the sub-scanning direction (Y direction) of the original 60 are Since the positions are substantially the same, as shown in FIG. 4C, the adjacent digital data dr and dl are data with no positional deviation in the sub-scanning direction (Y direction) of the document 60. In other words, the position in the sub-scanning direction (Y direction) read by the line sensor 21O and the line sensor 21E, that is, the line (hereinafter also referred to as “reading line”) is substantially the same position in the adjacent digital data dr and dl. The amount of positional deviation (number of lines) in the sub-scanning direction from the image data obtained by reading by the sensor is a value close to zero.

このとき、画像読取装置1に駆動系の振動(動作)などに起因する変位(変動)であるジッターが存在する場合又は隣接するオーバーラップ領域の少なくとも一方の光学系(ラインセンサ又はレンズなど)に埃などの異物(以下「ジッター又は光学系付着ゴミ」とも言う)に、ラインセンサ21O,…,21O,…,21Oが生成する画像データDI(O),…,DI(O),…,DI(O)におけるオーバーラップ領域のデータと、ラインセンサ21E,…,21E,…,21Eが生成する画像データDI(E),…,DI(E),…,DI(E)におけるオーバーラップ領域のデータのいずれかの領域において、一時的に読取位置のずれ又は読取画像の違いが生じ、ラインセンサ毎に読み取った画像データの差(画素データの値の差)が生じる。すなわち、ジッター又は光学系付着ゴミ(ゴミすじ)の存在により、ラインセンサ21Oに対応する画像データDI(O)に含まれるオーバーラップ領域Ak,kに対応するデジタルデータdrと、ラインセンサ21Eに対応する画像データDI(E)に含まれる領域Ak,kに対応するデジタルデータdlとでは、同じ原稿60の領域Ak,kを読み取っていても、ある期間で読み取る画像において、一時的に画像データの値に差が発生したり、異なる位置の画像が読み取られたりすることになる。 At this time, when the image reading apparatus 1 has a jitter that is a displacement (fluctuation) due to vibration (operation) of the drive system, or at least one optical system (line sensor or lens) in the adjacent overlap region. the foreign matter such as dust (hereinafter referred to as "jitter or optical system attached dust"), the line sensor 21O 1, ..., 21O k, ..., image data DI (O 1) generated by 21O n, ..., DI (O k ), ..., DI (data of the overlap region in O n), the line sensor 21E 1, ..., 21E k, ..., image data DI (E 1 generated by the 21E n), ..., DI ( E k), ..., in any area of the overlap area data in DI (E n ), a reading position shift or a difference in the read image is temporarily generated, and reading is performed for each line sensor. A difference in image data (a difference in pixel data values) occurs. That is, the digital data dr corresponding to the overlap area A k, k included in the image data DI (O k ) corresponding to the line sensor 21O k and the line sensor due to the presence of jitter or dust adhering to the optical system. image data DI area a k included in (E k) corresponding to 21E k, in the digital data dl corresponding to k, the area a k of the same document 60, even if reading the k, the image read by a period of time Therefore, a difference in the image data value occurs temporarily, or images at different positions are read.

次に、原稿60がガラス面26から離れることにより原稿60とラインセンサの位置関係が、図4(a)に示される場合と異なる場合について説明する。図5(a)〜(c)は、画像メモリ41に格納される画像データDIを説明するための図である。図5(a)は、原稿60がガラス面26から浮いており、奇数番目に位置するラインセンサ21O,…,21O,…,21Oの光軸と偶数番目に位置するラインセンサ21E,…,21E,…,21Eの光軸とが交差する位置とは違う位置に原稿60がある場合における、原稿60とラインセンサの位置関係を示す図である。図5(b)は、原稿60の一例を示す図であり、図5(c)は、原稿60とラインセンサが図5(a)の位置関係にある場合の図5(b)の原稿60に対応する画像データDIを概念的に示す図である。 Next, a case where the positional relationship between the original 60 and the line sensor is different from the case shown in FIG. 4A when the original 60 is separated from the glass surface 26 will be described. FIGS. 5A to 5C are diagrams for explaining the image data DI stored in the image memory 41. 5 (a) is, document 60 is floated from the glass surface 26, the line sensor 21O 1 located odd, ..., 21O k, ..., the line sensor 21E 1 positioned to the optical axis and the even-numbered 21O n ,..., 21E k ,..., 21E n are diagrams illustrating the positional relationship between the document 60 and the line sensor when the document 60 is located at a position different from the position where the optical axes intersect. FIG. 5B is a diagram showing an example of the original 60. FIG. 5C is an original 60 shown in FIG. 5B when the original 60 and the line sensor are in the positional relationship shown in FIG. 5A. It is a figure which shows notionally the image data DI corresponding to.

原稿60がガラス面26から浮いた場合であっても、平面図で見た場合のラインセンサと原稿60の位置関係は、変わらない。すなわち、原稿60がガラス面26から浮いた場合と、ガラス面26上に密着している場合とでは、各ラインセンサは主走査方向(X方向)については、同じ位置のデータを取得する。したがって、図5(b)では、図4(b)の場合と同様に、ラインセンサ21Oの右端srとラインセンサ21Eの左端slは、ともに原稿60の領域Ak,kを読み取り、ラインセンサ21Eの右端srとラインセンサ21Ok+1の左端slは、ともに原稿60の領域Ak,k+1を読み取り、ラインセンサ21Ok+1の右端srとラインセンサ21Ek+1の左端slは、ともに原稿60の領域Ak+1,k+1を読み取る。 Even when the document 60 is lifted off the glass surface 26, the positional relationship between the line sensor and the document 60 when viewed in plan is not changed. That is, each line sensor acquires data at the same position in the main scanning direction (X direction) when the document 60 is lifted from the glass surface 26 and when it is in close contact with the glass surface 26. Thus, in FIG. 5 (b), the as in the case of FIG. 4 (b), the left sl the right sr and the line sensor 21E k of the line sensor 21O k reads both areas A k of the original 60, a k, a line rightmost sr and the line sensor 21O k + 1 of the left sl sensor 21E k are both reading area a k of the original 60, a k + 1, the line sensor 21O k + 1 of the rightmost sr and the line sensor 21E k + 1 of the left sl are both regions of the document 60 Read A k + 1, k + 1 .

一方、図5(a)に示されるように、撮像部2の側面図で見た場合、原稿60がガラス面26から浮いているため、奇数番目に位置するラインセンサ21O,…,21O,…,21Oの光軸27Oが原稿60と交わる位置と偶数番目に位置するラインセンサ21E,…,21E,…,21Eの光軸27Eが原稿60と交わる位置が異なる。そのため、原稿60がガラス面26から浮いている場合、副走査方向(Y方向)には、ラインセンサごとで読み取り位置が異なる。これは、副走査方向(Y方向)に撮像部2が搬送されるとき、それぞれのラインセンサは、逐次光電変換しているため、偶数番目に位置するラインセンサ21E,…,21E,…,21Eは、奇数番目に位置するラインセンサ21O,…,21O,…,21Oに比べて、同じ位置の画像を時間的に遅れて取得することになるからである。したがって、図5(c)に示されるように、奇数番目に位置するラインセンサ21O,21Ok+1に対応する画像データDI(O),DI(Ok+1)と偶数番目に位置するラインセンサ21E,21Ek+1に対応する画像データDI(E),DI(Ek+1)は、副走査方向の位置(ライン)がずれて(画像データDI(O),DI(Ok+1)に比べ画像データDI(E),DI(Ek+1)が図示の下方向にずれて)、画像メモリ41に格納される。言い替えれば、ラインセンサ21Oとラインセンサ21Eによって読み取られる副走査方向(Y方向)の位置は、隣り合うデジタルデータdrとdlでは、画像メモリ41内の副走査方向の位置(ライン)が異なることになり、ラインセンサの読み取りによって得られた画像データとの間の副走査方向の位置ずれ量(ライン数)が生じる。 On the other hand, as shown in FIG. 5A, when viewed from the side view of the imaging unit 2, since the document 60 is floating from the glass surface 26, the odd-numbered line sensors 21 </ b> O 1 ,. , ..., the line sensor 21E 1 to the optical axis 27O of 21O n is located at the position and the even-numbered intersecting the document 60, ..., 21E k, ..., a position where the optical axis 27E intersects the document 60 21E n different. Therefore, when the document 60 is floating from the glass surface 26, the reading position is different for each line sensor in the sub-scanning direction (Y direction). This is because the line sensors 21E 1 ,..., 21E k ,... Positioned evenly because each line sensor sequentially performs photoelectric conversion when the imaging unit 2 is conveyed in the sub-scanning direction (Y direction). , 21E n is the line sensor 21O 1 located odd, ..., 21O k, ..., compared to 21O n, is because so that acquiring an image of the same position temporally delayed. Accordingly, as shown in FIG. 5C, the image data DI (O k ) and DI (O k + 1 ) corresponding to the odd-numbered line sensors 21O k and 21O k + 1 and the even-numbered line sensor 21E. The image data DI (E k ) and DI (E k + 1 ) corresponding to k 1 and 21E k + 1 are shifted in position (line) in the sub-scanning direction and compared with (image data DI (O k ) and DI (O k + 1 ). Data DI (E k ) and DI (E k + 1 ) are shifted downward in the drawing) and stored in the image memory 41. In other words, the position in the sub-scanning direction (Y direction) read by the line sensor 21O and the line sensor 21E is different in the position (line) in the sub-scanning direction in the image memory 41 between the adjacent digital data dr and dl. Thus, a positional deviation amount (number of lines) in the sub-scanning direction from the image data obtained by the reading of the line sensor occurs.

また、図4(a)〜(c)の場合と同様に、撮像部2にジッター又は光学系付着ゴミが存在する場合には、奇数番目に位置するラインセンサ21Oと偶数番目に位置するラインセンサ21Eの読取位置の差に加え、ラインセンサ21Oに対応する画像データDI(O)に含まれるオーバーラップ領域Ak,kに対応するデジタルデータdrと、ラインセンサ21Eに対応する画像データDI(E)に含まれる領域Ak,kに対応するデジタルデータdlとでは、一時的に画像データの値に差が生じたり、異なる位置の画像が読み取られたりすることになる。 Similarly to the cases of FIGS. 4A to 4C, when there is jitter or optical system adhering dust in the imaging unit 2, the odd-numbered line sensor 21 < / b> O k and the even-numbered line are arranged. in addition to the difference in the reading position of the sensors 21E k, the overlap area a k included in the image data DI (O k) corresponding to the line sensors 21O k, and digital data dr corresponding to k, corresponding to the line sensor 21E k With the digital data dl corresponding to the area A k, k included in the image data DI (E k ), there is a temporary difference in the value of the image data, or images at different positions are read.

《1−2》画像処理部4
画像処理部4は、第1列のラインセンサ群の複数のラインセンサによる出力から生成された第1の画像データと、第2列のラインセンサ群の複数のラインセンサによる出力から生成された第2の画像データとを格納する画像メモリ41を備えている。また、画像処理部4は、画像メモリ41に格納されている画像データ(第1の画像データと第2の画像データ)DIの内のオーバーラップ領域における画像データに対し、予め決められた副走査方向の位置(副走査位置又はラインとも記す)の基準データと、基準データと重複して読み取られた同じオーバーラップ領域の予め決められたライン数の比較データとを比較する処理を、比較データにより求められる複数の位置について行い、基準データと副走査方向の複数の位置における比較データ(すなわち、複数のラインにおける比較データ)との間の類似度を算出する類似度算出部42を備えている。また、画像処理部4は、基準データと複数のラインにおける比較データとの間の類似度の内の最も高い類似度を持つ比較データの副走査方向の位置を求め、この求められた位置から位置ずれ量を算出する位置ずれ推定部43を備えている。また、画像処理部4は、オーバーラップ領域における類似度を示す類似度データDistの値から、それぞれのオーバーラップ領域で検出され位置ずれ量の信頼度を判定(設定)する信頼度判定部44と、信頼度が低い(低い信頼度を持つ)オーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の信頼度の高い(前記低い信頼度よりも高い信頼度を持つ)オーバーラップ領域の位置ずれ量に基づき補正する横相関位置補正部45とを備えている。さらに、画像処理部4は、補正後の位置ずれ量に基づき繋ぎ位置を変えて、画像メモリ41から画像データを読み出し、第1の画像データと第2の画像データとを結合する結合処理部46を備えている。
<< 1-2 >> Image Processing Unit 4
The image processing unit 4 generates the first image data generated from the outputs from the plurality of line sensors in the first row of line sensor groups and the first image data generated from the outputs from the plurality of line sensors in the second row of line sensor groups. An image memory 41 for storing the second image data. In addition, the image processing unit 4 performs predetermined sub-scanning on image data in an overlap area of image data (first image data and second image data) DI stored in the image memory 41. The process of comparing the reference data of the position in the direction (also referred to as sub-scanning position or line) with the comparison data of the predetermined number of lines in the same overlap area read overlapping with the reference data A similarity calculation unit 42 is provided for calculating the similarity between the reference data and the comparison data at a plurality of positions in the sub-scanning direction (that is, the comparison data for a plurality of lines). Further, the image processing unit 4 obtains the position in the sub-scanning direction of the comparison data having the highest similarity among the similarities between the reference data and the comparison data in the plurality of lines, and the position from the obtained position is determined. A misalignment estimation unit 43 that calculates the misalignment amount is provided. The image processing unit 4 also includes a reliability determination unit 44 that determines (sets) the reliability of the positional deviation amount detected in each overlap region from the value of the similarity data Dist indicating the similarity in the overlap region. The amount of misalignment in the overlap region with low reliability (having low reliability) is higher than that of other adjacent overlap regions with high reliability (having higher reliability than the low reliability). And a lateral correlation position correcting unit 45 for correcting based on the positional deviation amount of the lap region. Further, the image processing unit 4 reads the image data from the image memory 41 by changing the connection position based on the corrected positional deviation amount, and combines the first image data and the second image data. It has.

画像処理部4は、画像メモリ41に格納されている画像データDIの内のオーバーラップ領域における画像データに対し、オーバーラップ領域における基準データと比較データとを比較して類似度を算出し、算出された類似度の内の最も高い類似度を持つ比較データの副走査方向の位置から位置ずれ量を算出するとともに、類似度データDistの値からそれぞれのオーバーラップ領域で検出する位置ずれ量の信頼度を設定する。さらに、画像処理部4は、取得された信頼度の内の低い信頼度を持つオーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の高い信頼度を持つ領域での位置ずれ量に基づき補正し、補正された位置ずれ量に基づいて画像メモリ41から画像データを読み出し、読み出された画像データに対して結合処理を行う。以下に、この画像処理部4の構成について、図1を参照して詳細に説明する。   The image processing unit 4 calculates the degree of similarity by comparing the reference data and the comparison data in the overlap region with respect to the image data in the overlap region in the image data DI stored in the image memory 41. The positional deviation amount is calculated from the position in the sub-scanning direction of the comparison data having the highest similarity among the similarities, and the positional deviation amount detected in each overlap region is determined from the value of the similarity data Dist. Set the degree. Further, the image processing unit 4 calculates the positional deviation amount in the overlap region having a low reliability out of the obtained reliability, and the position in the region having a high reliability in the other adjacent overlap regions. Correction is performed based on the shift amount, image data is read from the image memory 41 based on the corrected positional shift amount, and a combination process is performed on the read image data. Hereinafter, the configuration of the image processing unit 4 will be described in detail with reference to FIG.

《1−3》類似度算出部42
類似度算出部42は、画像メモリ41内のオーバーラップ領域における画像データ、すなわち画像データDIの内の、予め決められた副走査方向(Y方向)の位置Yとその周辺(Y方向Mライン間隔毎及び主走査方向(X方向))の画像データを基準データMOとして読み出すとともに、基準データMOと重複して読み取られた同じオーバーラップ領域に対し、基準データMOの副走査方向(Y方向)の位置Yの前後ラインにおける予め決められた検索範囲(dY=−y〜+y)(すなわち、Y−yからY+yまでの範囲)の位置とその周辺(Y方向Mライン間隔毎及びX方向)の画像データを比較データMEとして読み出して、予め決められたライン数の基準データMOと比較データMEを受け取る。ここで、Mは正の整数である。類似度算出部42は、基準データMOと比較データMEとを比較する処理を位置ずれ量dY=−yからdY=+yまでの検索範囲内の複数の位置について行い、類似度データDistを算出し、類似度データDistを位置ずれ推定部43及び信頼度判定部44へ出力する。
<< 1-3 >> Similarity Calculation Unit 42
Similarity calculation unit 42, the image data in the overlap area of the image memory 41, i.e., in the image data DI, the position Y m and its surrounding (Y direction M lines of a predetermined sub-scanning direction (Y-direction) Image data for each interval and in the main scanning direction (X direction) is read as reference data MO, and the same overlap area read overlapping with reference data MO is sub-scanning direction (Y direction) of reference data MO. predetermined search range before and after the line of position Y m of (dY = -y~ + y) (i.e., the range from Y m -y to Y m + y) position and its neighborhood (Y-direction M each line interval and The image data in the X direction) is read out as comparison data ME, and the reference data MO and comparison data ME having a predetermined number of lines are received. Here, M is a positive integer. The similarity calculation unit 42 performs a process of comparing the reference data MO and the comparison data ME for a plurality of positions within the search range from the positional deviation amount dY = −y to dY = + y, and calculates the similarity data Dist. The similarity data Dist is output to the misregistration estimation unit 43 and the reliability determination unit 44.

図6及び図7は、類似度算出部42に入力される基準データMOと比較データMEが位置する画像データDIにおけるオーバーラップ領域上での位置を説明するための図である。   6 and 7 are diagrams for explaining the positions on the overlap region in the image data DI where the reference data MO and the comparison data ME input to the similarity calculation unit 42 are located.

図6は、図4(c)に対応する図(原稿60がガラス面に密着している場合)であり、基準データMOと比較データMEの画像データDI上での位置関係を示している。基準データMOは、副走査方向(Y方向)の位置Y(ラインY)での画像データであり、比較データMEは、位置ずれ量dYが検索範囲(dY=−y〜+y)内となる画像データである。図7は、図5(c)に対応する図(原稿がガラス面から離れている場合)であり、副走査方向(Y方向)の位置Y(ラインY)での基準データMOと、位置ずれ量dYが検索範囲(dY=−y〜+y)内となる画像データである比較データMEの位置関係を示している。 FIG. 6 is a diagram corresponding to FIG. 4C (when the document 60 is in close contact with the glass surface) and shows the positional relationship between the reference data MO and the comparison data ME on the image data DI. The reference data MO is image data at the position Y m (line Y m ) in the sub-scanning direction (Y direction), and the comparison data ME has a positional deviation amount dY within the search range (dY = −y to + y). Image data. FIG. 7 is a diagram corresponding to FIG. 5C (when the document is separated from the glass surface), and reference data MO at a position Y m (line Y m ) in the sub-scanning direction (Y direction); The positional relationship of the comparison data ME which is image data in which the positional deviation amount dY falls within the search range (dY = −y to + y) is shown.

図6及び図7に示されるように、副走査方向(Y方向)の位置Yにおける基準データMOは、ラインセンサ21Oに対応する画像データDI(O)のオーバーラップ領域drにおいて、ラインYを中心とした周辺の画像データに対応する画像データであり、図中のMO(O,dr,Y)となる。位置ずれ量dYが検索範囲(dY=−y〜+y)内となる画像データである比較データMEは、ラインセンサ21Eに対応する画像データDI(E)のオーバーラップ領域dlにおいて、ラインYを中心とした検索範囲(dY=−y〜+y)内のライン(すなわち、ラインY−yからラインY+yまでの範囲)とその周辺の画像データであり、図中の画像データME(E,dl,Y)となる。比較データMEは、検索範囲(dY=−y〜+y)内のラインの画像データであり、基準データMOより比較データMEが副走査方向(Y方向)に広くなる。図6及び図7においては、画像データDI(O)のオーバーラップ領域drと画像データDI(E)のオーバーラップ領域dlの基準データMO(O,dr,Y)と比較データME(E,dl,Y)の場合と同様に、順次、画像データDI(Ok+1)のオーバーラップ領域dlと画像データDI(E)のオーバーラップ領域drに対して、基準データMO(Ok+1,dl,Y)と比較データME(E,dr,Y)が、画像データDI(Ok+1)のオーバーラップ領域drと画像データDI(Ek+1)のオーバーラップ領域dlに対し、基準データMO(Ok+1,dr,Y)と比較データME(Ek+1,dl,Y)が、オーバーラップ領域における画像データとして類似度算出部42へと入力される。 As shown in FIGS. 6 and 7, the reference data MO at the position Y m in the sub-scanning direction (Y direction) is the line in the overlap region dr of the image data DI (O k ) corresponding to the line sensor 21O k. This is image data corresponding to peripheral image data centered on Y m , and is MO (O k , dr, Y m ) in the figure. The comparison data ME that is image data in which the positional deviation amount dY falls within the search range (dY = −y to + y) is the line Y in the overlap region dl of the image data DI (E k ) corresponding to the line sensor 21E k. A line within a search range (dY = −y to + y) centered on m (that is, a range from the line Y m −y to the line Y m + y) and its surrounding image data, and the image data ME in the figure (E k , dl, Y m ). The comparison data ME is image data of a line within the search range (dY = −y to + y), and the comparison data ME is wider in the sub-scanning direction (Y direction) than the reference data MO. 6 and 7, the reference data MO (O k , dr, Y m ) and the comparison data ME of the overlap region dr of the image data DI (O k ) and the overlap region dl of the image data DI (E k ). Similarly to the case of (E k , dl, Y m ), the reference data MO () is sequentially applied to the overlap region dl of the image data DI (O k + 1 ) and the overlap region dr of the image data DI (E k ). O k + 1 , dl, Y m ) and comparison data ME (E k , dr, Y m ) are compared with the overlap region dr of the image data DI (O k + 1 ) and the overlap region dl of the image data DI (E k + 1 ). reference data MO (O k + 1, dr , Y m) and the comparison data ME (E k + 1, dl , Y m) is, the similarity calculation as image data in the overlap region 42 is input to.

図8(a)及び(b)は、実施の形態1の類似度算出部42において、類似度算出の動作を説明するための図及び算出された類似度データと副走査方向の位置ずれ量の関係の例を示す図である。図8(a)及び(b)は、類似度算出部42に検出基準ラインYを中心とした基準データMO(O,dr)と比較データME(E,dl)が入力される場合を示している。図8(a)において、類似度算出部42は、入力された基準データMO(O,dr)に対し、まず、検索範囲(dY=−y〜+y)内の比較データME(E,dl)から基準データMO(O,dr)と同じ大きさ(同じ副走査方向の幅bhライン)の複数の画像データME(E,dl,dY)を抽出する。検索範囲dYは、基準データMO(O,dr)との副走査方向の位置ずれ量であり、検出基準ラインYを中心として−y〜+yの範囲内の値をとる。基準データMO(O,dr)の中心位置である検出基準ラインYと同じ位置にあるデータを画像データME(E,dl,0)とし、1ライン分ずらしたデータをME(E,dl,1)、さらに1ラインずつずらしていき、yライン分ずらしたデータを画像データME(E,dl,+y)とし、逆方向にyライン分ずらしたデータを画像データME(E,dl,−y)とする。 8A and 8B are diagrams for explaining the similarity calculation operation in the similarity calculation unit 42 according to the first embodiment, and the calculated similarity data and the amount of positional deviation in the sub-scanning direction. It is a figure which shows the example of a relationship. 8A and 8B show a case where reference data MO (O k , dr) and comparison data ME (E k , dl) centered on the detection reference line Y m are input to the similarity calculation unit 42. Is shown. In FIG. 8A, the similarity calculation unit 42 first compares the input reference data MO (O k , dr) with the comparison data ME (E k , E within the search range (dY = −y to + y). A plurality of image data ME (E k , dl, dY) having the same size as the reference data MO (O k , dr) (the same width bh line in the sub-scanning direction) is extracted from dl). Search range dY is a position deviation amount in the sub-scanning direction between reference data MO (O k, dr), takes a value within the range of -y~ + y around the detection reference line Y m. And reference data MO (O k, dr) data at the same position as the center position is detected reference line Y m of the image data ME (E k, dl, 0 ) and a one line shift data ME (E k , Dl, 1) and further shifted by one line, the data shifted by y lines is set as image data ME (E k , dl, + y), and the data shifted by y lines in the reverse direction is image data ME (E k , Dl, -y).

次に、類似度算出部42は、基準データMO(O,dr)と比較データME(E,dl)における画像データME(E,dl,−y)〜ME(E,dl,+y)との類似度を算出し、算出された類似度を示す類似度データDist(O,E)、すなわち、ラインセンサ21O及び21E間のオーバーラップ領域における類似度データを生成する。類似度算出部42は、基準データMO(O,dr)と画像データME(E,dl,−y)〜ME(E,dl,+y)の各々とは、大きさが同じなので、例えば、基準データMO(O,dr)と画像データME(E,dl,−y)〜ME(E,dl,+y)の各々との画素毎の差分の絶対値の和、又は、画素毎の差分の二乗和を類似度として算出し、算出された類似度を示す類似度データDist(O,E,dY)、すなわち、ラインセンサ21O及び21E間のオーバーラップ領域における類似度データとし出力する。同様に、類似度算出部42は、次の基準データMO(Ok+1,dl)と比較データME(E,dr)、基準データMO(Ok+1,dr)と比較データME(Ek+1,dl)、…について、それぞれ順次類似度を算出し、算出された類似度を示す類似度データDist(Ok+1,E,dY)、Dist(Ok+1,Ek+1,dY)、…を生成する。 Next, the similarity calculation unit 42 includes image data ME (E k , dl, −y) to ME (E k , dl,) in the reference data MO (O k , dr) and the comparison data ME (E k , dl). + Y), and similarity data Dist (O k , E k ) indicating the calculated similarity, that is, similarity data in the overlap region between the line sensors 21O k and 21E k is generated. . Since the similarity calculation unit 42 has the same size as each of the reference data MO (O k , dr) and each of the image data ME (E k , dl, −y) to ME (E k , dl, + y), For example, the sum of absolute values of differences for each pixel between the reference data MO (O k , dr) and each of the image data ME (E k , dl, −y) to ME (E k , dl, + y), or The sum of squares of differences for each pixel is calculated as similarity, and similarity data Dist (O k , E k , dY) indicating the calculated similarity, that is, in the overlap region between the line sensors 21O k and 21E k Output as similarity data. Similarly, the similarity calculation unit 42 includes the next reference data MO (O k + 1 , dl) and comparison data ME (E k , dr), the reference data MO (O k + 1 , dr) and the comparison data ME (E k + 1 , dl). ),... Are sequentially calculated, and similarity data Dist (O k + 1 , E k , dY), Dist (O k + 1 , E k + 1 , dY),.

なお、図8(a)において、検索範囲(dY=−y〜+y)内の比較データME(E,dl)から、位置ずれ量dYとして1ラインずつずらして画像データME(E,dl,dY)をとり類似度(類似度データDist)を算出する場合を説明したが、前後ラインの画像データから補間処理することで、ラインとラインの間の副走査方向の位置(サブ・ラインと記す)を求め、同様に基準データMOとの類似度を算出し、類似度データDistを生成することもできる。 In FIG. 8A, the image data ME (E k , dl is shifted by one line as the positional deviation amount dY from the comparison data ME (E k , dl) within the search range (dY = -y to + y). , DY) to calculate the similarity (similarity data Dist), but by interpolating from the image data of the previous and subsequent lines, the position in the sub-scanning direction between the lines (sub-line and The similarity data Dist can also be generated by calculating the similarity with the reference data MO.

図8(b)は、類似度算出部42において、検出基準ラインYを中心とした基準データMO(O,dr)と比較データME(E,dl)における画像データME(E,dl,−y)〜ME(E,dl,+y)の類似度を算出したときの位置ずれ量dYの検索範囲(dY=−y〜+y)における類似度データDist(O,E,dY)の値の例を示している。図8(b)において、破線Dist0が図4(a)〜(c)及び図6に対応する類似度データDist(O,E,dY)であり、実線Dist1が図5(a)〜(c)及び図7に対応する類似度データDist(O,E,dY)である。図4(a)〜(c)及び図6では、奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eが副走査方向(Y方向)に同じ位置を読み取っているため、そのデータもずれていない。したがって、図6(b)の破線Dist0のようにdY=0の位置でDistの値が最小で類似度が高く(すなわち、非類似度が低く)なる。また、図5(a)〜(c)及び図7では、原稿60がガラス面26から上に離れているため、奇数番目に位置するラインセンサ21O,…,21O,…,21Oに対して偶数番目に位置するラインセンサ21E,…,21E,…,21Eの読み取り画像が、画像の副走査方向の位置が下方向にずれ、正の値(dY=+a)の位置で、Distの値が最小で類似度が最も高く(すなわち、非類似度が最も低く)なる。 FIG. 8B shows the image data ME (E k , d) of the reference data MO (O k , dr) centered on the detection reference line Y m and the comparison data ME (E k , dl) in the similarity calculator 42. dl, −y) to ME (E k , dl, + y) similarity data Dist (O k , E k , in the search range (dY = −y to + y) of the positional deviation amount dY when the similarity is calculated. An example of the value of (dY) is shown. In FIG. 8B, the broken line Dist0 is similarity data Dist (O k , E k , dY) corresponding to FIGS. 4A to 4C and FIG. 6, and the solid line Dist1 is FIG. Similarity data Dist (O k , E k , dY) corresponding to (c) and FIG. In FIG. 4 (a) ~ (c) and 6, the line sensor 21O 1 located odd, ..., 21O k, ..., the line sensor 21E 1 located to the even-numbered and 21O n, ..., 21E k, ... since the 21E n is reading the same position in the sub-scanning direction (Y-direction), not shifted even that data. Therefore, as shown by the broken line Dist0 in FIG. 6B, the Dist value is minimum and the similarity is high (that is, the dissimilarity is low) at the position of dY = 0. Further, in FIG. 5 (a) ~ (c) and 7, since the original 60 is away on the glass surface 26, the line sensor 21O 1 located odd, ..., 21O k, ..., to 21O n line sensor 21E 1 located numbered for, ..., 21E k, ..., read image 21E n is the sub-scanning direction of the positional deviation in the downward direction of the image, at the position of the positive value (dY = + a) , Dist is the smallest and the similarity is the highest (ie, the dissimilarity is the lowest).

なお、上述したように、撮像部2にジッター又は光学系付着ゴミが存在する場合、画像データDIにおけるオーバーラップ領域の画像データには、ラインセンサ毎に読み取った画像データの差(画素データの値の差)が生じる。言い替えれば、ある期間で読み取る画像において、読取位置が本来の位置からずれ、一時的に画像データの値に差が発生したり、異なる位置の画像が読み取られたりして、類似度データDistの値は、本来の値から変動した値となる。そのため、類似度が最も高くなる位置が一時的にずれたり、類似度データDistの値が大きくなったりする(類似度が低くなる)ことがある。   As described above, when jitter or optical system adhering dust exists in the imaging unit 2, the difference between the image data read for each line sensor (the value of the pixel data) is included in the image data of the overlap region in the image data DI. Difference) occurs. In other words, in an image to be read in a certain period, the reading position is deviated from the original position, a difference is temporarily generated in the value of the image data, or an image at a different position is read, and the value of the similarity data Dist Is a value that varies from the original value. For this reason, the position where the similarity is the highest may be temporarily shifted, or the value of the similarity data Dist may be increased (similarity is decreased).

《1−4》位置ずれ推定部43
位置ずれ推定部43は、類似度算出部42から出力された、検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDistを受け取る。位置ずれ推定部43は、複数のラインの類似度データDistの内の類似度が最も高いデータに対応する位置ずれ量dYを、位置ずれ量データdybとして、横相関位置補正部45へ出力する。
<< 1-4 >> Position Deviation Estimation Unit 43
The positional deviation estimation unit 43 receives the similarity data Dist for the positional deviation amounts dY of a plurality of lines within the search range (dY = −y to + y) output from the similarity calculation unit 42. The positional deviation estimation unit 43 outputs the positional deviation amount dY corresponding to the data having the highest similarity among the similarity data Dist of the plurality of lines as the positional deviation amount data dyb to the lateral correlation position correction unit 45.

例えば、図8(b)において、破線Dist0のようにdY=0の位置で類似度データDistの値が最小である(すなわち、類似度が高く、非類似度が低い)場合は、位置ずれ推定部43は、dY=0を位置ずれ量データdybとする。また、実線Dist1が示すようなdY=+aの位置で類似度データDistの値が最小である(すなわち、類似度が最も高く、非類似度が最も低い)場合は、位置ずれ推定部43は、dY=+aを位置ずれ量データdybとする。   For example, in FIG. 8B, when the value of the similarity data Dist is minimum (ie, the similarity is high and the dissimilarity is low) at the position of dY = 0 as indicated by the broken line Dist0, the positional deviation estimation is performed. The unit 43 sets dY = 0 as the positional deviation amount data dyb. Further, when the value of the similarity data Dist is minimum at the position of dY = + a as indicated by the solid line Dist1 (that is, the similarity is the highest and the dissimilarity is the lowest), the positional deviation estimation unit 43 Let dY = + a be the positional deviation amount data dyb.

《1−5》信頼度判定部44
上述したように、撮像部2にジッター又は光学系付着ゴミが存在する場合、隣接するオーバーラップ領域の画像データ間に差が生じ、オーバーラップ領域での類似度データDistの値は、本来の値から変動した値、すなわち、ジッター又は光学系付着ゴミに起因するノイズ成分を含む値となる。例えば、ジッターによって、類似度が高くなる(類似度データDistの値が小さくなる)位置が一時的に数ラインずれたり、光学系付着ゴミによって類似度データDistの値が大きくなったり(類似度が低くなったり)することがある。
<< 1-5 >> Reliability Determination Unit 44
As described above, when there is jitter or optical system adhering dust in the imaging unit 2, a difference occurs between the image data of the adjacent overlap areas, and the value of the similarity data Dist in the overlap area is the original value. That is, a value including noise components caused by jitter or dust attached to the optical system. For example, the position where the similarity increases due to jitter (the value of the similarity data Dist decreases) temporarily shifts by several lines, or the value of the similarity data Dist increases due to dust adhering to the optical system (the similarity decreases). Sometimes lower).

図9は、実施の形態1の類似度算出部42において、撮像部2にジッター又は光学系付着ゴミが存在する場合に算出される類似度データjDist(O,E,dY)と副走査方向の位置ずれ量dYとの関係の例を示す図である。図9において、破線Dist0は、ジッターが十分に低く且つ光学系付着ゴミが存在しない場合に、類似度算出部42で算出された類似度データDistの一例を示している。図9において、実線jDist0は、読取り時のジッター又は光学系付着ゴミの影響が顕著である場合に、類似度算出部42で算出された類似度データDistの一例を示している。通常の場合(ジッター及び光学系付着ゴミの影響が小さい場合)には、破線Dist0のように、位置ずれ量dY=0の位置で、類似度データDistの値が最小になり(すなわち、類似度が最大で、非類似度が最小になり)、極小の類似度の位置は1つの位置である。 FIG. 9 illustrates similarity data jDist (O k , E k , dY) and sub-scanning that are calculated when there is jitter or optical system adhering dust in the imaging unit 2 in the similarity calculation unit 42 according to the first embodiment. It is a figure which shows the example of the relationship with the positional offset amount dY of a direction. In FIG. 9, a broken line Dist0 indicates an example of the similarity data Dist calculated by the similarity calculation unit 42 when the jitter is sufficiently low and there is no dust attached to the optical system. In FIG. 9, a solid line jDist0 shows an example of the similarity data Dist calculated by the similarity calculator 42 when the influence of jitter at the time of reading or the dust attached to the optical system is significant. In the normal case (when the influence of jitter and dust adhering to the optical system is small), the value of the similarity data Dist becomes minimum at the position of the positional deviation amount dY = 0 as shown by the broken line Dist0 (that is, the similarity degree). Is the maximum and the dissimilarity is minimum), and the position of the minimum similarity is one position.

一方、ジッターが増加すると、ジッターの影響を受けやすい位置に配置されたラインセンサの読取位置が一時的にずれて、オーバーラップ領域の読取画像に、ラインセンサ間における読取位置の本来のずれとは異なる、ジッターに起因する読取位置のずれが生じ、隣接するオーバーラップ領域の画像間に相違が生じる。また、隣接するオーバーラップ領域の内の少なくとも一方のオーバーラップ領域における光学系(撮像部2のラインセンサ又はレンズなど)に光学系付着ゴミが存在する場合には、隣接するオーバーラップ領域の読取画像が互いに異なるものになり、両者間に大きな差が生じる。よって、図9に実線jDist0で示されるように、画像の副走査方向の位置がずれ、例えば、dY=ajの位置で、実線jDist0の値が小さくなるが、全体に類似度データDistの値が大きくなる(すなわち、類似度が低くなり、非類似度が高くなる)。図9の場合には、dY=ajの位置で、実線jDist0の値が最小で類似度が最大になるが、dY=ajの位置の類似度と、その前後(副走査方向の周辺)のラインでの類似度との差は、小さい。したがって、このような場合には、dY=ajの位置を、類似度が最小の位置であると確実に識別することができない場合があり、誤検出が起こり易い。   On the other hand, when the jitter increases, the reading position of the line sensor arranged at a position susceptible to the jitter is temporarily shifted, and the original reading position between the line sensors is different from the reading image in the overlap area. Different reading position shifts due to jitter occur, and there is a difference between images in adjacent overlapping regions. Further, when there is an optical system adhering dust in the optical system (line sensor or lens of the imaging unit 2) in at least one of the adjacent overlap areas, the read image of the adjacent overlap area Are different from each other, and there is a large difference between the two. Therefore, as indicated by the solid line jDist0 in FIG. 9, the position of the image in the sub-scanning direction is shifted, for example, the value of the solid line jDist0 is small at the position of dY = aj, but the value of the similarity data Dist is overall. Increased (ie, the degree of similarity decreases and the degree of dissimilarity increases). In the case of FIG. 9, at the position of dY = aj, the value of the solid line jDist0 is the smallest and the degree of similarity is the largest, but the degree of similarity at the position of dY = aj and the lines before and after (periphery in the sub-scanning direction) The difference with the similarity in is small. Therefore, in such a case, the position of dY = aj may not be reliably identified as the position with the minimum similarity, and erroneous detection is likely to occur.

図10は、実施の形態1の類似度算出部42において、被読取物として同じ模様が繰り返される繰り返しパターンを読み取った場合の類似度データDist2と副走査方向の位置ずれ量dYとの関係の例を示す図である。例えば、撮像部2によって縞模様又は網点などの繰り返しパターンとなる画像部分が読み取られる場合には、オーバーラップ領域において同じ画像となる位置が複数存在することとなり、類似度算出部42において類似度を算出したときの類似度データDist2(O,E,dY)の値は、図10に示されるように、類似度データの値が極小になる(すなわち、類似度が高くなる)位置が複数存在する。繰り返しパターンでの類似度データは、例えば、図10における類似度データDist2のように、dY=a1、dY=a2、及びdY=a3の位置で類似度データDist2の値が極小である(すなわち、類似度が高く、非類似度が低い)。このとき、位置ずれ推定部43は、類似度算出部42から出力された複数のラインの位置ずれ量dYにおける類似度データDist2の内の類似度が最も高いずれデータに対応する位置ずれ量dYを位置ずれ量データdybとする。しかし、類似度データの値に複数の極小点が存在する場合、位置ずれ推定部43は、複数の極小点の内の最小値となる位置、又は、読取位置の本来のずれdY=0若しくはdY=+aに最も近い位置において、類似度データDistの値が最小となる位置を類似度が最も高いとして、位置ずれ量データdybとする。 FIG. 10 shows an example of the relationship between the similarity data Dist2 and the positional deviation amount dY in the sub-scanning direction when the similarity calculation unit 42 according to the first embodiment reads a repeated pattern in which the same pattern is repeated as an object to be read. FIG. For example, when an image portion that is a repeated pattern such as a striped pattern or a halftone dot is read by the imaging unit 2, there are a plurality of positions that are the same image in the overlap region, and the similarity calculation unit 42 determines the similarity. As shown in FIG. 10, the value of the similarity data Dist2 (O k , E k , dY) when calculating the position of the similarity data is minimized (that is, the similarity becomes higher). There are multiple. For example, the similarity data in the repetitive pattern has a minimum value of the similarity data Dist2 at positions dY = a1, dY = a2, and dY = a3 as in the similarity data Dist2 in FIG. High similarity and low dissimilarity). At this time, the misregistration estimation unit 43 calculates the misregistration amount dY corresponding to the data with the highest similarity in the similarity data Dist2 in the misregistration amounts dY of the plurality of lines output from the similarity calculation unit 42. The positional deviation amount data dyb is used. However, when there are a plurality of minimum points in the value of the similarity data, the position deviation estimation unit 43 determines whether the position of the minimum value among the plurality of minimum points or the original deviation of the reading position is dY = 0 or dY. The position where the value of the similarity data Dist is the smallest at the position closest to + a is regarded as the highest similarity, and is referred to as positional deviation amount data dyb.

図11は、実施の形態1の類似度算出部42において、撮像部2にジッター又は光学系付着ゴミが存在する場合に、繰り返しパターンで算出される類似度データと副走査方向の位置ずれ量dYの関係の例を示す図である。繰り返しパターンの読取り時にジッター又は光学系付着ゴミが存在する場合、図9で説明した場合と同様に、ジッター又は光学系付着ゴミによる影響が大きい位置に配置されたラインセンサの読取位置が一時的にずれ、隣接するオーバーラップ領域の画像データが互いに異なるものになり、画像データ間に大きな差が生じる。図11は、ジッター又は光学系付着ゴミが存在する場合の繰り返しパターンの読取画像における類似度データjDist(O,E,dY)の値の例を示している。図11において、破線Dist2は、読取り時のジッター又は光学系付着ゴミの影響がない場合の類似度データDistであり、実線jDist2は、読取り時のジッター又は光学系付着ゴミの影響がある場合の類似度データの一例である。 FIG. 11 shows the similarity data calculated by the repetitive pattern and the positional deviation amount dY in the sub-scanning direction when jitter or optical system attached dust is present in the imaging unit 2 in the similarity calculation unit 42 of the first embodiment. It is a figure which shows the example of these relationships. When jitter or optical system adhering dust is present when reading a repetitive pattern, the reading position of the line sensor arranged at a position where the influence of jitter or optical system adhering dust is large is temporarily changed as in the case described with reference to FIG. As a result, the image data in the adjacent overlap areas are different from each other, and a large difference is generated between the image data. FIG. 11 shows an example of the value of the similarity data jDist (O k , E k , dY) in the read image of the repetitive pattern when there is jitter or dust attached to the optical system. In FIG. 11, a broken line Dist2 is similarity data Dist when there is no influence of jitter or optical system adhering dust during reading, and a solid line jDist2 is similar when there is an influence of jitter or optical system adhering dust during reading. It is an example of degree data.

図11に示されるように、読取り時のジッター又は光学系付着ゴミの影響がある場合、実線jDist2のように、類似度データの値が極小になる位置がdY=aj1、dY=aj2、及びdY=aj3の位置となり、破線Dist2に比べて、ずれが生じたり、及び全体に類似度データの値が大きくなったりする(すなわち、類似度が低くなり、非類似度が高くなる)。dY=aj1、dY=aj2、及びdY=aj3の位置における類似度データ(実線jDist2)の値により、類似度データの値が最小となる位置が、図11では、dY=aj1の位置で類似度データの値が最小(すなわち、類似度が最大)と判断される誤検出が起こり得る。また、図9の実線jDist0のように、各ライン位置での類似度の差が小さく、最小となる位置を確実に検出できない場合にも、誤検出が起こり易くなる。   As shown in FIG. 11, when there is an influence of jitter at reading or dust adhering to the optical system, the position where the value of the similarity data becomes minimum is dY = aj1, dY = aj2, and dY, as indicated by a solid line jDist2. = Aj3, and a shift occurs compared to the broken line Dist2, and the value of similarity data increases as a whole (that is, the similarity decreases and the dissimilarity increases). The position at which the value of the similarity data is minimum due to the value of the similarity data (solid line jDist2) at the positions of dY = aj1, dY = aj2, and dY = aj3 is shown in FIG. 11, and the similarity is at the position of dY = aj1. A false detection may occur where the data value is determined to be minimum (ie, the similarity is maximum). Also, as shown by the solid line jDist0 in FIG. 9, even when the difference in similarity at each line position is small and the minimum position cannot be reliably detected, erroneous detection is likely to occur.

そこで、図1の信頼度判定部44は、オーバーラップ領域における類似度データDistの値から、それぞれのオーバーラップ領域で検出される位置ずれ量dYの信頼度を判定(設定)する。   Therefore, the reliability determination unit 44 in FIG. 1 determines (sets) the reliability of the positional deviation amount dY detected in each overlap region from the value of the similarity data Dist in the overlap region.

信頼度判定部44は、類似度算出部42から出力された検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDist、すなわち、各ラインセンサのオーバーラップ領域における類似度データDist(O,E,dY)、Dist(Ok+1,E,dY)、Dist(Ok+1,Ek+1,dY)、…を受け取る。信頼度判定部44は、位置ずれ量dYの検索範囲(dY=−y〜+y)内における複数のラインについての類似度データDistから、各位置の中で類似度データDistの値の大きさと、類似度データDistの値が小さくなる位置の近くで極値(例えば、値が減少から増加へ変化する位置)を持つかの検出を行い(すなわち、極値を検出する処理を行い)、この処理の結果に基づいて位置ずれ量の信頼度を判定(設定)し、設定された信頼度を示す信頼度データpcntを出力する。 The reliability determination unit 44 uses the similarity data Dist in the positional deviation amounts dY of a plurality of lines within the search range (dY = −y to + y) output from the similarity calculation unit 42, that is, overlaps of the line sensors. Similarity data Dist (O k , E k , dY), Dist (O k + 1 , E k , dY), Dist (O k + 1 , E k + 1 , dY),. The reliability determination unit 44 calculates the magnitude of the value of the similarity data Dist in each position from the similarity data Dist for a plurality of lines within the search range (dY = −y to + y) of the positional deviation amount dY. Whether or not there is an extreme value (for example, a position where the value changes from decreasing to increasing) is detected near the position where the value of the similarity data Dist becomes small (that is, processing for detecting the extreme value is performed). Based on the result, the reliability of the positional deviation amount is determined (set), and reliability data pcnt indicating the set reliability is output.

図12は、信頼度判定部44の一構成例を概略的に示すブロック図である。図12の信頼度判定部44は、類似度算出部42から出力された検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDistを閾値Ndyと比較し、類似度データDistの値が小さく、最小となる位置の候補Mpoを求め、候補Mpoの内から極値を持つ位置を検出し、類似度データDistの値と極値の有無から信頼度を設定し、設定された信頼度を示す信頼度データpcntとして出力する。   FIG. 12 is a block diagram schematically illustrating a configuration example of the reliability determination unit 44. The reliability determination unit 44 in FIG. 12 compares the similarity data Dist in the positional deviation amounts dY of the plurality of lines within the search range (dY = −y to + y) output from the similarity calculation unit 42 with the threshold value Ndy. The candidate Mpo of the position where the value of the similarity data Dist is small and the minimum is obtained, the position having the extreme value is detected from the candidate Mpo, and the reliability is set from the value of the similarity data Dist and the presence / absence of the extreme value And output as reliability data pcnt indicating the set reliability.

図12に示されるように、信頼度判定部44は、閾値設定部441と、類似度比較部442と、極値検出部443と、信頼度設定部445とを備えている。   As illustrated in FIG. 12, the reliability determination unit 44 includes a threshold setting unit 441, a similarity comparison unit 442, an extreme value detection unit 443, and a reliability setting unit 445.

類似度算出部42から出力された検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDistは、閾値設定部441、類似度比較部442、及び極値検出部443へと入力される。閾値設定部441は、位置ずれ量dYの検索範囲(dY=−y〜+y)内における複数のラインの類似度データDistに対し、その値が小さく、最小となる位置の候補となる類似度データDistの値を判定するための閾値Ndyを設定する。類似度データDistは、基準データMO(O,dr)と画像データME(E,dl,−y)〜ME(E,dl,+y)の画素毎の差分の絶対値の和、又は、画素毎の差分の二乗和を類似度として算出されているので、類似度データが最小(すなわち、類似度が最も高く、非類似度が最も低い)と判断できる値は0であり、例えば、0から予め決められた幅を持たせた値Ndy=0〜Naの範囲内の値を、閾値と設定する。このNaは、ラインセンサから読み取る画像のノイズ等を考慮して予め決められた値としてもよい。また、Naは、検索範囲(dY=−y〜+y)内での類似度データDistの平均値を算出し、この平均値より小さな値を対象とするよう設定してもよい。これにより、ノイズの有無に関係なく、適応的に閾値を設定することができる。 Similarity data Dist for the positional deviation amounts dY of a plurality of lines within the search range (dY = −y to + y) output from the similarity calculation unit 42 includes a threshold setting unit 441, a similarity comparison unit 442, and an extreme value. This is input to the detection unit 443. The threshold value setting unit 441 has similarity data Dist having a small value and a minimum position candidate for the similarity data Dist of a plurality of lines within the search range (dY = −y to + y) of the positional deviation amount dY. A threshold value Ndy for determining the value of Dist is set. The similarity data Dist is a sum of absolute values of differences for each pixel of the reference data MO (O k , dr) and the image data ME (E k , dl, −y) to ME (E k , dl, + y), or Since the sum of squares of the differences for each pixel is calculated as the similarity, the value for determining that the similarity data is the minimum (that is, the highest similarity and the lowest dissimilarity) is 0. For example, A value within a range of Ndy = 0 to Na having a predetermined width from 0 is set as a threshold value. This Na may be a value determined in advance in consideration of noise of an image read from the line sensor. Further, Na may be set to calculate an average value of the similarity data Dist within the search range (dY = −y to + y) and target a value smaller than this average value. Thereby, a threshold value can be set adaptively regardless of the presence or absence of noise.

類似度比較部442は、類似度データDistと閾値設定部441から出力された閾値Ndyとを受け取り、類似度データDistと閾値Ndyとを比較し、類似度データDistの値が小さく、最小となる位置の候補を求め、その位置データMpoを出力する。類似度比較部442は、位置ずれ量dYの検索範囲(dY=−y〜+y)内における複数のラインの類似度データDistが閾値設定部441から出力された閾値Ndyより小さくなる位置を求め、類似度データDistの値が小さく、最小となる位置の候補とする。   The similarity comparison unit 442 receives the similarity data Dist and the threshold value Ndy output from the threshold setting unit 441, compares the similarity data Dist with the threshold value Ndy, and the value of the similarity data Dist is small and becomes the minimum. A position candidate is obtained, and the position data Mpo is output. The similarity comparison unit 442 obtains a position where the similarity data Dist of a plurality of lines within the search range (dY = −y to + y) of the positional deviation amount dY is smaller than the threshold value Ndy output from the threshold setting unit 441, It is assumed that the value of the similarity data Dist is small and is a minimum position candidate.

極値検出部443へは、類似度データDistと、類似度比較部442から出力された位置データMpoとが入力される。位置データMpoは、類似度データDistの値が小さく、最小となる位置の候補を示す。極値検出部443は、位置データMpoとその周辺の位置での類似度データDistとから、位置データMpoの類似度データが減少から増加に変化する極値となっているかを検出し、極値となる位置を示す極値判定結果LMdとその位置の類似度データDslとを出力する。なお、極値検出部443は、極値がない場合は、極値なしを示す情報を極値判定結果LMdとして出力する。   The extreme value detection unit 443 receives the similarity data Dist and the position data Mpo output from the similarity comparison unit 442. The position data Mpo indicates a position candidate where the value of the similarity data Dist is small and becomes the minimum. The extreme value detection unit 443 detects, from the position data Mpo and the similarity data Dist at the surrounding positions, whether the similarity data of the position data Mpo is an extreme value that changes from decrease to increase, and the extreme value The extreme value determination result LMd indicating the position to be output and the similarity data Dsl at that position are output. In addition, when there is no extreme value, the extreme value detection unit 443 outputs information indicating no extreme value as the extreme value determination result LMd.

例えば、図9のような場合、極値検出部443は、類似度データDist0の値はdY=0で極値となるので、極値検出部443は、極値判定結果LMdとdY=0の類似度データDslを検出する。一方、読取り時のジッター又は光学系付着ゴミの影響が発生した場合、極値検出部443は、類似度データjDist0に、極値があるとは判定しない。つまり、図9では、dY=ajの位置で類似度データDistの値が小さくなるような場合であるが、dY=ajの位置のその前後のラインでの類似度との差が小さい場合、減少から増加に変化する極値となっていなければ、最小値と判定ができない。また、類似度比較部442において、閾値Ndyの設定によっては、類似度データjDistと閾値Ndyの比較から、類似度データDistの値が小さく、最小となる位置の候補として求められないことになる。   For example, in the case of FIG. 9, the extreme value detection unit 443 has an extreme value when the value of the similarity data Dist0 is dY = 0, and thus the extreme value detection unit 443 has the extreme value determination result LMd and dY = 0. Similarity data Dsl is detected. On the other hand, when the influence of jitter at reading or dust attached to the optical system occurs, the extreme value detection unit 443 does not determine that the similarity data jDist0 has an extreme value. That is, in FIG. 9, the value of the similarity data Dist becomes small at the position of dY = aj, but decreases when the difference between the similarity of the previous and subsequent lines at the position of dY = aj is small. If it is not an extreme value that changes from to, it cannot be determined as the minimum value. Further, depending on the setting of the threshold value Ndy, the similarity comparison unit 442 may not be obtained as a candidate for the position where the value of the similarity data Dist is small due to the comparison between the similarity data jDist and the threshold value Ndy.

また、極値検出部443は、図11のような繰り返しパターンの読取の場合、類似度データDistに対して、複数の極値となる位置を検出し、極値判定結果LMdとその位置の類似度データDslを出力する。   Further, in the case of reading a repeated pattern as shown in FIG. 11, the extreme value detection unit 443 detects a plurality of extreme values positions from the similarity data Dist, and the extreme value determination result LMd is similar to the position. The degree data Dsl is output.

信頼度設定部445は、極値検出部443から出力された極値判定結果LMdとその位置の類似度データDslを受け取り、位置ずれ量の信頼度を判定(設定)し、設定された信頼度を示す信頼度データpcntを出力する。信頼度設定部445は、極値判定結果LMdとその位置の類似度データDslとから信頼度を設定する。例えば、信頼度設定部445は、極値判定結果LMdが示す極値の数に基づいて信頼度データpcntを設定する。信頼度設定部445は、極値判定結果LMdが1つの位置であり、その位置の類似度データDslの値が所定の基準値より小さい場合は、信頼度が高いとして、信頼度データpcnt=1を設定し、極値判定結果LMdが極値を持たないことを示す場合は、信頼度が低いとして、信頼度データpcnt=0とする。信頼度設定部445は、極値判定結果LMdが複数の極値となる位置を持つ場合を、信頼度を中間値として、信頼度データpcntを極値の数(2以上の値)とする。例えば、信頼度設定部445は、信頼度が高いと判定した第1の場合には、信頼度として1を設定し、信頼度が低いと判定した第2の場合には、信頼度として0を設定し、信頼度が第1の場合と第2の場合との中間であると判定した第3の場合には、信頼度として2を設定する。   The reliability setting unit 445 receives the extreme value determination result LMd output from the extreme value detection unit 443 and the similarity data Dsl of the position, determines (sets) the reliability of the positional deviation amount, and sets the reliability Is output reliability data pcnt. The reliability setting unit 445 sets the reliability from the extreme value determination result LMd and the similarity data Dsl at that position. For example, the reliability setting unit 445 sets the reliability data pcnt based on the number of extreme values indicated by the extreme value determination result LMd. When the extreme value determination result LMd is one position and the value of the similarity data Dsl at that position is smaller than a predetermined reference value, the reliability setting unit 445 determines that the reliability is high and the reliability data pcnt = 1. Is set, and the extreme value determination result LMd indicates that there is no extreme value, the reliability is low and the reliability data pcnt = 0. The reliability setting unit 445 sets the reliability data pcnt as the number of extreme values (a value of 2 or more) with the reliability as an intermediate value when the extreme value determination result LMd has a plurality of extreme values. For example, the reliability setting unit 445 sets 1 as the reliability in the first case where it is determined that the reliability is high, and sets 0 as the reliability in the second case where it is determined that the reliability is low. In the third case where the reliability is determined to be intermediate between the first case and the second case, 2 is set as the reliability.

また、極値判定結果LMdが示す極値の数に基づいて信頼度データpcntを設定する場合を説明したが、信頼度設定部445は、極値判定結果LMdが1つの位置を示す場合は信頼度が高いとして、信頼度データpcnt=1を設定し、極値判定結果LMdが極値を持たないことを示す場合又は、極値判定結果LMdが複数の極値となる位置を持つ場合を、信頼度が低いとして、信頼度データpcnt=0を設定してもよい。この場合には、信頼度設定部445は、信頼度が高いと判定した第1の場合には、信頼度として1を設定し、第1の場合よりも信頼度が低いと判定した第2の場合には、信頼度として0を設定する。   Moreover, although the case where the reliability data pcnt is set based on the number of extreme values indicated by the extreme value determination result LMd has been described, the reliability setting unit 445 is reliable when the extreme value determination result LMd indicates one position. When the reliability data pcnt = 1 is set and the extreme value determination result LMd indicates that the extreme value determination result LMd does not have an extreme value, or the extreme value determination result LMd has a plurality of extreme values, The reliability data pcnt = 0 may be set on the assumption that the reliability is low. In this case, the reliability setting unit 445 sets 1 as the reliability in the first case where the reliability is determined to be high, and the second determines that the reliability is lower than in the first case. In this case, 0 is set as the reliability.

信頼度設定部445は、極値判定結果LMdと極値判定結果LMdが示す極値の位置の類似度データDslとに基づいて設定された位置ずれ量の信頼度を示す信頼度データpcntを出力する。このため、画像処理部4は、読取り時のジッター又は光学系付着ゴミの影響があり、類似度データDistが本来の値から変動した値となるような場合を、この信頼度データpcntから判定することが可能である。また、画像処理部4は、繰り返しパターンの場合のような極値判定結果LMdが複数の極値となる位置を持つ場合についても、信頼度データpcntから判定することが可能である。さらに、画像処理部4は、類似度データDistの変動で最小値となる位置が変動する可能性がある場合についても、信頼度データpcntから判定することが可能である。   The reliability setting unit 445 outputs reliability data pcnt indicating the reliability of the positional deviation amount set based on the extreme value determination result LMd and the extreme position similarity data Dsl indicated by the extreme value determination result LMd. To do. For this reason, the image processing unit 4 determines from the reliability data pcnt a case where there is an influence of jitter at the time of reading or dust attached to the optical system, and the similarity data Dist changes from the original value. It is possible. Further, the image processing unit 4 can also determine from the reliability data pcnt even when the extreme value determination result LMd has a plurality of extreme values as in the case of a repetitive pattern. Furthermore, the image processing unit 4 can determine from the reliability data pcnt also when there is a possibility that the position where the minimum value is changed due to the change in the similarity data Dist.

《1−6》横相関位置補正部45
横相関位置補正部45は、信頼度判定部44から出力された信頼度データpcntと、位置ずれ推定部43から出力された位置ずれ量データdybとを受け取る。横相関位置補正部45は、信頼度判定部44から出力された信頼度データpcntに基づいて、オーバーラップ領域である第1の領域における位置ずれ量データを、第1の領域での信頼度よりも高い信頼度を持ち、第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する。例えば、横相関位置補正部45は、信頼度データpcntにより信頼度が低いと判定されたオーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の信頼度の高いオーバーラップ領域の位置ずれ量に基づいて補正し、補正後の位置ずれ量Dtを結合処理部46へと出力する。
<1-6> Lateral Correlation Position Correction Unit 45
The lateral correlation position correction unit 45 receives the reliability data pcnt output from the reliability determination unit 44 and the positional deviation amount data dyb output from the positional deviation estimation unit 43. Based on the reliability data pcnt output from the reliability determination unit 44, the lateral correlation position correction unit 45 obtains the positional deviation amount data in the first area, which is the overlap area, from the reliability in the first area. Also, the correction is performed based on the positional deviation amount data in the second area, which is another overlap area different from the first area. For example, the lateral correlation position correction unit 45 uses the overlap area with high reliability in the adjacent overlap areas as the positional shift amount in the overlap area determined to be low with reliability data pcnt. Is corrected based on the amount of misregistration, and the corrected misregistration amount Dt is output to the combination processing unit 46.

図13は、横相関位置補正部45の一構成例を概略的に示すブロック図である。図13の横相関位置補正部45は、位置ずれ推定部43から出力された各ラインセンサのオーバーラップ領域についての位置ずれ量データdybに対し、当該オーバーラップ領域(第1の領域)の周辺にある他のオーバーラップ領域(第2の領域)(他方の端の左右に位置する領域)で求められた副走査方向の位置ずれ(dY)を示す位置ずれ量データdybと、他のオーバーラップ領域(第2の領域)での信頼度データpcntとにより、オーバーラップ領域(第1の領域)における位置ずれ量の補正位置を生成し、オーバーラップ領域(第1の領域)についての補正後の位置ずれ量Dtを求める。例えば、当該オーバーラップ領域(第1の領域)が、図4(b)及び図5(b)におけるオーバーラップ領域Ak,k+1である場合には、補正後の位置ずれ量Dtを生成するために用いられる他のオーバーラップ領域(第2の領域)は、図4(b)及び図5(b)における他のオーバーラップ領域Ak,kとAk+1,k+1である。 FIG. 13 is a block diagram schematically showing a configuration example of the lateral correlation position correction unit 45. The lateral correlation position correction unit 45 in FIG. 13 is arranged around the overlap area (first area) with respect to the position shift amount data dyb for the overlap area of each line sensor output from the position shift estimation unit 43. Position shift amount data dyb indicating the position shift (dY) in the sub-scanning direction obtained in a certain other overlap area (second area) (area located on the left and right of the other end), and another overlap area Based on the reliability data pcnt in the (second area), a correction position of the amount of displacement in the overlap area (first area) is generated, and the corrected position in the overlap area (first area) A deviation amount Dt is obtained. For example, when the overlap region (first region) is the overlap region Ak, k + 1 in FIGS. 4B and 5B, the corrected positional deviation amount Dt is generated. The other overlap regions (second regions) used in the above are the other overlap regions A k, k and A k + 1, k + 1 in FIGS. 4B and 5B.

このように、第2の領域は、第1の領域の直ぐ隣のオーバーラップ領域の少なくとも一方を含むことができる。2つの第2の領域を参照する場合には、補正後の位置ずれ量Dtとして、第2の領域で得られた位置ずれ量のいずれか、又は、第2の領域で得られた位置ずれ量の平均値などを用いることができる。   In this way, the second region can include at least one of the overlap regions immediately adjacent to the first region. When referring to the two second areas, either the positional deviation amount obtained in the second area or the positional deviation amount obtained in the second area as the corrected positional deviation amount Dt. The average value of can be used.

なお、「他方の端の左右に位置する領域」とは、例えば、当該オーバーラップ領域(第1の領域)が、図4(b)及び図5(b)におけるオーバーラップ領域Ak,k+1である場合には、補正後の位置ずれ量Dtを生成するために用いられる他のオーバーラップ領域(第2の領域)に対応する領域(すなわち、図4(c)及び図5(c)におけるオーバーラップ領域Ak,kに対応する領域DI(E)のdlと領域DI(O)のdrと、オーバーラップ領域Ak+1,k+1に対応する領域DI(Ek+1)のdlと領域DI(Ok+1)のdr)である。 Note that the “region located on the left and right of the other end” means, for example, that the overlap region (first region) is the overlap region Ak, k + 1 in FIGS. 4B and 5B. In some cases, an area corresponding to another overlap area (second area) used for generating the corrected positional deviation amount Dt (that is, the overshoot in FIGS. 4C and 5C). The dl of the region DI (E k ) corresponding to the overlap region A k, k and the dr of the region DI (O k ), and the dl and region DI (E k + 1 ) of the region DI (E k + 1 ) corresponding to the overlap region A k + 1, k + 1 Dr) of O k + 1 ).

このように、第2の領域は、第1の領域の直ぐ隣のオーバーラップ領域の少なくとも一方と、第1の領域から2番目に隣のオーバーラップ領域の少なくとも一方とを含むこともできる。4つの第2の領域を参照する場合には、補正後の位置ずれ量Dtとして、第2の領域で得られた位置ずれ量のいずれか、又は、第2の領域で得られた位置ずれ量の平均値などを用いることができる。なお、補正後の位置ずれ量を算出するために参照されるオーバーラップ領域の個数は、さらに多い個数(5以上)であってもよい。   As described above, the second region can include at least one of the overlap regions immediately adjacent to the first region and at least one of the overlap regions adjacent to the second region from the first region. When referring to the four second areas, the positional deviation amount Dt after correction is either the positional deviation amount obtained in the second area or the positional deviation amount obtained in the second area. The average value of can be used. It should be noted that the number of overlap regions referred to for calculating the corrected positional deviation amount may be a larger number (5 or more).

また、「他方の端の左右に位置する領域」とは、当該オーバーラップ領域(第1の領域)が、図4(b)及び図5(b)におけるオーバーラップ領域Ak,k+1である場合に、補正後の位置ずれ量Dtを生成するために用いられる他のオーバーラップ領域(第2の領域)に対応する領域(すなわち、2つのオーバーラップ領域Ak−1,k及びAk,kと、2つのオーバーラップ領域Ak+1,k+1及びAk+1,k+2とに対応する領域のDI(Ek−1)、DI(O)、DI(E)、DI(Ok+1)、DI(Ek+1)のように4個のオーバーラップ領域、又は、それ以上の個数の領域)としてもよい。 In addition, the “region located on the left and right of the other end” means that the overlap region (first region) is the overlap region Ak, k + 1 in FIGS. 4B and 5B. In addition, a region (that is, two overlap regions A k−1, k and A k, k ) corresponding to another overlap region (second region) used for generating the corrected positional deviation amount Dt. And DI (E k−1 ), DI (O k ), DI (E k ), DI (O k + 1 ), DI (in the areas corresponding to the two overlapping areas A k + 1, k + 1 and A k + 1, k + 2 E k + 1 ), four overlapping regions, or more regions).

図13に示されるように、横相関位置補正部45は、補正位置生成部451と、結合位置決定部452と、1ライン位置保持部453と、比較部454とを備えている。   As illustrated in FIG. 13, the lateral correlation position correction unit 45 includes a correction position generation unit 451, a combined position determination unit 452, a one-line position holding unit 453, and a comparison unit 454.

補正位置生成部451は、信頼度判定部44から出力された信頼度データpcntと、位置ずれ推定部43から出力された位置ずれ量データdybとを受け取る。補正位置生成部451は、信頼度データpcntにより信頼度が高く、最小値が1つになるようなオーバーラップ領域では、位置ずれ推定部43から出力された位置ずれ量データdybをそのままとする。また、補正位置生成部451は、信頼度データpcntにより信頼度が低いオーバーラップ領域となる場合(最小値の検出がなしであり、信頼度データpcnt=0、又は、複数の極値となる位置を持つ信頼度データpcnt2以上の値)、当該オーバーラップ領域の周辺にある(他方の端の左右に位置する)オーバーラップ領域で求められた位置ずれ量データdybの内の、信頼度データpcntにより信頼度が高いとされるオーバーラップ領域の位置ずれ量へ補正する。補正位置生成部451は、信頼度が高いオーバーラップ領域が片側に隣接するオーバーラップ領域のみであれば、その値へ置き換え、両方に信頼度が高いオーバーラップ領域がある場合はその平均値へ置き換えるなどする。補正位置生成部451は、生成された補正位置ずれ量データTNCを、結合位置決定部452及び比較部454へ出力する。   The corrected position generation unit 451 receives the reliability data pcnt output from the reliability determination unit 44 and the positional deviation amount data dyb output from the positional deviation estimation unit 43. The correction position generation unit 451 leaves the positional deviation amount data dyb output from the positional deviation estimation unit 43 as it is in the overlap region where the reliability is high and the minimum value is one by the reliability data pcnt. Further, the correction position generation unit 451 determines that the reliability data pcnt results in an overlap region with low reliability (the minimum value is not detected and the reliability data pcnt = 0 or a position where a plurality of extreme values are obtained. Reliability data pcnt2), and the reliability data pcnt of the positional deviation amount data dyb obtained in the overlap area around the overlap area (located on the left and right of the other end). It corrects to the amount of position shift of the overlap area considered to have high reliability. The correction position generation unit 451 replaces the overlap region with high reliability only with the overlap region adjacent to one side, and replaces it with the average value when both have overlap regions with high reliability. Etc. The correction position generation unit 451 outputs the generated correction position deviation amount data TNC to the combined position determination unit 452 and the comparison unit 454.

1ライン位置保持部453は、結合位置決定部452により補正された位置ずれ量を1ライン分保持(記憶)する。比較部454は、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtと補正位置生成部451から出力された補正位置ずれ量データTNCの値を比較し、比較結果DifCを出力する。つまり、比較部454は、1ライン前の位置ずれ量から出力された位置ずれ量の変化を検出する。   The one line position holding unit 453 holds (stores) the amount of positional deviation corrected by the combined position determination unit 452 for one line. The comparison unit 454 compares the post-correction positional deviation amount preDt output from the one-line position holding unit 453 with the value of the corrected positional deviation amount data TNC output from the correction position generation unit 451, and compares the result. DifC is output. In other words, the comparison unit 454 detects a change in the positional deviation amount output from the positional deviation amount one line before.

結合位置決定部452は、位置ずれ推定部43から出力された位置ずれ量データdybと、補正位置生成部451から出力された補正位置ずれ量データTNCとのいずれかを、比較部454から出力された比較結果DifCに応じて選択し、選択されたデータを補正後の位置ずれ量Dtとして出力する。比較結果DifCが1ライン前の位置ずれ量との変化が小さいことを示す場合には、結合位置決定部452は、補正位置ずれ量データTNCを選択して、補正後の位置ずれ量Dtとして出力する。これにより、補正後の位置ずれ量Dtは、より信頼度が反映された値へ補正される。   The combined position determination unit 452 outputs either the positional deviation amount data dyb output from the positional deviation estimation unit 43 or the corrected positional deviation amount data TNC output from the correction position generation unit 451 from the comparison unit 454. The selected data is selected according to the comparison result DifC, and the selected data is output as the corrected positional deviation amount Dt. When the comparison result DifC indicates that the change from the positional deviation amount one line before is small, the combined position determination unit 452 selects the corrected positional deviation amount data TNC and outputs it as the corrected positional deviation amount Dt. To do. Thereby, the corrected positional deviation amount Dt is corrected to a value more reflecting the reliability.

通常の読取では、主走査方向に配列されたラインセンサ間の位置ずれ量は、ほぼ同じ程度の値となるので、横方向(主走査方向)に相関があると言える。したがって、横相関位置補正部45における補正位置生成部451は、信頼度データpcntにより信頼度が高いとされる位置ずれ量データdybにより、隣接するオーバーラップ領域の位置ずれ量を補正すれば、読取り時のジッター又は光学系付着ゴミの影響を低減することが可能になる。また、前ラインで検出された位置ずれ量(1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDt)との変動についても、読取り時のジッター又は光学系付着ゴミの影響がなければ、小さいものであり、比較部454の結果も用いることで、横相関位置補正部45は、より信頼度の高い位置ずれ量を生成することができる。   In normal reading, the amount of positional deviation between the line sensors arranged in the main scanning direction has substantially the same value, so it can be said that there is a correlation in the horizontal direction (main scanning direction). Therefore, the correction position generation unit 451 in the horizontal correlation position correction unit 45 reads if the positional deviation amount of the adjacent overlap region is corrected based on the positional deviation amount data dyb whose reliability is high by the reliability data pcnt. It becomes possible to reduce the influence of time jitter or dust attached to the optical system. In addition, fluctuations in the amount of positional deviation detected on the previous line (positional deviation amount preDt after one line output outputted from the one-line position holding unit 453) are also affected by jitter at the time of reading or dust attached to the optical system. If there is no influence, it is small, and by using the result of the comparison unit 454, the lateral correlation position correction unit 45 can generate a positional deviation amount with higher reliability.

横相関位置補正部45から出力された補正後の位置ずれ量Dtは、信頼度データpcntにより信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量で補正しているので、誤検出がなく、良好な精度で補正された位置ずれ量Dtを得ることができ、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量を求められる。   The corrected misregistration amount Dt output from the lateral correlation position correction unit 45 corrects the misregistration amount of the overlap region having low reliability by the reliability data pcnt with the misregistration amount of the overlap region having high reliability. Therefore, there is no false detection, and the misalignment amount Dt corrected with good accuracy can be obtained, and the influence of jitter at the time of reading or dust adhering to the optical system is reduced, and misdetection of misalignment amount can be performed. Therefore, it is possible to obtain the amount of image misregistration with good accuracy.

なお、結合位置決定部452は、位置ずれ推定部43から出力された位置ずれ量データdybと、補正位置生成部451から出力された補正位置ずれ量データTNCとのいずれかを、比較結果DifCに応じて、選択する場合を説明したが、結合位置決定部452による選択はこのような方式に限定されない。例えば、比較結果DifCを、0から差分に応じて変化する値として、結合位置決定部452は、比較結果DifCの値に応じた割合で、位置ずれ量データdybと補正位置ずれ量データTNCを適応的に混合(加算)して、補正された位置ずれ量として出力するよう構成することも可能である。   The combined position determination unit 452 uses either the positional deviation amount data dyb output from the positional deviation estimation unit 43 or the corrected positional deviation amount data TNC output from the correction position generation unit 451 as the comparison result DifC. Accordingly, the case of selection has been described, but the selection by the coupling position determination unit 452 is not limited to such a method. For example, assuming that the comparison result DifC is a value that changes from 0 according to the difference, the coupling position determination unit 452 adapts the positional deviation amount data dyb and the corrected positional deviation amount data TNC at a ratio according to the value of the comparison result DifC. It is also possible to mix (add) and output the corrected positional deviation amount.

また、補正位置生成部451は、信頼度が低いオーバーラップ領域となる場合(最小値検出なしで信頼度データpcnt=0、又は、複数の極値となる位置を持つ信頼度データpcnt2以上の値)に補正するとしたが、信頼度データpcntが複数の極値となる位置を持つ場合は、周辺の位置ずれ量と混合するような補正をしてもよい。   In addition, the correction position generation unit 451 has an overlap region with low reliability (reliability data pcnt = 0 without detecting the minimum value, or a value equal to or higher than reliability data pcnt2 having a plurality of extreme positions. However, when the reliability data pcnt has a plurality of extreme positions, correction may be made so as to mix with the amount of misalignment in the vicinity.

《1−7》結合処理部46
結合処理部46は、横相関位置補正部45から出力された補正後の位置ずれ量Dtを受け取る。結合処理部46は、補正後の位置ずれ量Dtに基づいて画像データの読み出し位置RPを算出し、その読み出し位置に対応する画像データM46を画像メモリ41から読み出し、補正後の位置ずれ量Dtに基づいて画像データをずらす処理を行い、画像データのオーバーラップ領域でのデータを結合する。
<< 1-7 >> Coupling Processing Unit 46
The combination processing unit 46 receives the corrected positional deviation amount Dt output from the lateral correlation position correcting unit 45. The combination processing unit 46 calculates the read position RP of the image data based on the corrected misregistration amount Dt, reads the image data M46 corresponding to the read position from the image memory 41, and uses the corrected misregistration amount Dt. Based on this, processing for shifting the image data is performed, and the data in the overlap region of the image data is combined.

図14は、実施の形態1の結合処理部46での結合動作の一例を示す説明図である。また、図15(a)及び(b)は、実施の形態1の結合処理部46での結合動作の他の例を示す説明図である。図14に示されるように、偶数番目に位置するラインセンサ21E,…,21E,…,21Eに対応するデータを、補正後の位置ずれ量Dt分だけ位置をずらしてもよいし、図15(a)及び(b)のように、奇数番目に位置するラインセンサ21O,…,21O,…,21Oに対応するデータと、偶数番目に位置するラインセンサ21E,…,21E,…,21Eに対応するデータの両方の位置ずれ量との合計が補正後の位置ずれ量Dtと同等となるように、位置をずらしてもよい。図15(a)では、類似度算出部42で基準ラインとして読み出された副走査方向(Y方向)の位置Yでの画像データを、隣り合うラインセンサで補正後の位置ずれ量Dt分を配分してずらしており、図15(b)では、隣り合うラインセンサで補正後の位置ずれ量Dt分を配分した値分離れた位置のデータを、ラインYの位置にずらしている。 FIG. 14 is an explanatory diagram illustrating an example of a combining operation in the combining processing unit 46 according to the first embodiment. FIGS. 15A and 15B are explanatory diagrams illustrating another example of the coupling operation in the coupling processing unit 46 according to the first embodiment. As shown in FIG. 14, the line sensor 21E 1 located even-numbered, ..., 21E k, ..., data corresponding to 21E n, may be shifted position by position shift amount Dt content after correction, as shown in FIG. 15 (a) and (b), the line sensor 21O 1 located odd, ..., 21O k, ..., and data corresponding to 21O n, a line sensor 21E 1 located even-numbered, ..., 21E k ,..., 21E n may be shifted so that the sum of both the positional shift amounts of the data corresponding to 21E n is equal to the corrected positional shift amount Dt. Figure 15 (a) in, the similarity calculating unit image data at the position Y m of 42 read the sub-scanning direction as a reference line (Y direction), the amount positional deviation after the correction by the line sensor adjacent Dt min and shifting to allocate, in FIG. 15 (b), the data value min apart position allocating positional deviation amount Dt content after correction in the adjacent line sensors, are shifted to the position of the line Y m.

このように、結合処理部46は、補正後の位置ずれ量Dtに基づいて、画像データの読み出し位置RPを算出し、その読み出し位置に対応する画像データM46を画像メモリ41から読み出し、奇数番目に位置するラインセンサ21O,…,21O,…,21Oのデータと偶数番目に位置するラインセンサ21E,…,21E,…,21Eのデータが重複するオーバーラップ領域を結合して画像データD46を生成する。補正後の位置ずれ量Dtは、横相関位置補正部45において、信頼度判定部44から出力された信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtを求められているので、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の副走査方向の位置ずれ量を示すデータとして得ている。よって、この補正後の位置ずれ量Dtに基づいて画像データの読み出し位置RPを算出すれば、良好な精度で、正確に各ラインに対応した読出し位置を求められる。 As described above, the combination processing unit 46 calculates the read position RP of the image data based on the corrected positional deviation amount Dt, reads the image data M46 corresponding to the read position from the image memory 41, and sets the odd number. line sensor 21O 1 located, ..., 21O k, ..., 21O n data and the line sensor 21E 1 located even-numbered, ..., 21E k, ..., by combining the overlapping region data 21E n overlap Image data D46 is generated. In the lateral correlation position correction unit 45, the corrected positional deviation amount Dt is calculated by using the reliability data pcnt output from the reliability determination unit 44 to determine the positional deviation amount in the overlap region with low reliability as another adjacent value. Since correction is performed based on the positional deviation amount of the highly reliable area in the overlap area and the positional deviation amount Dt after correction is obtained, the influence of jitter at the time of reading or dust attached to the optical system is reduced, It is obtained as data indicating the amount of positional deviation in the sub-scanning direction with good accuracy without erroneous detection. Therefore, if the readout position RP of the image data is calculated based on the corrected positional deviation amount Dt, the readout position corresponding to each line can be obtained accurately with good accuracy.

画像処理部4において、類似度算出部42で類似度を算出し、信頼度判定部44は、類似度データDistから信頼度データpcntを判定し、横相関位置補正部45において、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとして、結合処理部46において、補正後の位置ずれ量Dtに基づいて画像データを読み出し、結合した画像データD46を出力する。画像処理部4は、このような処理を、副走査方向(Y方向)に順次行う。   In the image processing unit 4, the similarity calculation unit 42 calculates the similarity, the reliability determination unit 44 determines the reliability data pcnt from the similarity data Dist, and the lateral correlation position correction unit 45 determines the reliability data pcnt. Thus, the misalignment amount in the overlap region with low reliability is corrected based on the misalignment amount of the region with high reliability in the other adjacent overlap regions, and the corrected misalignment amount Dt is combined. The processing unit 46 reads the image data based on the corrected positional deviation amount Dt, and outputs the combined image data D46. The image processing unit 4 sequentially performs such processing in the sub-scanning direction (Y direction).

図16は、実施の形態1の結合処理部46から出力される画像データD46を概念的に示す図である。図16には、図4(c)又は図5(c)、図6、図7での画像を結合した画像が示される。結合処理部46は、副走査方向(Y方向)の位置ずれ量を補正し、図4(b)及び図5(b)に示される原稿60と同じ画像を出力することができる。特に、図5(c)又は図7の場合には、奇数番目に位置するラインセンサ21O,…,21O,…,21Oの画像データと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの画像データが副走査方向(Y方向)にずれていたが、図5(b)に示される原稿60と同じ画像を出力することができる。 FIG. 16 is a diagram conceptually showing the image data D46 output from the combination processing unit 46 of the first embodiment. FIG. 16 shows an image obtained by combining the images in FIG. 4C, FIG. 5C, FIG. 6, and FIG. The combination processing unit 46 can correct the positional deviation amount in the sub-scanning direction (Y direction) and output the same image as the original 60 shown in FIGS. 4B and 5B. Particularly, in the case shown in FIG. 5 (c) or FIG. 7, the line sensor 21O 1 located odd, ..., 21O k, ..., the image data and the line sensor 21E 1 located to the even-numbered 21O n, ..., Although the image data of 21E k ,..., 21E n are shifted in the sub-scanning direction (Y direction), the same image as that of the original 60 shown in FIG.

誤検出がなく、良好な精度の補正後の位置ずれ量Dtから読出し位置を求め、補正後の位置ずれ量Dtによる値分ずらした位置とその位置の周辺のラインの画像データを用いて画像データD46を生成するので、奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの副走査方向のずれが修正され、重複して読み取っていたオーバーラップ領域の画像が結合される。 There is no false detection, and a read position is obtained from the corrected positional deviation amount Dt with good accuracy, and image data is obtained by using the image data of the position shifted by the value by the corrected positional deviation amount Dt and the surrounding lines of the position. because it produces a D46, the line sensor 21O 1 located odd, ..., 21O k, ..., the line sensor 21E 1 located to the even-numbered and 21O n, ..., 21E k, ..., the sub-scanning direction 21E n The misalignment is corrected, and the overlapping area images that have been read in duplicate are combined.

図17(a)及び(b)は、撮像部2を搬送中に、ガラス面26に対する原稿60の位置が変わる例を示す図である。副走査方向(Y方向)の位置Yでは、原稿60は、ガラス面26から浮いており、位置Yuでは、原稿60は、ガラス面26に密着している。この時、ラインセンサ毎の性能ばらつき又は読取り条件の違いにより生じるレベル差は、同じラインセンサによる画像データ内であっても副走査方向の位置により微小ではあるがレベルの変動は生じる。撮像部2は、副走査方向(Y方向)の各位置において順次画像データを処理しているため、搬送中に原稿60の位置が変わったり、レベル値の変動があったりしたとしても、画像処理部4は、各位置において、オーバーラップ領域の画像データから信頼度を判定し、主走査方向の横方向に隣接するオーバーラップ領域の位置ずれ量、及び、前ラインの検出された位置ずれ量で各位置での位置ずれ量を算出しているため、良好な精度で位置ずれ量を求めて正しく画像を結合することができる。また、奇数番目に位置するラインセンサ21O,…,21O,…,21Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの全ての間で個別にずれ量を算出しているので、主走査方向(X方向)に原稿60のガラス面26に対する位置が変わったとしても正しく画像を結合することができる。 FIGS. 17A and 17B are diagrams illustrating an example in which the position of the document 60 with respect to the glass surface 26 changes during conveyance of the imaging unit 2. In the position Y m in the sub-scanning direction (Y-direction), the document 60 is floated from the glass surface 26, in the position Yu, document 60 is adhered to the glass surface 26. At this time, the level difference caused by the performance variation for each line sensor or the difference of the reading condition is slightly changed depending on the position in the sub-scanning direction even in the image data by the same line sensor. Since the imaging unit 2 sequentially processes image data at each position in the sub-scanning direction (Y direction), even if the position of the document 60 changes during conveyance or the level value fluctuates, image processing is performed. The unit 4 determines the reliability from the image data of the overlap area at each position, and uses the position shift amount of the overlap area adjacent in the horizontal direction in the main scanning direction and the detected position shift amount of the previous line. Since the amount of misregistration at each position is calculated, the amount of misregistration can be obtained with good accuracy and images can be combined correctly. The line sensor 21O 1 located odd, ..., 21O k, ..., the line sensor 21E 1 located to the even-numbered and 21O n, ..., 21E k, ..., weight shift individually among all the 21E n Therefore, even if the position of the document 60 with respect to the glass surface 26 is changed in the main scanning direction (X direction), the images can be combined correctly.

《1−8》効果
以上に説明したように、実施の形態1に係る画像読取装置1、画像処理装置4、及び画像処理方法によれば、類似度算出部42において、基準データMOと比較データMEとを比較して類似度データ(相関データ)Distを算出し、位置ずれ推定部43で類似度の最も高い比較データの位置に対応する位置ずれ量を位置ずれ量データdybとして算出するとともに、信頼度判定部44において、類似度データDistから、位置ずれ量の信頼度を判定し、信頼度データpcntを求め、横相関位置補正部45は、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいてラインセンサに対応する読取画像(分割画像)の位置をシフトさせて、複数の分割画像を結合した合成画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度で位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。
<< 1-8 >> Effect As described above, according to the image reading apparatus 1, the image processing apparatus 4, and the image processing method according to the first embodiment, the similarity calculation unit 42 uses the reference data MO and the comparison data. Similarity data (correlation data) Dist is calculated by comparing with ME, and the positional deviation estimation unit 43 calculates the positional deviation amount corresponding to the position of the comparison data with the highest similarity as the positional deviation amount data dyb. The reliability determination unit 44 determines the reliability of the positional deviation amount from the similarity data Dist to obtain the reliability data pcnt. The lateral correlation position correction unit 45 uses the reliability data pcnt to reduce the overlap with low reliability. The misregistration amount dyb in the region is corrected based on the misregistration amount of the region with high reliability among the other adjacent overlap regions, and the corrected misregistration amount Dt is obtained. The position of the read image (divided image) corresponding to the line sensor is shifted based on the corrected positional deviation amount Dt to generate composite image data obtained by combining a plurality of divided images. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt that indicates the positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

なお、上記説明においては、画像処理部4では、類似度算出部42において図6及び図7で説明したように、基準データMOは、ラインセンサ21Oに対応するデジタルデータDI(O)のオーバーラップ領域の画像データに対応し、比較データMEは、ラインセンサ21Eに対応するデジタルデータDI(E)のオーバーラップ領域の画像データであるとしたが、この限りではない。例えば、基準データMOをラインセンサ21Eに対応するデジタルデータDI(E)のオーバーラップ領域の画像データに対応させ、比較データMEをラインセンサ21Oに対応するデジタルデータDI(O)のオーバーラップ領域の画像データに対応させ、基準データMOと比較データMEとを比較して類似度データDistを算出するよう構成してもよい。また、ラインセンサ21O又は21Eによる画像データDI(O又はE)のオーバーラップ領域drを基準データとして用い、隣り合うラインセンサのオーバーラップ領域dlを比較データとする場合でもよい。オーバーラップ領域における画像データに対し、隣り合うラインセンサが重複して読み取られるオーバーラップ領域の画像データから予め決められたライン数の基準データMOと比較データMEとを得ることができれば、上記実施の形態1と同様の効果を奏する。 In the above description, the image processing unit 4, as described in FIG. 6 and FIG. 7 in the similarity calculation unit 42, the reference data MO is the digital data DI corresponding to the line sensors 21O k of (O k) The comparison data ME corresponds to the image data in the overlap region, and the comparison data ME is the image data in the overlap region of the digital data DI (E k ) corresponding to the line sensor 21E k . For example, the reference data MO is made to correspond to the image data in the overlap region of the digital data DI (E k ) corresponding to the line sensor 21E k , and the comparison data ME is made to the digital data DI (O k ) corresponding to the line sensor 21O k . The similarity data Dist may be calculated by comparing the reference data MO and the comparison data ME in correspondence with the image data in the overlap region. Further, the overlap region dr of the image data DI (O k or E k ) by the line sensor 21O or 21E may be used as reference data, and the overlap region dl of the adjacent line sensors may be used as comparison data. If the reference data MO and the comparison data ME having a predetermined number of lines can be obtained from the image data in the overlap area in which adjacent line sensors are read in duplicate with respect to the image data in the overlap area, The same effect as in the first mode is obtained.

《2》実施の形態2.
上記実施の形態1に係る画像読取装置1、画像処理装置4、及び画像処理方法では、信頼度判定部44(図1、図12)は、類似度データDistの値を閾値Ndyと比較し、類似度データDistの値が閾値Ndyより小さく、最小となる位置の候補(その位置データMpo)を求め、その内の極値を持つ位置(極値判定結果LMdとその位置の類似度データDsl)を検出し、位置ずれ量の信頼度pcntを設定するよう構成されている。これに対し、本発明の実施の形態2に係る画像読取装置1、画像処理装置4、及び画像処理方法では、信頼度判定部44(図12)の代わりに、図18に示される信頼度判定部44bを用いている。信頼度判定部44(図12)を図18の信頼度判定部44bに置き換えた点以外について、実施の形態2は実施の形態1と同じである。したがって、実施の形態2の説明に際しては、図1をも参照する。
<< 2 >> Embodiment 2
In the image reading device 1, the image processing device 4, and the image processing method according to the first embodiment, the reliability determination unit 44 (FIGS. 1 and 12) compares the value of the similarity data Dist with the threshold value Ndy, A candidate for the position where the value of the similarity data Dist is smaller than the threshold value Ndy (the position data Mpo) is obtained, and the position having the extreme value (extreme value determination result LMd and the similarity data Dsl at that position) And the reliability pcnt of the positional deviation amount is set. On the other hand, in the image reading device 1, the image processing device 4, and the image processing method according to the second embodiment of the present invention, the reliability determination shown in FIG. 18 is used instead of the reliability determination unit 44 (FIG. 12). Part 44b is used. The second embodiment is the same as the first embodiment except that the reliability determination unit 44 (FIG. 12) is replaced with the reliability determination unit 44b of FIG. Therefore, FIG. 1 is also referred to when describing the second embodiment.

図18は、実施の形態2に係る画像読取装置1及び画像処理装置(画像処理部)4の信頼度判定部44bの構成を概略的に示すブロック図である。図18において、図12に示される構成要素と同一又は対応する構成要素には、図12における符号と同じ符号が付される。図18に示されるように、実施の形態2に係る画像読取装置1の画像処理部4における信頼度判定部44bは、検出範囲分割部446と、最小類似度検出部447と、極値検出部443bと、信頼度設定部445とを備えている。信頼度設定部445の構成及び動作は、実施の形態1で示されるものと同じである。   FIG. 18 is a block diagram schematically illustrating the configuration of the reliability determination unit 44b of the image reading apparatus 1 and the image processing apparatus (image processing unit) 4 according to the second embodiment. 18, components that are the same as or correspond to the components shown in FIG. 12 are assigned the same reference numerals as those in FIG. As shown in FIG. 18, the reliability determination unit 44b in the image processing unit 4 of the image reading apparatus 1 according to the second embodiment includes a detection range dividing unit 446, a minimum similarity detection unit 447, and an extreme value detection unit. 443b and a reliability setting unit 445. The configuration and operation of the reliability setting unit 445 are the same as those shown in the first embodiment.

信頼度判定部44bは、類似度算出部42から出力された検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDistを複数の小範囲に分割し、複数の小範囲の各々で類似度データDistの値が最小値となる位置を検出する。そして、信頼度判定部44bは、複数の小範囲の内の隣り合う小範囲における最小値の変化から、小範囲の最小値の位置が類似度データDistの値の極値であるか否かを検出し、類似度データDistの値が小さく、最小となる位置の候補を求める。   The reliability determination unit 44b divides the similarity data Dist in the positional deviation amounts dY of the plurality of lines in the search range (dY = −y to + y) output from the similarity calculation unit 42 into a plurality of small ranges, A position where the value of the similarity data Dist becomes the minimum value in each of the plurality of small ranges is detected. Then, the reliability determination unit 44b determines whether or not the position of the minimum value in the small range is an extreme value of the value of the similarity data Dist from the change in the minimum value in the adjacent small ranges among the plurality of small ranges. The candidate of the position where the value of the similarity data Dist is small and becomes the minimum is obtained.

図18において、信頼度判定部44bに入力された類似度算出部42から出力された検索範囲(dY=−y〜+y)内の複数のラインの位置ずれ量dYにおける類似度データDistは、検出範囲分割部446へと入力される。   In FIG. 18, the similarity data Dist in the positional deviation amounts dY of a plurality of lines within the search range (dY = −y to + y) output from the similarity calculation unit 42 input to the reliability determination unit 44b is detected. The data is input to the range dividing unit 446.

図19は、信頼度判定部44bにおける信頼度判定の動作を説明するための類似度データと副走査方向の位置ずれ量の関係を示す図である。検出範囲分割部446は、位置ずれ量dYの検索範囲(dY=−y〜+y)を複数の小範囲(分割検出範囲)に分割し、複数の小範囲の各々で類似度データDistを得て、最小類似度検出部447へと出力する。例えば、図19に示されるように、位置ずれ量dYの検索範囲(dY=−y〜+y)を、8つの小範囲bn(n=1,2,…,8)、すなわち、小範囲b1〜b8に分割する。   FIG. 19 is a diagram illustrating the relationship between the similarity data and the positional deviation amount in the sub-scanning direction for explaining the reliability determination operation in the reliability determination unit 44b. The detection range dividing unit 446 divides the search range (dY = −y to + y) for the positional deviation amount dY into a plurality of small ranges (divided detection ranges), and obtains similarity data Dist in each of the plurality of small ranges. And output to the minimum similarity detection unit 447. For example, as shown in FIG. 19, the search range (dY = −y to + y) of the positional deviation amount dY is divided into eight small ranges bn (n = 1, 2,..., 8), that is, the small ranges b1 to b1. Divide into b8.

最小類似度検出部447は、検出範囲分割部446で分割された複数の小範囲b1〜b8の範囲内の類似度データDistにおいて、類似度データDistの値が最も小さく、最小となる位置を求め、その位置データb_Mpoと、その最小の類似度データDistの値Mcorとを出力する。   The minimum similarity detection unit 447 obtains the position where the value of the similarity data Dist is the smallest and the minimum in the similarity data Dist within the plurality of small ranges b1 to b8 divided by the detection range dividing unit 446. The position data b_Mpo and the minimum similarity data Dist value Mcor are output.

極値検出部443bは、複数の小範囲b1〜b8の内の、類似度データDistの値が最も小さい位置をデータb_Mpoとその最小の類似度データDistの値Mcorとを受け取る。極値検出部443bは、ある小範囲bnに対し、その隣の小範囲bn−1及びbn+1で最小の類似度データ値Mcorの変化を検出し、類似度データが減少から増加に変化する極値となっているか(最小値であるか)を検出する。極値検出部443bは、極値となる場合は、極値となる位置を示す極値判定結果bLMdとその位置の類似度データbDslを出力する。なお、極値検出部443bは、極値がない場合は、極値なしを示す情報を極値判定結果bLMdとして出力する。   The extreme value detection unit 443b receives the data b_Mpo and the value Mcor of the minimum similarity data Dist at the position where the value of the similarity data Dist is the smallest in the plurality of small ranges b1 to b8. The extreme value detection unit 443b detects a change in the minimum similarity data value Mcor in the adjacent small ranges bn−1 and bn + 1 for a certain small range bn, and the extreme value at which the similarity data changes from decreasing to increasing. It is detected (whether it is the minimum value). When the extreme value is detected, the extreme value detection unit 443b outputs the extreme value determination result bLMd indicating the position where the extreme value is obtained and the similarity data bDsl of the position. In addition, when there is no extreme value, the extreme value detection unit 443b outputs information indicating no extreme value as the extreme value determination result bLMd.

このように、位置ずれ量dYの検索範囲(dY=−y〜+y)を複数の小範囲に分割し、類似度データDistの値の変化(極値)を判定することで、細かな画像データに混入したノイズによる影響を低減して、信頼度の判定を行うための極値の判定が可能になる。   As described above, by dividing the search range (dY = −y to + y) of the positional deviation amount dY into a plurality of small ranges and determining the change (extreme value) of the value of the similarity data Dist, fine image data is obtained. It is possible to determine the extreme value for determining the reliability by reducing the influence of noise mixed in the.

信頼度設定部445は、極値検出部443bから出力された極値判定結果bLMdとその位置の類似度データbDslを受け取り、位置ずれ量の信頼度を設定し、この信頼度を示す信頼度データpcntを出力する。図18における信頼度設定部445の動作は、上記図12における信頼度設定部445の動作と同様である。   The reliability setting unit 445 receives the extreme value determination result bLMd output from the extreme value detection unit 443b and the similarity data bDsl of the position, sets the reliability of the positional deviation amount, and the reliability data indicating the reliability Output pcnt. The operation of the reliability setting unit 445 in FIG. 18 is the same as the operation of the reliability setting unit 445 in FIG.

信頼度設定部445は、極値判定結果bLMdとその位置の類似度データbDslに基づく位置ずれ量の信頼度を示す信頼度データpcntを出力する。このため、読取り時のジッター又は光学系付着ゴミの影響によって、類似度データDistが本来の値から変動した値となるような場合であっても、この信頼度データpcntを用いて位置ずれ量を求めることができる。   The reliability setting unit 445 outputs reliability data pcnt indicating the reliability of the positional deviation amount based on the extreme value determination result bLMd and the similarity data bDsl of the position. For this reason, even if the similarity data Dist changes from the original value due to the influence of jitter at the time of reading or dust adhering to the optical system, the positional deviation amount is calculated using the reliability data pcnt. Can be sought.

信頼度データpcntにより信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量で補正しているので、横相関位置補正部45は、誤検出がなく、良好な精度で補正された位置ずれ量Dtを得ることができ、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量Dtを求めることができる。   Since the misalignment amount of the overlap region with low reliability is corrected by the misalignment amount of the overlap region with high reliability based on the reliability data pcnt, the lateral correlation position correction unit 45 is good with no false detection. The position deviation amount Dt corrected with high accuracy can be obtained, the influence of jitter at the time of reading or the dust attached to the optical system is reduced, and there is no misdetection of the position deviation amount, and the image position deviation amount with good accuracy. Dt can be obtained.

以上に説明したように、実施の形態2に係る画像処理部4によれば、信頼度判定部44bは、類似度データDistから、位置ずれ量の信頼度を判定し、信頼度データpcntを求め、横相関位置補正部45は、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, according to the image processing unit 4 according to the second embodiment, the reliability determination unit 44b determines the reliability of the positional deviation amount from the similarity data Dist and obtains the reliability data pcnt. The lateral correlation position correction unit 45 converts the positional deviation amount dyb in the overlap region with low reliability into the positional deviation amount of the region with high reliability in the adjacent overlapping regions based on the reliability data pcnt. Based on the corrected positional deviation amount Dt, the position of the divided image is shifted based on the corrected positional deviation amount Dt to generate combined image data. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《3》実施の形態3.
上記実施の形態1に係る画像読取装置1、画像処理装置4、及び画像処理方法では、横相関位置補正部45(図1、図13)は、1ライン前の補正後の位置ずれ量preDtを用いて分割画像の結合位置を決定するよう構成されている。これに対し、本発明の実施の形態3に係る画像読取装置1、画像処理装置4、及び画像処理方法では、横相関位置補正部45(図13)の代わりに、図20に示される横相関位置補正部45bを用いて、位置ずれ量の補正位置を生成し、補正後の位置ずれ量Dtを求めている。横相関位置補正部45(図13)を図20の横相関位置補正部45bに置き換えた点以外について、実施の形態3は実施の形態1と同じである。したがって、実施の形態3の説明に際しては、図1をも参照する。
<< 3 >> Embodiment 3
In the image reading apparatus 1, the image processing apparatus 4, and the image processing method according to the first embodiment, the lateral correlation position correction unit 45 (FIGS. 1 and 13) calculates the position shift amount preDt after correction for one line before. And is used to determine the combined position of the divided images. On the other hand, in the image reading device 1, the image processing device 4, and the image processing method according to the third embodiment of the present invention, the horizontal correlation shown in FIG. 20 is used instead of the horizontal correlation position correction unit 45 (FIG. 13). A position correction amount correction position is generated using the position correction unit 45b, and a corrected position shift amount Dt is obtained. The third embodiment is the same as the first embodiment except that the horizontal correlation position correction unit 45 (FIG. 13) is replaced with the horizontal correlation position correction unit 45b of FIG. Therefore, FIG. 1 is also referred to when describing the third embodiment.

図20は、実施の形態3に係る画像読取装置1及び画像処理装置(画像処理部)4の横相関位置補正部45bの構成を概略的に示すブロック図である。図20において、図13に示される構成要素と同一又は対応する構成要素には、図13における符号と同じ符号が付される。図20に示されるように、横相関位置補正部45bは、補正位置生成部451と、位置ずれ量dybと補正位置生成部451から出力される補正位置ずれ量データTNCとを比較する比較部454bと、結合位置決定部452bとを備えている。補正位置生成部451の構成及び動作は、実施の形態1のものと同じである。   FIG. 20 is a block diagram schematically showing the configuration of the lateral correlation position correction unit 45b of the image reading device 1 and the image processing device (image processing unit) 4 according to the third embodiment. 20, components that are the same as or correspond to the components shown in FIG. 13 are given the same reference numerals as those in FIG. As illustrated in FIG. 20, the lateral correlation position correction unit 45 b includes a correction position generation unit 451, and a comparison unit 454 b that compares the positional deviation amount dyb with the corrected positional deviation amount data TNC output from the correction position generation unit 451. And a coupling position determination unit 452b. The configuration and operation of the correction position generation unit 451 are the same as those in the first embodiment.

補正位置生成部451は、信頼度判定部44から出力された信頼度データpcntと、位置ずれ推定部43から出力された位置ずれ量データdybとを受け取る。補正位置生成部451は、信頼度データpcntにより、信頼度が低いオーバーラップ領域となる場合、当該オーバーラップ領域の周辺にあるオーバーラップ領域で求められた位置ずれ量データdybにより、信頼度データpcntで信頼度が高いとされるオーバーラップ領域の位置ずれ量へ補正し、補正位置ずれ量データTNCを生成する。比較部454bは、位置ずれ推定部43から出力された位置ずれ量データdybと補正位置生成部451から出力された補正位置ずれ量データTNCの値とを比較し、この比較の結果を示す比較結果DifCbを出力する。つまり、比較部454bは、補正位置を示す補正位置ずれ量データTNCの値と位置ずれ推定部43から出力された位置ずれ量データdybの値との差分を検出する。   The corrected position generation unit 451 receives the reliability data pcnt output from the reliability determination unit 44 and the positional deviation amount data dyb output from the positional deviation estimation unit 43. When the reliability data pcnt results in an overlap region with low reliability, the correction position generation unit 451 uses the positional deviation amount data dyb obtained in the overlap region around the overlap region to calculate reliability data pcnt. Then, correction is made to the position shift amount of the overlap region, which is considered to be highly reliable, and corrected position shift amount data TNC is generated. The comparison unit 454b compares the positional deviation amount data dyb output from the positional deviation estimation unit 43 with the value of the corrected positional deviation amount data TNC output from the corrected position generation unit 451, and the comparison result indicating the result of this comparison DifCb is output. That is, the comparison unit 454b detects a difference between the value of the correction position deviation amount data TNC indicating the correction position and the value of the position deviation amount data dyb output from the position deviation estimation unit 43.

結合位置決定部452bは、位置ずれ推定部43から出力された位置ずれ量データdybと、補正位置生成部451から出力された補正位置ずれ量データTNCとのいずれかを、比較部454bから出力された比較結果DifCbに基づいて選択し、補正後の位置ずれ量Dtとして出力する。結合位置決定部452bは、比較結果DifCbにより補正前後の位置ずれ量との差が大きい場合(例えば、予め決められた基準値よりも大きい場合)には、補正位置ずれ量データTNCを選択する。これにより、結合位置決定部452bは、一時的に位置ずれ量dybが変動し、位置又は類似度データDistの値が変化した孤立点を除去して、位置ずれ量を補正することができる。   The combined position determination unit 452b outputs either the positional deviation amount data dyb output from the positional deviation estimation unit 43 or the corrected positional deviation amount data TNC output from the correction position generation unit 451 from the comparison unit 454b. Is selected based on the comparison result DifCb, and is output as a corrected positional deviation amount Dt. The combination position determination unit 452b selects the correction position deviation amount data TNC when the difference from the position deviation amount before and after correction is large (for example, larger than a predetermined reference value) based on the comparison result DifCb. As a result, the combined position determination unit 452b can correct the positional deviation amount by removing the isolated point where the positional deviation amount dyb temporarily fluctuates and the value of the position or similarity data Dist has changed.

横相関位置補正部45bから出力された補正後の位置ずれ量Dtは、信頼度データpcntにより、信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量で補正している。このため、実施の形態3においては、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量を求められる。   The corrected misregistration amount Dt output from the lateral correlation position correction unit 45b is obtained by using the reliability data pcnt to calculate the misregistration amount of the overlap region with low reliability as the misregistration amount of the overlap region with high reliability. It is corrected. Therefore, in the third embodiment, it is possible to reduce the influence of jitter at the time of reading or dust attached to the optical system, so that the misregistration of the misregistration amount is not detected, and the misregistration amount of the image can be obtained with good accuracy.

以上に説明したように、実施の形態3においては、横相関位置補正部45bによって、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, in the third embodiment, the lateral correlation position correction unit 45b uses the reliability data pcnt to set the positional deviation amount dyb in the overlap region with low reliability to another adjacent overlap region. Is corrected based on the positional deviation amount of the region with high reliability, and is the corrected positional deviation amount Dt. The position of the divided image is shifted based on the corrected positional deviation amount Dt, and the combined image Data is being generated. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《4》実施の形態4.
上記実施の形態1及び3に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4が横相関位置補正部45(図13)又は45b(図20)を用いた場合を説明した。これに対し、本発明の実施の形態4に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4は、横相関位置補正部45(図13)又は45b(図20)の代わりに、図21に示される横相関位置補正部45cを用いて、位置ずれ量の補正位置を生成し、補正後の位置ずれ量を求めている。横相関位置補正部45(図13)又は45b(図20)を、図21の横相関位置補正部45cに置き換えた点以外について、実施の形態4は実施の形態1又は3と同じである。したがって、実施の形態4の説明に際しては、図1をも参照する。
<< 4 >> Embodiment 4
In the image reading device 1, the image processing device 4, and the image processing method according to the first and third embodiments, the image processing unit 4 uses the lateral correlation position correction unit 45 (FIG. 13) or 45b (FIG. 20). Explained. On the other hand, in the image reading device 1, the image processing device 4, and the image processing method according to the fourth embodiment of the present invention, the image processing unit 4 has the lateral correlation position correction unit 45 (FIG. 13) or 45b (FIG. 20). 21), a correction position for the amount of positional deviation is generated using the lateral correlation position correction unit 45c shown in FIG. 21, and the corrected amount of positional deviation is obtained. The fourth embodiment is the same as the first or third embodiment except that the horizontal correlation position correction unit 45 (FIG. 13) or 45b (FIG. 20) is replaced with the horizontal correlation position correction unit 45c of FIG. Therefore, FIG. 1 is also referred to in the description of the fourth embodiment.

図21は、実施の形態4に係る画像読取装置1及び画像処理装置(画像処理部)4の横相関位置補正部45cの構成を概略的に示すブロック図である。図21において、図13に示される構成要素と同一又は対応する構成要素には、図13における符号と同じ符号が付される。図21に示されるように、横相関位置補正部45cは、変化量算出部611と、補正変化量生成部612と、変化量加算部613と、閾値判定部614と、結合位置決定部615と、1ライン位置保持部453とを備えている。1ライン位置保持部453の構成及び動作は、実施の形態1のものと同じである。   FIG. 21 is a block diagram schematically showing the configuration of the lateral correlation position correcting unit 45c of the image reading device 1 and the image processing device (image processing unit) 4 according to the fourth embodiment. In FIG. 21, the same or corresponding components as those shown in FIG. 13 are denoted by the same reference numerals as those in FIG. As shown in FIG. 21, the horizontal correlation position correction unit 45 c includes a change amount calculation unit 611, a corrected change amount generation unit 612, a change amount addition unit 613, a threshold determination unit 614, and a combined position determination unit 615. 1 line position holding unit 453. The configuration and operation of the 1-line position holding unit 453 are the same as those in the first embodiment.

図21の1ライン位置保持部453は、結合位置決定部615により位置ずれ量を補正した結果を1ライン分保持(記憶)する。この動作は、図13(実施の形態1)の横相関位置補正部45における1ライン位置保持部453の動作と同じである。変化量算出部611は、位置ずれ推定部43から出力された位置ずれ量データdybの値と、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtとの差分値(変化量)を算出し、算出された変化量dgapを出力する。つまり、変化量算出部611は、現在の位置ずれ量の、1ライン前の位置ずれ量から出力された変化を検出する。   The one-line position holding unit 453 in FIG. 21 holds (stores) the result of correcting the positional deviation amount by the combined position determining unit 615 for one line. This operation is the same as the operation of the one-line position holding unit 453 in the lateral correlation position correction unit 45 in FIG. 13 (Embodiment 1). The change amount calculation unit 611 is a difference value between the value of the positional deviation amount data dyb output from the positional deviation estimation unit 43 and the post-correction positional deviation amount preDt output from the one-line position holding unit 453. (Change amount) is calculated, and the calculated change amount dgap is output. That is, the change amount calculation unit 611 detects a change output from the position shift amount one line before the current position shift amount.

補正変化量生成部612は、信頼度判定部44から出力された信頼度データpcntと、変化量算出部611による変化量dgapとを受け取る。補正変化量生成部612は、信頼度データpcntにより信頼度が高く、最小値が1つになるようなオーバーラップ領域では、変化量dgapをそのまま出力する。補正変化量生成部612は、信頼度データpcntにより、信頼度が低いオーバーラップ領域となる場合(最小値検出なしで信頼度データpcnt=0、又は、複数の極値となる位置を持つ信頼度データpcnt2以上の値)、当該オーバーラップ領域の周辺にある(他方の端の左右に位置する)オーバーラップ領域で求められた変化量dgapで、信頼度データpcntにより信頼度が高いとされるオーバーラップ領域の変化量dgapへ補正する。補正変化量生成部612は、信頼度が高いオーバーラップ領域が片側に隣接するオーバーラップ領域のみであれば、そのオーバーラップ領域の変化量dgapへ置き換える。補正変化量生成部612は、信頼度が高いオーバーラップ領域が両側に隣接するオーバーラップ領域であれば、それらのオーバーラップ領域の変化量dgapの平均値へ置き換えてもよい。補正変化量生成部612は、生成された補正変化量TNGを、変化量加算部613及び閾値判定部614へと出力する。   The corrected change amount generation unit 612 receives the reliability data pcnt output from the reliability determination unit 44 and the change amount dgap by the change amount calculation unit 611. The correction change amount generation unit 612 outputs the change amount dgap as it is in the overlap region where the reliability is high and the minimum value is one based on the reliability data pcnt. The correction change amount generation unit 612 uses the reliability data pcnt to provide an overlap region with low reliability (reliability data pcnt = 0 without detection of the minimum value, or reliability having positions where a plurality of extreme values are obtained. Data pcnt2 or more), the change amount dgap obtained in the overlap area around the overlap area (located on the left and right of the other end), and the reliability is determined to be high by the reliability data pcnt. Correction is made to the change amount dgap of the lap region. If the overlap region with high reliability is only the overlap region adjacent to one side, the correction change amount generation unit 612 replaces the overlap amount with the change amount dgap of the overlap region. If the overlap region with high reliability is an overlap region adjacent to both sides, the correction change amount generation unit 612 may replace it with the average value of the change amounts dgap of these overlap regions. The correction change amount generation unit 612 outputs the generated correction change amount TNG to the change amount addition unit 613 and the threshold determination unit 614.

変化量加算部613は、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtに対し、補正変化量生成部612から出力された補正変化量TNGを加算して、補正位置ずれ量データTNCbを算出する。閾値判定部614は、補正変化量生成部612から出力された補正変化量TNGの値を予め決められた閾値と比較し、比較結果flgを出力する。補正変化量TNGは、1ライン前の位置ずれ量から出力された変化量に基づき求められた値であるので、補正された位置ずれ量の1ライン前との変化が判定できる。   The change amount addition unit 613 adds the correction change amount TNG output from the correction change amount generation unit 612 to the post-correction positional deviation amount preDt output from the one line position holding unit 453, and Correction position deviation amount data TNCb is calculated. The threshold determination unit 614 compares the value of the correction change amount TNG output from the correction change amount generation unit 612 with a predetermined threshold value, and outputs a comparison result flg. Since the correction change amount TNG is a value obtained based on the change amount output from the position shift amount one line before, the change of the corrected position shift amount from the previous line can be determined.

結合位置決定部615は、位置ずれ推定部43から出力された位置ずれ量データdybと、変化量加算部613から出力された補正位置ずれ量データTNCbとのいずれかを、閾値判定部614から出力された比較結果flgにより選択し、補正後の位置ずれ量Dtとして出力する。比較結果flgにより変化量が小さな値とされる場合(変化量が閾値以下の場合)において、結合位置決定部615は、補正位置ずれ量データTNCbを選択する。これにより、補正後の位置ずれ量Dtは、より信頼度が反映された値となる。   The combined position determination unit 615 outputs, from the threshold determination unit 614, either the positional shift amount data dyb output from the positional shift estimation unit 43 or the corrected positional shift amount data TNCb output from the change amount adding unit 613. The selected comparison result flg is selected and output as a corrected positional deviation amount Dt. When the change amount is set to a small value by the comparison result flg (when the change amount is equal to or smaller than the threshold value), the combined position determination unit 615 selects the correction position deviation amount data TNCb. As a result, the corrected positional deviation amount Dt is a value reflecting the reliability.

横相関位置補正部45cから出力された補正後の位置ずれ量Dtは、1ライン前の位置ずれ量との変化量に対し、信頼度データpcntにより信頼度が低いオーバーラップ領域の変化量を、信頼度の高いオーバーラップ領域の変化量で補正することで、信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量へ補正しているので、誤検出がなく、良好な精度で補正された位置ずれ量Dtを得ることができ、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量を求められる。   The corrected positional deviation amount Dt output from the horizontal correlation position correcting unit 45c is the amount of change in the overlap region with low reliability based on the reliability data pcnt with respect to the amount of change from the positional deviation amount one line before. By correcting with the amount of change in the overlap area with high reliability, the amount of misalignment in the overlap area with low reliability is corrected to the amount of misalignment in the overlap area with high reliability. Therefore, the positional deviation amount Dt corrected with good accuracy can be obtained, the influence of jitter at the time of reading or the dust attached to the optical system can be reduced, and there is no misdetection of the positional deviation amount, and the image can be obtained with good accuracy. The amount of displacement can be obtained.

以上に説明したように、実施の形態4においては、横相関位置補正部45cによって、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の1ライン前から出力された変化量に基づいて位置ずれ量を補正し、補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, in the fourth embodiment, the lateral correlation position correction unit 45c uses the reliability data pcnt to set the positional deviation amount dyb in the overlap region with low reliability to another adjacent overlap region. The amount of misalignment is corrected based on the amount of change output from one line before the highly reliable area, and the amount of misalignment is Dt after correction, and division is performed based on the amount of misalignment Dt after correction. The image position is shifted to generate combined image data. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《5》実施の形態5.
上記実施の形態1、3、及び4に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4が横相関位置補正部45(図13)、45b(図20)、及び45c(図21)を用いた場合を説明した。これに対し、本発明の実施の形態5に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4は、横相関位置補正部45(図13)、45b(図20)、又は45c(図21)の代わりに、図22に示されるような横相関位置補正部45dを用いて、位置ずれ量の補正位置を生成し、補正後の位置ずれ量を求めている。横相関位置補正部45、45b、又は45cを、図22の横相関位置補正部45dに置き換えた点以外について、実施の形態5は実施の形態1、3、又は4と同じである。したがって、実施の形態5の説明に際しては、図1をも参照する。
<< 5 >> Embodiment 5
In the image reading device 1, the image processing device 4, and the image processing method according to the first, third, and fourth embodiments, the image processing unit 4 has the lateral correlation position correction units 45 (FIG. 13), 45b (FIG. 20), And 45c (FIG. 21) have been described. In contrast, in the image reading device 1, the image processing device 4, and the image processing method according to the fifth embodiment of the present invention, the image processing unit 4 includes the lateral correlation position correction units 45 (FIG. 13) and 45b (FIG. 20). ) Or 45c (FIG. 21), a correction position of a positional deviation amount is generated by using a horizontal correlation position correction unit 45d as shown in FIG. 22, and the corrected positional deviation amount is obtained. The fifth embodiment is the same as the first, third, or fourth embodiment except that the horizontal correlation position correction unit 45, 45b, or 45c is replaced with the horizontal correlation position correction unit 45d of FIG. Therefore, FIG. 1 is also referred to in the description of the fifth embodiment.

図22は、実施の形態5に係る画像読取装置1及び画像処理装置(画像処理部)4の横相関位置補正部45dの構成を概略的に示すブロック図である。図22において、図1、図13、及び図21に示される構成要素と同一又は対応する構成要素には、図1、図13、及び図21における符号と同じ符号が付される。図22に示されるように、横相関位置補正部45dは、変化量算出部611と、重み係数設定部621と、位置平均算出部622と、比較部623と、結合位置決定部(結合位置補間処理部)624と、1ライン位置保持部453とを備えている。変化量算出部611と1ライン位置保持部453の構成及び動作は、実施の形態4で示されるものと同じである。   FIG. 22 is a block diagram schematically showing the configuration of the horizontal correlation position correcting unit 45d of the image reading device 1 and the image processing device (image processing unit) 4 according to the fifth embodiment. 22, components that are the same as or correspond to the components shown in FIGS. 1, 13, and 21 are given the same reference numerals as those in FIGS. 1, 13, and 21. As shown in FIG. 22, the horizontal correlation position correction unit 45d includes a change amount calculation unit 611, a weighting factor setting unit 621, a position average calculation unit 622, a comparison unit 623, a combined position determining unit (combined position interpolation unit). Processing unit) 624 and a one-line position holding unit 453. The configuration and operation of the change amount calculation unit 611 and the one-line position holding unit 453 are the same as those shown in the fourth embodiment.

図22における横相関位置補正部45dは、位置ずれ推定部43から出力された位置ずれ量データdybと1ライン前の補正後の位置ずれ量preDtとの差分値(変化量)を求め、当該オーバーラップ領域を含めた周辺にあるオーバーラップ領域で求められた変化量と信頼度データpcntにより、それぞれのオーバーラップ領域における信頼度データと変化量に応じた重み係数を設定し、得られた重み係数から補正後の位置ずれ量を求めるよう構成される。   The horizontal correlation position correction unit 45d in FIG. 22 calculates a difference value (change amount) between the positional shift amount data dyb output from the positional shift estimation unit 43 and the corrected positional shift amount preDt one line before, Based on the amount of change and reliability data pcnt obtained in the overlap region in the periphery including the wrap region, the weight coefficient corresponding to the reliability data and the amount of change in each overlap region is set, and the obtained weight coefficient From this, the corrected positional deviation amount is obtained.

1ライン位置保持部453は、結合位置決定部624により補正された位置ずれ量を1ライン分保持する。この動作は実施の形態1における横相関位置補正部45と同じである。変化量算出部611は、位置ずれ推定部43から出力された位置ずれ量データdybと、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtとの差分値(変化量)を算出し、変化量dgapを出力する。言い替えれば、1ライン前の位置ずれ量との変化を検出する。   The one-line position holding unit 453 holds the amount of positional deviation corrected by the combined position determining unit 624 for one line. This operation is the same as that of the lateral correlation position correction unit 45 in the first embodiment. The change amount calculation unit 611 is a difference value (change) between the positional deviation amount data dyb output from the positional deviation estimation unit 43 and the corrected positional deviation amount preDt one line before output from the one-line position holding unit 453. Amount) and the change amount dgap is output. In other words, a change from the positional deviation amount of the previous line is detected.

重み係数設定部621は、信頼度判定部44から出力された信頼度データpcntと、変化量算出部611による変化量dgapとを受け取り、それぞれのオーバーラップ領域における信頼度データと変化量に応じた重み係数CIRを設定する。信頼度データpcntにより信頼度が高く、最小値が1つになるようなオーバーラップ領域においては、変化量dgapが小さければ比率が高くなる重み係数CIR=1を設定し、変化量dgapが大きい場合は重み係数CIRを小さく(例えば、1/2などに)する。信頼度データpcntにより、信頼度が低いオーバーラップ領域となる場合(最小値検出なしで信頼度データpcnt=0、又は、複数の極値となる位置を持つ信頼度データpcnt2以上の値)は、重み係数CIRを小さく(例えば、0などに)する。なお、最小値検出なしで信頼度データpcnt=0と複数の極値となる位置を持つ信頼度データpcnt2以上の値とで重み係数CIRを設定してもよいし、変化量dgapが大きい場合は重み係数CIRをより小さくするよう設定してもよい。生成された重み係数CIRは、位置平均算出部622と、結合位置決定部624へと出力する。   The weighting coefficient setting unit 621 receives the reliability data pcnt output from the reliability determination unit 44 and the change amount dgap from the change amount calculation unit 611, and depends on the reliability data and the change amount in each overlap region. A weighting coefficient CIR is set. In the overlap region where the reliability is high by the reliability data pcnt and the minimum value is one, when the change amount dgap is small, the weight coefficient CIR = 1 is set so that the ratio is high, and the change amount dgap is large Decreases the weight coefficient CIR (for example, ½). When the reliability data pcnt results in an overlap region with low reliability (the reliability data pcnt = 0 without detecting the minimum value, or a value equal to or higher than the reliability data pcnt2 having a plurality of extreme positions) The weighting coefficient CIR is reduced (for example, 0). Note that the weight coefficient CIR may be set with reliability data pcnt = 0 and a value equal to or higher than reliability data pcnt2 having a plurality of extreme positions without detecting the minimum value, or when the change amount dgap is large. The weight coefficient CIR may be set to be smaller. The generated weight coefficient CIR is output to the position average calculation unit 622 and the combined position determination unit 624.

位置平均算出部622は、位置ずれ推定部43から出力された位置ずれ量データdybと、重み係数設定部621から出力された信頼度データと変化量に応じた重み係数CIRとを受け取り、当該オーバーラップ領域を中心とした予め決められた範囲内にあるオーバーラップ領域の周辺(他方の端の左右に位置する)において、重み係数CIRによる位置ずれ量データdybの重み付け平均処理により、平均位置ずれ量HACを算出する。信頼度データと変化量に応じた重み係数CIRによる平均であるので、信頼度が低いオーバーラップ領域での値は反映されず、信頼度が高いオーバーラップ領域の位置ずれ量による平均値へ置き換えることに相当することとなる。平均位置ずれ量HACは、比較部623と、結合位置決定部624へと出力される。   The position average calculation unit 622 receives the positional deviation amount data dyb output from the positional deviation estimation unit 43, the reliability data output from the weighting factor setting unit 621, and the weighting factor CIR corresponding to the change amount, In the periphery of the overlap area (located on the left and right sides of the other end) within the predetermined range with the lap area as the center, the average displacement amount is obtained by weighted average processing of the displacement amount data dyb by the weight coefficient CIR. HAC is calculated. Since the average is based on the reliability data and the weighting coefficient CIR according to the amount of change, the value in the overlap region with low reliability is not reflected, and is replaced with the average value based on the positional deviation amount in the overlap region with high reliability. It is equivalent to. The average positional deviation amount HAC is output to the comparison unit 623 and the coupling position determination unit 624.

比較部623は、位置ずれ推定部43から出力された位置ずれ量データdybと平均位置ずれ量HACの値を比較し、比較結果DifC2を出力する。言い替えれば、比較部623は、補正位置と位置ずれ推定部による結果との差分を検出する。   The comparison unit 623 compares the positional deviation amount data dyb output from the positional deviation estimation unit 43 with the value of the average positional deviation amount HAC, and outputs a comparison result DifC2. In other words, the comparison unit 623 detects a difference between the correction position and the result obtained by the position deviation estimation unit.

結合位置決定部624は、位置ずれ推定部43から出力された位置ずれ量データdybと、位置平均算出部622から出力された平均位置ずれ量HACと、重み係数設定部621から出力された信頼度データと変化量に応じた重み係数CIRとを受け取り、当該オーバーラップ領域での重み係数CIRにより、位置ずれ量データdybと平均位置ずれ量HACを重み付け補間して補正後の位置ずれ量Dtを求める。このとき、比較部623から出力された比較結果DifC2により、補正前後の位置ずれ量との差が大きい場合は、平均位置ずれ量HACを選択して補正後の位置ずれ量Dtとしてもよい。これにより、一時的に位置ずれ量dbyが変動し、位置又は類似度データDistの値が変化した孤立点を除去して、位置ずれ量を補正することができる。   The combined position determination unit 624 includes the positional deviation amount data dyb output from the positional deviation estimation unit 43, the average positional deviation amount HAC output from the position average calculation unit 622, and the reliability output from the weighting factor setting unit 621. The data and the weighting coefficient CIR corresponding to the change amount are received, and the position shift amount Dt after correction is obtained by weighted interpolation of the position shift amount data dyb and the average position shift amount HAC based on the weight coefficient CIR in the overlap region. . At this time, if the comparison result DifC2 output from the comparison unit 623 has a large difference from the positional deviation amount before and after correction, the average positional deviation amount HAC may be selected as the corrected positional deviation amount Dt. As a result, it is possible to correct the positional deviation amount by removing the isolated point where the positional deviation amount dby fluctuates temporarily and the value of the position or similarity data Dist changes.

横相関位置補正部45dから出力された補正後の位置ずれ量Dtは、1ライン前の位置ずれ量との変化量と信頼度データpcntに応じた重み係数CIRを設定して位置ずれ量の重み付け平均を行うとともに、補正時に重み係数と位置ずれ量dybから出力された変化を元に補正後の位置ずれ量Dtを補間処理して求めることにより、信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量へ補正しているので、誤検出がなく、良好な精度で補正された位置ずれ量Dtを得ることができ、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量を求められる。   The corrected positional deviation amount Dt output from the horizontal correlation position correcting unit 45d sets the weighting coefficient CIR according to the amount of change from the positional deviation amount one line before and the reliability data pcnt, and weights the positional deviation amount. In addition to performing averaging, the positional deviation amount Dt after correction based on the change output from the weighting coefficient and the positional deviation amount dyb is obtained by interpolation processing, thereby calculating the positional deviation amount of the overlap region with low reliability. Since the positional deviation amount of the overlap region with high reliability is corrected, the positional deviation amount Dt corrected with good accuracy can be obtained with no false detection, and jitter at reading or dust attached to the optical system can be obtained. Thus, the positional deviation amount of the image can be obtained with good accuracy without misdetection of the positional deviation amount.

以上に説明したように、実施の形態5においては、横相関位置補正部45dによって、信頼度データpcntに応じた重み係数CIRを設定して位置ずれ量の重み付け平均を行うとともに、補正時に重み係数と位置ずれ量dybから出力された変化を元に補間処理して補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, in the fifth embodiment, the lateral correlation position correction unit 45d sets the weighting coefficient CIR corresponding to the reliability data pcnt and performs weighted average of the positional deviation amount, and at the time of correction, the weighting coefficient Based on the change output from the positional deviation amount dyb, interpolation processing is performed to obtain a corrected positional deviation amount Dt. The position of the divided image is shifted based on the corrected positional deviation amount Dt, and the combined image Data is being generated. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《6》実施の形態6.
上記実施の形態1、3、4、及び5に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4が横相関位置補正部45(図13)、45b(図20)、45c(図21)、及び45d(図22)を用いた場合を説明した。これに対し、本発明の実施の形態6に係る画像読取装置1、画像処理装置4、及び画像処理方法では、画像処理部4は、横相関位置補正部45(図13)、45b(図20)、45c(図21)、45d(図22)の代わりに、図23に示されるような横相関位置補正部45eを用いて、位置ずれ量の補正位置を生成し、補正後の位置ずれ量を求めている。横相関位置補正部45、45b、45c、又は45dを、図23の横相関位置補正部45eに置き換えた点以外について、実施の形態6は実施の形態1、3、4、又は5と同じである。したがって、実施の形態6の説明に際しては、図1をも参照する。
<< 6 >> Embodiment 6
In the image reading device 1, the image processing device 4, and the image processing method according to the first, third, fourth, and fifth embodiments, the image processing unit 4 has the lateral correlation position correction units 45 (FIG. 13) and 45b (FIG. 20). ), 45c (FIG. 21), and 45d (FIG. 22) have been described. On the other hand, in the image reading device 1, the image processing device 4, and the image processing method according to the sixth embodiment of the present invention, the image processing unit 4 includes the lateral correlation position correction units 45 (FIG. 13) and 45b (FIG. 20). ), 45c (FIG. 21), instead of 45d (FIG. 22), a lateral correlation position correction unit 45e as shown in FIG. 23 is used to generate a correction position of the positional shift amount, and the corrected positional shift amount. Seeking. The sixth embodiment is the same as the first, third, fourth, or fifth embodiment except that the horizontal correlation position correction unit 45, 45b, 45c, or 45d is replaced with the horizontal correlation position correction unit 45e of FIG. is there. Therefore, FIG. 1 is also referred to in the description of the sixth embodiment.

図23は、実施の形態6に係る画像読取装置1及び画像処理装置(画像処理部)4における横相関位置補正部45eの構成を概略的に示すブロック図である。図23において、図1、図13、図21、及び図22に示される構成要素と同一又は対応する構成要素には、図21及び図22における符号と同じ符号が付される。   FIG. 23 is a block diagram schematically showing the configuration of the lateral correlation position correction unit 45e in the image reading device 1 and the image processing device (image processing unit) 4 according to the sixth embodiment. In FIG. 23, constituent elements that are the same as or correspond to those shown in FIGS. 1, 13, 21, and 22 are assigned the same reference numerals as those in FIGS.

図23に示されるように、横相関位置補正部45eは、変化量算出部611と、重み係数設定部621と、変化量平均算出部631と、変化量比較部632と、変化量補間処理部633と、補間変化量加算部634と、1ライン位置保持部453とを備えている。変化量算出部611、重み係数設定部621、及び1ライン位置保持部453の構成及び動作は、実施の形態5で示されるものと同じである。図23における横相関位置補正部45eは、位置ずれ推定部43から出力された位置ずれ量データdybと1ライン前の補正後の位置ずれ量preDtとの差分値(変化量)を求め、当該オーバーラップ領域を含めた周辺にあるオーバーラップ領域で求められた変化量と信頼度データpcntとにより、それぞれのオーバーラップ領域における信頼度データと変化量に応じた重み係数を設定し、得られた重み係数から変化量を補正し、補正された変化量から補正後の位置ずれ量を求めるよう構成されている。   As shown in FIG. 23, the horizontal correlation position correction unit 45e includes a change amount calculation unit 611, a weighting factor setting unit 621, a change amount average calculation unit 631, a change amount comparison unit 632, and a change amount interpolation processing unit. 633, an interpolation change amount adding unit 634, and a one-line position holding unit 453. The configurations and operations of the change amount calculation unit 611, the weighting coefficient setting unit 621, and the 1-line position holding unit 453 are the same as those shown in the fifth embodiment. 23 obtains a difference value (change amount) between the positional deviation amount data dyb output from the positional deviation estimation unit 43 and the corrected positional deviation amount preDt one line before, Based on the amount of change and reliability data pcnt obtained in the overlap region in the periphery including the wrap region, the weight data corresponding to the reliability data and the amount of change in each overlap region is set, and the obtained weight The change amount is corrected from the coefficient, and the corrected positional deviation amount is obtained from the corrected change amount.

1ライン位置保持部453は、補間変化量加算部634により補正された位置ずれ量を1ライン分保持する。この動作は、実施の形態1における横相関位置補正部45における1ライン位置保持部453の動作と同じである。変化量算出部611は、位置ずれ推定部43から出力された位置ずれ量データdybと、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtとの差分値(変化量)を算出し、変化量dgapを出力する。つまり、変化量算出部611は、1ライン前の位置ずれ量との変化を検出する。重み係数設定部621は、信頼度判定部44から出力された信頼度データpcntと、変化量算出部611による変化量dgapとを受け取り、それぞれのオーバーラップ領域における信頼度データと変化量に応じた重み係数CIRとを設定する。この動作は、実施の形態5における横相関位置補正部45dにおける動作と同じである。   The one-line position holding unit 453 holds the position shift amount corrected by the interpolation change amount adding unit 634 for one line. This operation is the same as the operation of the one-line position holding unit 453 in the lateral correlation position correction unit 45 in the first embodiment. The change amount calculation unit 611 is a difference value (change) between the positional deviation amount data dyb output from the positional deviation estimation unit 43 and the corrected positional deviation amount preDt one line before output from the one-line position holding unit 453. Amount) and the change amount dgap is output. That is, the change amount calculation unit 611 detects a change from the positional deviation amount of the previous line. The weighting coefficient setting unit 621 receives the reliability data pcnt output from the reliability determination unit 44 and the change amount dgap from the change amount calculation unit 611, and depends on the reliability data and the change amount in each overlap region. A weighting coefficient CIR is set. This operation is the same as the operation in the horizontal correlation position correcting unit 45d in the fifth embodiment.

変化量平均算出部631は、変化量算出部611による変化量dgapと、重み係数設定部621から出力された信頼度データと変化量に応じた重み係数CIRとを受け取り、当該オーバーラップ領域を中心とした予め決められた範囲内にある他のオーバーラップ領域(他方の端の左右に位置する領域)において、重み係数CIRによる変化量dgapの重み付け平均処理により、平均変化量HAGを算出する。信頼度データと変化量に応じた重み係数CIRによる平均であるので、信頼度が低いオーバーラップ領域での値は反映されず、信頼度が高いオーバーラップ領域の変化量dgapによる平均値へ置き換えることに相当する。平均変化量HAGは、変化量比較部632と、変化量補間処理部633とへと出力される。   The change amount average calculation unit 631 receives the change amount dgap from the change amount calculation unit 611, the reliability data output from the weighting factor setting unit 621, and the weighting factor CIR according to the changing amount, and centers the overlap region. In other overlap regions (regions located on the left and right sides of the other end) within the predetermined range, the average change amount HAG is calculated by weighted average processing of the change amount dgap by the weighting coefficient CIR. Since the average is based on the reliability data and the weighting coefficient CIR corresponding to the amount of change, the value in the overlap region with low reliability is not reflected, and is replaced with the average value based on the change amount dgap in the overlap region with high reliability. It corresponds to. The average change amount HAG is output to the change amount comparison unit 632 and the change amount interpolation processing unit 633.

変化量比較部632は、変化量算出部611による変化量dgapと平均変化量HAGの値とを比較し、この比較の結果DifGを出力する。つまり、変化量比較部632は、平均変化量HAGと変化量dgapとの差分を検出する。   The change amount comparison unit 632 compares the change amount dgap by the change amount calculation unit 611 with the value of the average change amount HAG, and outputs a result DifG as a result of this comparison. That is, the change amount comparison unit 632 detects the difference between the average change amount HAG and the change amount dgap.

変化量補間処理部633は、変化量算出部611による変化量dgapと、平均変化量HAGと、重み係数設定部621から出力された信頼度データと、変化量に応じた重み係数CIRとを受け取り、当該オーバーラップ領域での重み係数CIRにより、変化量dgapと平均変化量HAGを重み付け補間して、補正後の変化量NGCを求める。このとき、変化量比較部632から出力された比較結果DifGにより、補正前後の変化量の差が大きな場合は、平均変化量HAGを選択して補正後の変化量NGCとしてもよい。これにより、一時的に位置ずれ量dybが変動し、位置又は類似度データDistの値が変化した孤立点を除去して、位置ずれ量を補正することができる。   The change amount interpolation processing unit 633 receives the change amount dgap from the change amount calculation unit 611, the average change amount HAG, the reliability data output from the weighting factor setting unit 621, and the weighting factor CIR according to the changing amount. Based on the weighting coefficient CIR in the overlap region, the change amount dgap and the average change amount HAG are weighted and interpolated to obtain the corrected change amount NGC. At this time, when the difference between the change amounts before and after the correction is large according to the comparison result DifG output from the change amount comparison unit 632, the average change amount HAG may be selected and used as the corrected change amount NGC. As a result, the positional deviation amount dyb temporarily varies, and the isolated point where the value of the position or similarity data Dist has changed can be removed to correct the positional deviation amount.

補間変化量加算部634は、1ライン位置保持部453から出力される1ライン前の補正後の位置ずれ量preDtに対し、変化量補間処理部633から出力された補正変化量TNGを加算して、補正後の位置ずれ量Dtを算出する。   The interpolation change amount adding unit 634 adds the correction change amount TNG output from the change amount interpolation processing unit 633 to the post-correction position shift amount preDt output from the one line position holding unit 453. Then, the corrected positional deviation amount Dt is calculated.

横相関位置補正部45eから出力された補正後の位置ずれ量Dtは、1ライン前の位置ずれ量との変化量と信頼度データpcntに応じた重み係数CIRを設定して、位置ずれ量の変化量の重み付け平均を行うとともに、補正時に重み係数から補正前後の変化量を補間処理して求めて、補正後の位置ずれ量Dtを得ることにより、信頼度が低いオーバーラップ領域の位置ずれ量を、信頼度の高いオーバーラップ領域の位置ずれ量へ補正している。このため、誤検出がなく、良好な精度で補正された位置ずれ量Dtを得ることができ、読取り時のジッター又は光学系付着ゴミの影響を低減して、位置ずれ量の誤検出がなく、良好な精度で画像の位置ずれ量を求められる。   The corrected misalignment amount Dt output from the horizontal correlation position correcting unit 45e is set by setting a weight coefficient CIR according to the amount of change from the misalignment amount of the previous line and the reliability data pcnt. In addition to performing weighted averaging of the amount of change and interpolating the amount of change before and after correction from the weighting coefficient at the time of correction to obtain a corrected position shift amount Dt, the position shift amount of the overlap region with low reliability Is corrected to the positional deviation amount of the overlap region with high reliability. For this reason, there is no misdetection, and the misalignment amount Dt corrected with good accuracy can be obtained. The amount of image displacement can be obtained with good accuracy.

以上に説明したように、実施の形態6においては、横相関位置補正部45eによって、信頼度データpcntに応じた重み係数CIRを設定して位置ずれ量の変化量の重み付け平均を行うとともに、補正時に重み係数から補正前後の変化量を補間処理して求めて、補正後の位置ずれ量Dtを得ており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, in the sixth embodiment, the lateral correlation position correction unit 45e sets the weighting coefficient CIR according to the reliability data pcnt to perform the weighted average of the amount of change in the positional deviation amount and the correction. Sometimes the amount of change before and after correction is obtained from the weighting coefficient by interpolation processing to obtain a corrected positional deviation amount Dt, and the positions of the divided images are shifted based on this corrected positional deviation amount Dt to combine them. Generated image data. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《7》実施の形態7.
実施の形態1の画像読取装置1の機能の一部は、ハードウェア構成で実現されてもよいし、又は、CPU(central processing unit)を含むマイクロプロセッサにより実行されるコンピュータプログラムで実現されてもよい。当該機能の一部がコンピュータプログラムで実現される場合には、マイクロプロセッサは、コンピュータ読み取り可能な記憶媒体から、又は、インターネットなどの通信によって、当該コンピュータプログラムをロードし実行することによって当該機能の一部を実現することができる。
<< 7 >> Embodiment 7
Part of the functions of the image reading apparatus 1 according to the first embodiment may be realized by a hardware configuration, or may be realized by a computer program executed by a microprocessor including a CPU (central processing unit). Good. When a part of the function is realized by a computer program, the microprocessor loads and executes the computer program from a computer-readable storage medium or by communication such as the Internet. Can be realized.

図24は、画像読取装置1bの機能の一部をコンピュータプログラムで実現する場合の構成を概略的に示すブロック図である。図24に示されるように、実施の形態7に係る画像読取装置1bは、撮像部2と、A/D変換部3と、演算装置5とを備える。演算装置5は、CPUを含むプロセッサ51、RAM(random access memory)52、不揮発性メモリ53、大容量記憶媒体54、及びバス55を備えている。不揮発性メモリ53としては、例えば、フラッシュメモリを使用することができる。また、大容量記憶媒体54としては、例えば、ハードディスク(磁気ディスク)、光ディスク、又は、半導体記憶装置を使用することができる。   FIG. 24 is a block diagram schematically showing a configuration when a part of the functions of the image reading apparatus 1b is realized by a computer program. As shown in FIG. 24, the image reading device 1b according to the seventh embodiment includes an imaging unit 2, an A / D conversion unit 3, and a calculation device 5. The arithmetic device 5 includes a processor 51 including a CPU, a random access memory (RAM) 52, a nonvolatile memory 53, a mass storage medium 54, and a bus 55. As the non-volatile memory 53, for example, a flash memory can be used. Further, as the large-capacity storage medium 54, for example, a hard disk (magnetic disk), an optical disk, or a semiconductor storage device can be used.

A/D変換部3は、図1のA/D変換部3と同じ機能を有し、撮像部2が出力する電気信号SIをデジタルデータに変換してプロセッサ51を介してRAM52に格納される。プロセッサ51は、不揮発性メモリ53又は、大容量記憶媒体54からコンピュータプログラムをロードし、ロードされたプログラムを実行することにより、画像処理部4の機能を実現することができる。   The A / D conversion unit 3 has the same function as the A / D conversion unit 3 in FIG. 1, converts the electrical signal SI output from the imaging unit 2 into digital data, and stores the digital data in the RAM 52 via the processor 51. . The processor 51 can implement the functions of the image processing unit 4 by loading a computer program from the nonvolatile memory 53 or the large-capacity storage medium 54 and executing the loaded program.

図25は、実施の形態7の演算装置5による処理の一例を概略的に示すフローチャートである。図25に示されるように、プロセッサ51は、まず、画像データの内のオーバーラップ領域におけるデータを読み出し、予め決められたライン数の基準データMOと比較データMEを抽出し、基準データMOと比較データMEとを比較する類似度算出処理を実行する(ステップS1)。その後、プロセッサ51は、位置ずれ量推定処理を実行し位置ずれ量データを求める(ステップS2)。また、プロセッサ51は、オーバーラップ領域における類似度データDistの値からそれぞれのオーバーラップ領域で検出する位置ずれ量の信頼度を判定し(ステップS3)、判定した信頼度データにより、信頼度が低いオーバーラップ領域での位置ずれ量を、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正する相関位置補正ステップ(相関位置補正処理)としての横相関位置補正ステップ(横相関位置補正処理)を行い補正後の位置ずれ量Dtを求める(ステップS4)。最後に、プロセッサ51は、結合処理を実行する(ステップS5)。なお、演算装置5によるステップS1〜S5の処理は、実施の形態1における画像処理部4が行う処理と同じである。   FIG. 25 is a flowchart schematically illustrating an example of processing performed by the arithmetic device 5 according to the seventh embodiment. As shown in FIG. 25, the processor 51 first reads out data in the overlap region of the image data, extracts the reference data MO and the comparison data ME having a predetermined number of lines, and compares them with the reference data MO. A similarity calculation process for comparing with the data ME is executed (step S1). Thereafter, the processor 51 executes a positional deviation amount estimation process to obtain positional deviation amount data (step S2). Further, the processor 51 determines the reliability of the positional deviation amount detected in each overlap region from the value of the similarity data Dist in the overlap region (step S3), and the reliability is low based on the determined reliability data. Lateral correlation position correction step as a correlation position correction step (correlation position correction processing) for correcting the position shift amount in the overlap region based on the position shift amount of a region with high reliability among other adjacent overlap regions (Horizontal correlation position correction processing) is performed to obtain a corrected positional deviation amount Dt (step S4). Finally, the processor 51 executes a combination process (step S5). Note that the processing in steps S1 to S5 by the arithmetic device 5 is the same as the processing performed by the image processing unit 4 in the first embodiment.

以上に説明したように、実施の形態7に係る画像読取装置1bによれば、基準データMOと比較データMEとを比較して類似度データDistを算出し、類似度の最も高い比較データの位置に対応する位置ずれ量を算出するとともに、類似度データDistから、位置ずれ量の信頼度を判定し、この信頼度を示す信頼度データpcntを求め、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとしており、この補正後の位置ずれ量Dtに基づいて分割画像の位置をシフトさせて、結合した画像データを生成している。したがって、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、誤検出がなく、良好な精度の補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, according to the image reading device 1b according to the seventh embodiment, the similarity data Dist is calculated by comparing the reference data MO and the comparison data ME, and the position of the comparison data having the highest similarity is calculated. Is calculated from the similarity data Dist, and the reliability data pcnt indicating the reliability is obtained from the similarity data Dist. The misalignment amount dyb in the overlap region is corrected based on the misalignment amount of the region with high reliability in the other adjacent overlap regions, and is set as a misalignment amount Dt after correction. Based on the amount Dt, the position of the divided image is shifted to generate combined image data. Therefore, it is possible to reduce the influence of jitter at the time of reading or the dust attached to the optical system, and to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without erroneous detection. In addition, since it is possible to generate composite image data by using the positional deviation amount Dt after correction with good accuracy without erroneous detection, high-quality synthetic image data corresponding to the object to be read can be generated. can do.

《8》実施の形態8.
実施の形態1においては、図4(a)に示されるように、一方の端部(例えば、左端)から数えて奇数番目に位置するラインセンサ21O,…,21O,…,21Oの光軸27Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの光軸27Eとが交差する場合を説明した。実施の形態8においては、一方の端部(例えば、左端)から数えて奇数番目に位置するラインセンサ21O,…,21O,…,21Oの光軸28Oと偶数番目に位置するラインセンサ21E,…,21E,…,21Eの光軸28Eとが交差せず、平行である場合について説明する。実施の形態8に係る画像読取装置は、光軸28O,28Eが平行である点を除き、実施の形態1に係る画像読取装置1と実質的に同じである。したがって、実施の形態8の説明においては、図1をも参照する。
<< 8 >> Embodiment 8
In the first embodiment, FIG. 4 as (a), the one end (e.g., the left end) line sensor 21O 1 located odd counted from, ..., 21O k, ..., of 21O n line sensor 21E 1 located to the even-numbered and the optical axis 27O, ..., 21E k, ... , and the optical axis 27E of 21E n has been described a case where intersecting. In the eighth embodiment, one end (e.g., the left end) line sensor 21O 1 located odd counted from, ..., 21O k, ..., the line sensor located even-numbered and the optical axis 28O of 21O n 21E 1, ..., 21E k, ..., not intersect with the optical axis 28E of 21E n, it will be described parallel. The image reading apparatus according to the eighth embodiment is substantially the same as the image reading apparatus 1 according to the first embodiment except that the optical axes 28O and 28E are parallel. Therefore, FIG. 1 is also referred to in the description of the eighth embodiment.

図26(a)及び(b)は、実施の形態8に係る画像読取装置の撮像部2の奇数番目に位置するラインセンサ21O(21O,…,21O,…,21O)の光軸28Oと偶数番目に位置するラインセンサ21E(21E,…,21E,…,21E)の光軸28Eとが平行である場合の、被読取物としての原稿60とラインセンサとの位置関係を示す概略的な側面図である。図26(a)は、原稿60が原稿台載置面であるガラス面26に密着している場合を示し、図26(b)は、原稿60がガラス面26から少し浮いて離れている場合を示す。 FIGS. 26A and 26B are optical axes of line sensors 21O (21O 1 ,..., 21O k ,..., 21O n ) located at odd-numbered positions in the imaging unit 2 of the image reading apparatus according to the eighth embodiment. The positional relationship between the original 60 as the object to be read and the line sensor when the optical axis 28E of the line sensor 21E (21E 1 ,..., 21E k ,..., 21E n ) 28O and the even-numbered line sensors 21E is parallel. FIG. FIG. 26A shows a case where the document 60 is in close contact with the glass surface 26 which is the document table mounting surface, and FIG. 26B shows a case where the document 60 is slightly lifted away from the glass surface 26. Indicates.

実施の形態8に係る画像読取装置おいては、図26(a)に示されるように原稿60がガラス面26に密着している場合、図26(b)に示されるように原稿60がガラス面26から離れている場合のいずれであっても、奇数番目に位置するラインセンサ21O,…,21O,…,21Oによる原稿60の読取画像はほとんど変化せず、同様に、偶数番目に位置するラインセンサ21E,…,21E,…,21Eによる原稿60の読取画像はほとんど変化しない。また、副走査方向(Y方向)に撮像部2が搬送される場合、奇数番目に位置するラインセンサ21O,…,21O,…,21Oは、偶数番目に位置するラインセンサ21E,…,21E,…,21Eに比べて、同じ位置の画像を時間的に遅れて取得するが、光軸28Oと光軸28Eが平行であるので、読み取る副走査方向の読取位置のずれは、ほぼ一定量YLとして求めることができ、微小な位置ずれ量としては、ラインセンサの取り付け誤差等による光軸28O若しくは光軸28Eのずれ、及び、搬送速度の時間的なゆらぎ(すなわち、速度変動)による位置ずれ量btを含むことになる。 In the image reading apparatus according to the eighth embodiment, when document 60 is in close contact with glass surface 26 as shown in FIG. 26A, document 60 is glass as shown in FIG. be any of the case away from the surface 26, the line sensor 21O 1 located odd, ..., 21O k, ..., the read image of the document 60 by 21O n hardly changes, similarly, the even-numbered line sensor 21E 1 located, ..., 21E k, ..., the read image of the document 60 by 21E n is hardly changed. Also, when the imaging unit 2 is conveyed in the sub-scanning direction (Y-direction), the line sensor 21O 1 located odd, ..., 21O k, ..., 21O n is the line sensor 21E 1 located even number, ..., 21E k, ..., compared to 21E n, is to acquire an image of the same position temporally delayed, since the optical axis 28O and the optical axis 28E are parallel, the sub-scanning direction of the reading shift position reading is Can be obtained as a substantially constant amount YL. As the minute positional deviation amount, the deviation of the optical axis 28O or the optical axis 28E due to the attachment error of the line sensor or the like, and the temporal fluctuation of the conveyance speed (that is, speed fluctuation) ) Is included.

また、実施の形態8においては、実施の形態1と同様に、撮像部2にジッター又は光学系付着ゴミが存在する場合、画像データDIにおけるオーバーラップ領域の画像データには、ラインセンサ毎に読み取った画像データの差(画素データの値の差)が生じ、ある期間で読み取る画像において、読取位置が本来の位置からずれ、一時的に画像データの値に差が発生したり、異なる位置の画像が読み取られたりして、類似度データDistは、本来の値から変動した値となり、類似度が最も高くなる位置が一時的にずれたり、類似度データDistの値が大きくなる(類似度が低くなる)。   In the eighth embodiment, as in the first embodiment, when there is jitter or optical system attached dust in the imaging unit 2, the image data in the overlap region in the image data DI is read for each line sensor. Difference in image data (difference in pixel data value) occurs, and in an image read in a certain period, the reading position is deviated from the original position, the image data value may temporarily differ, or images at different positions The similarity data Dist becomes a value that fluctuates from the original value, the position where the similarity is highest is temporarily shifted, or the value of the similarity data Dist increases (the similarity is low). Become).

図27は、原稿を読み取った際の偶数番目に位置するラインセンサ21O,21Ok+1に対応する画像データDI(O),DI(Ok+1)と奇数番目に位置するラインセンサ21E,21Ek+1に対応する画像データDI(E),DI(Ek+1)とを示している。それぞれは、副走査方向の位置(ライン)が、((一定量YL)+(ずれbt))分ずれている。 FIG. 27 shows image data DI (O k ) and DI (O k + 1 ) corresponding to the even-numbered line sensors 21O k and 21O k + 1 when the original is read, and the odd-numbered line sensors 21E k and 21E. image data DI corresponding to k + 1 (E k), shows the DI (E k + 1). In each, the position (line) in the sub-scanning direction is shifted by ((fixed amount YL) + (shift bt)).

このため、画像処理部4は、画像メモリ41への書き込み時に奇数番目に位置するラインセンサ21O,…,21O,…,21Oによる読取画像、又は、偶数番目に位置するラインセンサ21E,…,21E,…,21Eによる読取画像のいずれか一方、又は、両方を、副走査方向にほぼ一定量YL分ずらす処理を行う。これにより、図28に示されるように、画像メモリ41に格納される画像データは、副走査方向の位置(ライン)が、搬送速度の変動による位置ずれ量btだけずれて画像メモリ41に格納される。 Therefore, the image processing unit 4, the line sensor 21O 1 located odd when writing to the image memory 41, ..., 21O k, ..., the image reading by 21O n, or line sensor 21E 1 located even number ,..., 21E k ,..., 21E n , one or both of the scanned images are shifted by a substantially constant amount YL in the sub-scanning direction. As a result, as shown in FIG. 28, the image data stored in the image memory 41 is stored in the image memory 41 with the position (line) in the sub-scanning direction being shifted by the positional shift amount bt due to the change in the conveyance speed. The

なお、画像メモリ41への書込み時に、一定量YL分ずらす処理を行うこととしたが、類似度算出部42又は結合処理部46において画像データを読み出す際に、この一定量YL分を、読み出す位置に対しオフセット分として加えて位置を求めるよう構成してもよい。   Note that the processing of shifting by a certain amount YL is performed at the time of writing to the image memory 41. However, when the image data is read by the similarity calculation unit 42 or the combination processing unit 46, the position for reading the certain amount YL is read. Alternatively, the position may be obtained by adding the offset.

以下、画像処理部4においては、副走査方向の位置ずれ量btを求め、画像を結合することになり、オーバーラップ領域における画像データに対し、予め決められたライン数の基準データMOと比較データMEと得て、基準データと比較データとを比較して類似度を算出し、類似度の最も高い比較データの位置に対応する位置ずれ量を算出するとともに、類似度データDistから、位置ずれ量の信頼度を判定し、信頼度データpcntを求め、信頼度データpcntにより、信頼度が低いオーバーラップ領域での位置ずれ量dybを、隣接する他のオーバーラップ領域の内の信頼度の高い領域の位置ずれ量に基づき補正し、補正後の位置ずれ量Dtとして、この補正後の位置ずれ量Dtに基づいて画像メモリ41から画像データを読み出し、結合処理する。この構成、動作は、上記実施の形態1と同じである。   Hereinafter, the image processing unit 4 obtains the positional deviation amount bt in the sub-scanning direction and combines the images. The image data in the overlap area is compared with the reference data MO and the comparison data having a predetermined number of lines. ME is obtained, and the similarity is calculated by comparing the reference data and the comparison data, and the misregistration amount corresponding to the position of the comparison data having the highest similarity is calculated, and the misregistration amount Dist is used to calculate the misregistration amount. The reliability data pcnt is determined, and the reliability data pcnt is used to calculate the positional deviation amount dyb in the overlap area with low reliability from the adjacent other overlap areas. The image data is read out from the image memory 41 based on the corrected positional deviation amount Dt as the corrected positional deviation amount Dt. Binding processing. This configuration and operation are the same as those in the first embodiment.

以上に説明したように、実施の形態8の装置及び方法においては、撮像部2による撮像時に、原稿60又は撮像部2のいずれか一方、又は、両方を副走査方向に移動する際の搬送部24による搬送速度に時間的なゆらぎ(すなわち、速度変動)がある場合であっても、実施の形態1の場合と同様に、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、実施の形態8の装置及び方法によれば、この補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   As described above, in the apparatus and method of the eighth embodiment, at the time of imaging by the imaging unit 2, the conveyance unit when moving either one or both of the document 60 and the imaging unit 2 in the sub-scanning direction. Even in the case where there is a temporal fluctuation (that is, speed fluctuation) in the transport speed due to 24, as in the case of the first embodiment, the influence of jitter at the time of reading or optical system dust is reduced. It is possible to calculate a corrected positional deviation amount Dt indicating a positional deviation amount with good accuracy without detection. Further, according to the apparatus and method of the eighth embodiment, since it is possible to generate composite image data using the positional deviation amount Dt after the correction, the high-quality synthesis corresponding to the object to be read. Image data can be generated.

《9》実施の形態9.
実施の形態1においては、図2(a)に示されるように、複数のラインセンサ21O,21E,…を千鳥状に配列し、隣り合うラインセンサの端部同士が、主走査方向に重なるオーバーラップ領域(例えば、sr,sl)を持つ場合について説明した。しかし、読み取られる被撮像領域において、隣り合うラインセンサで読み取られる被撮像領域が主走査方向に一部重複する領域soを有するように、複数のラインセンサが配置される構成であれば、複数のラインセンサは、千鳥状配列以外の配列方式(例えば、直線状配列)で配置されてもよい。
<< 9 >> Embodiment 9
In the first embodiment, as shown in FIG. 2A, a plurality of line sensors 21O 1 , 21E 1 ,... Are arranged in a staggered manner, and the ends of adjacent line sensors are arranged in the main scanning direction. The case of having overlapping overlap areas (for example, sr, sl) has been described. However, if the plurality of line sensors are arranged so that the imaged areas to be read by adjacent line sensors have a region so that partially overlaps in the main scanning direction, The line sensor may be arranged by an arrangement method other than the staggered arrangement (for example, a linear arrangement).

図29は、実施の形態9に係る画像読取装置の撮像部2のラインセンサ21E及び21Oが、主走査方向に直線状に、被読取物の被撮像領域が主走査方向に一部重複する領域soを有するように構成される配置である場合の、被読取物としての原稿60とラインセンサとの位置関係を示す概略的な側面図である。図29では、複数のラインセンサ21O,21E,…,21O,21E,…,21O,21Eが直線状になるように、主走査方向に直線状に配置される。ここで、nは2以上の整数であり、kは1以上n以下の整数である。そして、原稿60との間にレンズ29O,29Eを配置することで、読み取られる被撮像領域において、隣り合うラインセンサで読み取られる被撮像領域が主走査方向に一部重複する領域soを有するようにしている。実施の形態9に係る画像読取装置は、複数のラインセンサを直線状に配列し、複数のラインセンサに対応する複数のレンズ29O,29Eを直線状に配列することで、隣り合うラインセンサで読み取られる隣り合う被撮像領域が主走査方向に一部重複するようにした点を除き、実施の形態1に係る画像読取装置1と実質的に同じである。したがって、実施の形態9に係る画像処理部は、実施の形態1に係る画像処理部4と実質的に同じである。 Figure 29 is a line sensor 21E k and 21O k of the imaging unit 2 of the image reading apparatus according to the ninth embodiment is, in a straight line in the main scanning direction, partly overlap in the main scanning direction is the imaging region of the read object FIG. 6 is a schematic side view showing a positional relationship between a document 60 as a read object and a line sensor when the arrangement is configured to have a region so. 29, the plurality of line sensors 21O 1 , 21E 1 ,..., 21O k , 21E k ,..., 21O n , 21E n are linearly arranged in the main scanning direction. Here, n is an integer of 2 or more, and k is an integer of 1 to n. Then, by disposing the lenses 29O and 29E between the document 60 and the imaged region to be read, the imaged region read by the adjacent line sensor has a region so partially overlapping in the main scanning direction. ing. In the image reading apparatus according to the ninth embodiment, a plurality of line sensors are arranged in a straight line, and a plurality of lenses 29O and 29E corresponding to the plurality of line sensors are arranged in a straight line, so that reading is performed by adjacent line sensors. The image reading apparatus 1 according to the first embodiment is substantially the same as the image reading apparatus 1 according to the first embodiment except that adjacent imaged areas to be overlapped partially in the main scanning direction. Therefore, the image processing unit according to the ninth embodiment is substantially the same as the image processing unit 4 according to the first embodiment.

実施の形態9に係る画像読取装置によれば、複数のラインセンサが直線状に配置され、被撮像領域が主走査方向に一部重複する領域soを有するように構成される配置であっても、実施の形態1の場合と同様に、読取り時のジッター又は光学系付着ゴミの影響を低減して、誤検出がなく、良好な精度の位置ずれ量を示す補正後の位置ずれ量Dtを算出することができる。また、実施の形態9に係る画像読取装置によれば、補正後の位置ずれ量Dtを位置ずれ量を用いて合成画像データを生成することができるので、被読取物に対応する高品質な合成画像データを生成することができる。   According to the image reading apparatus according to the ninth embodiment, even if the plurality of line sensors are arranged in a straight line and the imaged area has an area so that it partially overlaps in the main scanning direction. As in the case of the first embodiment, the influence of the jitter at the time of reading or the dust attached to the optical system is reduced, and the corrected misregistration amount Dt indicating the misregistration amount with good detection is calculated. can do. Further, according to the image reading apparatus according to the ninth embodiment, since it is possible to generate composite image data using the positional deviation amount Dt after the correction, the high-quality synthesis corresponding to the read object. Image data can be generated.

なお、上記実施の形態1から9で説明されたいずれかの構成及び処理を適宜組み合わせることで、画像読取装置及び画像処理装置を構成すること、及び、画像処理方法を実施することも可能である。   The image reading apparatus and the image processing apparatus can be configured and the image processing method can be implemented by appropriately combining any of the configurations and processes described in the first to ninth embodiments. .

本発明は、複写機、スキャナ、及びファクシミリ等の画像読取装置、画像読取装置に内蔵される画像処理装置、画像処理装置によって実行される画像処理方法、及び画像処理装置によって実行されるプログラムに適用することができる。また、本発明が適用されたプログラムは、複写機、スキャナ、及びファクシミリ等の画像読取装置と通信可能に有線又は無線で接続されたパーソナルコンピュータなどの情報処理装置に適用することもできる。   The present invention is applied to an image reading apparatus such as a copying machine, a scanner, and a facsimile, an image processing apparatus built in the image reading apparatus, an image processing method executed by the image processing apparatus, and a program executed by the image processing apparatus. can do. The program to which the present invention is applied can also be applied to an information processing apparatus such as a personal computer that is communicably connected to an image reading apparatus such as a copying machine, a scanner, and a facsimile.

1,1b 画像読取装置、 2 撮像部、 3 A/D変換部、 4 画像処理部(画像処理装置)、 5 演算装置、 20 センサ基板、 21O,21O,…,21O,…,21O 奇数番目に位置するラインセンサ、 21E,21E,…,21E,…,21E 偶数番目に位置するラインセンサ、 25 照明光源、 26R 赤色光用の光電変換素子、 26G 緑赤色光用の光電変換素子、 26B 青色光用の光電変換素子、 27O,28O 奇数番目に位置するラインセンサの光軸、 27E,28E 偶数番目に位置するラインセンサの光軸、 41 画像メモリ、 42 類似度算出部、 43 位置ずれ推定部、 46 結合処理部、 44,44b 信頼度判定部、 45,45b,45c,45d,45e 横相関位置補正部(相関位置補正部)、 51 プロセッサ、 52 RAM、 53 不揮発性メモリ、 54 大容量記憶装置、 60 原稿、 441 閾値設定部、 442 類似度比較部、 443,443b 極値検出部、 445,445b 信頼度設定部、 446 検出範囲分割部、 447 最小類似度検出部、 451 補正位置生成部、 452,615 結合位置決定部、 453 1ライン位置保持部、 454,454b 比較部、 611 変化量算出部、 612 補正変化量生成部、 613 変化量加算部、 614 閾値判定部、 621 重み係数設定部、 622 位置平均算出部、 623 比較部、 624 結合位置決定部、 631 変化量平均算出部、 632 変化量比較部、 633 変化量補間処理部、 634 補間変化量加算部、 A1,1,…,Ak,k,Ak,k+1,Ak+1,k+1,…,An,n オーバーラップ領域、 D46 画像データ、 DI デジタルデータ(画像データ)、 Dist 類似度データ、 Dy 撮像部の搬送方向、 dyb 位置ずれ量データ、 Dt 補正後位置ずれ量データ、 M46 画像データ、 MO 基準データ、 ME 比較データ、 pcnt 信頼度データ、 RP 読み出し位置データ、 SI 電気信号、 sr ラインセンサの右端の領域、 sl ラインセンサの左端の領域。 1,1b image reading apparatus, second imaging unit, 3 A / D conversion unit, 4 an image processing section (image processing apparatus), 5 calculation unit, 20 sensor substrate, 21O, 21O 1, ..., 21O k, ..., 21O n line sensor located odd, 21E, 21E 1, ..., 21E k, ..., the line sensor located 21E n even-numbered, 25 illumination source, a photoelectric conversion element for 26R red light, photoelectrically for 26G green red light Conversion element, 26B photoelectric conversion element for blue light, 27O, 28O optical axis of the odd-numbered line sensor, 27E, 28E optical axis of the even-numbered line sensor, 41 image memory, 42 similarity calculation unit, 43 misalignment estimation unit, 46 joint processing unit, 44, 44b reliability determination unit, 45, 45b, 45c, 45d, 45e lateral correlation position correction unit (correlation position correction unit) 51 processor, 52 RAM, 53 non-volatile memory, 54 mass storage device, 60 document, 441 threshold setting unit, 442 similarity comparison unit, 443, 443b extreme value detection unit, 445, 445b reliability setting unit, 446 detection range Dividing unit, 447 minimum similarity detection unit, 451 correction position generation unit, 452, 615 combination position determination unit, 453 1 line position holding unit, 454, 454b comparison unit, 611 change amount calculation unit, 612 correction change amount generation unit, 613 Change amount addition unit, 614 Threshold value determination unit, 621 Weight coefficient setting unit, 622 Position average calculation unit, 623 Comparison unit, 624 Combined position determination unit, 631 Change amount average calculation unit, 632 Change amount comparison unit, 633 Change amount interpolation processing unit, 634 interpolation variation adding unit, A 1,1, ..., A k , k, A k, k + 1, A k + 1, +1, ..., A n, n overlap region, D46 image data, DI digital data (image data), Dist similarity data, the transport direction of Dy imaging unit, dyb position shift amount data, Dt corrected position deviation amount data, M46 Image data, MO reference data, ME comparison data, pcnt reliability data, RP read position data, SI electrical signal, sr line sensor right end area, sl line sensor left end area.

Claims (9)

主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号を処理する画像処理装置において、
前記画像信号に基づく画像データを格納する画像メモリと、
前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出部と、
前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も高い類似度を持つ比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定部と、
前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定部と、
前記信頼度判定部から出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正部と、
前記相関位置補正部によって補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理部と
を備えることを特徴とする画像処理装置。
A plurality of line sensors arranged in the main scanning direction are generated by an imaging unit arranged so that end portions of reading ranges of adjacent line sensors of the plurality of line sensors overlap each other. In an image processing apparatus that processes an image signal,
An image memory for storing image data based on the image signal;
From the image data in the overlap area of the image data read out from the image memory, reference data at a reference position in the sub-scanning direction and comparison data in an area overlapping the overlap area of the reference data The process of obtaining and comparing the reference data and the comparison data is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, and the reference data and the plurality of positions in the sub-scanning direction are A similarity calculation unit that calculates similarity with comparison data and outputs similarity data indicating the similarity;
The position of the comparison data having the highest similarity among the comparison data at the plurality of positions in the sub-scanning direction is obtained from the similarity data, and the position having the highest similarity with the position in the sub-scanning direction of the reference data is obtained. A positional deviation estimation unit that calculates a positional deviation amount based on a difference from the position of the comparison data and outputs positional deviation amount data indicating the positional deviation amount;
A process of detecting an extreme value of the similarity data based on the value of the similarity data is performed, a reliability of the positional deviation amount in the overlap region is set based on the result of the process, and the reliability is indicated A reliability determination unit that outputs reliability data;
Based on the reliability data output from the reliability determination unit, the positional deviation amount data in the first region that is the overlap region is given a higher reliability than the reliability in the first region. A correlation position correction unit that corrects by positional deviation amount data in a second region that is another overlap region different from the first region;
Composite image data is generated by combining the image data read by the adjacent line sensors among the image data read from the image memory based on the positional deviation amount data corrected by the correlation position correction unit. An image processing apparatus comprising: a combination processing unit.
前記第2の領域は、前記第1の領域の直ぐ隣のオーバーラップ領域の少なくとも一方を含むことを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the second area includes at least one of an overlap area immediately adjacent to the first area. 前記第2の領域は、前記第1の領域の直ぐ隣のオーバーラップ領域の少なくとも一方と、前記第1の領域から2番目に隣のオーバーラップ領域の少なくとも一方と
を含むことを特徴とする請求項2に記載の画像処理装置。
The second region includes at least one of an overlap region immediately adjacent to the first region and at least one of an overlap region adjacent to the second region from the first region. Item 3. The image processing apparatus according to Item 2.
前記信頼度判定部は、
前記複数の副走査方向の位置での比較データの内の前記類似度データの値の極値を検出する処理を行う極値検出部と、
前記極値を検出する処理の結果に基づいて前記信頼度データを生成する信頼度設定部と、
を有することを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。
The reliability determination unit
An extreme value detection unit that performs a process of detecting an extreme value of the value of the similarity data in the comparison data at the plurality of positions in the sub-scanning direction;
A reliability setting unit that generates the reliability data based on a result of a process of detecting the extreme value;
The image processing apparatus according to claim 1, further comprising:
前記相関位置補正部は、
前記信頼度データに基づいて、互いに隣接するオーバーラップ領域間の前記位置ずれ量データを補間処理して、補正位置ずれ量データを生成する補正位置生成部と、
当該オーバーラップ領域における前記位置ずれ量データと補正位置ずれ量とから、結合のための補正後の位置ずれ量データを求める結合位置決定部と、
を有し、
当該オーバーラップ領域での前記位置ずれ量データを、隣接する他のオーバーラップ領域の内の前記高い信頼度を持つオーバーラップ領域での位置ずれ量データに基づき補正する
ことを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。
The correlation position correction unit
Based on the reliability data, a correction position generation unit that generates correction position deviation amount data by interpolating the position deviation amount data between adjacent overlap areas;
A combined position determination unit for obtaining corrected positional deviation amount data for coupling from the positional deviation amount data and the corrected positional deviation amount in the overlap region;
Have
2. The position shift amount data in the overlap region is corrected based on the position shift amount data in the overlap region having the high reliability among other adjacent overlap regions. 5. The image processing device according to any one of items 1 to 4.
前記相関位置補正部は、
前記位置ずれ量データと、1ライン前の位置ずれ量データとの変化量を算出する変化量算出部と、
前記信頼度データに基づき、当該オーバーラップ領域とその隣接する他のオーバーラップ領域における前記変化量を補間処理し、補正変化量を生成する補正変化量生成部と、
前記1ライン前の位置ずれ量データとの前記補正変化量とを加算処理し、結合のための補正後の位置ずれ量データを求める結合位置決定部と、
を有し、
前記当該オーバーラップ領域での前記位置ずれ量データを、隣接する他のオーバーラップ領域の内の前記高い信頼度を持つオーバーラップ領域での位置ずれ量データに基づき補正する
ことを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。
The correlation position correction unit
A change amount calculation unit that calculates a change amount between the positional deviation amount data and the positional deviation amount data of one line before;
Based on the reliability data, a correction change amount generation unit that interpolates the change amount in the overlap region and another overlap region adjacent thereto, and generates a correction change amount;
A combined position determination unit that adds the correction change amount to the positional deviation amount data of the previous line and obtains corrected positional deviation amount data for coupling;
Have
The position shift amount data in the overlap region is corrected based on the position shift amount data in the overlap region having the high reliability of the other adjacent overlap regions. The image processing apparatus according to any one of 1 to 4.
主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号を処理する画像処理方法であって、
前記画像信号に基づく画像データを画像メモリに格納する格納ステップと、
前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出ステップと、
前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も高い類似度を持つ比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定ステップと、
前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定ステップと、
前記信頼度判定ステップで出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正ステップと、
前記相関位置補正ステップで補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理ステップと
を有することを特徴とする画像処理方法。
A plurality of line sensors arranged in the main scanning direction are generated by an imaging unit arranged so that end portions of reading ranges of adjacent line sensors of the plurality of line sensors overlap each other. An image processing method for processing an image signal,
A storing step of storing image data based on the image signal in an image memory;
From the image data in the overlap area of the image data read out from the image memory, reference data at a reference position in the sub-scanning direction and comparison data in an area overlapping the overlap area of the reference data The process of obtaining and comparing the reference data and the comparison data is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, and the reference data and the plurality of positions in the sub-scanning direction are A similarity calculation step of calculating similarity with comparison data and outputting similarity data indicating the similarity;
The position of the comparison data having the highest similarity among the comparison data at the plurality of positions in the sub-scanning direction is obtained from the similarity data, and the position having the highest similarity with the position in the sub-scanning direction of the reference data is obtained. A positional deviation estimation step of calculating a positional deviation amount based on a difference from the position of the comparison data and outputting positional deviation amount data indicating the positional deviation amount;
A process of detecting an extreme value of the similarity data based on the value of the similarity data is performed, a reliability of the positional deviation amount in the overlap region is set based on the result of the process, and the reliability is indicated A reliability determination step for outputting reliability data;
Based on the reliability data output in the reliability determination step, the positional deviation amount data in the first area that is the overlap area is given a higher reliability than the reliability in the first area. A correlation position correction step for correcting by positional deviation amount data in the second area which is another overlap area different from the first area;
Composite image data is generated by combining the image data read by the adjacent line sensors among the image data read from the image memory based on the positional deviation amount data corrected in the correlation position correction step. An image processing method comprising: a combining processing step.
主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部と、
前記撮像部によって、生成された画像信号に基づく画像データを格納する画像メモリと、
前記画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出部と、
前記類似度データから前記複数の副走査方向の位置での比較データの内の最も高い類似度を持つ比較データの位置を求め、前記基準データの副走査方向の位置と前記最も類似度が高い比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定部と、
前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定部と、
前記信頼度判定部から出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正部と、
前記相関位置補正部によって補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理部と
を備えることを特徴とする画像読取装置。
A plurality of line sensors arranged in the main scanning direction, an image pickup unit arranged so as to have an overlap region in which ends of reading ranges of adjacent line sensors among the plurality of line sensors overlap each other;
An image memory for storing image data based on the image signal generated by the imaging unit;
From the image data in the overlap area of the image data read out from the image memory, reference data at a reference position in the sub-scanning direction and comparison data in an area overlapping the overlap area of the reference data The process of obtaining and comparing the reference data and the comparison data is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, and the reference data and the plurality of positions in the sub-scanning direction are A similarity calculation unit that calculates similarity with comparison data and outputs similarity data indicating the similarity;
A position of comparison data having the highest similarity among the comparison data at the plurality of positions in the sub-scanning direction is obtained from the similarity data, and the position having the highest similarity with the position in the sub-scanning direction of the reference data is obtained. A positional deviation estimation unit that calculates a positional deviation amount based on a difference from the data position and outputs positional deviation amount data indicating the positional deviation amount;
A process of detecting an extreme value of the similarity data based on the value of the similarity data is performed, a reliability of the positional deviation amount in the overlap region is set based on the result of the process, and the reliability is indicated A reliability determination unit that outputs reliability data;
Based on the reliability data output from the reliability determination unit, the positional deviation amount data in the first region that is the overlap region is given a higher reliability than the reliability in the first region. A correlation position correction unit that corrects by positional deviation amount data in a second region that is another overlap region different from the first region;
Composite image data is generated by combining the image data read by the adjacent line sensors among the image data read from the image memory based on the positional deviation amount data corrected by the correlation position correction unit. An image reading apparatus comprising: a combination processing unit.
主走査方向に並ぶ複数のラインセンサが、前記複数のラインセンサの内の隣り合うラインセンサの読取範囲の端部同士が互いに重なるオーバーラップ領域を有するように配置された撮像部によって、生成された画像信号に基づく画像データを格納する画像メモリから読み出された前記画像データの内の前記オーバーラップ領域の画像データから、副走査方向の基準位置の基準データと、前記基準データのオーバーラップ領域に重複する領域における比較データとを求め、前記基準データと前記比較データとを比較する処理を、前記比較データの位置を副走査方向に移動させた複数の位置について行い、前記基準データと前記複数の副走査方向の位置についての前記比較データとの類似度を算出し、前記類似度を示す類似度データを出力する類似度算出処理と、
前記類似度データから前記複数の副走査方向の位置での比較データの内の最も類似度が高い比較データの位置を求め、前記基準データの副走査方向の位置と前記最も類似度が高い比較データの位置との差分に基づき位置ずれ量を算出し、前記位置ずれ量を示す位置ずれ量データを出力する位置ずれ推定処理と、
前記類似度データの値に基づき前記類似度データの極値を検出する処理を行い、前記処理の結果に基づいて前記オーバーラップ領域における前記位置ずれ量の信頼度を設定し、前記信頼度を示す信頼度データを出力する信頼度判定処理と、
前記信頼度判定処理で出力された前記信頼度データに基づいて、前記オーバーラップ領域である第1の領域における前記位置ずれ量データを、前記第1の領域での信頼度よりも高い信頼度を持ち、前記第1の領域と異なる他のオーバーラップ領域である第2の領域における位置ずれ量データによって補正する相関位置補正処理と、
前記相関位置補正処理で補正された位置ずれ量データに基づいて前記画像メモリから読み出される画像データの内の、前記隣り合うラインセンサによって読み出された画像データを結合することによって合成画像データを生成する結合処理と
をコンピュータに実行させるプログラム。
A plurality of line sensors arranged in the main scanning direction are generated by an imaging unit arranged so that end portions of reading ranges of adjacent line sensors of the plurality of line sensors overlap each other. From the image data in the overlap area of the image data read from the image memory that stores image data based on the image signal, to the reference data of the reference position in the sub-scanning direction and the overlap area of the reference data The comparison data in the overlapping region is obtained, and the process of comparing the reference data and the comparison data is performed for a plurality of positions where the position of the comparison data is moved in the sub-scanning direction, A level of similarity between the position in the sub-scanning direction and the comparison data is calculated and similarity data indicating the degree of similarity is output And the degree calculation process,
The position of the comparison data having the highest similarity among the comparison data at the plurality of positions in the sub-scanning direction is obtained from the similarity data, and the position of the reference data in the sub-scanning direction and the comparison data having the highest similarity. A positional deviation estimation process for calculating a positional deviation amount based on the difference between the position and the position deviation amount data indicating the positional deviation amount;
A process of detecting an extreme value of the similarity data based on the value of the similarity data is performed, a reliability of the positional deviation amount in the overlap region is set based on the result of the process, and the reliability is indicated Reliability determination processing for outputting reliability data;
Based on the reliability data output in the reliability determination process, the positional deviation amount data in the first region that is the overlap region is given a higher reliability than the reliability in the first region. A correlation position correction process for correcting by positional deviation amount data in the second area which is another overlap area different from the first area;
Composite image data is generated by combining the image data read by the adjacent line sensors among the image data read from the image memory based on the positional deviation amount data corrected by the correlation position correction processing. A program that causes a computer to execute the joining process.
JP2015241698A 2015-12-11 2015-12-11 Image processing apparatus, image processing method, image reading apparatus, and program Active JP6422428B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015241698A JP6422428B2 (en) 2015-12-11 2015-12-11 Image processing apparatus, image processing method, image reading apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015241698A JP6422428B2 (en) 2015-12-11 2015-12-11 Image processing apparatus, image processing method, image reading apparatus, and program

Publications (3)

Publication Number Publication Date
JP2017108323A true JP2017108323A (en) 2017-06-15
JP2017108323A5 JP2017108323A5 (en) 2017-11-24
JP6422428B2 JP6422428B2 (en) 2018-11-14

Family

ID=59060163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015241698A Active JP6422428B2 (en) 2015-12-11 2015-12-11 Image processing apparatus, image processing method, image reading apparatus, and program

Country Status (1)

Country Link
JP (1) JP6422428B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180007232A1 (en) * 2015-04-09 2018-01-04 Mitsubishi Electric Corporation Image combination device, image reading device and image combination method
CN111464714A (en) * 2019-01-22 2020-07-28 柯尼卡美能达株式会社 Image inspection device, image forming system, image inspection method, and program
CN116156342A (en) * 2023-04-04 2023-05-23 合肥埃科光电科技股份有限公司 Multi-linear array image sensor splicing method, linear array image acquisition system, device and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109737A (en) * 2010-11-16 2012-06-07 Mitsubishi Electric Corp Image coupler, image coupling method, image input/output system. program and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109737A (en) * 2010-11-16 2012-06-07 Mitsubishi Electric Corp Image coupler, image coupling method, image input/output system. program and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180007232A1 (en) * 2015-04-09 2018-01-04 Mitsubishi Electric Corporation Image combination device, image reading device and image combination method
US9936098B2 (en) * 2015-04-09 2018-04-03 Mitsubishi Electric Corporation Image combination device, image reading device and image combination method
CN111464714A (en) * 2019-01-22 2020-07-28 柯尼卡美能达株式会社 Image inspection device, image forming system, image inspection method, and program
CN111464714B (en) * 2019-01-22 2022-04-19 柯尼卡美能达株式会社 Image inspection device, image forming system, image inspection method, and program
CN116156342A (en) * 2023-04-04 2023-05-23 合肥埃科光电科技股份有限公司 Multi-linear array image sensor splicing method, linear array image acquisition system, device and equipment

Also Published As

Publication number Publication date
JP6422428B2 (en) 2018-11-14

Similar Documents

Publication Publication Date Title
JP6076552B1 (en) Image reading apparatus and image reading method
US7965325B2 (en) Distortion-corrected image generation unit and distortion-corrected image generation method
US8320715B2 (en) Device and method for interpolating image, and image scanner
US20080062409A1 (en) Image Processing Device for Detecting Chromatic Difference of Magnification from Raw Data, Image Processing Program, and Electronic Camera
US8963910B2 (en) Pixel information management apparatus and image capture apparatus using the same
US9614996B2 (en) Image processing apparatus, method therefor, and image reading apparatus
JP6422428B2 (en) Image processing apparatus, image processing method, image reading apparatus, and program
JP6246379B2 (en) Image processing apparatus, image processing method, image reading apparatus, and program
JP5821563B2 (en) Image reading apparatus, image reading method, and MTF correction parameter determination method
JP2019161288A (en) Image reading apparatus, program, and image generation method
JP6058115B2 (en) Image processing apparatus, image processing method, image reading apparatus, and program
JP5570315B2 (en) Image processing method of image reading apparatus and image reading apparatus
JP2005079816A (en) Method and apparatus for creating image data
JP5590911B2 (en) Image reading apparatus and method
JP2011199681A (en) Image processing apparatus and image reader
JP2012524310A (en) Image area interpolation
JP5393445B2 (en) Image processing apparatus, image processing method, and computer program
JP2009224829A (en) Image reading apparatus
JP6552248B2 (en) IMAGE PROCESSING APPARATUS AND METHOD, IMAGING APPARATUS, AND PROGRAM
EP3537699B1 (en) Image reading apparatus and image data generation method
CN112313934B (en) Pixel interpolation device, pixel interpolation method, image processing device, and recording medium
JP2005168044A (en) Image scanner
JP3361077B2 (en) Solid-state imaging device
JP2018196030A (en) Image reading apparatus and image reading method
JP2000013588A (en) Image processor

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171006

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180710

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180905

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: 20180918

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181016

R150 Certificate of patent or registration of utility model

Ref document number: 6422428

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250