JPH10294855A - Synthesis method for two-dimension image data - Google Patents

Synthesis method for two-dimension image data

Info

Publication number
JPH10294855A
JPH10294855A JP9115032A JP11503297A JPH10294855A JP H10294855 A JPH10294855 A JP H10294855A JP 9115032 A JP9115032 A JP 9115032A JP 11503297 A JP11503297 A JP 11503297A JP H10294855 A JPH10294855 A JP H10294855A
Authority
JP
Japan
Prior art keywords
image data
dimensional image
editing
area
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9115032A
Other languages
Japanese (ja)
Inventor
Toyonori Yoshino
豊憲 吉野
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.)
SMK Corp
Original Assignee
SMK 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 SMK Corp filed Critical SMK Corp
Priority to JP9115032A priority Critical patent/JPH10294855A/en
Publication of JPH10294855A publication Critical patent/JPH10294855A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To synthesize pluralities of 2-dimension images read by a handy scanner without positional deviation automatically and without needing manual operation such as delicate dragging. SOLUTION: Pluralities of check areas CH nearly at an equal interval in the direction Y are set around a middle of a part where reference image data and edit side image data are in duplicate in the direction X, and pixel data of the reference side check areas CH and pixel data at the edit side around them are compared. The edit side area where a total sum of differences of the pixel values is minimum through the comparison is used for an approximated area CH', it is moved in the direction X based on indication values Δx, Δy and a line number in the direction Y up to the position of the check area from an upper end is corrected. As to 2nd and succeeding check areas, an edit side image as the result of movement is used for a new edit side image and it is moved in the direction X based on indication values Δx, Δy and a line number in the direction Y up to the position of the preceding and this check areas.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ハンディスキャナ
で読み取った複数の二次元画像データについて、その重
複部を編集して合成する二次元画像データの合成方法に
関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a method of synthesizing two-dimensional image data by editing an overlapping part of a plurality of two-dimensional image data read by a handy scanner and synthesizing the same.

【0002】[0002]

【従来の技術】ハンディタイプのイメージスキャナであ
るハンディスキャナ1は、図8に示すように、片手で操
作できる大きさのハウジング2内に照光ランプ3等の光
学系部品と撮像素子4を備え、照光ランプ3で被写体
(被読取画像)5を照らし、その反射光をスリットを通
してミラー7で反射させ、レンズ8を経てCCDライン
センサー等の撮像素子4に結像させ、結像画像の1ライ
ンをその撮像素子4で主走査し、電気信号に変換する。
2. Description of the Related Art As shown in FIG. 8, a handy scanner 1, which is a handy type image scanner, comprises an optical system component such as an illuminating lamp 3 and an image pickup device 4 in a housing 2 having a size operable with one hand. A subject (read image) 5 is illuminated by an illumination lamp 3, the reflected light is reflected by a mirror 7 through a slit, and is imaged on an imaging device 4 such as a CCD line sensor via a lens 8. The main scanning is performed by the image pickup device 4 and converted into an electric signal.

【0003】そして、被写体5上でY方向ローラ9を転
動させつつハンディスキャナ1をY方向に移動させる
と、Y方向ローラ9に連動するロータリーエンコーダ1
0によりY方向の移動距離が検出される。そして、X方
向の1ライン分の読取幅wの主操作とY方向への手動副
走査とによって、二次元画像データを得るものである。
[0003] When the handy scanner 1 is moved in the Y direction while rolling the Y direction roller 9 on the subject 5, the rotary encoder 1 linked with the Y direction roller 9 is moved.
By 0, the moving distance in the Y direction is detected. Then, two-dimensional image data is obtained by the main operation of the reading width w for one line in the X direction and the manual sub-scan in the Y direction.

【0004】このハンディスキャナ1には、更に、1ラ
イン分の読取幅w以上の被写体5を読み取るため、Y方
向ローラ9と直交するX方向ローラ11と、X方向ロー
ラ11に連動するロータリーエンコーダ12が備えられ
ている。すなわち、図9に示すように、読取幅w以上の
被写体5に対して、前述のように、ハンディスキャナ1
をY1´手動副走査した後、ハンディスキャナ1を傾斜
させて、Y方向ローラ9を被写体から浮かせながら、X
方向ローラ11を転動させてX方向に移動する。
The handy scanner 1 further includes an X-direction roller 11 orthogonal to the Y-direction roller 9 and a rotary encoder 12 interlocked with the X-direction roller 11 in order to read an object 5 having a reading width w of one line or more. Is provided. That is, as shown in FIG. 9, the handy scanner 1
After performing Y 1 ′ manual sub-scanning, the handy scanner 1 is tilted, and the X-axis
The direction roller 11 rolls and moves in the X direction.

【0005】このときのX方向の移動距離は、ロータリ
ーエンコーダとフォトインタラプタ12とによって検出
されるが、被写体5の読取りは行わない。X方向へ読取
幅wを越えない距離X1´移動させた後、再びY方向ロ
ーラ9を被写体5に接触させ、1ライン分の主走査とY
方向へ距離Y2´の手動副走査を行う。このY方向の副
操作の際に、X方向ローラ11は被写体から浮き上が
り、その回転は、停止している。
At this time, the moving distance in the X direction is detected by the rotary encoder and the photo interrupter 12, but the object 5 is not read. After moving in the X direction a distance X 1 ′ that does not exceed the reading width w, the Y-direction roller 9 is brought into contact with the subject 5 again, and one line of main scanning and Y scanning are performed.
Manual sub-scanning of the distance Y 2 ′ is performed in the direction. During the sub operation in the Y direction, the X direction roller 11 is lifted from the subject, and its rotation is stopped.

【0006】以下、同様にしてハンディスキャナ1をX
方向とY方向に移動させ(図9では、X2´とY3´)、
全ての被写体5を読み取るまで上記操作を繰り返すと、
X方向とY方向の移動距離及び方向(正と負)が検出さ
れているので、隣り合うX方向の一部が重複する複数の
2次元画像データを得ることができる。
In the same manner, the handy scanner 1 is
(In FIG. 9, X 2 ′ and Y 3 ′)
By repeating the above operation until all the subjects 5 are read,
Since the moving distances and directions (positive and negative) in the X direction and the Y direction are detected, a plurality of two-dimensional image data in which a part of the adjacent X direction overlaps can be obtained.

【0007】[0007]

【発明が解決しようとする課題】上述の従来のハンディ
スキャナ1によれば、1ラインの読取幅w以上の大きさ
の被写体5を一連の操作で読み取ることができるが、ハ
ンディスキャナ1を傾斜させる際に、ロータリーエンコ
ーダ10、12の駆動タイミングがずれたり、X、Y方
向ローラ9、11と被写体5の紙面とが滑り接触を起こ
す場合があり、被写体5上の移動距離と検出した移動距
離に誤差が生じることがある。
According to the above-described conventional handy scanner 1, a subject 5 having a size equal to or greater than the reading width w of one line can be read by a series of operations, but the handy scanner 1 is tilted. In this case, the drive timing of the rotary encoders 10 and 12 may be shifted, or the X and Y direction rollers 9 and 11 may make sliding contact with the paper surface of the subject 5. Errors may occur.

【0008】このように、移動距離に誤差が生じると、
図10のように、二次元画像データAとBの間、BとC
の間に位置ずれが生じ、正確に読み取った二次元画像デ
ータを連続させることができない。
As described above, when an error occurs in the moving distance,
As shown in FIG. 10, between two-dimensional image data A and B, B and C
, The two-dimensional image data read accurately cannot be continued.

【0009】そこで従来は、読み取った複数の二次元画
像データをディスプレーなどに表示させ、手動操作によ
り位置ずれの生じた二次元画像データを編集して、互い
に連続するようにしている。すなわち、一方の編集側二
次元画像データ(例えば、図中B)の重複部の中から2
カ所の画素13B、14Bを任意に抽出し、マウスのド
ラッグ操作などにより、基準側二次元画像データ(例え
ば、図中A)の対応する画素13A、14Aに一致する
ように編集側二次元画像データ全体を移動して、両者を
合成するものである。
Therefore, conventionally, a plurality of read two-dimensional image data are displayed on a display or the like, and the two-dimensional image data having a positional shift is edited by a manual operation so as to be continuous with each other. That is, two of the overlapping portions of one editing-side two-dimensional image data (for example, B in the drawing)
Pixels 13B and 14B at arbitrary positions are arbitrarily extracted, and the two-dimensional image data on the editing side is matched with the corresponding pixels 13A and 14A of the two-dimensional image data on the reference side (for example, A in the figure) by a mouse drag operation or the like. The whole is moved and both are combined.

【0010】しかしながら、わずかな位置ずれである場
合には、ディスプレーで確認しながら、ドラッグなどの
操作によって抽出した画素13B、14Bを微小移動さ
せことは、困難な作業であった。
However, in the case of a slight displacement, it is a difficult task to finely move the pixels 13B and 14B extracted by an operation such as dragging while confirming it on the display.

【0011】また、複数の二次元画像データのそれぞれ
の重複部で、前述の編集作業を行う必要があり、合成作
業が煩わしいものであった。
In addition, it is necessary to perform the above-mentioned editing work in each overlapping portion of a plurality of two-dimensional image data, and the compositing work is troublesome.

【0012】本発明は、手動操作による編集作業を行う
ことなく、複数の二次元画像データを位置ずれなく合成
する二次元画像データの合成方法を提供することを目的
とする。
An object of the present invention is to provide a method for synthesizing two-dimensional image data in which a plurality of two-dimensional image data are synthesized without positional deviation without performing an editing operation by manual operation.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するため
に請求項1の二次元画像データの合成方法は、ハンディ
スキャナを被写体上に配置し、X方向の1ラインを主走
査すると共にハンディスキャナをY方向に手動副走査
し、1ラインの読取幅とY方向の副走査幅からなる二次
元画像データを生成する画像読取操作と、少なくとも1
ラインの読取幅以内にハンディスキャナをX方向へ移動
させるX方向移動操作を繰り返して、隣り合うX方向の
一部が重複する少なくとも2以上の二次元画像データを
生成し、重複部の画像データを一致させるように、二次
元画像データを編集する二次元画像データの合成方法に
おいて、(イ)基準側二次元画像データと隣り合う編集
側二次元画像データとの重複部に、i行j列の画素デー
タからなるチェックエリアCHを、基準側二次元画像デ
ータを基準としてY方向に複数設定し、(ロ)基準側二
次元画像データから、第K番目のチェックエリアCH
(K)に含まれる画素データを基準画素データD(i,
j)として抽出し、(ハ)第K番目のチェックエリアC
H(K)を中心に、X、Y方向に等ピッチで所定数の比
較エリアCHx,yを設定し、(ニ)編集側二次元画像
データから、各比較エリアCHx,yに含まれる画素デ
ータを比較画素データDx,y(i,j)として抽出
し、(ホ)各比較画素データDx,y(i,j)と基準
画素データD(i,j)の対応する画素データの差の総
和から一致率αx,yを求め、(ヘ)一致率αx,yが
最小の一致率α(K)となる比較エリアCHΔx,Δy
を近似エリアCH(K)´として、近似エリアCH
(K)´をチェックエリアCH(K)へ移動させる編集
指示値Δx,Δyを求め、(ト)全てのチェックエリア
CHについて、(ロ)から(ヘ)の処理を繰り返して、
チェックエリアCH毎に編集指示値Δx,Δyを求め、
(チ)編集指示値Δx,Δyをもとに、近似エリアCH
´を含む編集側二次元画像データを対応するチェックエ
リアCHに一致させて編集し、基準側二次元画像データ
と編集側二次元画像データを合成することを特徴とす
る。
According to a first aspect of the present invention, there is provided a method of synthesizing two-dimensional image data, comprising: disposing a handy scanner on a subject; A manual scanning in the Y direction to generate two-dimensional image data consisting of a scanning width of one line and a sub-scanning width in the Y direction;
The X-direction movement operation of moving the handy scanner in the X direction within the line reading width is repeated to generate at least two or more two-dimensional image data in which a part of the adjacent X direction overlaps, and the image data of the overlapping portion is generated. In the two-dimensional image data synthesizing method for editing the two-dimensional image data so that the two-dimensional image data coincide with each other, (a) the overlapping part between the reference two-dimensional image data and the adjacent two-dimensional image data on the editing side includes the i-th row and the j-th column. A plurality of check areas CH composed of pixel data are set in the Y direction with reference to the reference-side two-dimensional image data.
The pixel data included in (K) is referred to as reference pixel data D (i,
j), and (c) the K-th check area C
A predetermined number of comparison areas CHx, y are set at equal pitches in the X and Y directions around H (K), and (d) pixel data included in each comparison area CHx, y from the editing-side two-dimensional image data Is extracted as the comparison pixel data Dx, y (i, j), and (e) the sum of the differences between the respective comparison pixel data Dx, y (i, j) and the corresponding pixel data of the reference pixel data D (i, j). From the comparison areas CHΔx, Δy in which the coincidence rate αx, y has the minimum coincidence rate α (K).
As the approximate area CH (K) ′, the approximate area CH
The editing instruction values Δx and Δy for moving (K) ′ to the check area CH (K) are obtained, and (g) the processing from (b) to (f) is repeated for all the check areas CH,
The editing instruction values Δx and Δy are obtained for each check area CH,
(H) Approximate area CH based on edit instruction values Δx and Δy
The edit-side two-dimensional image data including 'is matched with the corresponding check area CH and edited, and the reference-side two-dimensional image data and the edit-side two-dimensional image data are combined.

【0014】近似エリアCH(K)´で囲われた編集側
二次元画像データは、チェックエリアCH(K)で囲わ
れた基準側二次元画像データに、その周囲の中で最も近
似するものであり、近似エリアCH(K)´とチェック
エリアCH(K)の間で位置ずれが生じたものと推定で
きる。従って、重複部に設定した全てのチェックエリア
CH(K)について、チェックエリアCH(K)に対す
る近似エリアCH(K)´の相対位置を、編集指示値Δ
x,Δyとし、近似エリアCH(K)´を含む編集側二
次元画像データを、編集指示値Δx,Δyだけ移動し
て、チェックエリアCH(K)に一致させれば、基準側
と編集側の二次元画像データを自動的に位置ずれなく合
成することができる。
The editing-side two-dimensional image data enclosed by the approximation area CH (K) 'is the one that most closely resembles the reference-side two-dimensional image data enclosed by the check area CH (K). It can be estimated that a position shift has occurred between the approximate area CH (K) ′ and the check area CH (K). Accordingly, for all the check areas CH (K) set in the overlapping portion, the relative position of the approximate area CH (K) ′ with respect to the check area CH (K) is determined by the editing instruction value Δ
x, Δy, and moving the editing-side two-dimensional image data including the approximation area CH (K) ′ by the editing instruction values Δx, Δy to match the check area CH (K). Can be automatically synthesized without displacement.

【0015】また、請求項2の二次元画像データの合成
方法は、ハンディスキャナを被写体上に配置し、X方向
の1ラインを主走査すると共にハンディスキャナをY方
向に手動副走査して、1ラインの読取幅とY方向の副走
査幅からなる二次元画像データを生成する画像読取操作
と、少なくとも1ラインの読取幅以内にハンディスキャ
ナをX方向へ移動させるX方向移動操作を繰り返して、
隣り合うX方向の一部が重複する少なくとも2以上の二
次元画像データを生成し、重複部の画像データを一致さ
せるように、二次元画像データを編集する二次元画像デ
ータの合成方法において、(リ)基準側二次元画像デー
タと隣り合う編集側二次元画像データとの重複部に、i
行j列の画素データからなるチェックエリアCHを、基
準側二次元画像データを基準としてY方向に複数設定
し、(ヌ)基準側二次元画像データから、第K番目のチ
ェックエリアCH(K)に含まれる画素データを基準画
素データD(i,j)として抽出し、(ル)チェックエ
リアCH(K)を中心に、X、Y方向に等ピッチで所定
数の比較エリアCHx,yを設定し、(ヲ)編集側二次
元画像データから、各比較エリアCHx,yに含まれる
画素データを比較画素データDx,y(i,j)として
抽出し、(ワ)各比較画素データDx,y(i,j)と
基準画素データD(i,j)の対応する画素データの差
の総和から一致率αx,yを求め、(カ)一致率αx,
yが最小の一致率α(K)となる比較エリアCHΔx,
Δyを近似エリアCH(K)´として、近似エリアCH
(K)´をチェックエリアCH(K)へ移動させる編集
指示値Δx,Δyを求め、(ヨ)チェックエリアCH
(K)が重複部の上端から1番目のチェックエリアCH
(1)である場合には、編集指示値Δyに従って、編集
側二次元画像データの上端から近似エリアCH(1)´
までのライン数を補正してチェックエリアCH(1)と
近似エリアCH(1)´を同一ライン上に一致させると
ともに、編集指示値Δxに従って編集側二次元画像デー
タ全体をX方向に移動して編集し、(タ)2番目以降の
チェックエリアCH(K)である場合には、直前のチェ
ックエリアCH(K−1)で編集した二次元画像データ
を新たな編集側二次元画像データとみなして、チェック
エリアCH(K)毎に、一致率α(K)と編集指示値Δ
x,Δyを求め、(レ)編集指示値Δyに従って、直前
のチェックエリアCH(K−1)から近似エリアCH
(K)´までのライン数を補正するとともに、チェック
エリアCH(K)の一致率α(K)が、全てのチェック
エリアCH(K)の最小値αMIN(K)である場合に、
編集指示値Δxに従って、編集側二次元画像データ全体
をX方向に移動し、(ソ)処理を繰り返すことによっ
て、全てのチェックエリアCH(K)について編集側二
次元画像データを編集し、基準側二次元画像データと編
集側二次元画像データを合成することを特徴とする。
According to a second aspect of the present invention, there is provided a method of synthesizing two-dimensional image data, comprising: disposing a handy scanner on a subject, performing one main scan in the X direction, and manually sub-scanning the handy scanner in the Y direction. An image reading operation for generating two-dimensional image data including a line reading width and a sub-scanning width in the Y direction, and an X direction moving operation for moving the handy scanner in the X direction within at least one line reading width are repeated.
In a two-dimensional image data synthesizing method for generating at least two or more two-dimensional image data in which a part of adjacent X-directions overlap and editing the two-dimensional image data so as to match the image data of the overlapping part, I) In the overlapping portion between the reference-side two-dimensional image data and the adjacent editing-side two-dimensional image data, i
A plurality of check areas CH composed of pixel data in the row j column are set in the Y direction with reference to the reference-side two-dimensional image data, and the K-th check area CH (K) is determined from the (nu) reference-side two-dimensional image data. Is extracted as reference pixel data D (i, j), and a predetermined number of comparison areas CHx, y are set at equal pitches in the X and Y directions around the check area CH (K). Then, (画素) pixel data included in each comparison area CHx, y is extracted as comparison pixel data Dx, y (i, j) from the editing-side two-dimensional image data, and (v) each comparison pixel data Dx, y A matching rate αx, y is obtained from the sum of differences between (i, j) and corresponding pixel data of the reference pixel data D (i, j), and (f) a matching rate αx,
The comparison area CHΔx, where y is the minimum coincidence rate α (K),
Let Δy be the approximate area CH (K) ′ and the approximate area CH
(K) ′ are determined to be edit instruction values Δx and Δy for moving to the check area CH (K).
(K) is the first check area CH from the upper end of the overlapping portion
In the case of (1), the approximate area CH (1) ′ from the upper end of the editing-side two-dimensional image data according to the editing instruction value Δy.
The check area CH (1) and the approximate area CH (1) ′ are made to coincide on the same line, and the entire edit-side two-dimensional image data is moved in the X direction according to the edit instruction value Δx. If the edited check area CH (K-1) is the second and subsequent check areas CH (K-1), the two-dimensional image data edited in the immediately preceding check area CH (K-1) is regarded as new editing-side two-dimensional image data. Thus, for each check area CH (K), the matching rate α (K) and the editing instruction value Δ
x, Δy, and (v) the approximate area CH from the immediately preceding check area CH (K−1) according to the editing instruction value Δy.
When the number of lines up to (K) ′ is corrected and the coincidence rate α (K) of the check areas CH (K) is the minimum value α MIN (K) of all the check areas CH (K),
According to the edit instruction value Δx, the entire edit-side two-dimensional image data is moved in the X direction, and the (S) process is repeated to edit the edit-side two-dimensional image data for all the check areas CH (K), and The two-dimensional image data and the editing-side two-dimensional image data are combined.

【0016】近似エリアCH(K)´で囲われた編集側
二次元画像データは、チェックエリアCH(K)で囲わ
れた基準側二次元画像データに、その周囲の中で最も近
似するものであり、近似エリアCH(K)´とチェック
エリアCH(K)の間で位置ずれが生じたものと推定で
きる。
The editing-side two-dimensional image data enclosed by the approximation area CH (K) 'is the one that most closely resembles the reference-side two-dimensional image data enclosed by the check area CH (K). It can be estimated that a position shift has occurred between the approximate area CH (K) ′ and the check area CH (K).

【0017】チェックエリアCH(K)に対する近似エ
リアCH(K)´の相対位置を、編集指示値Δx,Δy
とし、近似エリアCH(K)´を編集指示値Δyだけ移
動して、移動分のライン数を補正するので、基準側と編
集側の二次元画像データのチェックエリアCH(K)間
のライン数を一致させることができる。
The relative position of the approximate area CH (K) 'with respect to the check area CH (K) is determined by editing instruction values Δx, Δy
Since the approximate area CH (K) ′ is moved by the editing instruction value Δy and the number of lines corresponding to the movement is corrected, the number of lines between the check area CH (K) of the two-dimensional image data on the reference side and the editing side is corrected. Can be matched.

【0018】チェックエリアCH(K)の一致率α
(K)が、全てのチェックエリアCH(K)の最小値で
ある場合には、最も近似エリアCH(K)´とチェック
エリアCH(K)の一致率が高いと推定できるので、そ
のときの編集指示値Δxに合わせて編集側二次元画像デ
ータ全体をX方向に移動することによって、チェックエ
リアCH(K)間のX方向の位置ずれをなくしながら、
最も近似した位置に調整することができる。
Check area CH (K) coincidence rate α
If (K) is the minimum value of all the check areas CH (K), it can be estimated that the matching rate between the approximate area CH (K) ′ and the check area CH (K) is high. By moving the entire editing-side two-dimensional image data in the X direction in accordance with the editing instruction value Δx, it is possible to eliminate the displacement in the X direction between the check areas CH (K),
It can be adjusted to the closest position.

【0019】2番目以降のチェックエリアCH(K)に
ついては、直前のチェックエリアCH(K−1)で編集
した二次元画像データを新たな編集側二次元画像データ
とみなすので、新たな編集側二次元画像データと基準側
二次元画像データとの位置ずれは、より少ないものとな
っている。従って、比較画素データDx,y(i,j)
と基準画素データD(i,j)の画素データの差は、小
さい値となり、一致率αx,yの計算が容易になる。
For the second and subsequent check areas CH (K), the two-dimensional image data edited in the immediately preceding check area CH (K-1) is regarded as new two-dimensional image data on the editing side. The displacement between the two-dimensional image data and the reference-side two-dimensional image data is smaller. Therefore, the comparison pixel data Dx, y (i, j)
The difference between the pixel data of the reference pixel data D (i, j) and the reference pixel data D (i, j) becomes a small value, and the calculation of the coincidence rate αx, y becomes easy.

【0020】又、請求項3の二次元画像データの合成方
法は、(ツ)重複部で重なる編集側二次元画像データを
編集する際に、編集側二次元画像データの方向に他の重
複部を介して連なる全ての二次元画像データを編集側二
次元画像データとともに編集し、(ネ)基準側二次元画
像データと編集側二次元画像データとを合成した後、編
集側二次元画像データを新たな基準側二次元画像データ
とし、他の重複部を介して連続する二次元画像データを
新たな編集側二次元画像データとして(ツ)の処理を繰
り返し、(ナ)2以上の重複部で3以上の二次元画像デ
ータが連続する全ての二次元画像データを合成すること
を特徴とする。
According to a third aspect of the present invention, there is provided a method for synthesizing two-dimensional image data, wherein (ii) when editing the two-dimensional image data on the editing side which overlaps at the overlapping part, the other overlapping part in the direction of the two-dimensional image data on the editing side. After editing all the two-dimensional image data connected with the editing-side two-dimensional image data together with the editing-side two-dimensional image data, and (ii) combining the reference-side two-dimensional image data and the editing-side two-dimensional image data, The process of (T) is repeated as new reference-side two-dimensional image data, and continuous two-dimensional image data via another overlapping portion is set as new editing-side two-dimensional image data. It is characterized by combining all two-dimensional image data in which three or more two-dimensional image data are continuous.

【0021】編集側二次元画像データを編集する際に、
編集側二次元画像データの方向に連なる全ての二次元画
像データを同時に編集するので、これらの間の相対位置
は、変化しない。従って、前記編集によって、他の重複
部を介して連続する二次元画像データ間の位置ずれが拡
大することはなく、一致率αx,yの計算が煩雑になら
ない。
When editing two-dimensional image data on the editing side,
Since all the two-dimensional image data connected in the direction of the editing-side two-dimensional image data are edited at the same time, the relative position between them does not change. Therefore, the editing does not increase the positional deviation between the continuous two-dimensional image data via another overlapping portion, and does not complicate the calculation of the coincidence rate αx, y.

【0022】又、請求項4の二次元画像データの合成方
法は、(ラ)重複部で重なる編集側二次元画像データを
編集する際に、編集側二次元画像データの方向に連なる
全ての二次元画像データを編集側二次元画像データとと
もに編集し、(ム)基準側二次元画像データと編集側二
次元画像データとを合成した後、基準側二次元画像デー
タを新たな編集側二次元画像データとし、基準側二次元
画像データの方向に他の重複部を介して連なる二次元画
像データを新たな基準側二次元画像データとして(ラ)
の処理を繰り返し、(ウ)2以上の重複部で3以上の二
次元画像データが連続する全ての二次元画像データを合
成することを特徴とする。
According to a fourth aspect of the present invention, there is provided a method for synthesizing two-dimensional image data. After editing the two-dimensional image data together with the two-dimensional image data on the editing side, and (m) combining the two-dimensional image data on the reference side and the two-dimensional image data on the editing side, the two-dimensional image data on the reference side is converted into a new two-dimensional image on the editing side. The two-dimensional image data connected to the reference-side two-dimensional image data in the direction of the reference-side two-dimensional image data via another overlapping portion is defined as new reference-side two-dimensional image data (a).
Is repeated, and (c) all two-dimensional image data in which three or more two-dimensional image data are continuous in two or more overlapping portions are synthesized.

【0023】基準側二次元画像データと編集側二次元画
像データを合成した後、基準側二次元画像データを新た
な編集側二次元画像データとし、基準側二次元画像デー
タに連なっていた未編集の二次元画像データを新たな基
準側二次元画像データとするので、複数の重複部での編
集作業を繰り返しても、編集側二次元画像データは、常
に未編集の基準側画像データと比較できる。従って、複
数の二次元画像データ間を位置ずれなく合成するととも
に、重複部の合成を被写体に近似した状態で、合成する
ことができる。
After combining the reference-side two-dimensional image data and the edit-side two-dimensional image data, the reference-side two-dimensional image data is used as new edit-side two-dimensional image data. Is used as new reference-side two-dimensional image data, so that the editing-side two-dimensional image data can always be compared with the unedited reference-side image data even if the editing operation in a plurality of overlapping portions is repeated. . Therefore, it is possible to combine a plurality of two-dimensional image data without displacement, and to combine the overlapping portions in a state similar to the subject.

【0024】[0024]

【発明の実施の形態】以下、図1乃至図6を参照して、
本発明の第1の実施の形態に係る二次元画像データの合
成方法を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIGS.
A method for synthesizing two-dimensional image data according to the first embodiment of the present invention will be described.

【0025】図1は、合成しようとする3種類の二次元
画像データA、B、Cを示すもので、図10に示す二次
元画像データを、合成処理する前に正規化したものであ
る。すなわち、それぞれ読み取った二次元画像データ
(図中破線で示す)のY方向の上下を最も短い二次元画
像データに合わせ、Y方向の長さをYにそろえたもので
ある。
FIG. 1 shows three types of two-dimensional image data A, B, and C to be combined. The two-dimensional image data shown in FIG. 10 is normalized before the combining process. That is, the upper and lower portions of the two-dimensional image data (indicated by broken lines in the drawing) in the Y direction are adjusted to the shortest two-dimensional image data, and the length in the Y direction is made equal to Y.

【0026】図1のように、二次元画像データA、B、
Cは、2カ所の重複部でX方向に連なるものであるが、
本実施の形態では、始めに、二次元画像データAを基準
側二次元画像データ、二次元画像データBを編集側二次
元画像データとして、両者の合成を行うものである。
As shown in FIG. 1, two-dimensional image data A, B,
C is continuous in the X direction at two overlapping portions,
In the present embodiment, first, two-dimensional image data A is used as reference-side two-dimensional image data, and two-dimensional image data B is used as editing-side two-dimensional image data.

【0027】基準側二次元画像データAと編集側二次元
画像データBは、重複部OABで重なり、この重複部OAB
に3カ所のチェックエリアCH1AB、CH2AB、CH3
ABを設定する。それぞれのチェックエリアCH(K)
は、L行M列の画素データD(i、j)を含み、その中
心が、重複部OABのX方向の中間で、Y方向にほぼ等間
隔に位置するように設定される。例えば、チェックエリ
アCH1ABは、図1のように、基準側二次元画像データ
Aを基準として、X方向に[X1+(w−X1)/2]の
位置で上端からY/3の位置に、チェックエリアCH2
ABは、X方向の同じ位置で上端から2Y/3の位置に、
チェックエリアCH3ABは、X方向の同じ位置で下端近
傍の位置に設定される。又、重複部OBCに設定される後
述するチェックエリアCH1BC、CH2BC、CH3BC
ついても同様に、[X1+X2+(w−X2)/2]のY
軸上であって、それぞれ上端からY/3、2Y/3、下
端近傍の位置に設定される。
The reference-side two-dimensional image data A and the editing-side two-dimensional image data B overlap at an overlapping portion O AB , and the overlapping portion O AB
3 check areas CH1 AB , CH2 AB , CH3
Set AB . Each check area CH (K)
Contains the pixel data D (i, j) of L rows and M columns, and is set so that the center thereof is located at a substantially equal interval in the Y direction in the middle of the overlapping portion O AB in the X direction. For example, as shown in FIG. 1, the check area CH1 AB is located at a position of [X 1 + (w−X 1 ) / 2] in the X direction with respect to the reference side two-dimensional image data A and is Y / 3 from the upper end. Check location CH2
AB is at the same position in the X direction and 2Y / 3 from the top,
The check area CH3 AB is set at a position near the lower end at the same position in the X direction. Similarly, check areas CH1 BC , CH2 BC , and CH3 BC which will be described later, which are set in the overlapped portion O BC, have Y in [X 1 + X 2 + (w−X 2 ) / 2].
They are set on the axis, at Y / 3, 2Y / 3 from the upper end, and at positions near the lower end, respectively.

【0028】図2に示すように、重複部OABのチェック
エリアCH1ABによって表される部分の基準側二次元画
像データAは、L行M列の画素データからなる基準画素
データDA(i,j)であり、同じ部分の編集側二次元
画像データBは、L行M列の画素データからなる比較画
素データDB(i,j)である。
As shown in FIG. 2, the reference-side two-dimensional image data A of the portion represented by the check area CH1 AB of the overlapping portion O AB has reference pixel data DA (i, j), and the editing-side two-dimensional image data B of the same portion is comparison pixel data DB (i, j) including pixel data of L rows and M columns.

【0029】基準側二次元画像データAと編集側二次元
画像データBの間に、位置ずれがなければ基準画素デー
タDA(i,j)と比較画素データDB(i,j)は、
同一である。対応する画素データの差の総和αを、
If there is no displacement between the reference-side two-dimensional image data A and the editing-side two-dimensional image data B, the reference pixel data DA (i, j) and the comparison pixel data DB (i, j) are:
Are identical. The sum α of the difference between the corresponding pixel data is

【0030】[0030]

【数1】 (Equation 1)

【0031】から求めれば、αは、基準画素データDA
(i,j)と比較画素データDB(i,j)のイメージ
の一致率を表す指標となり、完全に同一であれば、0と
なる。
Α is the reference pixel data DA
It becomes an index indicating the coincidence ratio between (i, j) and the image of the comparison pixel data DB (i, j), and becomes 0 if they are completely the same.

【0032】それぞれの画素データは、1dotの色彩
情報を表すもので、RGBの各3原色を8ビットデータ
で表した、24ビットデータからなっている。上記、数
1において、DAR(i,j)−DBR(i,j)は、R
成分の差分を、DAG(i,j)−DBG(i,j)は、
G成分の差分を、DAB(i,j)−DBB(i,j)の
差分をそれぞれ求めたものである。
Each pixel data represents one dot of color information, and is composed of 24-bit data in which each of the three primary colors of RGB is represented by 8-bit data. In the above equation 1, DA R (i, j) -DB R (i, j) is R
The difference between the components is represented by DA G (i, j) −DB G (i, j).
The difference between the G components is obtained by calculating the difference between DA B (i, j) and DB B (i, j).

【0033】二次元画像データA、B間に位置ずれが生
じている場合には、基準画素データDA(i,j)に相
当するイメージは、編集側二次元画像データB側では、
チェックエリアCH1ABの周囲に移動している。従っ
て、チェックエリアCH1ABを中心に、X方向とY方向
にx,yの微小距離だけ中心をずらせた多数の比較エリ
アCHx,y(i,j)を設定し、それぞれの比較エリ
アCHx,y(i,j)に含まれる比較画素データDB
x,y(i,j)と基準画素データDA(i,j)との
一致率αx,yを数1で求め、その値が最小値となる比
較画素データDBx,y(i,j)を、チェックエリア
CH1ABから移動したイメージの画素データと推定す
る。
If there is a displacement between the two-dimensional image data A and B, the image corresponding to the reference pixel data DA (i, j) is
It has moved around the check area CH1 AB . Therefore, a number of comparison areas CHx, y (i, j) are set with the center shifted from the check area CH1 AB by a small distance of x, y in the X and Y directions, and each of the comparison areas CHx, y is set. Comparison pixel data DB included in (i, j)
The coincidence rate αx, y between x, y (i, j) and the reference pixel data DA (i, j) is obtained by Expression 1, and the comparison pixel data DBx, y (i, j) having the minimum value is calculated. , The pixel data of the image moved from the check area CH1 AB .

【0034】数1で一致率αx,yを求めるため、比較
エリアCHx,y(i,j)は、チェックエリアCH1
ABと同じL*M個の画素データを含む大きさであり、本
実施の形態では、図3に示すx,yの交差位置を中心と
する121個の比較エリアCHx,y(i,j)が設定
されている。x,yの方向は、X、Y方向に一致し、そ
れぞれの交差位置間のピッチは、5画素(5dot)間
隔となっている。ハンディスキャナ1の解像度を8do
t/mmとすれば、チェックエリアCH1ABを中心に上
下左右に5dot*5の25dotの範囲で比較エリア
CHx,y(i,j)が設定されるので、3.125m
mの位置ずれまで検出することができる。
In order to obtain the coincidence rate αx, y by the equation 1, the comparison area CHx, y (i, j) is set in the check area CH1.
This is a size including the same L * M pixel data as AB , and in this embodiment, 121 comparison areas CHx, y (i, j) centered on the intersection of x and y shown in FIG. Is set. The directions of x and y correspond to the X and Y directions, and the pitch between the respective intersection positions is 5 pixels (5 dots). The resolution of Handy Scanner 1 is 8do
If t / mm is set, the comparison area CHx, y (i, j) is set in a range of 25 dots of 5 dots * 5 vertically and horizontally around the check area CH1 AB.
m can be detected.

【0035】図3に示すように、チェックエリアCH1
ABの中心から、順次離れる方向に121個の比較エリア
CHx,y(i,j)について、該比較エリアCHx,
y(i,j)に含まれる比較画素データDBx,y
(i,j)と基準画素データDA(i,j)との一致率
αx,yを数1で求める。
As shown in FIG. 3, the check area CH1
The 121 comparison areas CHx, y (i, j) are sequentially moved away from the center of AB for the comparison areas CHx, y (i, j).
comparison pixel data DBx, y included in y (i, j)
The coincidence rate αx, y between (i, j) and the reference pixel data DA (i, j) is obtained by Expression 1.

【0036】その結果、例えば、x=x1、y=y1に設
定した破線で示す比較エリアCHx1,y1(i,j)に
おいて、一致率αx1,y1が最小値になったとすると、
このときの比較エリアCHx1,y1(i,j)にチェッ
クエリアCH1ABのイメージが位置ずれしたものと推定
できる。従って、比較エリアCHx1,y1(i,j)を
近似エリアCH1´とし、近似エリアCH1´のチェッ
クエリアCH1ABに対する偏位量x1,y1を、両者を一
致させる編集指示値x1,y1とする。また、この最小値
となった一致率αx1,y1をチェックエリアCH1AB
一致率α(1)とする。
As a result, for example, in the comparison area CHx 1 , y 1 (i, j) indicated by the broken line where x = x 1 and y = y 1 , the coincidence rate αx 1 , y 1 becomes the minimum value. Then
At this time, it can be estimated that the image of the check area CH1 AB is displaced from the comparison area CHx 1 , y 1 (i, j). Accordingly, the comparison area CHx 1 , y 1 (i, j) is set as the approximate area CH 1 ′ , and the deviation amount x 1 , y 1 of the approximate area CH 1 ′ with respect to the check area CH 1 AB is set to the edit instruction value x 1 for matching the two. , Y 1 . Further, the match rate .alpha.x 1, y 1, which resulted in this minimum coincidence ratio check area CH1 AB alpha (1).

【0037】チェックエリアCH1ABについて編集指示
値x1,y1を求めらると、この編集指示値x1,y1をも
とに、編集側二次元画像データBを編集するが、併せて
編集側二次元画像データB側に連なる全ての二次元画像
データC、Dを編集する。以下、この編集作業につい
て、図4と図5で説明する。
When the editing instruction values x 1 and y 1 are obtained for the check area CH 1 AB , the editing-side two-dimensional image data B is edited based on the editing instruction values x 1 and y 1. All two-dimensional image data C and D connected to the editing-side two-dimensional image data B are edited. Hereinafter, this editing operation will be described with reference to FIGS.

【0038】Y方向の編集は、編集指示値y1をもとに
行う。y1が正の値である場合には、近似エリアCH1
´を−Y方向にy1移動させて、チェックエリアCH1
ABと同一のライン上とする。この為に、図4に示すよう
にy1移動量分のラインnを追加する。チェックエリア
CH1ABは、重複部OABの上端から1番目のチェックエ
リアCH(K)であるので、補充するラインnは、上端
から近似エリアCH1´までの編集側二次元画像データ
BにY方向に等ピッチで加える。補充したラインnの画
素データは、その上下いずれかの画素データと同一の画
素データとして、補充したラインnが特異なイメージを
形成しないようにしている。ラインnを補充した結果、
近似エリアCH1´から下方の編集側二次元画像データ
Bは、−Y方向(図中下方)にy1移動する。
[0038] in the Y direction editing is performed on the basis of the editing instruction value y 1. If y 1 is a positive value, the approximate area CH1
′ Is moved by y 1 in the −Y direction to check area CH 1
On the same line as AB . For this purpose, a line n corresponding to the movement amount of y 1 is added as shown in FIG. Since the check area CH1 AB is the first check area CH (K) from the upper end of the overlapping portion O AB , the line n to be supplemented is in the Y direction in the editing-side two-dimensional image data B from the upper end to the approximate area CH1 ′. At equal pitch. The pixel data of the supplemented line n is the same pixel data as one of the upper and lower pixel data so that the supplemented line n does not form a unique image. As a result of replenishing line n,
Approximate area editing side two-dimensional image data B of the lower from CH1' is y 1 moves in the -Y direction (in the drawing below).

【0039】X方向の編集は、編集指示値x1をもとに
行う。x1が正の値である場合には、近似エリアCH1
´を−X方向(図中左方)にx1移動させて、チェック
エリアCH1ABに一致させる。この為に、図4に示すよ
うに、編集側二次元画像データB全体を−X方向にx1
移動させる。
[0039] in the X direction editing is performed on the basis of the editing instruction value x 1. If x 1 is a positive value, approximate area CH1
'The by x 1 moves in the -X direction (left in the figure), to match the check area CH1 AB. For this reason, as shown in FIG. 4, the entire editing-side two-dimensional image data B is x 1 in the −X direction.
Move.

【0040】図5(a)に示すように、以上の編集指示
値x1,y1による編集操作は、同時に編集側二次元画像
データB側に連なる全ての二次元画像データC、Dにつ
いても行う。すなわち、上端から近似エリアCH1´と
等しい水平位置までの二次元画像データC、Dにライン
nを補充し、二次元画像データC、D全体を−X方向に
1移動させる。
As shown in FIG. 5A, the above-described editing operation using the editing instruction values x 1 and y 1 is performed simultaneously on all the two-dimensional image data C and D connected to the editing-side two-dimensional image data B. Do. That is, the two-dimensional image data C to a horizontal position equal to the approximate area CH1' from the upper end, supplemented with line n to D, the two-dimensional image data C, is x 1 move the entire D in the -X direction.

【0041】このように、他の二次元画像データC、D
を同時に編集することによって、編集側二次元画像デー
タBと未編集の二次元画像データC、D間の相対位置を
読み取った状態に保持するものである。
As described above, the other two-dimensional image data C and D
Are simultaneously edited so that the relative position between the editing-side two-dimensional image data B and the unedited two-dimensional image data C and D is maintained in a read state.

【0042】チェックエリアCH1ABについての編集作
業を行った結果、上端からチェックエリアCH1ABまで
の重複部が位置ずれなく合成される。
[0042] As a result of the editing work on the check area CH1 AB, overlapping parts from the top to check area CH1 AB is synthesized not shift position.

【0043】次いで、上述と同様の処理を、次のチェッ
クエリアCH2ABについて行う。同様に、チェックエリ
アCH2ABに含まれる基準側二次元画像データAの基準
画素データDA(i,j)と、その周囲に設定した比較
エリアCHx,y(i,j)に含まれる編集側二次元画
像データBの比較画素データDBx,y(i,j)との
一致率αx,yを数1で求める。
Next, the same processing as described above is performed for the next check area CH2 AB . Similarly, the reference pixel data DA (i, j) of the reference-side two-dimensional image data A included in the check area CH2 AB and the editing-side data included in the comparison area CHx, y (i, j) set therearound. The coincidence rate αx, y of the two-dimensional image data B with the comparison pixel data DBx, y (i, j) is obtained by Expression 1.

【0044】図6に示すように、破線で示す比較エリア
(近似エリアCH2´)において、一致率αx2,y2
最小値になったとすると、このときの近似エリアCH2
´のチェックエリアCH2ABに対する位置から、チェッ
クエリアCH2ABについての編集指示値−x2,−y2
求められる。又、このときの一致率αx2,y2をチェッ
クエリアCH2ABの一致率α(2)とし、後述するX方
向の編集の際に用いる。
As shown in FIG. 6, in the comparison area (approximate area CH2 ') indicated by the broken line, if the coincidence rates αx 2 and y 2 have become the minimum values, the approximate area CH2
The position relative to the check area CH2 AB of 'edit instruction value -x 2 for check area CH2 AB, -y 2 is obtained. Further, the match rate .alpha.x 2, y 2 at this time as the matching rate of the check area CH2 AB α (2), used in the editing X direction to be described later.

【0045】編集指示値−y2は、負の値であるので、
図5(b)の様に、近似エリアCH2´を+Y方向(図
中上方)にy2移動させて、チェックエリアCH2AB
同一ライン上とする。この為に、同図に示すようにy2
移動量分のラインn´を削除する。チェックエリアCH
ABは、重複部OABの上端から2番目のチェックエリア
CH(K)であるので、図4のように、削除するライン
n´は、直前のチェックエリアCH(K)すなわち、1
番目のチェックエリアCH(1)から近似エリアCH2
´までの編集側二次元画像データBから等ピッチで抽出
する。均一(等間隔)にラインn´を削除することによ
って、読み取ったイメージが大きく変化しないようにし
ている。図のように、このY方向のライン補正は、上述
のチェックエリアCH(1)における編集と同様に、編
集側二次元画像データB側に連なる他の二次元画像デー
タC、Dについても行われ、これにより近似エリアCH
2´のラインから下方にある編集側二次元画像データ
B、C、Dは、全て+Y方向にy2移動する。
The editing instruction value -y 2 is, because it is a negative value,
As shown in FIG. 5B, the approximate area CH2 ′ is moved by y 2 in the + Y direction (upward in the figure) to be on the same line as the check area CH2 AB . To this end, as shown in FIG y 2
The line n 'for the moving amount is deleted. Check area CH
Since 2 AB is the second check area CH (K) from the upper end of the overlapping portion O AB , as shown in FIG. 4, the line n ′ to be deleted corresponds to the immediately preceding check area CH (K), ie, 1
From the second check area CH (1) to the approximate area CH2
Are extracted at equal pitches from the editing-side two-dimensional image data B up to '. By deleting the line n 'evenly (at equal intervals), the read image does not significantly change. As shown in the figure, the line correction in the Y direction is also performed on the other two-dimensional image data C and D connected to the editing-side two-dimensional image data B, similarly to the above-described editing in the check area CH (1). , Thereby approximating area CH
All of the editing-side two-dimensional image data B, C, and D below the line 2 ' move y2 in the + Y direction.

【0046】近似エリアCH2´についてのX方向の編
集は、チェックエリアCH(2)の一致率α(2)を、
それまでに求めたチェックエリアCH(K)の一致率α
(K)の中の最小一致率αMIN(K)と比較して決定す
る。この場合、最小一致率αMIN(K)は、チェックエ
リアCH(1)の一致率α(1)であるから、一致率α
(1)と比較するが、一致率α(2)が一致率α(1)
より以上の値である場合には、X方向の編集は行わな
い。つまり、最小一致率αMIN(K)に係るチェックエ
リアCH(K)について行ったX方向の編集が、X方向
では、編集側二次元画像データB全体を最も基準側二次
元画像データAと一致する位置に移動させる編集であっ
たと推定するものである。
Editing of the approximate area CH2 'in the X direction is performed by setting the coincidence rate α (2) of the check area CH (2) to
Check area CH (K) coincidence rate α obtained so far
It is determined by comparing with the minimum matching rate α MIN (K) in (K). In this case, since the minimum matching rate α MIN (K) is the matching rate α (1) of the check area CH (1), the matching rate α
Compared with (1), the matching rate α (2) is equal to the matching rate α (1)
If the value is larger than the above value, the editing in the X direction is not performed. That is, the editing in the X direction performed on the check area CH (K) related to the minimum matching rate α MIN (K) is such that the entire editing-side two-dimensional image data B matches the reference-side two-dimensional image data A most in the X direction. It is presumed that the editing was made to move to the position to be edited.

【0047】チェックエリアCH2ABについての編集作
業を行った結果、更にチェックエリアCH1ABからチェ
ックエリアCH2ABまでの重複部OABが位置ずれなく合
成される。
The result of the editing operation for the check area CH2 AB, is synthesized without displacement further position overlapping portion O AB is from check area CH1 AB to check area CH2 AB.

【0048】同様の処理を、3番目のチェックエリアC
H3ABについて行い、チェックエリアCH3ABの一致率
α(3)と、編集指示値−x3,y3を求める。
The same processing is performed in the third check area C
This is performed for H3 AB , and the matching rate α (3) of the check area CH3 AB and the editing instruction values −x 3 , y 3 are obtained.

【0049】編集指示値y3は、正の値であるので、図
5(c)の様に、近似エリアCH3´を−Y方向にy3
移動させて、チェックエリアCH3ABと同一ライン上に
合わせる。この為に、チェックエリアCH1ABについて
行ったと同様に、直前のチェックエリアCH(K)すな
わち、2番目のチェックエリアCH(2)から近似エリ
アCH3´までの編集側二次元画像データB及びこれに
連なる二次元画像データC、Dに、Y方向に等ピッチで
3移動量分のラインnを補充する。ラインnを補充し
た結果、近似エリアCH3´から下方の編集側二次元画
像データBは、−Y方向にy3移動する。
Since the editing instruction value y 3 is a positive value, as shown in FIG. 5C, the approximate area CH 3 ′ is shifted in the −Y direction by y 3.
Move to match the check area CH3 AB on the same line. For this reason, as in the case of the check area CH1 AB , the immediately preceding check area CH (K), that is, the editing-side two-dimensional image data B from the second check area CH (2) to the approximate area CH3 ′ and the Lines n of the moving amount of y 3 are added to the continuous two-dimensional image data C and D at the same pitch in the Y direction. Results supplemented with line n, edit side two-dimensional image data B downward from the approximate area CH3' is y 3 moves in the -Y direction.

【0050】続いて、チェックエリアCH3ABの一致率
α(3)を、それまでに求めたチェックエリアCH
(K)の一致率α(K)の中の最小一致率αMIN(K)
と比較して、近似エリアCH3´についてのX方向の編
集を行うかどうかを決定する。
Subsequently, the coincidence rate α (3) of the check area CH3 AB is calculated using the check area CH determined so far.
Minimum matching rate α MIN (K) among matching rates α (K) of (K)
Then, it is determined whether or not the approximate area CH3 'is edited in the X direction.

【0051】最小一致率αMIN(K)は、α(1)であ
るから、一致率α(3)をα(1)と比較し、一致率α
(3)がα(1)未満であったとすると、一致率α
(3)を新たな最小一致率αMIN(K)として、X方向
の編集を行う。
Since the minimum matching rate α MIN (K) is α (1), the matching rate α (3) is compared with α (1), and the matching rate α
If (3) is smaller than α (1), the matching rate α
Editing in the X direction is performed with (3) as the new minimum matching rate α MIN (K).

【0052】X方向の編集指示値は、負の値−x3であ
るので、編集側二次元画像データBとこれに連なる二次
元画像データC、D全体をX方向にx3移動させる。
Since the editing instruction value in the X direction is a negative value −x 3 , the editing-side two-dimensional image data B and the entire two-dimensional image data C and D connected thereto are moved by x 3 in the X direction.

【0053】このようにして重複部OABの設定した全て
のチェックエリアCH(K)について編集側二次元画像
データBの編集を行うと、重複部OABの基準側二次元画
像データAとが位置ずれなく合成される。
When the editing-side two-dimensional image data B is edited for all the check areas CH (K) set in the overlapping portion O AB in this way, the reference two-dimensional image data A of the overlapping portion O AB is Combined without displacement.

【0054】この後、本実施の形態のように編集側二次
元画像データB側に、更に二次元画像データが連続して
いる場合には、編集側二次元画像データBを新たな基準
側二次元画像データBと、編集側二次元画像データBに
重複部OBCを介して連なる二次元画像データCを新たな
編集側二次元画像データCとして、既述の処理を繰り返
す。すなわち、重複部OBCに、Y方向の同一軸上であっ
てY方向にほぼ等間隔のチェックエリアCH1BC、CH
BC、CH3BCを設定し、それぞれのチェックエリアC
H(K)について、同様に多数の比較エリアCHx,y
(i,j)を設定し、一致率α(K)と、編集指示値Δ
x,Δyを求める。しかしながら、設定するチェックエ
リアCH(K)の数は、重複部毎に任意であり、また、
他の重複部で設定したチェックエリアCH(K)と同一
ライン上に設定する必要もない。
Thereafter, when two-dimensional image data is further continued on the editing-side two-dimensional image data B side as in the present embodiment, the editing-side two-dimensional image data B is replaced with a new reference side two-dimensional image data. The processing described above is repeated with the two-dimensional image data B and the two-dimensional image data C connected to the two-dimensional image data B on the editing side via the overlapping portion OBC as new two-dimensional image data C on the editing side. That is, the overlapping portion O BC, Y direction substantially equidistant check area CH1 BC A on the same axis in the Y direction, CH
2 BC and CH3 BC are set, and each check area C is set.
Similarly for H (K), a number of comparison areas CHx, y
(I, j) are set, and the matching rate α (K) and the edit instruction value Δ
x and Δy are obtained. However, the number of check areas CH (K) to be set is arbitrary for each overlapping portion.
It is not necessary to set on the same line as the check area CH (K) set in another overlapping portion.

【0055】上端から1番目のチェックエリアCH1BC
についての一致率がα(1)、編集指示値x4,−y4
あったとすると、図5(d)に示すように、編集指示値
−y4にもとづいて、上端から近似エリアCH1´まで
の編集側二次元画像データCとこれに連なる二次元画像
データDからラインn´を等ピッチで削除し、近似エリ
アCH1´より下方の画像データをY方向にy4移動さ
せる。又、編集指示値x4にもとづいて、編集側二次元
画像データCとこれに連なる二次元画像データD全体を
−X方向に移動させる。チェックエリアCH1BCの一致
率α(1)は、重複部OBCでの最小一致率αMIN(K)
として、その後に求められるチェックエリアCH(K)
の一致率α(K)と比較される。
The first check area CH1 BC from the upper end
Assuming that the coincidence rate is α (1) and the edit instruction values x 4 and −y 4 , as shown in FIG. 5D, based on the edit instruction value −y 4 , the approximate area CH1 ′ from the upper end is obtained. remove from the two-dimensional image data D contiguous edit side and the two-dimensional image data C to up line n'at an equal pitch, y 4 moves the image data of the downward Y-direction than the approximate area CH1'. Further, based on the editing instruction value x 4, to move the entire two-dimensional image data D contiguous thereto and editing side two-dimensional image data C in the -X direction. The coincidence rate α (1) of the check area CH1 BC is the minimum coincidence rate α MIN (K) at the overlapping portion O BC
Check area CH (K) required thereafter
Is compared with the matching rate α (K).

【0056】このようにして、複数の重複部で連なる全
ての二次元画像データについて、同様の編集を行い、互
いの重複部においてイメージの位置ずれのない二次元画
像データを得ることができる。
In this manner, the same editing is performed for all the two-dimensional image data connected in a plurality of overlapping portions, and two-dimensional image data in which there is no displacement of the image in the overlapping portions can be obtained.

【0057】尚、本実施の形態では、複数の二次元画像
データの中から左端の二次元画像データAを始めに基準
側二次元画像データとし、基準側二次元画像データを順
次右方にずらしながらその右側の編集側二次元画像デー
タを編集するものであった(編集側先行型右方向編集方
法という)が、必ずしもこの方法に限らず、例えば、右
端の二次元画像データDを始めに基準側二次元画像デー
タとして、基準側二次元画像データを順次左方にずらし
てその左側の編集側二次元画像データを編集するもの
(編集側先行型左方向編集方法という)であってもよ
い。
In the present embodiment, the left-most two-dimensional image data A is first used as reference two-dimensional image data among a plurality of two-dimensional image data, and the reference two-dimensional image data is sequentially shifted to the right. Although the editing-side two-dimensional image data on the right side is edited (referred to as an editing-side preceding right-direction editing method), the method is not necessarily limited to this method. As the side two-dimensional image data, the reference two-dimensional image data may be sequentially shifted leftward to edit the editing two-dimensional image data on the left side (referred to as an editing-side preceding type leftward editing method).

【0058】既述のように、多数の二次元画像データに
対して、これらの編集方法を用いると、始めに一端を基
準側二次元画像データ(例えば、A)としたときの他端
の二次元画像データ(例えばD)には、基準側二次元画
像データに連なる二次元画像データの数だけ編集が繰り
返され、読み取ったときの二次元画像データとの同一性
が損なわれる恐れがある。
As described above, when these editing methods are used for a large number of two-dimensional image data, first, one end is set to the reference-side two-dimensional image data (for example, A). Editing of the two-dimensional image data (for example, D) is repeated as many times as the number of two-dimensional image data connected to the reference two-dimensional image data, and the identity of the two-dimensional image data when read may be lost.

【0059】従って、中間の二次元画像データ(例え
ば、B)を、始めに編集を行う基準側二次元画像データ
とし、その左側に連続する二次元画像データAについて
は、上記編集側先行型左方向編集方法で編集を行い、右
側に連続する二次元画像データC、Dについては、上記
編集側先行型右方向編集方法で編集を行い(編集側先行
型両方向編集方法という)、全ての連続する二次元画像
データを合成してもよい。この編集側先行型両方向編集
方法によれば、両端の二次元画像データに繰り返される
編集回数を減じることができ、そのイメージの同一性を
保つことができる。
Therefore, the intermediate two-dimensional image data (for example, B) is used as the reference-side two-dimensional image data to be edited first, and the two-dimensional image data A continuous to the left side of the two-dimensional image data A is the left side of the editing-side preceding type. Editing is performed by the direction editing method, and the two-dimensional image data C and D that are continuous on the right side are edited by the editing-side preceding type right-direction editing method (referred to as editing-side preceding type two-way editing method), and all the continuous Two-dimensional image data may be combined. According to the editing-side preceding type bidirectional editing method, the number of times of editing of the two-dimensional image data at both ends can be reduced, and the identity of the images can be maintained.

【0060】また、これらのいずれの方法であっても、
複数の重複部での編集を繰り返した後に設定された基準
側二次元画像データは、既に多数の編集が行われたもの
であり、読み取った直後のイメージを正確に再現するも
のではない。従って、その基準側二次元画像データと位
置ずれなく一致させるように編集した編集側二次元画像
データには、更に、それまでの編集による誤差が加わる
こととなる。
In any of these methods,
The reference-side two-dimensional image data set after repeating editing in a plurality of overlapping portions has already been edited in a large number, and does not accurately reproduce the image immediately after reading. Therefore, the editing-side two-dimensional image data edited so as to match the reference-side two-dimensional image data without any positional deviation further includes an error due to the previous editing.

【0061】図7は、この問題を解決する本発明の異な
る実施の形態を示すもので、この実施の形態によれば、
複数の重複部での編集を繰り返しても、その後設定され
た編集側二次元画像データは、常に未編集の二次元画像
データからなる基準側二次元画像データを基準として編
集できるものである。
FIG. 7 shows a different embodiment of the present invention which solves this problem. According to this embodiment,
Even if editing in a plurality of overlapping portions is repeated, the editing-side two-dimensional image data set thereafter can always be edited with reference to the reference-side two-dimensional image data composed of unedited two-dimensional image data.

【0062】図のように、例えば、4つの二次元画像デ
ータを合成するものとすると、始めに、左端の二次元画
像データEを編集側二次元画像データと、その右隣に連
なる二次元画像データFを基準側二次元画像データとし
て、編集側二次元画像データを編集し、両者を位置ずれ
なく合成する。編集方法は、重複部にチェックエリアC
H(K)を設定する記述の編集方法と同一であり、例え
ば、上端から1番目のチェックエリアCH1EFについて
の編集指示値が−x5,y5であったとすると、図7
(a)に示すように、編集指示値y5にもとづいて、上
端から近似エリアCH1´までの編集側二次元画像デー
タEからラインnを等ピッチで加え、近似エリアCH1
´より下方の画像データを下方にy5移動させる。ま
た、編集側二次元画像データE全体を右方向にx5移動
させる。
As shown in the figure, if, for example, four two-dimensional image data are to be synthesized, first, the two-dimensional image data E on the left end is combined with the two-dimensional image data on the editing side and the two-dimensional image Using the data F as the reference-side two-dimensional image data, the editing-side two-dimensional image data is edited, and the two are combined without displacement. Editing method is to check area C
This is the same as the editing method of the description for setting H (K). For example, assuming that the editing instruction values for the first check area CH1 EF from the upper end are −x 5 and y 5 , FIG.
(A), the based on the editing instruction value y 5, added line n at an equal pitch from the editing side two-dimensional image data E to the approximate area CH1' from the upper end, the approximate area CH1
'Y 5 moves the image data of the lower downwardly from. Further, x 5 is moved to the right across editing side two-dimensional image data E.

【0063】重複部OEFに設定した全てのチェックエリ
アCH(K)について同様の編集を行い、図7(b)に
示すように、二次元画像データEとFを合成する。
The same editing is performed for all the check areas CH (K) set in the overlapping portion O EF , and the two-dimensional image data E and F are synthesized as shown in FIG. 7B.

【0064】続いて、基準側二次元画像データであった
二次元画像データFを編集側二次元画像データと、その
右隣に連なる二次元画像データGを新たな基準側二次元
画像データとして、編集側二次元画像データFの編集を
行う。編集側二次元画像データFの編集は、同時に編集
側二次元画像データF側に連なる全ての二次元画像デー
タについても行う。すなわち、同図(c)に示すよう
に、編集指示値がx6,−y6で、編集側二次元画像デー
タFを編集するとすれば、編集指示値−y6にもとづい
て、編集側二次元画像データEとFからラインn´を削
除し、編集側二次元画像データEとF全体を編集指示値
6にもとづき、左方に移動させる。
Subsequently, the two-dimensional image data F, which was the reference-side two-dimensional image data, is used as the editing-side two-dimensional image data, and the two-dimensional image data G adjacent to the right is used as the new reference-side two-dimensional image data. The editing-side two-dimensional image data F is edited. Editing of the editing-side two-dimensional image data F is also performed on all the two-dimensional image data connected to the editing-side two-dimensional image data F at the same time. That is, as shown in FIG. 9C, if the editing instruction value is x 6 , −y 6 and the editing-side two-dimensional image data F is to be edited, the editing instruction value −y 6 is used as the editing instruction value. remove the line n'from dimensional image data E and F, based on the entire F and editing side two-dimensional image data E to the edit instruction value x 6, it is moved to the left.

【0065】このようにして、二次元画像データFとG
を合成した後、同図(d)のように、合成した二次元画
像データGの右隣に連なる二次元画像データHを新たな
基準側二次元画像データとして、編集を繰り返す。
Thus, the two-dimensional image data F and G
After that, the editing is repeated with the two-dimensional image data H connected to the right of the synthesized two-dimensional image data G as new reference-side two-dimensional image data as shown in FIG.

【0066】この第2の実施の形態は、複数の二次元画
像データの中から左端の二次元画像データEを始めに編
集を行う編集側二次元画像データとし、編集側二次元画
像データを順次右方にずらしてその右側の基準側二次元
画像データに一致させるものであった(基準側先行型右
方向編集方法という)が、例えば、右端の二次元画像デ
ータDを始めに編集を行う編集側二次元画像データとし
て、編集側二次元画像データを順次左方にずらしてその
左側の基準側二次元画像データに一致させるもの(基準
側先行型左方向編集方法という)であってもよい。ま
た、上記編集側先行型編集方法と同様に、始めに中間に
ある二次元画像データを編集側二次元画像データとし
て、基準側先行型右方向編集方法と基準側先行型左方向
編集方法とを併用するものであってもよい。
In the second embodiment, the left-most two-dimensional image data E is used as editing-side two-dimensional image data to be edited first among a plurality of two-dimensional image data, and the editing-side two-dimensional image data is sequentially read. The right-sided two-dimensional image data is shifted to the right to match the reference-side two-dimensional image data on the right side (referred to as a reference-side preceding type rightward editing method). The side two-dimensional image data may be one in which the editing side two-dimensional image data is sequentially shifted to the left to match the reference side two-dimensional image data on the left side (referred to as a reference-side preceding type leftward editing method). Similarly to the above-mentioned editing-side preceding type editing method, first, the reference two-dimensional image data in the middle is used as the editing-side two-dimensional image data, and the reference-side preceding type rightward editing method and the reference-side preceding type leftward editing method are used. They may be used in combination.

【0067】以上の実施の形態では、編集前に、読み取
った複数の二次元画像データのY方向の長さを一致させ
る正規化処理を行ったが、必ずしもY方向の長さを一致
させて二次元画像データ間を合成する必要はない。
In the above embodiment, the normalization process for matching the lengths in the Y direction of a plurality of read two-dimensional image data was performed before editing. There is no need to combine the two-dimensional image data.

【0068】また、第1と第2の実施の形態は、同一の
合成方法で説明したが、第2の実施の形態においては、
位置ずれなく二次元画像データ間を合成できる方法であ
れば、他の方法による合成方法であってもよい。
Although the first and second embodiments have been described using the same synthesis method, in the second embodiment,
Other methods may be used as long as two-dimensional image data can be combined without positional displacement.

【0069】[0069]

【発明の効果】以上説明したように本発明によれば、複
数の二次元画像データのそれぞれの重複部を自動的に位
置ずれなく合成することができる。従って、煩わしい合
成作業がなくなり、微小な位置ずれについても、簡単に
修正できる。
As described above, according to the present invention, respective overlapping portions of a plurality of two-dimensional image data can be automatically synthesized without positional displacement. Therefore, a troublesome combining operation is eliminated, and even a minute displacement can be easily corrected.

【0070】また請求項2の発明によれば、先のチェッ
クエリアCH(K)で編集された編集側二次元画像デー
タを基準側二次元画像データと比較するので、位置ずれ
は、より少ないものとなっている。従って、比較画素デ
ータDBx,y(i,j)と基準画素データDA(i,
j)の画素データの差は、小さい値となり、一致率α
x,yの計算が容易になる。
According to the second aspect of the present invention, the editing-side two-dimensional image data edited in the previous check area CH (K) is compared with the reference-side two-dimensional image data, so that the positional deviation is smaller. It has become. Therefore, the comparison pixel data DBx, y (i, j) and the reference pixel data DA (i,
The difference between the pixel data of j) becomes a small value, and the coincidence rate α
Calculation of x and y becomes easy.

【0071】請求項3の発明によれば、編集側二次元画
像データと他の重複部を介して連続する二次元画像デー
タとを同時に編集するので、これらの二次元画像データ
間の位置ずれが編集によって拡大することはなく、一致
率αx,yの計算が複雑にならない。
According to the third aspect of the present invention, the editing-side two-dimensional image data and the continuous two-dimensional image data are simultaneously edited via another overlapping portion. There is no enlargement by editing, and the calculation of the coincidence rate αx, y does not become complicated.

【0072】又、請求項4の発明は、編集側二次元画像
データを、常に未編集の基準側画像データと比較できる
ので、重複部の合成を被写体に近似した状態で合成する
ことができる。
According to the fourth aspect of the present invention, the editing-side two-dimensional image data can always be compared with the unedited reference-side image data, so that the overlapping portion can be synthesized in a state similar to the subject.

【0073】[0073]

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

【図1】重複部で連続する二次元画像データA、B、C
を示す説明図である。
FIG. 1 shows continuous two-dimensional image data A, B, and C at an overlapping portion.
FIG.

【図2】重複部OABのチェックエリアCH1ABによって
表される部分の基準画素データDA(i,j)と、同じ
部分の比較画素データDB(i,j)を示す説明図であ
る。
[Figure 2] overlap O AB check area CH1 reference pixel data DA of a portion represented by AB (i, j) and an explanatory view showing a comparison pixel data DB (i, j) of the same portion.

【図3】チェックエリアCH1ABと設定した比較エリア
CHx,y(i,j)との関係を示す説明図である。
FIG. 3 is an explanatory diagram showing a relationship between a check area CH1 AB and a set comparison area CHx, y (i, j).

【図4】チェックエリアCH(K)についての編集側二
次元画像データBの編集作業を示す説明図である。
FIG. 4 is an explanatory diagram showing an editing operation of editing-side two-dimensional image data B for a check area CH (K).

【図5】編集側先行型右方向編集方法における(a)
は、チェックエリアCH1ABについての編集作業を、
(b)は、チェックエリアCH2ABについての編集作業
を、(c)は、チェックエリアCH3ABについての編集
作業を、(d)は、チェックエリアCH1BCについての
編集作業を、説明する説明図である。
FIG. 5 (a) in an editing-side preceding type rightward editing method
Edits the check area CH1 AB ,
(B) is an explanatory diagram for explaining an editing operation for the check area CH2 AB , (c) is an editing operation for the check area CH3 AB , and (d) is an explanatory diagram for explaining an editing operation for the check area CH1 BC . is there.

【図6】チェックエリアCH2ABと設定した比較エリア
CHx,y(i,j)との関係を示す説明図である。
FIG. 6 is an explanatory diagram showing a relationship between a check area CH2 AB and a set comparison area CHx, y (i, j).

【図7】基準側先行型右方向編集方法における(a)
は、チェックエリアCH1EFについての編集作業を、
(b)は、重複部OEFで合成した編集作業を、(c)
は、チェックエリアCH1FGについての編集作業を、
(d)は、重複部OFGで合成した編集作業を、説明する
説明図である。
FIG. 7 (a) in the reference-side preceding type rightward editing method
Edits the check area CH1 EF ,
(B) shows the editing work synthesized in the overlapping part O EF , (c)
Edits the check area CH1 FG ,
(D) is an explanatory view for explaining the editing work synthesized in the overlapping portion OFG .

【図8】ハンディスキャナのカバーを外した平面図であ
る。
FIG. 8 is a plan view of the handy scanner with a cover removed.

【図9】ハンディスキャナで、その読み取り幅wより広
い被写体を読み取る方法を示す平面図である。
FIG. 9 is a plan view showing a method of reading a subject wider than a reading width w by a handy scanner.

【図10】読み取った複数の二次元画像データが連続し
た状態を示す説明図である。
FIG. 10 is an explanatory diagram showing a state in which a plurality of read two-dimensional image data are continuous.

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

1 ハンディスキャナ 5 被写体 CH チェックエリア CH(K) K番目のチェックエリア D(i,j) 基準画素データ CHx,y 比較エリア Dx,y(i,j) 比較画素データ αx,y 一致率 CH(K)´ 近似エリア Δx,Δy 編集指示値 αMIN(K) 最小一致率値1 Handy Scanner 5 Subject CH Check Area CH (K) Kth Check Area D (i, j) Reference Pixel Data CHx, y Comparison Area Dx, y (i, j) Comparison Pixel Data αx, y Matching Rate CH (K ) 'Approximate area Δx, Δy Edit instruction value α MIN (K) Minimum match rate value

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ハンディスキャナ(1)を被写体(5)
上に配置し、 X方向の1ラインを主走査すると共にハンディスキャナ
(1)をY方向に手動副走査し、1ラインの読取幅とY
方向の副走査幅からなる二次元画像データを生成する画
像読取操作と、 少なくとも1ラインの読取幅以内にハンディスキャナ
(1)をX方向へ移動させるX方向移動操作を繰り返し
て、 隣り合うX方向の一部が重複する少なくとも2以上の二
次元画像データを生成し、 重複部の画像データを一致させるように、二次元画像デ
ータを編集する二次元画像データの合成方法において、 (イ)基準側二次元画像データと隣り合う編集側二次元
画像データとの重複部に、i行j列の画素データからな
るチェックエリアCHを、基準側二次元画像データを基
準としてY方向に複数設定し、 (ロ)基準側二次元画像データから、第K番目のチェッ
クエリアCH(K)に含まれる画素データを基準画素デ
ータD(i,j)として抽出し、 (ハ)第K番目のチェックエリアCH(K)を中心に、
X、Y方向に等ピッチで所定数の比較エリアCHx,y
を設定し、 (ニ)編集側二次元画像データから、各比較エリアCH
x,yに含まれる画素データを比較画素データDx,y
(i,j)として抽出し、 (ホ)各比較画素データDx,y(i,j)と基準画素
データD(i,j)の対応する画素データの差の総和か
ら一致率αx,yを求め、 (ヘ)一致率αx,yが最小の一致率α(K)となる比
較エリアCHΔx,Δyを近似エリアCH(K)´とし
て、近似エリアCH(K)´をチェックエリアCH
(K)へ移動させる編集指示値Δx,Δyを求め、 (ト)全てのチェックエリアCHについて、(ロ)から
(ヘ)の処理を繰り返して、チェックエリアCH毎に編
集指示値Δx,Δyを求め、 (チ)編集指示値Δx,Δyをもとに、近似エリアCH
´を含む編集側二次元画像データを対応するチェックエ
リアCHに一致させて編集し、基準側二次元画像データ
と編集側二次元画像データを合成することを特徴とする
二次元画像データの合成方法。
1. A handy scanner (1) is connected to a subject (5).
The main scanning of one line in the X direction is performed, and the handy scanner (1) is manually sub-scanned in the Y direction.
An image reading operation for generating two-dimensional image data having a sub-scanning width in the X-direction and an X-direction moving operation for moving the handy scanner (1) in the X-direction within at least the reading width of one line are repeated in adjacent X-directions. (B) generating at least two or more two-dimensional image data in which a part of the two-dimensional image data partially overlaps and editing the two-dimensional image data so that the image data of the overlapping part is matched; A plurality of check areas CH composed of pixel data in the i-th row and j-th column are set in the Y direction with reference to the reference-side two-dimensional image data at the overlapping portion of the two-dimensional image data and the adjacent editing-side two-dimensional image data, B) extracting pixel data included in the K-th check area CH (K) as reference pixel data D (i, j) from the reference-side two-dimensional image data; In the center of the check area CH (K),
A predetermined number of comparison areas CHx, y at equal pitches in the X and Y directions
(D) From the editing side two-dimensional image data, each comparison area CH
The pixel data included in x, y is compared with comparison pixel data Dx, y
(E) The coincidence rate αx, y is calculated from the sum of the differences between the corresponding pixel data of the comparative pixel data Dx, y (i, j) and the corresponding pixel data D (i, j). (F) The comparison areas CHΔx, Δy in which the coincidence rate αx, y has the minimum coincidence rate α (K) are set as the approximate area CH (K) ′, and the approximate area CH (K) ′ is set as the check area CH.
The editing instruction values Δx and Δy to be moved to (K) are obtained. (G) The processing from (B) to (F) is repeated for all the check areas CH to obtain the editing instruction values Δx and Δy for each check area CH. (H) Approximate area CH based on edit instruction values Δx, Δy
', The edit-side two-dimensional image data including' is matched with the corresponding check area CH and edited, and the reference-side two-dimensional image data and the edit-side two-dimensional image data are synthesized. .
【請求項2】 ハンディスキャナ(1)を被写体(5)
上に配置し、 X方向の1ラインを主走査すると共にハンディスキャナ
(1)をY方向に手動副走査して、1ラインの読取幅と
Y方向の副走査幅からなる二次元画像データを生成する
画像読取操作と、 少なくとも1ラインの読取幅以内にハンディスキャナ
(1)をX方向へ移動させるX方向移動操作を繰り返し
て、 隣り合うX方向の一部が重複する少なくとも2以上の二
次元画像データを生成し、 重複部の画像データを一致させるように、二次元画像デ
ータを編集する二次元画像データの合成方法において、 (リ)基準側二次元画像データと隣り合う編集側二次元
画像データとの重複部に、i行j列の画素データからな
るチェックエリアCHを、基準側二次元画像データを基
準としてY方向に複数設定し、 (ヌ)基準側二次元画像データから、第K番目のチェッ
クエリアCH(K)に含まれる画素データを基準画素デ
ータD(i,j)として抽出し、 (ル)チェックエリアCH(K)を中心に、X、Y方向
に等ピッチで所定数の比較エリアCHx,yを設定し、 (ヲ)編集側二次元画像データから、各比較エリアCH
x,yに含まれる画素データを比較画素データDx,y
(i,j)として抽出し、 (ワ)各比較画素データDx,y(i,j)と基準画素
データD(i,j)の対応する画素データの差の総和か
ら一致率αx,yを求め、 (カ)一致率αx,yが最小の一致率α(K)となる比
較エリアCHΔx,Δyを近似エリアCH(K)´とし
て、近似エリアCH(K)´をチェックエリアCH
(K)へ移動させる編集指示値Δx,Δyを求め、 (ヨ)チェックエリアCH(K)が重複部の上端から1
番目のチェックエリアCH(1)である場合には、編集
指示値Δyに従って、編集側二次元画像データの上端か
ら近似エリアCH(1)´までのライン数を補正してチ
ェックエリアCH(1)と近似エリアCH(1)´を同
一ライン上に一致させるとともに、編集指示値Δxに従
って編集側二次元画像データ全体をX方向に移動して編
集し、 (タ)2番目以降のチェックエリアCH(K)である場
合には、直前のチェックエリアCH(K−1)で編集し
た二次元画像データを新たな編集側二次元画像データと
みなして、チェックエリアCH(K)毎に、一致率α
(K)と編集指示値Δx,Δyを求め、 (レ)編集指示値Δyに従って、直前のチェックエリア
CH(K−1)から近似エリアCH(K)´までのライ
ン数を補正するとともに、チェックエリアCH(K)の
一致率α(K)が、全てのチェックエリアCH(K)の
最小値αMIN(K)である場合に、編集指示値Δxに従
って、編集側二次元画像データ全体をX方向に移動し、 (ソ)処理を繰り返すことによって、全てのチェックエ
リアCH(K)について編集側二次元画像データを編集
し、基準側二次元画像データと編集側二次元画像データ
を合成することを特徴とする二次元画像データの合成方
法。
2. A handy scanner (1) is connected to a subject (5).
2D image data consisting of a scanning width of one line and a sub-scanning width in the Y direction is generated by main scanning of one line in the X direction and manual sub-scanning of the handy scanner (1) in the Y direction. An image reading operation to be performed and an X direction moving operation for moving the handy scanner (1) in the X direction within a reading width of at least one line are repeated, and at least two or more two-dimensional images in which a part of adjacent X directions overlap. In the method of synthesizing two-dimensional image data, which generates two-dimensional image data so as to generate the data and match the image data of the overlapping portion, (i) editing two-dimensional image data adjacent to the reference two-dimensional image data; A plurality of check areas CH composed of pixel data in the i-th row and the j-th column are set in the Y direction with reference to the reference-side two-dimensional image data. , The pixel data included in the K-th check area CH (K) is extracted as reference pixel data D (i, j), and (x) the pitch is equal in the X and Y directions around the check area CH (K). Is used to set a predetermined number of comparison areas CHx, y. (ヲ) From the two-dimensional image data on the editing side, each comparison area CH
The pixel data included in x, y is compared with comparison pixel data Dx, y
(I) The coincidence rate αx, y is calculated from the sum of the differences between the corresponding pixel data of the comparative pixel data Dx, y (i, j) and the corresponding pixel data D (i, j). (F) The comparison areas CHΔx, Δy in which the coincidence rate αx, y has the minimum coincidence rate α (K) are set as the approximate area CH (K) ′, and the approximate area CH (K) ′ is set as the check area CH.
The edit instruction values Δx and Δy to be moved to (K) are obtained, and (Y) the check area CH (K) is 1 from the upper end of the overlapping portion.
In the case of the check area CH (1), the number of lines from the upper end of the two-dimensional image data on the editing side to the approximate area CH (1) ′ is corrected according to the editing instruction value Δy to check area CH (1). And the approximate area CH (1) ′ are made coincident on the same line, and the entire edit-side two-dimensional image data is moved in the X direction according to the edit instruction value Δx for editing. K), the two-dimensional image data edited in the immediately preceding check area CH (K-1) is regarded as new two-dimensional image data on the editing side, and the coincidence rate α is determined for each check area CH (K).
(K) and edit instruction values Δx, Δy are obtained. (F) According to the edit instruction value Δy, the number of lines from the immediately preceding check area CH (K-1) to the approximate area CH (K) ′ is corrected and checked. When the coincidence rate α (K) of the area CH (K) is the minimum value α MIN (K) of all the check areas CH (K), the entire editing-side two-dimensional image data is converted to X according to the editing instruction value Δx. Moving in the direction, and repeating (S) processing to edit the editing-side two-dimensional image data for all the check areas CH (K), and combine the reference-side two-dimensional image data and the editing-side two-dimensional image data. A two-dimensional image data combining method.
【請求項3】 (ツ)重複部で重なる編集側二次元画像
データを編集する際に、編集側二次元画像データの方向
に他の重複部を介して連なる全ての二次元画像データを
編集側二次元画像データとともに編集し、 (ネ)基準側二次元画像データと編集側二次元画像デー
タとを合成した後、編集側二次元画像データを新たな基
準側二次元画像データとし、他の重複部を介して連続す
る二次元画像データを新たな編集側二次元画像データと
して(ツ)の処理を繰り返し、 (ナ)2以上の重複部で3以上の二次元画像データが連
続する全ての二次元画像データを合成することを特徴と
する請求項1又は2のいずれか1項に記載の二次元画像
データの合成方法。
(3) When editing the editing-side two-dimensional image data overlapping at the overlapping portion, the editing-side two-dimensional image data connected to the editing-side two-dimensional image data via another overlapping portion in the direction of the editing-side two-dimensional image data. After editing together with the two-dimensional image data, (d) combining the reference two-dimensional image data and the two-dimensional image data on the editing side, the two-dimensional image data on the editing side is made new two-dimensional image data on the reference side. (2) is repeated by using the continuous two-dimensional image data as new two-dimensional image data on the editing side through the section, and (n) all the two-dimensional image data in which three or more two-dimensional image data are continuous in two or more overlapping parts. The method for synthesizing two-dimensional image data according to claim 1, wherein the two-dimensional image data is synthesized.
【請求項4】 (ラ)重複部で重なる編集側二次元画像
データを編集する際に、編集側二次元画像データの方向
に連なる全ての二次元画像データを編集側二次元画像デ
ータとともに編集し、 (ム)基準側二次元画像データと編集側二次元画像デー
タとを合成した後、基準側二次元画像データを新たな編
集側二次元画像データとし、基準側二次元画像データの
方向に他の重複部を介して連なる二次元画像データを新
たな基準側二次元画像データとして(ラ)の処理を繰り
返し、 (ウ)2以上の重複部で3以上の二次元画像データが連
続する全ての二次元画像データを合成することを特徴と
する請求項1又は2のいずれか1項に記載の二次元画像
データの合成方法。
(4) When editing the editing-side two-dimensional image data overlapping in the overlapping portion, all the two-dimensional image data connected in the direction of the editing-side two-dimensional image data are edited together with the editing-side two-dimensional image data. (M) After combining the reference-side two-dimensional image data and the edit-side two-dimensional image data, the reference-side two-dimensional image data is used as new edit-side two-dimensional image data, and the other two-dimensional image data is moved in the direction of the reference-side two-dimensional image data. The process of (a) is repeated using the two-dimensional image data connected via the overlapping portion as new reference-side two-dimensional image data, and (c) all of the three or more continuous two-dimensional image data at the two or more overlapping portions The method for synthesizing two-dimensional image data according to claim 1, wherein the two-dimensional image data is synthesized.
JP9115032A 1997-04-18 1997-04-18 Synthesis method for two-dimension image data Pending JPH10294855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9115032A JPH10294855A (en) 1997-04-18 1997-04-18 Synthesis method for two-dimension image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9115032A JPH10294855A (en) 1997-04-18 1997-04-18 Synthesis method for two-dimension image data

Publications (1)

Publication Number Publication Date
JPH10294855A true JPH10294855A (en) 1998-11-04

Family

ID=14652531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9115032A Pending JPH10294855A (en) 1997-04-18 1997-04-18 Synthesis method for two-dimension image data

Country Status (1)

Country Link
JP (1) JPH10294855A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7477783B2 (en) 2003-04-18 2009-01-13 Mitsuo Nakayama Image processing terminal apparatus, system and method
US8285009B2 (en) 2004-02-12 2012-10-09 Nec Infrontia Corporation Fingerprint input apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7477783B2 (en) 2003-04-18 2009-01-13 Mitsuo Nakayama Image processing terminal apparatus, system and method
US8285009B2 (en) 2004-02-12 2012-10-09 Nec Infrontia Corporation Fingerprint input apparatus

Similar Documents

Publication Publication Date Title
US5515181A (en) Image reading apparatus providing high quality images through synthesis of segmented image data
KR101141345B1 (en) Three-dimensional shape measuring device, three-dimensional shape measuring method, three-dimensional shape measuring program, and recording medium
EP1234278B1 (en) System and method for rectified mosaicing of images recorded by a moving camera
JP4779041B2 (en) Image photographing system, image photographing method, and image photographing program
US20070279713A1 (en) Contact image sensor for generating multi-resolutions
US4884224A (en) Method for generating image contour data and apparatus therefor
JP3071788B2 (en) System and method for measuring image sensor chip shift
JPH10294855A (en) Synthesis method for two-dimension image data
US6381043B1 (en) Device used in image scanner for quickly and precisely determining scan start point and improving scanning quality
US5280370A (en) Apparatus and method for scanning by means of a rotatable detector array
JP2003143421A (en) Image processing device and method therefor
JPH1115951A (en) Deviation detector and image synthesizer
JP3024660B2 (en) Image reading device
JPH08181053A (en) Position detecting method
JP2572622B2 (en) Device for creating original sheets for scanners
JP3326444B2 (en) Positioning method and pattern joining accuracy measuring method
US20020159654A1 (en) Method for processing an image of a concrete construction
JPS62173472A (en) Generating method for illustration picture-like image
JP2006121329A (en) Device, method, and program for image composition, and recording medium
JP3386395B2 (en) Digital photo processing equipment
JPH08279034A (en) Image synthesizing process system and scanner
JPH04253471A (en) Method and device for processing picture
JPH10290333A (en) Image reader
JP2002374392A (en) Device and method for measuring image position deviation and storage medium with stored program based on the same method
JPH0851527A (en) Image reader