JPH08181903A - Image pickup device - Google Patents

Image pickup device

Info

Publication number
JPH08181903A
JPH08181903A JP6321887A JP32188794A JPH08181903A JP H08181903 A JPH08181903 A JP H08181903A JP 6321887 A JP6321887 A JP 6321887A JP 32188794 A JP32188794 A JP 32188794A JP H08181903 A JPH08181903 A JP H08181903A
Authority
JP
Japan
Prior art keywords
image
image pickup
pickup apparatus
unit
partial
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.)
Withdrawn
Application number
JP6321887A
Other languages
Japanese (ja)
Inventor
Hitoshi Hashimoto
仁史 橋本
Takashi Shoji
隆 庄司
Hideaki Yoshida
英明 吉田
Akio Terane
明夫 寺根
Kazuya Kobayashi
一也 小林
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP6321887A priority Critical patent/JPH08181903A/en
Publication of JPH08181903A publication Critical patent/JPH08181903A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To pickup an image with high quality by picking up an image by dividing and reducing the time of pasting and improving the precision of the processing when partial images are composited into an entire image. CONSTITUTION: Plural images picked up by dividing having overlapped areas are obtained by an image pickup element 4 by using a turning mirror 4. A reference block (reference point) is set and a corresponding block (corresponding point) matching the reference block in the overlapped area toward a pasted image is retrieved and the reference block and the corresponding block or the reference point and the corresponding point match the paste by using a pasting section 25 and predict information based on each position of the reference block and the corresponding block for preceding paste is provided. In the case of succeeding paste, the pasted position (retrieval range) is predicted by the predict information for the paste.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、分割して撮影した複数
の分割画像を貼合わせて1画像に復元する撮像装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image pickup apparatus which combines a plurality of divided images taken by dividing them and restores them into one image.

【0002】[0002]

【従来の技術】一般に、紙面等に描画されて2次元に広
がる被写体を撮像する撮像装置としてフライングスポッ
トスキャナ、ファクシミリ、コピー機等が広く知られて
いる。これらの撮像装置は、撮影の際に被写体領域を純
電子的に走査するのではなく、純機械的に走査したり、
あるいは、ラインセンサを用いて、1次元を電子的に走
査し、他の1次元を機械的に走査させて2次元画像を得
るものである。
2. Description of the Related Art Generally, flying spot scanners, facsimiles, copiers and the like are widely known as image pickup devices for picking up an image of a subject which is drawn on a paper surface and spreads in two dimensions. These imaging devices do not scan the subject area purely electronically at the time of shooting, but scan it mechanically or
Alternatively, a line sensor is used to electronically scan one dimension and mechanically scan the other one dimension to obtain a two-dimensional image.

【0003】また近年、「OAカメラ」や「黒板カメ
ラ」等と称され、ホワイトボードや黒板の近傍に取り付
けて、書かれた文字や図形等の情報を一括撮影し、極め
て簡単に情報収集を行うカメラがある。このカメラは、
CCDのような単一撮像素子が組み込まれ、1被写体に
対して、1撮像画面を得るような通常のカメラの撮像形
式をもつ携帯型のカメラである。
In recent years, it has been called an "OA camera" or a "blackboard camera" and the like, which is attached near a whiteboard or a blackboard to photograph information such as written characters and figures at once and collect information very easily. There is a camera to do. This camera is
It is a portable camera having a normal image pickup format in which a single image pickup device such as a CCD is incorporated to obtain one image pickup screen for one subject.

【0004】一般に、文字等の画像情報は細かく、従来
の2次元撮像素子を用いて純電子的走査により撮影しよ
うとすると、文字情報の判読が可能な程度の解像度を得
るには、必要とする素子の画素数が極めて多くなるた
め、構造が難しくなり、コスト高となる。また、前述し
たような純機械的走査やラインセンサと機械的走査の組
み合わせ方式では、装置の構成が複雑化し、大型化する
だけでなく、画像取り込み時間が長くなってしまうとい
う不具合もあった。
Generally, image information such as characters is fine, and it is necessary to obtain a resolution such that the character information can be read when a conventional two-dimensional image pickup device is used to capture an image by pure electronic scanning. Since the number of pixels of the element becomes extremely large, the structure becomes difficult and the cost becomes high. Further, in the above-described pure mechanical scanning or the combination method of the line sensor and the mechanical scanning, there is a problem that the configuration of the apparatus becomes complicated and the size becomes large, and the image capturing time becomes long.

【0005】そこで、前記1被写体に対して1撮像画面
を得る「OAカメラ」等に対して、より高精細な画像を
得るものとして、製造が容易で比較的安価な実用的な画
素数を持つCCDなどの単一撮像素子により撮像系を構
成するものであって、更に、撮像光学系中に走査用の可
動ミラーを配設する画面分割撮影式「OAカメラ」が考
えられる。この画面分割撮影式「OAカメラ」は、前記
可動ミラーが各走査回動位置にあるときに、該回動位置
に対応する分割された被写体部分の画像を撮像素子で撮
像し、その複数の撮像画面を貼合わせることによって、
1枚の撮影画像情報を得るものである。
Therefore, as compared with an "OA camera" which obtains one image-capturing screen for one subject, a higher-definition image can be obtained, which is easy to manufacture and has a relatively low number of practical pixels. An image pickup system is configured by a single image pickup device such as a CCD, and further, a screen division photographing type “OA camera” in which a movable mirror for scanning is arranged in the image pickup optical system can be considered. This split-screen image capturing type "OA camera" captures an image of a divided subject portion corresponding to the rotating position by an image sensor when the movable mirror is at each scanning rotating position, and the plurality of image capturing operations are performed. By sticking the screens together,
It is for obtaining information of one captured image.

【0006】このカメラは、被写体領域を例えば2乃至
10数個の複数領域に分割し、それぞれの被写体領域で
前記可動ミラーを回動させて走査し、順次撮影する。撮
影後、得られた複数の部分領域に対する画像情報を貼合
わせ処理を行い、1枚の被写体画像を得る。この結果、
携帯可能な大きさの装置により、比較的短時間で広い領
域について高精細な画像の取り込むことができる。この
ようなカメラとして、例えば、本出願人が提案している
特願平5−246390号に記載されるカメラがある。
This camera divides a subject region into a plurality of regions, for example, 2 to 10 or more, rotates the movable mirror in each subject region, scans, and sequentially photographs. After shooting, the obtained image information is combined with the plurality of partial areas to obtain one subject image. As a result,
A portable size device can capture a high-definition image in a large area in a relatively short time. As such a camera, for example, there is a camera described in Japanese Patent Application No. 5-246390 proposed by the present applicant.

【0007】前記画面分割式「OAカメラ」において
は、前述したように、撮影された部分領域の画像情報の
貼合わせ処理が行なわれる。この貼合わせ処理とは、各
別に得られた部分画像を単純に1つの大きな全体画像に
つなぎ合わせる処理を言うのみではなく、その際の各画
像間のずれや傾きを補正する処理を含んでなるものであ
る。
In the screen division type "OA camera", as described above, the process of combining the image information of the photographed partial areas is performed. The stitching process includes not only the process of simply joining the partial images obtained separately into one large overall image, but also the process of correcting the deviation or inclination between the images at that time. It is a thing.

【0008】このような処理について、銀塩フィルムを
用いた繋ぎパノラマ写真を例として説明する。従来、複
数の部分画像を繋ぎ合わせて、1つの大きな全体画像を
得る手法として、銀塩写真においては主に、地平,水平
に拡がる幅広い領域を撮影する風景撮影に用いられてお
り、繋ぎパノラマ写真と呼ばれている。
Such processing will be described by taking a stitched panoramic photograph using a silver salt film as an example. Conventionally, as a method of joining a plurality of partial images to obtain one large overall image, in silver halide photography, it has been mainly used for landscape photography that captures a broad horizontal and horizontal area. is called.

【0009】この繋ぎパノラマ写真を撮影する場合に重
要なことは、カメラの撮影範囲が正確に水平方向にシフ
トされていくことであり、通常、カメラは三脚に固定さ
れて、雲台による水平回転が利用される。
What is important when taking this joint panoramic photograph is that the photographing range of the camera is accurately shifted in the horizontal direction. Normally, the camera is fixed to a tripod and horizontally rotated by a tripod head. Is used.

【0010】しかしながら、雲台の水平回転を利用して
も、ずれや傾きを完全に零にする事はきわめて難しい。
また撮影の際に三脚がない場合には、撮影者の手持ちに
よりこれを簡易的に実現する手法もあり、このときは当
然撮影範囲のずれや傾きは顕著に生じる。
However, even if the horizontal rotation of the platform is used, it is extremely difficult to completely eliminate the deviation and the inclination.
There is also a method of simply realizing this by hand-held by the photographer when there is no tripod at the time of photographing, and in this case, the deviation or inclination of the photographing range obviously occurs.

【0011】そこで最終的な1枚の全体画像に繋ぎ合わ
せる(プリントの切り貼り又は焼きつけ処理に於て行な
われる)際には、隣接する部分画像の接続部分の「像の
繋がり具合」すなわち境界における連続性や画像の相関
性を目視により判断しながら位置や傾きの補正が行なわ
れる。また、このため撮影時には、接続部分の近傍の領
域は隣接する部分画像に共通に含まれているように撮影
範囲を設定する。このとき共通に含まれる領域をオーバ
ーラップ(重なり又は重複)領域とかオーバーラップ部
と称する。
Therefore, when the final image is joined to one whole image (performed in the cutting and pasting of the print or the printing process), the "connecting state" of the connecting portions of the adjacent partial images, that is, the continuity at the boundary. The position and inclination are corrected while visually determining the characteristics and the correlation of the images. Therefore, at the time of shooting, the shooting range is set so that the area near the connection portion is commonly included in the adjacent partial images. At this time, the region commonly included is referred to as an overlap region.

【0012】さて、前記「OAカメラ」による画面にお
いても、各部分画像は同時に得られず、順次、スキャン
ニングによって得られるので、撮影時の手振れ(カメラ
ブレ)や被写体の動きがあると、各部分画像にずれや傾
き等の貼合わせ誤差が生じる。また同様の誤差は、スキ
ャンニング機構によっても生じる。
Even on the screen of the "OA camera", each partial image is not obtained at the same time, but is obtained sequentially by scanning. Therefore, if camera shake (camera shake) or movement of the subject occurs during shooting, each portion Lamination errors such as misalignment and tilt occur in the image. A similar error also occurs due to the scanning mechanism.

【0013】すなわち、ミラーをモータで回動させる機
械式スキャンニング機構を例にとれば、構成部品には所
定の許容範囲で製造誤差があることが多く、これらの部
品で組上げた場合には、回動・停止に伴ってミラーが振
動したり、ミラーの固定(停止)位置にばらつきが生じ
る。これらの振動やばらつきにより撮影される像にも誤
差を生じる。このとき前者は、毎回の撮影によって常に
同じ値で生ずる定常的誤差となるが、特に後者は固定位
置のばらつきにより、撮影の都度、値がばらつく偶発的
誤差となる。なお前述した手振れや被写体の動きによっ
て生ずる誤差は偶発的誤差である。
That is, in the case of a mechanical scanning mechanism in which a mirror is rotated by a motor, the component parts often have a manufacturing error within a predetermined allowable range, and when assembled with these parts, The mirror vibrates due to the rotation and stop, and the fixed (stop) position of the mirror varies. These vibrations and variations also cause an error in the captured image. At this time, the former is a constant error that always occurs with the same value in every photographing, but the latter is an accidental error in which the value varies each time photographing is performed due to the variation of the fixed position. The error caused by the above-mentioned camera shake or movement of the subject is an accidental error.

【0014】これらの誤差を含む複数の部分画像を位置
や傾きの補正を行ないつつ、1つの大きな全体画像に繋
ぎ合わせる処理が、貼合わせ処理である。なお、この処
理は全て同時に行なわれるとは限らず、部分画像を全体
画像に繋ぎ合わせる手順(アルゴリズム)によっては各
隣接する部分画像の対又は組毎に順次に行なわれるが、
その時はその各次の処理においても、貼合わせ処理と呼
ぶ。
The process of joining a plurality of partial images including these errors into one large whole image while correcting the position and the inclination is the stitching process. Note that this process is not always performed all at once, and is sequentially performed for each pair or set of adjacent partial images depending on the procedure (algorithm) for connecting partial images to the entire image.
At that time, also in each subsequent process, it is called a laminating process.

【0015】このような貼合わせ処理は、オーバーラッ
プ部の画像の相関を演算する事により貼合わせ誤差を算
出して行なわれる。すなわち、「繋ぎ」は各部分画像の
データの座標を全体画像の座標に割当てる(置き換え
る)ことによって実現されるが、その際、前記算出され
た貼合わせ誤差に基づいて、座標補正を施せば良い。
Such a laminating process is performed by calculating the laminating error by calculating the correlation of the images in the overlapping portion. That is, "joining" is realized by assigning (replacement) the coordinates of the data of each partial image to the coordinates of the entire image. At that time, the coordinates may be corrected based on the calculated bonding error. .

【0016】この様な相関演算に基いて貼合わせ処理を
行なう具体的技術は、例えば本出願人による特願平5−
260465号に詳細に述べられており、ここでの説明
は省略する。
A specific technique for performing the laminating process based on such a correlation operation is described in, for example, Japanese Patent Application No.
The detailed description is omitted here.

【0017】[0017]

【発明が解決しようとする課題】しかし、前述した貼合
わせ処理は、実際の「OAカメラ」の中では、各画像情
報データをデジタルメモリに取り込み、そのデータ(ア
ドレス情報を含む)に対してデジタル演算等のデータ処
理を行なうことで実現される。
However, in the pasting processing described above, in the actual "OA camera", each image information data is taken into the digital memory and the data (including address information) is digitally processed. It is realized by performing data processing such as calculation.

【0018】一般に、そのデータ処理には数10ms〜
数100ms以上の時間を要している。ここで、生産コ
ストや形状(小型化)の面から考えると、処理に要する
デジタルメモリの容量は極力小さくする事が有利であ
る。
Generally, several tens of ms to process the data.
It takes several 100 ms or more. From the viewpoint of production cost and shape (miniaturization), it is advantageous to minimize the capacity of the digital memory required for processing.

【0019】このような考え方に立って装置を作成した
場合(第1のケース)、貼合わせ処理は、各部分画像が
撮影される度に順次実行する方が、全ての部分画像を一
旦バッファメモリに取り込んでから処理する方よりも優
れている。すなわち、後者では全画像分のバッファメモ
リが必要になるが、前者は部分画像数個分のバッファメ
モリがあれば実現できる。
When the apparatus is created based on such an idea (first case), it is better to execute the stitching process sequentially every time each partial image is captured, so that all partial images are temporarily stored in the buffer memory. Better than the one that is taken up and then processed. That is, the latter requires a buffer memory for all images, but the former can be realized if there is a buffer memory for several partial images.

【0020】但し、貼合わせ処理に時間が長く掛かる
と、その処理が終了するまで次の部分画像の撮影を開始
できないため、撮影時間間隔が長くなり、被写体の状態
が変化してしまったりする場合があった。
However, if the stitching process takes a long time, the shooting of the next partial image cannot be started until the process is completed, so the shooting time interval becomes long and the condition of the subject changes. was there.

【0021】一方、貼合わせ処理は、前述したように画
像データの相関を利用するため、前記オーバーラップ部
分の中の相関演算に使用する領域に、ある一定のコント
ラストを持った被写体がなかったり、あるいはくり返し
パターンの様な演算に誤判断を生じるような被写体があ
った場合、貼合わせが不能になるという不具合があっ
た。
On the other hand, since the bonding process utilizes the correlation of the image data as described above, there is no subject having a certain constant contrast in the area used for the correlation calculation in the overlap portion, Alternatively, if there is a subject such as a repeated pattern that causes an erroneous judgment in the calculation, there is a problem that the bonding becomes impossible.

【0022】また、前述したスキャンニング等に基いて
生じる定常的誤差については、常に同じ補正を行なえば
よいが、その補正量が未知であるため、結果的に演算の
効率が下がり、演算時間の長化や、誤判断のおそれが増
すといった不具合となった。
Further, the same error may be always corrected for the stationary error caused by the above-mentioned scanning, but the correction amount is unknown, and as a result, the efficiency of the calculation is lowered and the calculation time is reduced. It became a problem that it became longer and the risk of misjudgment increased.

【0023】さらに前記演算に要する時間は、毎回の状
況(貼合わせ誤差の大きさやオーバーラップ部の絵柄
等)によって一般に異なり、また他の要因により、毎回
の部分画像の撮影時間間隔(露出タイミング)は、偶発
的にばらつくことになる。このため毎回の演算毎に手振
れの影響や被写体の動きの影響がより大きく変動するこ
ととなり、やはり演算の効率低下が生じるという不具合
があった。
Further, the time required for the above calculation generally differs depending on the situation (the size of the bonding error, the pattern of the overlapping portion, etc.) each time, and due to other factors, the photographing time interval (exposure timing) of each partial image. Will vary by accident. For this reason, the effect of camera shake and the effect of movement of the subject fluctuate more and more with each calculation, which also causes a problem of reduction in calculation efficiency.

【0024】以上、前記「第1のケース」について述べ
たが、一方ではコストや形状を常に優先的させて考える
のではなく、性能を最優先で考えたり、あるいは設計の
しやすさ等を考慮する場合もある。
The "first case" has been described above. On the other hand, however, the cost and the shape are not always prioritized, but the performance is prioritized, or the ease of design is considered. In some cases.

【0025】そのような場合を「第2のケース」とすれ
ば、該第2のケースでは前述したように限られた容量の
バッファメモリで構成したOAカメラでは、貼合わせ処
理に要する時間によって各部分画像の撮影(露出)タイ
ミングが制約されたり、貼合わせ処理に用いることがで
きる情報量が限られているため、演算の効率の低下が生
じるという不具合があった。
If such a case is referred to as a "second case", in the second case, in the OA camera constituted by the buffer memory having a limited capacity as described above, each of the OA cameras is dependent on the time required for the bonding process. There is a problem that the efficiency of calculation is reduced because the timing of shooting (exposure) of the partial image is restricted and the amount of information that can be used for the combining process is limited.

【0026】また、貼合わせ処理用バッファメモリの容
量によって、コストや形状,性能等が左右されるという
事情に鑑みる時、従来のOAカメラでは、前記バッファ
メモリと、記録媒体としてのデジタルメモリが構成上全
く分離されており兼用化がはかられていないため、コス
トや形状と性能の確保等が両立できないという不具合が
あった。
In consideration of the situation that the cost, shape, performance, etc. are affected by the capacity of the bonding process buffer memory, in the conventional OA camera, the buffer memory and a digital memory as a recording medium are configured. Since it is completely separated and cannot be used for both purposes, there is a problem that cost, shape and performance cannot be secured at the same time.

【0027】さらにまた、前記バッファメモリの容量と
は別に、各部分画像の撮影時の露出時間や露出レベルが
一定に保たれていないと、部分画像の広い意味での画質
ばらつきが大きくなり、目的とする全体画像の画質が悪
なったり、貼合わせ処理に不具合が生じるおそれがあっ
た。
Further, in addition to the capacity of the buffer memory, if the exposure time and the exposure level at the time of shooting each partial image are not kept constant, the image quality variation in a broad sense of the partial image becomes large. There is a risk that the image quality of the entire image will be poor, or that a problem will occur in the laminating process.

【0028】そこで本発明は、画像を分割して撮影し、
部分画像から全体画像への復元時に貼合わせ処理の時間
短縮,精度向上を実現し、高画質に画像を撮像する撮像
装置を提供することを目的とする。
Therefore, according to the present invention, an image is divided and photographed,
It is an object of the present invention to provide an image pickup device which realizes a reduction in the time of the bonding process and an improvement in accuracy when restoring a partial image to an entire image, and which picks up an image with high image quality.

【0029】[0029]

【課題を解決するための手段】本発明は上記目的を達成
するために、少なくとも画面の一端側に他の画面とオー
バーラップする領域を持つように撮像対象領域を分割し
て撮影し、複数の部分画像を得る撮像手段と、前記部分
画像で被貼合わせ画像側のオーバーラップする領域内に
任意の基準点を含む基準ブロックを設定し、貼合わせ画
像側のオーバーラップする領域内で前記基準ブロックと
合致する対応ブロック、若しくは基準点と合致する対応
点を探索し、基準ブロックと対応ブロック、若しくは基
準点と対応点を合致させて、部分画像を貼合わせ処理す
る画像貼合わせ手段と、前記画像貼合わせ手段により、
少なくとも前回以前に貼合わせた時に合致した前記基準
ブロック若しくは基準点及び、対応ブロック若しくは対
応点の各位置に基づく情報を予測情報として保持し、次
回の部分画像の貼合わせの際に、前記予測情報により貼
合わせ位置を予測し、貼合わせ位置を前記画像貼合わせ
手段に指示する貼合わせ制御手段とで構成される撮像装
置を提供する。
In order to achieve the above object, the present invention divides an image-capturing target area so that at least one end side of the screen has an area overlapping with another screen and captures a plurality of images. An image pickup unit for obtaining a partial image and a reference block including an arbitrary reference point in an overlapping area on the pasted image side in the partial image are set, and the reference block is set in the overlapping area on the pasting image side. Image matching means for searching for a corresponding block matching with or a corresponding point matching the reference point, matching the reference block with the corresponding block, or matching the reference point with the corresponding point, and performing a bonding process on the partial images; By the laminating means,
At least the reference block or reference point and the information based on each position of the corresponding block or corresponding point that matched when pasted before is held as prediction information, and when the next partial image is pasted, the prediction information An image pickup apparatus is provided, which is configured with a pasting position, and a pasting control unit that instructs the pasting position to the image pasting unit.

【0030】[0030]

【作用】以上のような構成の撮像装置は、画面の一部に
他の画面の画像とオーバーラップする領域を設けて1つ
の撮影対象領域を分割して撮影して、複数の部分画像を
生成し、そられの部分画像を繋げる際に、被貼合わせ画
像のオーバーラップ領域内に少なくとも2つの基準点や
基準ブロックを設定し、この箇所の画像データと合致す
る対応点若しくは、対応ブロックを貼合わせる画像のオ
ーバーラップ領域内で探索し、探索された対応点若しく
は、対応ブロックを基準点や基準ブロックに一致するよ
うに重ねて貼合わせ処理を行う。そして、貼合わせ処理
の際に得た基準点や基準ブロック及び対応点、対応ブロ
ックの位置情報を記憶しておき、次回からの貼合わせを
行う際の貼合わせ位置の決定に前記位置情報を予測情報
として利用して、対応点若しくは対応ブロックの探索を
行う概略的なサーチエリアが貼合わせる画像のオーバー
ラップ領域内に設定される。
In the image pickup apparatus having the above-described structure, a part of the screen is provided with a region overlapping with an image of another screen, and one shooting target region is divided and shot to generate a plurality of partial images. Then, when connecting the partial images, set at least two reference points or reference blocks in the overlap area of the images to be pasted, and paste the corresponding points or corresponding blocks that match the image data at this location. A search is performed within the overlapping area of the images to be matched, and the matching point or the corresponding block that has been searched is overlapped so as to match the reference point or the reference block and the bonding processing is performed. Then, the reference point, the reference block, the corresponding point, and the position information of the corresponding block obtained during the bonding process are stored, and the position information is predicted to determine the bonding position when performing the bonding from the next time. Using as information, a rough search area for searching for corresponding points or corresponding blocks is set within the overlap area of the images to be pasted.

【0031】[0031]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。図1には、本発明による第1実施例として
の撮像装置の概略的な構成を示し説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a schematic configuration of an image pickup apparatus as a first embodiment according to the present invention and will be described.

【0032】この撮像装置においては、被写体像(被写
体)1を反射させるミラー2と、該ミラー2を所定方向
に回動させるミラー駆動部3と、前記ミラー2で反射さ
れた被写体像1を撮像素子4上に結像させるためのAF
機能を有する撮影レンズ5及び絞り6と、前記撮影レン
ズ5及び絞り6を駆動する撮像系駆動部7と、結像され
た被写体像1を光電変換し映像信号を生成する撮像素子
4及び撮像回路8と、該撮像素子4を駆動する撮像素子
駆動部9と、前記撮像回路8からの映像信号をデジタル
変換するA/D変換部10と、デジタル変換された画像
データを記憶するメモリ11と、該メモリ11を駆動す
るメモリ駆動部12と、後述する撮像された部分画像の
貼合わせ部分のパターンマッチングを行うパターンマッ
チング部13と、得られた全体画像を着脱自在な記録媒
体、例えばメモリカード14に記録させるカード駆動部
15と、該カード駆動部15を介して、プリンタ16か
ら画像をプリントアウトさせるプリンタ駆動部17と、
これらの各駆動部の全体を駆動制御するシステム制御部
18と、前記撮像回路8と撮像素子駆動部9とA/D変
換部10とシステム制御部18に所定の同期信号を送出
する同期信号発生部19と、前記システム制御部18に
着脱自在で部品誤差情報や学習情報を記憶するEEPR
OM20と、カメラ筐体の回転やシフト量を検出するた
めの手振れセンサ21と、全体のシステムの状態表示を
行うための表示部22と、撮影を開始するためのトリガ
スイッチや部分撮影回数の設定のための入力スイッチ2
3とで構成される。
In this image pickup apparatus, a mirror 2 for reflecting a subject image (subject) 1, a mirror drive section 3 for rotating the mirror 2 in a predetermined direction, and a subject image 1 reflected by the mirror 2 are picked up. AF for focusing on the element 4
A photographing lens 5 and a diaphragm 6 having a function, an image pickup system driving section 7 for driving the photographing lens 5 and the diaphragm 6, an image pickup element 4 and an image pickup circuit for photoelectrically converting the formed subject image 1 to generate a video signal. 8, an image sensor driving unit 9 that drives the image sensor 4, an A / D converter 10 that digitally converts a video signal from the image sensing circuit 8, and a memory 11 that stores digitally converted image data. A memory drive unit 12 that drives the memory 11, a pattern matching unit 13 that performs pattern matching of a pasted portion of a captured partial image, which will be described later, and a recording medium on which the obtained entire image is detachable, such as a memory card 14. A card driving unit 15 for recording the image on the printer, a printer driving unit 17 for printing out an image from the printer 16 via the card driving unit 15,
A system control unit 18 for driving and controlling the entire drive unit, a sync signal generator for sending a predetermined sync signal to the image pickup circuit 8, the image pickup device drive unit 9, the A / D conversion unit 10, and the system control unit 18. EEPR that is detachably attached to the unit 19 and the system control unit 18 and stores component error information and learning information
The OM 20, the camera shake sensor 21 for detecting the rotation and shift amount of the camera housing, the display unit 22 for displaying the state of the entire system, the trigger switch for starting the shooting, and the setting of the number of partial shootings. Input switch 2 for
3 and 3.

【0033】また、前記システム制御部18は、システ
ム全体を制御するためのシーケンス処理部24と、画像
の貼合わせ処理を行う貼合わせ処理部25で構成され
る。このシステム制御部18は、大きく分けて2つの制
御を行い、そのうち1つはシーケンス処理部24によ
り、入力スイッチ23の内のトリガスイッチが押される
ことでスタートし、前述したようにミラー2の駆動を行
い、撮像回路8及びメモリ11を制御して、メモリカー
ド14に記録し、プリンタ16へ出力するという一連の
シーケンス制御を行い、また、もう1つは、貼合わせ処
理部25により、画像貼合わせを行うためにメモリ11
の駆動やパターンマッチング部13によるパターンマッ
チングの制御を行う。
The system control unit 18 is composed of a sequence processing unit 24 for controlling the entire system and a bonding processing unit 25 for performing a bonding process of images. The system control unit 18 roughly performs two controls, one of which starts when the sequence processing unit 24 presses a trigger switch of the input switches 23, and drives the mirror 2 as described above. Then, the image pickup circuit 8 and the memory 11 are controlled to perform a series of sequence control of recording on the memory card 14 and outputting to the printer 16. Memory 11 for matching
And the pattern matching by the pattern matching unit 13 are controlled.

【0034】このように構成された撮像装置による撮像
について説明する。まず、被写体像1が回動するミラー
2に反射され、撮影レンズ5に導かれる。このミラー2
は、システム制御部18に制御されるミラー駆動部3に
より、被写体像を分割して撮像するために、例えば、数
回(実施例では4回)のスキャンを行うために回動され
る。
Image pickup by the image pickup apparatus configured as described above will be described. First, the subject image 1 is reflected by the rotating mirror 2 and guided to the taking lens 5. This mirror 2
Is rotated by the mirror drive unit 3 controlled by the system control unit 18 so as to divide and capture the subject image, for example, to perform several scans (four times in the embodiment).

【0035】前記撮影レンズ5により撮像素子4上に被
写体像1が結像され、光電変換される。その被写体像1
の映像信号は、撮像回路8で処理され、A/D変換部1
0でデジタル信号に変換されて、メモリ11に画像デー
タとして記憶される。この時に、前記撮像素子駆動部9
や撮像回路8、A/D変換部10は同期信号発生部19
からの同期信号に同期して動作し、また同期信号は、シ
ステム制御部18にも入力され、全体のシーケンスを同
期制御する。
The subject image 1 is formed on the image pickup element 4 by the taking lens 5 and photoelectrically converted. The subject image 1
Image signal is processed by the image pickup circuit 8, and the A / D conversion unit 1
When it is 0, it is converted into a digital signal and stored in the memory 11 as image data. At this time, the image pickup device driving unit 9
The image pickup circuit 8 and the A / D converter 10 are synchronized signal generator 19
It operates in synchronization with the sync signal from the control unit, and the sync signal is also input to the system control unit 18 to synchronously control the entire sequence.

【0036】前記メモリ11から読出された画像データ
は、パターンマッチング部13に入力され、4回のスキ
ャン各々の貼合わせ部分のパターンマッチングを行い、
ズレ量を検出し、再び、システム制御部18を介してメ
モリ駆動部12を駆動させて、メモリ11から読み出
し、1枚分の大きい全体画像を得る。得られた全体画像
は、システム制御部18の制御により、カード駆動部1
5を通ってメモリカード14に記録される、若しくは、
プリンタ駆動部17を駆動してプリンタ16で出力され
る。
The image data read from the memory 11 is input to the pattern matching section 13 and pattern matching is performed on the bonded portions of each of the four scans.
The amount of deviation is detected, and the memory drive unit 12 is driven again via the system control unit 18 to read from the memory 11 and obtain a large whole image for one sheet. The entire image thus obtained is controlled by the system control unit 18 and the card drive unit 1
Is recorded in the memory card 14 through 5, or
The printer driver 17 is driven to output the data from the printer 16.

【0037】次に図2を参照して前述したメモリ11に
ついて説明する。本実施例において、メモリ11は順次
記録を行うメモリとして説明する。この順次記録は、1
枚の大きい全体画像を4分割して、4回のスキャンによ
り撮影して部分画像を貼合わせて復元する場合に、1回
の撮影毎にパターンマッチング処理を行った後に、メモ
リカードに記録するものである。
Next, the memory 11 described above will be described with reference to FIG. In the present embodiment, the memory 11 will be described as a memory for sequentially recording. This sequential recording is 1
When a large whole image is divided into four, and the images are photographed by four scans and the partial images are pasted together and restored, pattern matching processing is performed for each photographing and then recorded in the memory card. Is.

【0038】従って、部分画像を一時的に記憶するだけ
であるため、メモリ容量が少なくて済むという特徴があ
る。図2(a)は、メモリ11に記憶される部分画像の
うち、2回目に撮影された部分画像に貼合わせるための
領域を含む3回目に撮影された画像を示している。すな
わち、全体の画像を一点鎖線で示すと、メモリ11に一
度に記憶されるデータ量は、画像全体の約1/4の部分
画像の容量で済み、2回目に撮影した画像の終端から内
側に入った貼合わせに必要となる貼合わせ部分の画像領
域を含んだ3回目の部分画像が記憶される。
Therefore, since the partial image is only temporarily stored, the memory capacity is small. FIG. 2A shows an image captured the third time of the partial images stored in the memory 11 and including an area to be attached to the partial image captured the second time. That is, if the whole image is shown by the one-dot chain line, the amount of data stored in the memory 11 at one time is about 1/4 of the partial image capacity of the entire image, and the amount of data stored in the memory 11 is inward from the end of the second captured image. The third partial image including the image area of the pasted part necessary for pasting is stored.

【0039】このような2回目に撮影した部分画像の終
端部に貼合わせるのに必要な部分と、3回目に撮影した
部分画像とのパターンマッチング及び、貼合わせ処理を
行って貼合わせられた画像がメモリカードに順次、撮影
(スキャン)毎に記録される。
An image that has been pasted by performing pattern matching and a pasting process on the portion necessary for pasting to the end portion of the partial image taken at the second time and the partial image taken at the third time. Are sequentially recorded in the memory card for each photographing (scan).

【0040】次に図2(b)に示すような他のメモリの
構成例として、撮影4回分の部分画像を記憶できるメモ
リについて説明する。このメモリは、4回の撮影(全ス
キャン)を行い、メモリ11に部分画像全部を記憶させ
た後、貼合わせ処理を行い全体画像を生成し、メモリカ
ード14に一度で記録するものである。従って、メモリ
11は最小限、4枚分の部分画像(1つの全体画像)を
記憶するメモリ容量を必要とする。このメモリは、メモ
リ容量が大きくなるが、後述する学習や結合位置予測を
行う場合に好適する。
Next, as another example of the configuration of another memory as shown in FIG. 2B, a memory capable of storing partial images for four times of photographing will be described. In this memory, four times of photographing (all scans) are performed, all the partial images are stored in the memory 11, the pasting process is performed to generate the entire image, and the entire image is recorded in the memory card 14 at once. Therefore, the memory 11 requires at least a memory capacity for storing four partial images (one whole image). Although this memory has a large memory capacity, it is suitable for learning and joint position prediction described later.

【0041】次に図3には本発明による第2実施例とし
ての撮像装置の構成例を示し説明する。ここで図3に示
す構成部材において、図1に示す構成部材と同等の部材
には同じ参照符号を付して、その説明を省略する。
Next, FIG. 3 shows an example of the construction of an image pickup apparatus as a second embodiment according to the present invention. Here, in the constituent members shown in FIG. 3, the same members as the constituent members shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0042】この撮像装置は、装置内に前述したメモリ
11に相当するメモリ機構を持たないという特徴があ
る。第1実施例と同様に、撮影レンズ5で結像された被
写体像1が撮像素子4により光電変換され、撮像回路8
で処理された映像信号がA/D変換部10でデジタル化
された画像データ(部分画像)が生成される。
This image pickup device is characterized in that it does not have a memory mechanism corresponding to the memory 11 described above. Similar to the first embodiment, the subject image 1 formed by the taking lens 5 is photoelectrically converted by the image pickup device 4, and the image pickup circuit 8
The image signal (partial image) is generated by digitizing the video signal processed by the A / D converter 10.

【0043】次にデジタル化された部分画像は、カード
駆動部15を介して、メモリカード14にそのまま記録
される。次にカード駆動部15は、メモリカード14か
ら画像データを取出し、パターンマッチング部13と貼
合わせ処理部25とで、パターンマッチング及び貼合わ
せ処理を行い、再び、カード駆動部15を介して、メモ
リカード14に記録される。
Next, the digitized partial image is directly recorded on the memory card 14 via the card driving unit 15. Next, the card drive unit 15 takes out the image data from the memory card 14, performs the pattern matching and the bonding process with the pattern matching unit 13 and the bonding processing unit 25, and again through the card driving unit 15 to the memory. It is recorded on the card 14.

【0044】よって、本実施例は、装置内にメモリ機構
を設けていないため、小形化、低コスト化が実現でき
る。図4を参照して、本実施例に用いられるメモリカー
ドについて説明する。
Therefore, in this embodiment, since the memory mechanism is not provided in the apparatus, downsizing and cost reduction can be realized. The memory card used in this embodiment will be described with reference to FIG.

【0045】まず、点線で示す部分画像を順次、撮影
し、メモリカード14に貼合わせ処理を行わない部分画
像の全体を記録する。その後、貼合わせを行うのに必要
な境界部分の画像、すなわち貼合わせ部分を読み出し、
パターンマッチング部13でパターンマッチングして、
貼合わせ処理部25により貼合わせを行う。
First, the partial images indicated by the dotted lines are sequentially photographed, and the entire partial image not subjected to the bonding process is recorded on the memory card 14. After that, read the image of the boundary part required to perform the bonding, that is, the bonded part,
The pattern matching unit 13 performs pattern matching,
Lamination is performed by the laminating processing unit 25.

【0046】そして、貼合わせ処理を行った結果の画像
(実線で示す画像)をメモリカード14に順次記録す
る。これは、メモリカードに記録される部分画像に画像
のずれによる座標変換を施し、実線で示す貼合わせ後の
画像が記録されることになる。
Then, the images resulting from the laminating process (images shown by solid lines) are sequentially recorded in the memory card 14. This means that the partial image recorded on the memory card is subjected to coordinate conversion due to image shift, and the image after lamination shown by the solid line is recorded.

【0047】また、この様な処理を実行するためには、
座標変換を行う際に補間処理や座標変換処理を行うため
の最大1回の撮影(スキャン)分の容量のバッファメモ
リが必要となるが、メモリカードの記憶容量の一部を使
用して、例えばワークエリアを使ってバッファメモリに
利用することができる。
Further, in order to execute such processing,
When performing coordinate conversion, a buffer memory having a capacity of at most one photographing (scanning) for performing interpolation processing or coordinate conversion processing is required. However, using a part of the storage capacity of the memory card, for example, It can be used as a buffer memory by using the work area.

【0048】次に図5を参照して、本実施例における貼
合わせ処理について説明する。前述した貼合わせ処理に
用いているパターンマッチングについて説明する。ま
ず、図2に示すように、部分画像の端部に前回撮影した
部分画像の端部が重なるように撮影する。つまり、図5
(a)に示すように、画像Aの後端部(境界)と画像B
の前端部(境界)にある幅で重なりを持つように撮影す
る。この重なり部をオーバーラップ領域(オーバーラッ
プ部)とする。このオーバーラップ領域を貼合せること
により、画像Aと画像Bとが貼合わせられる。
Next, the laminating process in this embodiment will be described with reference to FIG. The pattern matching used in the above-mentioned bonding process will be described. First, as shown in FIG. 2, shooting is performed so that the edge of the previously captured partial image overlaps the edge of the partial image. That is, FIG.
As shown in (a), the trailing edge (boundary) of image A and image B
Shoot so that there is overlap in the width at the front edge (boundary) of. This overlapping portion is referred to as an overlap area (overlap portion). The image A and the image B are pasted together by pasting the overlapping areas.

【0049】まず、画像Aのオーバーラップ領域内の任
意の位置に所定の大きさのブロック(本実施例では8画
素×8画素のブロックとする)を基準ブロックA1,A
2として設定し、それらのブロックの画像情報をパター
ンマッチング部13に取り込む。ここでは、説明を簡単
にするために、基準ブロックA1,A2は、ある程度コ
ントラストがあり、画像Aのオーバーラップ領域内で固
定されているものとする。
First, a block of a predetermined size (a block of 8 pixels × 8 pixels in this embodiment) is located at an arbitrary position in the overlap area of the image A, and is a reference block A1, A.
2, and the image information of those blocks is taken into the pattern matching unit 13. Here, in order to simplify the explanation, it is assumed that the reference blocks A1 and A2 have a certain degree of contrast and are fixed within the overlap region of the image A.

【0050】そして、前記基準ブロックA1,A2の情
報を取り込んだ後、次に画像Bのオーバーラップ領域内
から前記基準ブロックA1に相当する画像のブロックを
探して対応ブロックB1と設定し、前記基準ブロックA
2に相当する画像のブロックを探して対応ブロックB2
と設定する。これは、画像Bのオーバーラップ領域で設
定することができる8画素×8画素単位のブロックを移
動しながら、基準ブロックと順次に比較する。その比較
の際に、各ブロック間の相関をとる。ここで相関とはブ
ロックを構成する各画素同士の引き算値の絶対値の総和
のこととする。
Then, after the information of the reference blocks A1 and A2 is fetched, a block of the image corresponding to the reference block A1 is searched for in the overlap area of the image B and set as the corresponding block B1. Block A
Find a block of the image corresponding to 2 and find the corresponding block B2
And set. This is to sequentially compare with the reference block while moving the block of 8 pixel × 8 pixel unit that can be set in the overlap area of the image B. At the time of the comparison, the correlation between the blocks is obtained. Here, the correlation means the sum of absolute values of the subtraction values of the pixels forming the block.

【0051】そして相関が最大となる、つまり引き算値
の絶対値の総和が最小のものを、対応ブロックB1,B
2とする。次に基準ブロックA1に対応する対応ブロッ
クB1、基準ブロックA2に対応する対応ブロックB2
の設定の後、それぞれの座標をもとに移動量と回転量を
算出する。ここで、移動量とは、貼合わせを行う際に、
画像Bを平行移動させる距離を意味し、上部の基準ブロ
ックA1と対応ブロックB1のずれ具合をずれ量S1と
し、ずれ量S1と移動量は等しくなる。また、下部の基
準ブロックA2と対応ブロックB2のずれ具合をずれ量
S2とする。
Corresponding blocks B1 and B have the maximum correlation, that is, the sum of the absolute values of the subtraction values is the minimum.
Set to 2. Next, the corresponding block B1 corresponding to the reference block A1 and the corresponding block B2 corresponding to the reference block A2
After setting, the movement amount and the rotation amount are calculated based on the respective coordinates. Here, the movement amount means that when the bonding is performed,
This means the distance by which the image B is moved in parallel, and the degree of displacement between the upper reference block A1 and the corresponding block B1 is the displacement amount S1, and the displacement amount S1 is equal to the displacement amount. Also, the degree of deviation between the lower reference block A2 and the corresponding block B2 is referred to as the deviation amount S2.

【0052】そして、ずれ量S1とずれ量S2より画像
A,画像Bのなす角を回転量として求める。これらの移
動量と回転量に基づき、画像Bを移動させ、画像Aと画
像Bを貼合わせて、図6に示すような1枚の画像に復元
することできる。
Then, the angle formed by the images A and B is obtained as the rotation amount from the shift amount S1 and the shift amount S2. Based on these movement amounts and rotation amounts, the image B can be moved, and the images A and B can be pasted together to restore a single image as shown in FIG.

【0053】このように移動量は、本来、手振れやメカ
的誤差がまったくない場合には、画像Aの原点“0”と
画像Bの原点“0”を重ねると、図5(b)に示すよう
に、基準ブロックA1と対応ブロックB1及び基準ブロ
ックA2と対応ブロックB2は、1つの点に重なる。し
かし実際には、手振れやメカ誤差が生じてしまうため、
同様に2枚の画像A,Bの原点“0”どうしを重ね合わ
せると、図5(c)に示すように、基準ブロックA1と
対応ブロックB1や基準ブロックA2と対応ブロックB
2の不一致が生じる。つまり、画像がずれて繋ぎ合わさ
れてしまう。
As described above, the movement amount is originally shown in FIG. 5B when the origin “0” of the image A and the origin “0” of the image B are overlapped with each other when there is no camera shake or mechanical error. Thus, the reference block A1 and the corresponding block B1 and the reference block A2 and the corresponding block B2 overlap one point. However, in reality, camera shake and mechanical error will occur,
Similarly, when the origins “0” of the two images A and B are overlapped, as shown in FIG. 5C, the reference block A1 and the corresponding block B1 and the reference block A2 and the corresponding block B are obtained.
Two discrepancies occur. That is, the images are displaced and joined together.

【0054】なお、前述したように求めた移動量と回転
量により、画像Bを移動させて貼合わせているが、ずれ
量S1,S2を使って、貼合わせに必要な移動量もしく
は回転量に計算し直す手順は後述する。
It should be noted that the image B is moved and bonded by the amount of movement and the amount of rotation obtained as described above, but the shift amounts S1 and S2 are used to determine the amount of movement or rotation required for bonding. The procedure for recalculating will be described later.

【0055】次に、前述した貼合わせ処理では、画像A
の基準ブロックと同一な画像を画像Bの中から探しだ
し、対応ブロックB1として設定したが、この設定の際
のサーチについて、通常の場合と予測位置を利用する場
合を説明する。
Next, in the above-mentioned laminating process, the image A
The same image as the reference block of is searched out from the image B and set as the corresponding block B1. Regarding the search in this setting, a normal case and a case of using the predicted position will be described.

【0056】ここで、本実施例では図7(a)に示すよ
うな画像B中の対応ブロックB1の存在する範囲をサー
チエリアCとし、例えば、64画素×64画素に設定す
る。このサーチエリアCは、最大手振れ量や最大メカ誤
差等に基づき、画像の欠損なしに貼合わせることのでき
る範囲を考慮にいれて、決定する。
Here, in this embodiment, the range in which the corresponding block B1 in the image B as shown in FIG. 7A exists is set as the search area C, and is set to, for example, 64 pixels × 64 pixels. The search area C is determined on the basis of the maximum camera shake amount, the maximum mechanical error, etc., in consideration of the range in which the images can be pasted without loss of images.

【0057】通常行うサーチは、サーチエリアCの端か
ら8×8のブロックを1画素ずつずらして探しており、
この手法では、57×57、つまり3249個のブロッ
クの相関を求めなければならず、探索に非常に時間がか
かってしまう。そこで、ある程度の予測によって、計算
回数を減らし、探索時間の短縮を図ることが考えられ
る。
In the search that is usually performed, an 8 × 8 block is shifted from the edge of the search area C by one pixel and searched.
With this method, the correlation of 57 × 57, that is, 3249 blocks must be obtained, and the search takes a very long time. Therefore, it is conceivable to reduce the number of calculations and shorten the search time by some prediction.

【0058】第1の予測位置を使った探索手法として、
図8(a)に示すように、予測位置の上下左右の1画素
ずらした範囲のみサーチする手法がある。この手法は、
左側の右上の1画素ずつずらしたものから順番に全部で
予測位置の周辺9回分の中で探索する。全部で9回分の
相関を求めた後、予測位置の相関値、予め設定した基準
値を越えた上で相関が最大であれば、その位置を対応ブ
ロックとする。
As a search method using the first predicted position,
As shown in FIG. 8A, there is a method of searching only a range in which the predicted position is shifted by one pixel in the vertical and horizontal directions. This technique
The search is sequentially performed within nine times around the predicted position in order from one pixel on the upper right side shifted by one pixel. After a total of nine correlations are calculated, if the correlation value of the predicted position exceeds the reference value set in advance and the correlation is the maximum, the position is set as the corresponding block.

【0059】また、第2の予測位置を使った探索手法と
して、図8(b)に示すように、上下左右に2画素ずつ
(1画素乃至2画素)ずらして、合計25通りの相関を
求めて、前述と同様に、予め設定した基準値を越えた上
で予測位置の相関が最大であれば、その位置を対応ブロ
ックの設定する位置とする手法がある。
As a search method using the second predicted position, as shown in FIG. 8B, a total of 25 correlations are obtained by shifting by 2 pixels (1 pixel to 2 pixels) vertically and horizontally. Then, as in the case described above, there is a method of setting the position as the position to be set in the corresponding block if the correlation of the predicted position is the maximum after exceeding the preset reference value.

【0060】このような予測位置を使ったサーチを用い
ると、高々9回または、25回の相関値を求める演算だ
けで探索でき、従来に比べて圧倒的な速さで、対応ブロ
ックを見つけることができる。
When the search using such a predicted position is used, the search can be performed only by the calculation of the correlation value at most 9 times or 25 times, and the corresponding block can be found at an overwhelming speed compared with the conventional method. You can

【0061】さらに第3の予測位置を使った探索手法と
して、図11(a)に示すように、64画素×64画素
のサーチエリアを分割し、予測位置の入っている分割エ
リアを、端から順番に相関を求める手法がある。ここ
で、本実施例では、64画素×64画素のエリアを4分
割して、32画素×32画素の範囲の相関を求める例に
ついて説明する。
Further, as a search method using the third predicted position, as shown in FIG. 11A, a search area of 64 pixels × 64 pixels is divided, and a divided area containing the predicted position is divided from the end. There is a method of obtaining the correlation in order. Here, in the present embodiment, an example will be described in which an area of 64 pixels × 64 pixels is divided into four, and a correlation in a range of 32 pixels × 32 pixels is obtained.

【0062】この手法によれば、全部で1024回の相
関を求めることになり、前述した64画素×64画素の
サーチエリア全体の相関を求めるよりも探索時間が短縮
される。
According to this method, the correlation is calculated 1024 times in total, and the search time is shortened as compared with the case where the correlation of the entire search area of 64 pixels × 64 pixels is calculated.

【0063】次に、具体的に、対応ブロックB1を貼り
合わせる側の画像Bのオーバーラップ領域から予測位置
を使用してサーチ時間を短縮する手法について説明す
る。この予測位置の求め方について説明する。
Next, specifically, a method of shortening the search time by using the predicted position from the overlapping area of the image B on the side where the corresponding block B1 is pasted will be described. How to obtain this predicted position will be described.

【0064】第1の予測位置の求め方として、複数の画
像を貼り合わせる場合に、2回目以降の貼合わせは、前
回の貼合わせの際に用いたずれ量から予測位置を求める
手法について説明する。ここで、1回で撮影された画像
を複数回貼り合わせる場合、近似したずれ方をするもの
と想定している。
As a first method for obtaining the predicted position, a method for obtaining the predicted position from the displacement amount used in the previous pasting will be described for the second and subsequent pasting when a plurality of images are pasted together. . Here, it is assumed that when the images taken at one time are pasted a plurality of times, an approximate shift is made.

【0065】1回の貼合わせで得られたずれ量S1
(x,y)、S2(x,y)を相対値として予測位置を
次式で求める。 α1x=A1x+(前回のS1x) …H1 α1y=A1y+(前回のS1y) …H2 α2x=A2x+(前回のS2x) …H3 α2y=A2y+(前回のS2y) …H4 ここで、予測位置の座標:α、対応ブロックB1の予測
位置:α1、対応ブロックB2の予測位置:α2、それ
ぞれx方向,y方向の座標:x,y、基準ブロックA1
のx座標に前回のずれ量のX座標を足し合わせたもの:
α1x、A1のY座標に前回のずれ量のy座標を足し合
わせたもの:α1y、基準ブロックA2のx座標に前回
のずれ量のX座標を足し合わせたもの:α2x、A2の
Y座標に前回のずれ量のy座標を足し合わせたもの:α
2yとする。
Shift amount S1 obtained by one-time laminating
The predicted position is calculated by the following equation using (x, y) and S2 (x, y) as relative values. α1x = A1x + (previous S1x) ... H1 α1y = A1y + (previous S1y) ... H2 α2x = A2x + (previous S2x) ... H3 α2y = A2y + (previous S2y) ... H4 Here, the coordinate of the predicted position: α, Predicted position of corresponding block B1 is α1, predicted position of corresponding block B2 is α2, coordinates in x direction and y direction are x and y, and reference block A1.
The x coordinate of x plus the x coordinate of the previous shift amount:
α1x, the Y coordinate of the previous displacement added to the Y coordinate: α1y, the x coordinate of the reference block A2, the X coordinate of the previous displacement added: α2x, the previous Y coordinate of A2 The sum of the y-coordinates of the deviation amount of
2y.

【0066】本実施例のようなOAカメラでは、手振れ
による影響が一番大きい。そこで、第2の予測位置の求
め方として、手振れセンサによって手振れ量を検出し、
算出された手振れ量から予測位置を求める手法について
説明する。図1に示すようにxy方向の手振れ量を検出
できる手振れセンサ21を設けている。この例では、手
振れ検出は、必ず部分撮影する際に行われるものとす
る。
In the OA camera as in this embodiment, the influence of camera shake is the largest. Therefore, as a method of obtaining the second predicted position, the shake amount is detected by the shake sensor,
A method of obtaining the predicted position from the calculated camera shake amount will be described. As shown in FIG. 1, a camera shake sensor 21 that can detect the amount of camera shake in the xy directions is provided. In this example, camera shake detection is always performed at the time of partial image capturing.

【0067】 α1x=A1x+(毎回の計測時の手振れ1x成分) …H5 α1y=A1y+(毎回の計測時の手振れ1y成分) …H6 α2x=A2x+(毎回の計測時の手振れ2x成分) …H7 α2y=A2y+(毎回の計測時の手振れ2y成分) …H8 以上のように、予測位置のα1xは基準ブロックA1の
x座標に、部分撮影時に求めた手振れ量(x成分)を加
える。以下、α2も同様に予測位置が求められる。
Α1x = A1x + (camera shake 1x component during each measurement) ... H5 α1y = A1y + (camera shake 1y component during each measurement) ... H6 α2x = A2x + (camera shake 2x component during each measurement) ... H7 α2y = A2y + (camera shake 2y component at each measurement) ... H8 As described above, α1x of the predicted position adds the camera shake amount (x component) obtained during partial imaging to the x coordinate of the reference block A1. Hereinafter, the predicted position of α2 is similarly obtained.

【0068】なお、手振れセンサ21により、手振れ量
を検出する場合、毎回計測を行うため、足し合わせる手
振れ量は同じ値でなく、例えば、4回の撮影(スキャ
ン)を行うのであれば、4回とも異なった値の手振れ量
をAの座標に足し合わせるという形になる。
When the camera shake sensor 21 detects the camera shake amount, the measurement is performed every time, and therefore the sum of camera shake amounts is not the same value. For example, if four times of photographing (scanning) is performed, four times of camera shake (scanning) is performed. However, the amount of camera shake having a different value is added to the coordinates of A.

【0069】また、ずれ量を求める際に上側のB1側
と、下側のB2と2点を求めなければならないため、手
振れはカメラの上側と下側の2か所で検出する。そし
て、上側の手振れ量をxy成分に分け、1x,1yと
し、予測位置α1を求める時に用いる。また下側の手振
れ量も、xy成分に分け2x,2yとし、下側の予測位
置のα2を求める時に用いる。
Since two points, the upper side B1 side and the lower side B2, have to be obtained when the shift amount is obtained, camera shake is detected at two points, the upper side and the lower side of the camera. Then, the upper hand shake amount is divided into xy components and set as 1x and 1y, which are used when obtaining the predicted position α1. Also, the amount of camera shake on the lower side is divided into xy components to be 2x and 2y, which are used when obtaining α2 of the lower predicted position.

【0070】次に第3の予測位置の求め方として、それ
ぞれのカメラ固有の撮影の際のミラー2を回動させた
(スキャン)時の誤差をEEPROM20に記録してお
き、予測する際にEEPROM20から情報を読み出
し、予測位置を求める手法である。ここで、ミラースキ
ャン時の誤差とは、ミラーが回動する時に発生するミラ
ーの位置ずれ等の機械的な誤差と、電気部品の特性等の
ばらつきに起因する電気的な制御系の誤差、またはレン
ズ等の光学部品に起因する光学的な誤差等からなる。
Next, as a method of obtaining the third predicted position, the error when the mirror 2 is rotated (scanned) at the time of photographing peculiar to each camera is recorded in the EEPROM 20, and the EEPROM 20 is used at the time of prediction. This is a method of reading the information from to obtain the predicted position. Here, the error at the time of mirror scanning is a mechanical error such as a positional deviation of the mirror that occurs when the mirror rotates, and an error of an electrical control system caused by a variation in characteristics of electric components, or It consists of optical errors caused by optical parts such as lenses.

【0071】なお、このEEPROM20に記録される
誤差の情報には、各スキャン毎に発生する誤差を記録さ
せておき、各撮影ごとの誤差のばらつきが解消できるよ
うにする。
The error information recorded in the EEPROM 20 is recorded with the error generated for each scan so that the variation in the error for each photographing can be eliminated.

【0072】 α1x=A1x+(EEPROMに記憶した誤差1x成分) …H9 α1y=A1y+(EEPROMに記憶した誤差1y成分) …H10 α2x=A2x+(EEPROMに記憶した誤差2x成分) …H11 α2y=A2y+(EEPROMに記憶した誤差2y成分) …H12 予測位置α1xは、A1xの座標に記憶された機械的な
誤差、制御系の誤差や光学的誤差を足し合わせたx成分
を加える。以下、α2も同様に予測位置が求められる。
Α1x = A1x + (Error 1x component stored in EEPROM) ... H9 α1y = A1y + (Error 1y component stored in EEPROM) ... H10 α2x = A2x + (Error 2x component stored in EEPROM) ... H11 α2y = A2y + (EEPROM The error 2y component stored in) ... H12 The predicted position α1x is added with the x component obtained by adding the mechanical error, the control system error, and the optical error stored in the coordinate of A1x. Hereinafter, the predicted position of α2 is similarly obtained.

【0073】次に、第4の予測位置の求め方として、例
えばニユーラルネットワークのような学習機能をもう
け、ユーザの手振れ等の癖やメカ誤差等を学習させ、予
測位置を決める手法がある。このような手法の一例とし
て、ここでは、前回までの撮影の際に生じたずれ量の平
均値を記憶しておき、その平均値をA1の座標に足し、
それを予測位置とする。
Next, as a fourth method of obtaining the predicted position, there is a method of determining the predicted position by providing a learning function such as a neural network and learning the habit of hand shaking of the user and mechanical error. As an example of such a method, here, an average value of the shift amounts generated in the previous shooting is stored, and the average value is added to the coordinate of A1,
Let it be the predicted position.

【0074】 α1x=A1x+(前回までの平均値1x成分) …H13 α1y=A1y+(前回までの平均値1y成分) …H14 α2x=A2x+(前回までの平均値2x成分) …H15 α2y=A2y+(前回までの平均値2y成分) …H16 以上、前述した予測位置は、それぞれ単独に使用でき、
また組み合わせて用いることができる。
Α1x = A1x + (average value 1x component up to the previous time) ... H13 α1y = A1y + (average value 1y component up to the previous time) ... H14 α2x = A2x + (average value 2x component up to the previous time) ... H15 α2y = A2y + (previous time) The average value up to 2y component) ... H16 Above, the above-described predicted positions can be used independently,
Also, they can be used in combination.

【0075】次に、図9に示すフローチャートを参照し
て、予測位置を利用した貼り合わせ処理について説明す
る。ここで、構成部材の参照符号は、図1に示した構成
部材の参照符号を示すものとする。
Next, with reference to the flow chart shown in FIG. 9, the bonding process using the predicted position will be described. Here, the reference numerals of the constituent members indicate the reference numerals of the constituent members shown in FIG.

【0076】まず、ユーザが撮影する所望の画像を何分
割するか設定する、すなわち、部分画像の撮影する回数
Nを設定する(ステップS1)。次に、撮影した回数I
の初期値“1”を設定し(ステップS2)、図示しない
スタートスイッチ(レリーズスイッチ)をオンさせ、1
枚目の部分撮影を開始する(ステップS3)。ミラー2
が回動して、次の被写体部分画像を撮像素子に結像させ
る(ステップS4)。ミラー2の回動終了後に、撮影回
数Iをインクリメントする(ステップS5)。再び、部
分撮影を行う(ステップS6)。
First, the number of divisions of a desired image to be photographed by the user is set, that is, the number N of times of photographing partial images is set (step S1). Next, the number of shots I
Initial value "1" is set (step S2), and a start switch (release switch) not shown is turned on to
The partial shooting of the first sheet is started (step S3). Mirror 2
Rotates to form the next subject partial image on the image sensor (step S4). After the rotation of the mirror 2 is completed, the number of times of photographing I is incremented (step S5). The partial photographing is performed again (step S6).

【0077】そして、その撮影の後、予測位置を利用し
て移動量,回転量を算出する(ステップS7)。算出さ
れた移動量,回転量に基づき、画像の移動,回転を行
い、貼り合わせ処理する(ステップS8)。
After the shooting, the movement amount and the rotation amount are calculated using the predicted position (step S7). Based on the calculated movement amount and rotation amount, the image is moved and rotated, and the bonding process is performed (step S8).

【0078】次に、撮影した回数Iがユーザが設定した
撮影する回数Nになるまで、前述した撮影及び貼り合わ
せ処理を行い終了する(ステップS9)。次に、図10
のフローチャートを参照して、貼り合わせ処理における
移動量,回転量の算出について説明する。
Next, until the number of times I of photographing has reached the number of times N of photographing set by the user, the above-described photographing and bonding processing is performed and the processing is terminated (step S9). Next, FIG.
Calculation of the movement amount and the rotation amount in the bonding process will be described with reference to the flowchart of FIG.

【0079】ここで、本実施例においては、移動量は、
S1x,S1y、つまり境界部分の上の点A1,B1そ
のもののずれ量を移動量とし、また回転量は、A1とB
1を重ね合わせた時に境界部分の下の点A2,B2が一
致するまでの必要な回転する量を回転量とする。
Here, in this embodiment, the movement amount is
S1x, S1y, that is, the displacement amount of points A1, B1 themselves on the boundary portion is the movement amount, and the rotation amount is A1 and B1.
The amount of rotation required until the points A2 and B2 below the boundary coincide with each other when 1s are superposed is defined as the rotation amount.

【0080】まず、基準ブロックA1の画像を取り込み
(ステップS11)、続いて、基準ブロックA2(下
側)の画像を取り込む(ステップS12)。次に、前述
した予測位置を求める方法のいずれかを用いて求めた、
対応ブロックB1の予測位置を入力する(ステップS1
3)。ここで、入力される予測位置はα1x,α1yで
ある。しかし、もし予測が不可能で情報がない場合に
は、“情報なし”として入力しておく必要がある。
First, the image of the reference block A1 is captured (step S11), and subsequently, the image of the reference block A2 (lower side) is captured (step S12). Next, using one of the methods for obtaining the predicted position described above,
Input the predicted position of the corresponding block B1 (step S1)
3). Here, the predicted positions that are input are α1x and α1y. However, if it is impossible to predict and there is no information, it is necessary to input as “no information”.

【0081】次に、前記予測位置に基づき、対応ブロッ
クB1を探索する(ステップS14)。この探索で得ら
れた対応ブロックB1を用いて、次式、 S1x=B1x−A1x …H17 S1y=B1y−A1y …H18 を用いて、基準ブロックA1と対応ブロックB1とのず
れ量S1を算出する(ステップS15)。
Next, the corresponding block B1 is searched based on the predicted position (step S14). Using the corresponding block B1 obtained by this search, the shift amount S1 between the reference block A1 and the corresponding block B1 is calculated using the following formula: S1x = B1x−A1x ... H17 S1y = B1y−A1y. Step S15).

【0082】前述したと同様に対応ブロックB2の予測
位置α2x,α2yを入力する(ステップS16)。そ
して、この予測位置α2x,α2yに基づき、対応ブロ
ックB2を探索する(ステップS17)。この探索で得
られた対応ブロックB2を用いて、上式H17,H18
で同様に基準ブロックA2と対応ブロックB2とのずれ
量S2を算出する(ステップS18)。そして、求めら
れたずれ量S1xをX方向の移動量、ずれ量S1yをY
方向の移動量とする(ステップS19)。そして回転量
を次式、
Similar to the above, the predicted positions α2x and α2y of the corresponding block B2 are input (step S16). Then, the corresponding block B2 is searched based on the predicted positions α2x and α2y (step S17). Using the corresponding block B2 obtained in this search, the above equations H17, H18
Similarly, the shift amount S2 between the reference block A2 and the corresponding block B2 is calculated (step S18). Then, the calculated shift amount S1x is the movement amount in the X direction, and the shift amount S1y is Y.
The amount of movement in the direction is set (step S19). And the amount of rotation is

【0083】[0083]

【数1】 で算出し(ステップS20)、リターンする。[Equation 1] Is calculated (step S20), and the process returns.

【0084】次に対応ブロックBの探索処理について説
明する。本実施例では、8画素×8画素のブロックサイ
ズで対応ブロックB1について探索処理する例について
説明する。
Next, the search process for the corresponding block B will be described. In the present embodiment, an example of performing a search process for the corresponding block B1 with a block size of 8 pixels × 8 pixels will be described.

【0085】ここで図11(b)を参照して、探索のた
めに用いる相関の演算について説明する。図11(b)
において、画像Aの基準ブロックの1番左上端の画素を
DA(0,0)とし、このDA(0,0)と実際の相関
を求めるブロックの左上端の画素をDp(0,0)とす
る。
Now, with reference to FIG. 11B, the calculation of the correlation used for the search will be described. FIG. 11B
, The first upper left pixel of the reference block of image A is DA (0,0), and the upper left pixel of the block for which the actual correlation with this DA (0,0) is Dp (0,0). To do.

【0086】この画素DA(0,0)と画素Dp(0,
0)との差から右下端の画素DA(7,7)と画素Dp
(7,7)の差までを順番に求めて、その絶対値を足し
たものを相関値とする。これを式で表すと、
This pixel DA (0,0) and pixel Dp (0,
0) from the lower right pixel DA (7,7) and pixel Dp
The difference up to (7, 7) is sequentially obtained, and the absolute value is added to obtain the correlation value. If this is expressed by an equation,

【0087】[0087]

【数2】 となる。ここで、qは相関誤差で、相関の度合いを示
し、相関はqの値が小さいほど大きいものとし、qの値
が小さい程、相関性が良い。
[Equation 2] Becomes Here, q is a correlation error and indicates the degree of correlation. The smaller the value of q, the larger the correlation. The smaller the value of q, the better the correlation.

【0088】さらに図12には、それぞれの基準ブロッ
クの相関を導くためのブロックの位置(座標)の表し方
について示す。画像Aの基準ブロックの位置は、ブロッ
クの左上の画素の位置を基準とし、ブロックの座標とす
る。従って、基準ブロックの座標はA1x,A1y、画
像Bの予測位置の対応ブロックの座標はα1x,α1y
とする。
Further, FIG. 12 shows how to represent the position (coordinates) of the blocks for deriving the correlation between the respective reference blocks. The position of the reference block of the image A is based on the position of the pixel at the upper left of the block and is the coordinates of the block. Therefore, the coordinates of the reference block are A1x and A1y, and the coordinates of the corresponding block at the predicted position of the image B are α1x and α1y.
And

【0089】さらに、実際に相関を求めるブロックは、
最初のブロックの位置から周辺に2画素づつずらした範
囲で探すものとすれば、例えば1番左上にずれているブ
ロックの位置は、α1x−2,α1y−2で表され、周
辺ブロックで1番右下のブロックの位置は、α1x+
2,α1y+2で表される。
Further, the block for actually obtaining the correlation is
Assuming that the search is performed in a range shifted by 2 pixels from the position of the first block to the periphery, for example, the position of the block shifted to the upper left of the first block is represented by α1x-2, α1y-2, and the peripheral block is the first block. The position of the lower right block is α1x +
2, represented by α1y + 2.

【0090】次に、図13に示すフローチャートを参照
して、探索処理について説明する。最初に、予測位置情
報があるか否かを判定する(ステップS31)。予測位
置が設定されていない場合(NO)、通常のすべての画
素に対して探索[通常サーチ]を行う(ステップS3
2)。この通常サーチを行う場合、例えば、サーチエリ
アが64画素×64画素であれば、合計3249回のブ
ロック相関を演算することとなる。しかし、この判定で
予測位置情報があると判定された場合(YES)、前述
したように、次式に基づいて予測位置の相関を求める
(ステップS33)。
Next, the search process will be described with reference to the flowchart shown in FIG. First, it is determined whether there is predicted position information (step S31). If the predicted position is not set (NO), a search [normal search] is performed for all normal pixels (step S3).
2). When performing this normal search, for example, if the search area is 64 pixels × 64 pixels, the block correlation is calculated a total of 3249 times. However, if it is determined in this determination that there is the predicted position information (YES), the correlation of the predicted position is obtained based on the following equation as described above (step S33).

【0091】[0091]

【数3】 ここで、qは前述した相関誤差である。Dα1は、上側
の予測位置ブロックの1画素のデータそのものの値を示
し、DA1は上側の基準ブロックを構成する1画素のデ
ータの値そのものを示す。nは許容量を表し、予測位置
の相関値qが予め設定した許容量よりも低い場合は、後
述するように予測位置による探索の信頼性が低いことを
意味し、通常サーチを行う。
(Equation 3) Here, q is the above-mentioned correlation error. Dα1 indicates the value of the data itself of one pixel in the upper prediction position block, and DA1 indicates the value of the data itself of one pixel forming the upper reference block. n represents an allowable amount, and when the correlation value q of the predicted position is lower than the preset allowable amount, it means that the reliability of the search based on the predicted position is low as will be described later, and the normal search is performed.

【0092】次に、求められた予測位置の相関値qと、
許容値nと比較する(ステップS34)。この比較で予
測位置の相関値qが許容値n以下であれば(NO)、つ
まり予測位置による探索の信頼性が低いと判断され、ス
テップS32に移行し、通常サーチを行う。
Next, the calculated correlation value q of the predicted position,
The allowable value n is compared (step S34). If the correlation value q of the predicted position is equal to or smaller than the allowable value n in this comparison (NO), that is, it is determined that the reliability of the search based on the predicted position is low, the process proceeds to step S32, and the normal search is performed.

【0093】しかしステップS34の比較で、予測位置
の相関値qが許容値nより大きいのであれば(YE
S)、予測される対応ブロックの周辺2画素の範囲でサ
ーチを行うことになる。この時、最初に予測位置と相関
を比較する位置の座標を、Iにα1x−2,Jにα1y
−2を代入し(ステップS35)、次式により、相関値
γを求める(ステップS36)。
However, if the correlation value q of the predicted position is larger than the allowable value n in the comparison in step S34 (YE
S), the search is performed within the range of two pixels around the predicted corresponding block. At this time, the coordinates of the position for which the correlation is first compared with the predicted position are α1x−2 for I and α1y for J.
-2 is substituted (step S35), and the correlation value γ is obtained by the following equation (step S36).

【0094】[0094]

【数4】 ここで、qは前述した相関誤差であり、Dp1は予測位
置の周辺のブロック、つまり現在相関を計算しているブ
ロックを構成する画素のデータの値を示す。
[Equation 4] Here, q is the above-mentioned correlation error, and Dp1 represents the value of the data of the pixels forming the block around the predicted position, that is, the block for which the correlation is currently calculated.

【0095】次に、求められた相関値γが、ステップS
33で求めた相関値qよりも大きいか否かを判定する
(ステップS37)。この判定で相関値γが相関値q未
満であれば(NO)、すなわち相関値γの方が相関が高
いと判定された場合には、予測位置より対応点として正
確なものと想定されるため、Iをα1x,Jをα1yに
予測位置として再設定する(ステップS38)。
Next, the calculated correlation value γ is calculated in step S
It is determined whether it is larger than the correlation value q obtained in 33 (step S37). If the correlation value γ is less than the correlation value q in this determination (NO), that is, if the correlation value γ is determined to have a higher correlation, it is assumed that the corresponding point is more accurate than the predicted position. , I as α1x and J as α1y as predicted positions (step S38).

【0096】さらに相関値γを新たな予測位置として相
関値qと入れ替え(ステップS39)、ステップS35
に戻り、再度、相関誤差を求める。しかし、前記ステッ
プS37の判定で、相関値γが相関値qより大きければ
(YES)、qの方が相関が高い、つまり予測位置の方
が相関が良かったと判断された場合は、Iとα1x+2
を比較し(ステップS40)、α1x+2に達するまで
Iをインクリメントさせて(ステップS41)、ステッ
プS36に戻り、同じ処理を繰り返す。
Further, the correlation value γ is replaced with the correlation value q as a new predicted position (step S39), and step S35.
Then, the correlation error is obtained again. However, if it is determined in step S37 that the correlation value γ is greater than the correlation value q (YES), it is determined that q has a higher correlation, that is, the predicted position has a better correlation, then I and α1x + 2.
Are compared (step S40), I is incremented until α1x + 2 is reached (step S41), the process returns to step S36, and the same processing is repeated.

【0097】同様に、Jがα1y+2に達するまで(ス
テップS42)、Iを一時的にα1x−2に戻し(ステ
ップS43)、さらにJをインクリメントさせて(ステ
ップS44)、同じ処理を行う。このIを一端α1x−
2に戻すのは、サーチは横方向に5回、縦方向にも5
回、合計で25回やらなければならないため、一旦、横
方向に行い、次いで、1度Jをインクリメントする時
に、また横方向をもとに戻すための操作である。
Similarly, until J reaches α1y + 2 (step S42), I is temporarily returned to α1x-2 (step S43), J is further incremented (step S44), and the same processing is performed. This I is once α1x-
To return to 2, the search is performed 5 times in the horizontal direction and 5 times in the vertical direction.
Since it has to be performed 25 times in total, the operation is performed once in the lateral direction and then when the J is incremented once, the operation is performed again in the lateral direction.

【0098】このような処理を設定した回数分行った後
に、最終的に予測位置となるα1xを対応点として、B
1x,α1yをB1yとして、処理を終了する(ステッ
プS45)。
After such processing is performed a set number of times, the final predicted position α1x is set as the corresponding point, and B
The process is terminated by setting 1x and α1y to B1y (step S45).

【0099】なお、このフローチャートでは、対応ブロ
ック(対応点)B1の探索について述べているが、対応
ブロック(対応点)B2を求める処理も同様である。次
にオーバーラップ領域に文字や絵など記載がなく、コン
トラストデータのある基準ブロックが設定できない例に
ついて説明する。
Although this flowchart describes the search for the corresponding block (corresponding point) B1, the process for obtaining the corresponding block (corresponding point) B2 is the same. Next, an example in which characters or pictures are not described in the overlap area and a reference block having contrast data cannot be set will be described.

【0100】このような場合には、1つの手法として、
デフォルト位置で貼り合わせることが考えられる。この
デフォルト位置とは、例えば2つのオーバーラップ領域
の原点を重ね合わせた位置である。
In such a case, one method is as follows.
It is conceivable to attach them at the default position. The default position is, for example, a position where the origins of two overlapping areas are overlapped.

【0101】図14のフローチャートを参照して説明す
る。まず、移動量,回転量を求める際に、基準ブロック
のデータがあるか否かを判定する(ステップS51)。
この判定で、基準ブロックにデータがある場合は(YE
S)、前述したように移動量,回転量を算出する(ステ
ップS52)。しかし、基準ブロックにデータが無い場
合は(NO)、所定のデフォルト位置、例えば、原点を
重合わせるのであれば、“0”をそれぞれ移動量,回転
量に設定する(ステップS53)。
Description will be made with reference to the flowchart in FIG. First, when determining the movement amount and the rotation amount, it is determined whether or not there is data of the reference block (step S51).
In this judgment, if there is data in the reference block (YE
S), as described above, the movement amount and the rotation amount are calculated (step S52). However, if there is no data in the reference block (NO), if a predetermined default position, for example, the origin is superposed, "0" is set to the movement amount and the rotation amount, respectively (step S53).

【0102】そして、それらのデフォルト位置で貼り合
わせ、その旨をユーザに告知し処理を終了する(ステッ
プS54)。このようにデフォルト位置での貼り合わせ
は、基準ブロックにデータが無くて貼り合わせ処理がで
きない場合以外にも、例えば、カメラの製造の時の調整
時で予想を使わずに貼り合わせを行いたい時や、撮影が
難しい場面を撮るような際、カメラの予測を越えたとこ
ろで貼り合わせを行わなければならない場合は、ユーザ
の切り換えにより予測を使用しないでデフォルト位置で
貼り合わせることが有効になる。
Then, the pieces are pasted at their default positions, the user is notified of the fact, and the process is terminated (step S54). In this way, the bonding at the default position is not limited to when the bonding process cannot be performed because there is no data in the reference block. For example, when bonding at the time of manufacturing the camera without using prediction Alternatively, when a scene that is difficult to shoot is to be taken and pasting must be performed beyond the prediction of the camera, it is effective to perform pasting at the default position without using the prediction due to user switching.

【0103】また、基準ブロックにデータがない場合の
他の手法として、図15に示すフローチャートの手順に
よる予測位置で貼り合わせる手法がある。まず、移動
量,回転量を算出する際に、基準ブロックにデータがあ
るか否かを判定する(ステップS61)。この判定で、
基準ブロックにデータがある場合は(YES)、前述し
たように移動量,回転量を算出する(ステップS6
2)。しかし、基準ブロックにデータが無い場合は(N
O)、予測位置α1,α2を入力する(ステップS6
3)。
As another method in the case where there is no data in the reference block, there is a method of pasting at the predicted position according to the procedure of the flowchart shown in FIG. First, when calculating the movement amount and the rotation amount, it is determined whether or not there is data in the reference block (step S61). With this judgment,
If the reference block has data (YES), the movement amount and the rotation amount are calculated as described above (step S6).
2). However, if there is no data in the reference block, (N
O), and input predicted positions α1 and α2 (step S6)
3).

【0104】そして、予測位置を対応ブロック(対応
点)B1の位置に用いるため、α1を対応点B1に設定
し、α2を対応点B2に設定する(ステップS64)。
これらの設定により、対応点B1,B2を用いた移動
量,回転量を算出する(ステップS65)。そして、予
測位置で貼り合わせ、その旨をユーザに告知し処理を終
了する(ステップS66)。
Since the predicted position is used for the position of the corresponding block (corresponding point) B1, α1 is set as the corresponding point B1 and α2 is set as the corresponding point B2 (step S64).
With these settings, the movement amount and the rotation amount using the corresponding points B1 and B2 are calculated (step S65). Then, the pasting is performed at the predicted position, the user is notified of the fact, and the process is ended (step S66).

【0105】但し、本実施例では、基準点を境界部内で
固定して説明したが、これに限定されるものではなく、
貼り合わせを行う毎に基準点の位置を変えてもよい。例
えば、白画素と黒画素の数が同数であるような特徴をも
ったブロックを基準ブロックととすると、さらに探索し
た結果の確度が向上する。
However, in the present embodiment, the reference point is described as being fixed within the boundary, but the present invention is not limited to this.
The position of the reference point may be changed each time the bonding is performed. For example, if a block having a characteristic that the number of white pixels and the number of black pixels are the same is used as the reference block, the accuracy of the search result is further improved.

【0106】次に図16を参照して前述した第1実施例
において、装置内のメモリ11が、撮影する全部分画像
を記憶できる容量がある例について説明する。まず、撮
影する全部の部分画像(全エリア)について露出する
(ステップS71)。次に、移動量,回転量を算出する
(ステップS72)。この移動量,回転量の算出につい
ては、前述した図9のステップS7で説明した処理と同
処理を行う。
In the first embodiment described above with reference to FIG. 16, an example in which the memory 11 in the apparatus has a capacity capable of storing all partial images to be photographed will be described. First, all the partial images (all areas) to be photographed are exposed (step S71). Next, the amount of movement and the amount of rotation are calculated (step S72). Regarding the calculation of the movement amount and the rotation amount, the same processing as the processing described in step S7 of FIG. 9 described above is performed.

【0107】そして、算出された移動量,回転量を利用
して、それぞれの部分画像の貼合わせ処理を行う(ステ
ップS73)。この貼合わせ処理は、前述した図9のス
テップS8と同等の処理を行うものとする。
Then, using the calculated movement amount and rotation amount, the respective partial images are combined (step S73). This laminating process is the same process as step S8 of FIG. 9 described above.

【0108】次に、全部分画像に渡って画面の貼り合わ
せが終了したか否かを判断する(ステップS74)。こ
の判断で、まだ全部分画像に渡って貼り合わせが終了し
ていない場合は(NO)、ステップS72に戻り、同様
の処理を行う。しかし全部分画像に渡って画面の貼り合
わせが終了したら(YES)、終了する。
Next, it is judged whether or not the screens are pasted over all the partial images (step S74). In this determination, if the combining has not been completed over all the partial images (NO), the process returns to step S72 and the same process is performed. However, when the pasting of the screens is completed over all the partial images (YES), the process ends.

【0109】以上のように撮影される全エリアを連続露
出するために、1枚目の露出開始から最終画像の露出終
了までの時間が、毎回貼り合わせ処理を行う場合よりも
短くなり、手振れや被写体側の像ぶれ等を軽減すること
が可能となる。
As described above, in order to continuously expose all the areas to be photographed, the time from the start of the exposure of the first image to the end of the exposure of the final image is shorter than that in the case where the bonding process is performed each time, and a camera shake or hand shake occurs. It is possible to reduce image blurring on the subject side.

【0110】次に、前述した図16のステップS72に
おいて、移動量,回転量のすべてが算出できる場合につ
いて説明したが、算出できない部分画像があった場合に
ついて説明する。図17に示すフローチャートを参照し
て説明する。
Next, the case where all of the movement amount and the rotation amount can be calculated in step S72 of FIG. 16 has been described, but the case where there is a partial image that cannot be calculated will be described. This will be described with reference to the flowchart shown in FIG.

【0111】まず、撮影する全部の部分画像(全エリ
ア)について露出する(ステップS81)。次に、全エ
リアの部分画像間の相関関係を調べる(ステップS8
2)。そして、全エリアの相関がとれたか否かを判断す
る(ステップS83)。この判断において、全部分画像
間の相関がすべてとれた場合には(YES)、移動量,
回転量を算出する(ステップS84)。この算出は、前
述した図9のステップS7に示した手順に基づくものと
する。
First, all the partial images (all areas) to be photographed are exposed (step S81). Next, the correlation between the partial images in all areas is examined (step S8).
2). Then, it is determined whether or not the correlation has been established for all areas (step S83). In this determination, if all the correlations between all the partial images are obtained (YES), the movement amount,
The rotation amount is calculated (step S84). This calculation is based on the procedure shown in step S7 of FIG. 9 described above.

【0112】そして算出された移動量,回転量に基づ
き、貼り合わせ処理を行い(ステップS85)、リター
ンする。しかしステップS83の判断で、いずれかの部
分画像間の相関がとれなかった場合には(NO)、全部
の部分画像間の相関がすべてとれなかったか否か判断す
る(ステップS86)。この判断で、すべての部分画像
間で相関がとれなければ(YES)、エラー処理を行い
(ステップS87)、リターンする。この場合、エラー
処理の一部として、その旨のエラー表示や前述したよう
なデフォルト値で貼り合わせを行ってもよく、適宜に処
理してもよい。
Then, the laminating process is performed based on the calculated movement amount and rotation amount (step S85), and the process returns. However, if it is determined in step S83 that no correlation can be obtained between any of the partial images (NO), it is determined whether all correlations between all the partial images have not been obtained (step S86). If no correlation is found among all the partial images in this determination (YES), error processing is performed (step S87), and the process returns. In this case, as a part of the error processing, the error display to that effect or the pasting with the default value as described above may be performed, or appropriate processing may be performed.

【0113】しかしステップS86で、相関がすべてと
れない場合ではなく、少なくとも一部で相関がとれる場
合は(NO)、相関がとれない部分の移動量,回転量の
算出を行い(ステップS88)、前記ステップS85に
移行し、貼合わせ処理を行い、リターンする。
However, in step S86, if not all correlations can be obtained, but at least some correlations are obtained (NO), the movement amount and rotation amount of the non-correlation portions are calculated (step S88), The process proceeds to step S85, the bonding process is performed, and the process returns.

【0114】次に図18に示すフローチャートを参照し
て、前述した図17のステップS88における移動量,
回転量の算出について詳細に説明する。ここで、部分画
像は4分割され、それぞれをエリアA,エリアB,エリ
アC,エリアDの4枚組で1つの画像が構成されるもの
とする。また、エリアA,B間の移動量,回転量をそれ
ぞれ移動量1,回転量1、エリアB,C間を移動量2,
回転量2、エリアC,D間の移動量,回転量を移動量
3,回転量3とする。
Next, referring to the flow chart shown in FIG. 18, the movement amount in step S88 of FIG.
The calculation of the rotation amount will be described in detail. Here, it is assumed that the partial image is divided into four, and each image is composed of a set of four areas A, B, C, and D. Further, the movement amount and the rotation amount between the areas A and B are the movement amount 1, the rotation amount 1, and the movement amount 2 between the areas B and C are 2, respectively.
The rotation amount 2, the movement amount between the areas C and D, and the rotation amount are set as the movement amount 3 and the rotation amount 3.

【0115】まず、エリアA,B間及びエリアB,C間
のみ相関がとれないか否か判定する(ステップS9
1)。この判定で、相関がとれない場合は(YES)、
それらAB間,BC間の移動量,回転量を算出し(ステ
ップS92)、リターンする。ここで、AB間,BC間
の移動量,回転量の算出は、図19(a)に示すフロー
チャートの手順により算出される。
First, it is judged whether or not the correlation can be taken only between the areas A and B and between the areas B and C (step S9).
1). If there is no correlation in this judgment (YES),
The amount of movement and the amount of rotation between AB and BC are calculated (step S92), and the process returns. Here, the amount of movement and the amount of rotation between AB and BC are calculated by the procedure of the flowchart shown in FIG.

【0116】これらのAB間,BC間の移動量,回転量
の算出方法としては、最終的にはCD間の移動量,回転
量が求められているため、それぞれのAB間の移動量
1,回転量1に対しては求められているCD間の移動量
3,回転量3の値を入力し計算する。同様に、BC間の
移動量2,回転量2に対してもそれぞれ移動量3,回転
量3の値を代入し計算する。
As the method of calculating the movement amount and rotation amount between AB and BC, since the movement amount and rotation amount between CDs are finally obtained, the movement amount between each AB is 1. For the rotation amount 1, the calculated values of the movement amount 3 between CDs and the rotation amount 3 are input and calculated. Similarly, the values of the movement amount 3 and the rotation amount 3 are respectively substituted and calculated for the movement amount 2 and the rotation amount 2 between BCs.

【0117】しかし、前記ステップS91で相関がとれ
た場合は(NO)、次に、エリアB,C間及びエリア
C,D間のみ相関がとれないか否か判定する(ステップ
S93)。この判定で、相関がとれない場合は(YE
S)、それらBC間,CD間の移動量,回転量を算出し
(ステップS94)、リターンする。ここで、BC間,
CD間の移動量,回転量の算出は、図19(b)に示す
フローチャートの手順により算出される。このBC間,
CD間の算出においては、AB間が算出されていること
を前提条件とし、それぞれ算出されていないBC間,C
D間の移動量2,移動量3、また回転量2,回転量3に
対してAB間の移動量1,回転量1をそれぞれ入力し算
出する。
However, if the correlation is obtained in the step S91 (NO), it is next determined whether or not the correlation can be obtained only between the areas B and C and between the areas C and D (step S93). If there is no correlation in this judgment (YE
S), the amount of movement and the amount of rotation between the BCs and between the CDs are calculated (step S94), and the process returns. Here, between BC,
The movement amount and the rotation amount between CDs are calculated by the procedure of the flowchart shown in FIG. Between this BC,
In the calculation between CDs, it is a prerequisite that AB is calculated, and between BC and C that are not calculated, respectively.
The movement amount 2 and movement amount 3 between D, and the movement amount 1 and rotation amount 1 between AB are input and calculated for the rotation amount 2 and rotation amount 3, respectively.

【0118】しかし、前記ステップS93で相関がとれ
た場合は(NO)、次に、エリアA,B間及びエリア
C,D間のみ相関がとれないか否か判定する(ステップ
S95)。この判定で、相関がとれない場合は(YE
S)、それらAB間,CD間の移動量,回転量を算出し
(ステップS96)、リターンする。ここで、AB間,
BC間の移動量,回転量の算出は、図19(c)に示す
フローチャートの手順により算出される。このAB,C
D間の算出は、BC間が算出されているものとし、BC
間の移動量2,回転量2をそれぞれAB間,CD間の移
動量1,回転量1,移動量3,回転量3にそれぞれ入力
し算出する。
However, if the correlation is obtained in step S93 (NO), then it is determined whether or not the correlation can be obtained only between the areas A and B and between the areas C and D (step S95). If there is no correlation in this judgment (YE
S), the movement amount and rotation amount between AB and CD are calculated (step S96), and the process returns. Here, between AB,
The amount of movement and the amount of rotation between BCs are calculated by the procedure of the flowchart shown in FIG. This AB, C
Calculation between D is assumed to be between BC and BC
The amount of movement 2 and the amount of rotation 2 are input to the amount of movement between AB and the amount of rotation between CDs 1, the amount of rotation 1, the amount of movement 3, and the amount of rotation 3, respectively, and calculated.

【0119】しかし、前記ステップS95で相関がとれ
た場合は(NO)、次に、エリアA,B間のみに相関が
とれないか否か判定する(ステップS97)。この判定
で相関がとれない場合は(YES)、それらAB間の移
動量,回転量を算出し(ステップS98)、リターンす
る。ここで、AB間の移動量,回転量の算出は、図19
(d)に示すフローチャートの手順により算出される。
このAB間の移動量1,回転量1の算出は、AB間,B
C間の移動量2,回転量2、また移動量3,回転量3が
算出されているものとし、これら2つを利用して、移動
量1は移動量2から移動量3を引いた値に、移動量2を
加算した値を入力し算出する。同様に、回転量は回転量
2から回転量3を引いた値に回転量2を加えたものを、
回転量1に入力し算出する。
However, if the correlation is obtained in step S95 (NO), then it is determined whether or not the correlation can be obtained only between the areas A and B (step S97). If no correlation is obtained in this determination (YES), the amount of movement and the amount of rotation between the ABs are calculated (step S98), and the process returns. Here, calculation of the amount of movement and the amount of rotation between AB is performed with reference to FIG.
It is calculated by the procedure of the flowchart shown in (d).
Calculation of the movement amount 1 and the rotation amount 1 between AB is performed between AB and B
It is assumed that the movement amount 2, the rotation amount 2, the movement amount 3, and the rotation amount 3 between C are calculated, and using these two, the movement amount 1 is a value obtained by subtracting the movement amount 3 from the movement amount 2. A value obtained by adding the movement amount 2 is input to and calculated. Similarly, the rotation amount is obtained by adding the rotation amount 2 to the value obtained by subtracting the rotation amount 3 from the rotation amount 2
The amount of rotation 1 is input and calculated.

【0120】しかし、前記ステップS97で相関がとれ
た場合は(NO)、次に、エリアB,C間のみに相関が
とれないか否か判定する(ステップS99)。この判定
で相関がとれない場合は(YES)、それらBC間の移
動量,回転量を算出し(ステップS100)、リターン
する。ここで、BC間の移動量,回転量の算出は、図1
9(e)に示すフローチャートの手順により算出され
る。
However, if the correlation is obtained in step S97 (NO), then it is determined whether or not the correlation can be obtained only between the areas B and C (step S99). If no correlation is obtained in this determination (YES), the amount of movement and the amount of rotation between these BCs are calculated (step S100), and the process returns. Here, the calculation of the amount of movement and the amount of rotation between BCs is performed as shown in FIG.
It is calculated by the procedure of the flowchart shown in 9 (e).

【0121】このBC間の算出は、移動量2,回転量2
を求める時に、AB間,CD間の移動量1,回転量1,
移動量3,回転量3を利用して求める。その求める方法
としては、移動量2に対して、移動量1と移動量3を加
えたものを2で割った値を利用する。同様に、回転量に
対しても、回転量1と回転量3を加算したものを2で割
ることによって求める。
The calculation between the BCs is performed by the movement amount 2 and the rotation amount 2
When determining, the movement amount between AB and CD, the rotation amount 1,
It is calculated using the movement amount 3 and the rotation amount 3. As a method of obtaining the value, a value obtained by adding the movement amount 1 and the movement amount 3 to the movement amount 2 and dividing by 2 is used. Similarly, the rotation amount is calculated by adding the rotation amount 1 and the rotation amount 3 and dividing by 2.

【0122】しかし、前記ステップS99で相関がとれ
た場合は(NO)、次に、エリアC,D間のみに相関が
とれないか否か判定する(ステップS101)。この判
定で相関がとれない場合は(YES)、それらCD間の
移動量,回転量を算出し(ステップS102)、リター
ンする。ここで、CD間の移動量,回転量の算出は、図
19(f)に示すフローチャートの手順により算出され
る。
However, if the correlation is obtained in step S99 (NO), then it is determined whether or not the correlation can be obtained only between the areas C and D (step S101). If no correlation is found in this determination (YES), the amount of movement and the amount of rotation between these CDs are calculated (step S102), and the process returns. Here, the amount of movement and the amount of rotation between CDs are calculated by the procedure of the flowchart shown in FIG.

【0123】このCD間の算出は、CD間の移動量3,
回転量3が算出されているので、AB間,BC間の移動
量2,回転量2,移動量1,回転量1を利用して求め
る。移動量3は、移動量2から移動量1を引いた値に、
移動量2を加算したものを入力し算出する。回転量3に
ついては、回転量2から回転量1を引いた値に、回転量
2を加算したものを入力する。
The calculation between the CDs is performed by calculating the moving amount 3 between the CDs.
Since the rotation amount 3 has been calculated, it is calculated using the movement amount 2 between AB and BC, the rotation amount 2, the movement amount 1, and the rotation amount 1. The movement amount 3 is a value obtained by subtracting the movement amount 1 from the movement amount 2,
A value obtained by adding the movement amount 2 is input and calculated. As the rotation amount 3, the value obtained by subtracting the rotation amount 1 from the rotation amount 2 and adding the rotation amount 2 is input.

【0124】また、前記ステップS101で相関がとれ
た場合には(NO)、リターンして終了する。なお、本
実施例では、補間等を使って相関がとれなかったものに
ついて説明したが、その他、移動量,回転量については
機械的誤差等を吸収するためのデフォルト位置からの相
対量としてもよい。
When the correlation is obtained in step S101 (NO), the process returns and ends. In the present embodiment, the case where the correlation could not be obtained by using the interpolation or the like has been described, but in addition, the movement amount and the rotation amount may be relative amounts from the default position for absorbing mechanical errors and the like. .

【0125】次に、第3実施例としての撮像装置につい
て説明する。この実施例の撮像装置の構成は、前述した
第1実施例と同様であり、動作が異なっている。この撮
像装置では、露光間隔を一定にすることを特徴とする。
すなわち、第1実施例では、2回目以降の貼り合わせ処
理においては、前回のずれ量(S1x ,S1y ,S2
x ,S2y )により予測位置を決定しているが、各分割
画像撮像する時の露光間隔については特に定義していな
かった。本実施例は露光間隔を一定にすることにより、
予測位置の算出を容易にするものである。
Next, an image pickup apparatus as the third embodiment will be described. The configuration of the image pickup apparatus of this embodiment is the same as that of the first embodiment described above, but the operation is different. This imaging device is characterized in that the exposure interval is constant.
That is, in the first embodiment, in the second and subsequent bonding processes, the previous shift amounts (S1 x , S1 y , S2
Although the predicted position is determined by x , S2 y ), the exposure interval at the time of capturing each divided image is not particularly defined. In this embodiment, by making the exposure interval constant,
The calculation of the predicted position is facilitated.

【0126】図20は本実施例における取り込み画像を
示しており、ミラーを回動させることにより、A,B,
C,Dに分割された部分画像を順次取り込む。図21
は、露光タイミングを説明するためのタイムチャートで
ある。
FIG. 20 shows a captured image in this embodiment. By rotating the mirror, A, B,
The partial images divided into C and D are sequentially captured. Figure 21
[Fig. 6] is a time chart for explaining exposure timing.

【0127】基準時間として垂直同期信号VDに同期し
て各処理が行われる。最初に分割画像Aの露光が行わ
れ、その後にミラー駆動(Bを露光するためのミラー位
置への駆動)及び信号処理が行われる。信号処理では、
撮像素子からの読み出しと貼り合わせ処理が行われる
(但し、Aの露光後は読み出しのみ行われる)。
As a reference time, each processing is performed in synchronization with the vertical synchronizing signal VD. First, the divided image A is exposed, and then the mirror driving (driving to the mirror position for exposing B) and the signal processing are performed. In signal processing,
Reading from the image sensor and bonding processing are performed (however, after the exposure of A, only reading is performed).

【0128】以後、同様にB,C,Dの露光とミラー駆
動,信号処理が行われる。ここで、th1 〜th4 は処
理時間を示すが、この時間は被写体の状態により大きく
変化する(予測位置での相関が小さい場合や、予測位置
情報がない場合、貼り合わせのサーチ処理時間が長くな
る)。
Thereafter, similarly, B, C, and D exposure, mirror driving, and signal processing are performed. Here, th 1 to TH 4 is shows the processing time, and if this time is smaller correlation at that varying (predicted position largely by the state of the object, if there is no predicted position information, the search processing time of bonding become longer).

【0129】一般的には、信号処理が終了し次第、次の
分割画像の露光を開始するが、それでは露光間隔(図2
1のtR1,tR2,tR3)が毎回変化してしまい、その結
果、手振れによる移動量も前回から変化してしまうこと
になる。
Generally, as soon as the signal processing is completed, the exposure of the next divided image is started.
1 t R1 , t R2 , t R3 ) changes every time, and as a result, the movement amount due to camera shake also changes from the previous time.

【0130】そこで、露光間隔を一定にする(tR1=t
R2=tR3とする)ことにより、手振れによる移動量は、
ほぼ前回と同じ値として考えられる。前回の移動量S1
x ,S1y ,S2x ,S2y をそのまま使うことができ
る。すなわち、前述した式H1〜H4が使用できる。
Therefore, the exposure interval is made constant (t R1 = t
R2 = t R3 ), the amount of movement due to camera shake is
It can be considered as the same value as the last time. Previous movement amount S1
x , S1 y , S2 x , S2 y can be used as they are. That is, the above formulas H1 to H4 can be used.

【0131】また、この時設定する露光間隔は、想定さ
れる最長時間に設定することにより、どのような被写体
でも露光間隔が不足することはなくなる。次に、第4実
施例としての撮像装置について説明する。この実施例の
撮像装置の構成は、前述した第1実施例と同様であり、
動作が異なっている。
Further, by setting the exposure interval set at this time to the assumed maximum time, the exposure interval will not be insufficient for any subject. Next, an image pickup apparatus as a fourth embodiment will be described. The configuration of the image pickup apparatus of this embodiment is the same as that of the first embodiment described above,
The behavior is different.

【0132】通常、複数の画像を貼り合わせて一枚の画
像を生成する場合、被写体の部分によっては、各部分画
像の明るさが異なるため、それぞれの部分画像が適正な
露出となるように露光レベルを調節する場合もある。し
かし、貼り合わせ処理での正確な相関検出を行う若しく
は、画像の繋ぎ目を目立たなくするという点で、露光レ
ベルは一定にした方が良い。
Normally, when a plurality of images are combined to generate one image, the brightness of each partial image differs depending on the part of the subject, so that each partial image is exposed appropriately. The level may be adjusted. However, it is better to keep the exposure level constant in terms of performing accurate correlation detection in the bonding process or making the seams of images inconspicuous.

【0133】そこで、本実施例では1枚目の画像(図2
0に示すA)を取り込む時点で露光レベルを決定して、
露光時間,絞り,撮像回路のゲイン等を一定にし、以降
(B,C,D)の画像を取り込む間、固定している。
Therefore, in the present embodiment, the first image (see FIG.
The exposure level is determined when A) shown in 0 is taken in,
The exposure time, the aperture, the gain of the image pickup circuit, etc. are made constant, and are fixed while the subsequent (B, C, D) images are captured.

【0134】ここで、露光レベルを一定にするために
は、露光時間,絞り,ゲイン等を変えてもトータルの露
光レベルを変えないようにできるが、そのための制御が
複雑になるため、それぞれを一定にしている。
Here, in order to keep the exposure level constant, it is possible to keep the total exposure level unchanged even if the exposure time, aperture, gain, etc. are changed. It is constant.

【0135】また、露光時間と絞りを一定にすることに
は、それぞれに独自の効果もある。露光時間が変化した
場合、第3実施例において露光間隔を一定にする制御を
行う場合、露光間隔はそれぞれの露光期間の中間で規定
しなければならず、非常に複雑な制御が必要になる。露
光時間を一定にすることにより、図21に示すように露
光間隔は露光開始時間で規定でき、露光間隔を一定にす
る制御が容易になる(露光終了時間で規定することも可
能である)。
Also, making the exposure time and the aperture constant has their own effects. When the exposure time is changed and when the control is performed to keep the exposure interval constant in the third embodiment, the exposure interval must be defined in the middle of each exposure period, which requires very complicated control. By making the exposure time constant, the exposure interval can be defined by the exposure start time as shown in FIG. 21, and the control of making the exposure interval constant becomes easy (it can also be defined by the exposure end time).

【0136】また、絞りについては絞りが変化した場合
それぞれの分割画像の深度によるボケ具合も変化するた
め、画像のつなぎ目が不自然になってしまう。そこで絞
りについても一定の値にしている。
With respect to the aperture, when the aperture changes, the degree of blurring depending on the depth of each divided image also changes, so the joints of the images become unnatural. Therefore, the aperture is also set to a constant value.

【0137】なお露光レベルの決定は、撮影前にミラー
のプリスキャンを行って全画面の情報により行うことも
できる。この方が時間はかかるが、より正確な露光レベ
ルの決定が可能である。
The exposure level can also be determined based on the information of the entire screen by performing a prescan of the mirror before photographing. This takes more time, but more accurate exposure level determination is possible.

【0138】前述した露光間隔を一定にする第3実施例
は、毎回の貼り合わせ処理で前回の移動量をそのまま使
うことができるため、ハード,ソフトの規模が小さくな
るが、実際の信号処理時間が短くても撮影時間が長くな
ってしまうという欠点がある。
In the third embodiment in which the exposure interval is constant as described above, since the previous movement amount can be used as it is in each bonding process, the scale of hardware and software is reduced, but the actual signal processing time is reduced. Even if the length is short, there is a drawback that the shooting time becomes long.

【0139】そこで、第5実施例として、露光間隔は一
定とせずに、信号処理が終了し次第、次の露光開始さ
せ、露光間隔の長短に応じて予測位置を変化させる撮像
装置について説明する。図22には、第5実施例のタイ
ムチャートを示す。ここで、各記号の説明は、第3実施
例(図21)と同様であるため、省略する。
Therefore, as a fifth embodiment, an image pickup apparatus will be described in which the exposure interval is not fixed and the next exposure is started as soon as the signal processing is completed, and the predicted position is changed according to the length of the exposure interval. FIG. 22 shows a time chart of the fifth embodiment. Here, the description of each symbol is the same as that of the third embodiment (FIG. 21), and thus will be omitted.

【0140】各信号処理が終了したら、次のVDに同期
して次の分割画像の露光を開始させている。そのため露
光間隔はtR1≠tR2≠tR3となっている。次に貼り合わ
せ時の予測位置の求め方について説明する。
When each signal processing is completed, the exposure of the next divided image is started in synchronization with the next VD. Therefore, the exposure interval is t R1 ≠ t R2 ≠ t R3 . Next, how to obtain the predicted position at the time of bonding will be described.

【0141】露光間隔が前回から変化した場合、手振れ
による移動量はほぼ露光間隔に比例して増減すると考え
ることができるため、貼り合わせ時の予測位置は以下の
式で表わすことができる。
When the exposure interval changes from the previous time, it can be considered that the movement amount due to camera shake increases or decreases substantially in proportion to the exposure interval. Therefore, the predicted position at the time of bonding can be expressed by the following formula.

【0142】分割画像BとCの貼り合わせ時、 α1x=A1x+(前回のS1x)×tR2/tR1 …S1 α1y=A1y+(前回のS1y)×tR2/tR1 …S2 α2x=A2x+(前回のS2x)×tR2/tR1 …S3 α2y=A2y+(前回のS2y)×tR2/tR1 …S4 となる。分割画像CとDの貼り合わせ時、 α1x=A1x+(前回のS1x)×tR3/tR2 …S5 α1y=A1y+(前回のS1y)×tR3/tR2 …S6 α2x=A2x+(前回のS2x)×tR3/tR2 …S7 α2y=A2y+(前回のS2y)×tR3/tR2 …S8 となる。When the divided images B and C are combined, α1x = A1x + (previous S1x) × t R2 / t R1 ... S1 α1y = A1y + (previous S1y) × t R2 / t R1 ... S2 α2x = A2x + (previous time) S2x) × t R2 / t R1 ... S3 α2y = A2y + (previous S2y) × t R2 / t R1 ... S4. When the divided images C and D are combined, α1x = A1x + (previous S1x) × t R3 / t R2 ... S5 α1y = A1y + (previous S1y) × t R3 / t R2 ... S6 α2x = A2x + (previous S2x) × t R3 / t R2 ... S7 α2y = A2y + (previous S2y) × t R3 / t R2 ... S8.

【0143】この撮像装置により、予測動作をさせつ
つ、撮影時間を短くすることができる。以上の実施例に
基づいて説明したが、本明細書には、以下のような発明
も含まれる。 (1) 少なくとも画面の一端側に他の画面とオーバー
ラップする領域を持つように撮像対象領域を分割して撮
影し、複数の部分画像を得る撮像手段と、前記部分画像
で被貼合わせ画像側のオーバーラップする領域内に任意
の基準点を含む基準ブロックを設定し、貼合わせ画像側
のオーバーラップする領域内で前記基準ブロックと合致
する対応ブロック、若しくは基準点と合致する対応点を
探索し、基準ブロックと対応ブロック、若しくは基準点
と対応点を合致させて、部分画像を貼合わせ処理する画
像貼合わせ手段と、前記画像貼合わせ手段により、少な
くとも前回以前に貼合わせた時に合致した前記基準ブロ
ック若しくは基準点及び、対応ブロック若しくは対応点
の各位置に基づく情報を予測情報として保持し、次回の
部分画像の貼合わせの際に、前記予測情報により貼合わ
せ位置を予測し、貼合わせ位置を前記画像貼合わせ手段
に指示する貼合わせ制御手段と、を具備することを特徴
とする撮像装置。
With this image pickup apparatus, the photographing time can be shortened while performing the predicting operation. Although the description has been given based on the above embodiment, the present invention also includes the following inventions. (1) Image pickup means for obtaining a plurality of partial images by dividing an image pickup target area so as to have an area that overlaps with another screen at least on one side of the screen, and a pasted image side with the partial images Set a reference block including an arbitrary reference point in the overlapping area of, and search for a corresponding block that matches the reference block or a corresponding point that matches the reference point in the overlapping area on the stitched image side. , A reference block and a corresponding block, or a reference point and a corresponding point are matched, the image pasting means for pasting a partial image and the above-mentioned reference that is met at least when pasted by the image pasting means. Information based on each position of the block or reference point and corresponding block or corresponding point is retained as prediction information, and the next partial image is pasted In this case, a pasting position is predicted based on the prediction information, and a pasting control unit for instructing the pasting position to the image pasting unit is included.

【0144】従って、サーチエリアの範囲、位置が容易
に設定でき、そのエリア内の探索で貼合わせ位置が決定
できるため、貼合わせ処理の時間が短縮され、貼合わせ
処理の確度が上がる。 (2) 前記画像貼合わせ手段は、1画像を形成するた
めの全部分画像を貼り合わせた後、1画像として生成す
る手段を含むことを特徴とする前記(1)の撮像装置。
Therefore, the range and position of the search area can be easily set, and the bonding position can be determined by the search in the area. Therefore, the bonding process time is shortened and the bonding process accuracy is improved. (2) The image pickup apparatus according to (1), wherein the image combining means includes means for combining all the partial images for forming one image and then generating as one image.

【0145】従って、貼合わせ処理による画像の移動量
は、以前におこなわれた処理の結果に近い値を示すと考
えられ、これに基づき予測することで高速かつ高い確度
の貼合わせ処理が実現する。 (3) 前記撮像装置は、さらに部分画像の撮像時の手
振れ量を検出する手振れ検出手段を具備し、前記情報に
前記手振れ量に基づく手振れ情報を含むことを特徴とす
る前記(1)の撮像装置。
Therefore, it is considered that the amount of movement of the image due to the bonding processing shows a value close to the result of the processing previously performed, and by performing prediction based on this, the bonding processing with high speed and high accuracy is realized. . (3) The image pickup device according to (1), further comprising a shake detection unit that detects a shake amount when a partial image is picked up, and the information includes shake information based on the shake amount. apparatus.

【0146】従って、部分画像どうしのずれは、ほとん
ど手振れにより生じており、その手振れ量を検出し、予
測情報に役立てることにより、高速かつ高い確度の貼合
わせ処理を実現する。 (4) 前記撮像装置は、撮像装置を構成する部材が有
する固有の機械的及び/又は電気的誤差に基づく誤差情
報を記憶するための誤差情報記憶手段を具備し、前記情
報には、前記誤差情報を含むことを特徴とする前記
(1)の撮像装置。
Therefore, the displacement between the partial images is almost caused by camera shake. By detecting the camera shake amount and using it for prediction information, a high-speed and highly accurate stitching process is realized. (4) The image pickup device includes error information storage means for storing error information based on inherent mechanical and / or electrical error of a member forming the image pickup device, and the information includes the error information. The imaging device according to (1) above, which includes information.

【0147】従って、毎回同量生じる機械的な誤差を記
憶手段を使って記憶しておくことにより、貼合わせ処理
の高速と高い確度が実現できる。 (5) 前記撮像装置は、前記誤差情報記憶手段におけ
る誤差情報を使用形態に応じて変更する学習手段を有す
る前記(4)の撮像装置。
Therefore, by storing the mechanical error that occurs in the same amount each time by using the storage means, high speed and high accuracy of the bonding process can be realized. (5) The image pickup device according to (4), wherein the image pickup device has a learning unit that changes the error information in the error information storage unit according to a usage pattern.

【0148】従って、機械的誤差やユーザのくせ等を学
習し、それを利用して貼合わせ処理の高速と高い確度を
実現する。 (6) 前記画像貼合わせ手段は、被貼合わせ画像のオ
ーバーラップする領域内に設けられた前記基準ブロック
に合致する対応ブロックを探索するために、前記予測情
報に基づいて、貼り合わせ画像重複領域内に所定の大き
さのサーチエリアを設定する手段を、さらに具備するこ
とを特徴とする(1)乃至(5)の撮像装置。
Therefore, the mechanical error and the habit of the user are learned, and the high speed and the high accuracy of the bonding process are realized by utilizing them. (6) The image stitching unit searches the corresponding block matching the reference block provided in the overlapping region of the images to be stitched, based on the prediction information, the stitched image overlapping region. The image pickup device according to any one of (1) to (5), further comprising means for setting a search area having a predetermined size therein.

【0149】従って、予測情報を利用し、対応ブロック
の確実にある小範囲のサーチ・エリアを探すことによ
り、高速を実現する。 (7) 前記貼合わせ手段は、前記被貼合わせ画像のオ
ーバーラップする領域内に設けられる前記基準ブロック
が存在しないとき、前記予測情報に基づいて画像の貼合
わせを行う手段を、さらに具備する前記(1)乃至
(6)の撮像装置。
Therefore, high speed is realized by using the prediction information and surely searching for a small search area in the corresponding block. (7) The laminating means further comprises means for laminating images based on the prediction information when the reference block provided in the overlapping area of the images to be pasted does not exist. The imaging device according to any one of (1) to (6).

【0150】従って、オーバーラップする領域に画像が
ない場合でも、貼合わせることができる。 (8) 前記撮像装置は、少なくとも1つの前記部分画
像に対応する画像データと前記オーバーラップする領域
に対応する画像データを記憶可能な容量を有する部分画
像記憶手段を、さらに具備する前記(1)乃至(7)の
撮像装置。
Therefore, even if there is no image in the overlapping area, the images can be pasted together. (8) The image pickup apparatus further includes partial image storage means having a capacity capable of storing image data corresponding to at least one of the partial images and image data corresponding to the overlapping area. To (7) the imaging device.

【0151】従って、メモリ容量が少なくて済み、装置
の小型化、低コスト化ができる。 (9) 前記撮像装置は、前記撮像対象領域に対応する
画像データ全てを記憶可能な容量を有する全画像記憶手
段を、さらに具備する前記(1)乃至(7)の撮像装
置。
Therefore, the memory capacity is small, and the size and cost of the device can be reduced. (9) The image pickup device according to any one of (1) to (7), further including an all-image storage unit having a capacity capable of storing all image data corresponding to the image pickup target area.

【0152】従って、部分画像の貼合わせの順番を自由
にすることができる。また、時間的に後に取り込んだ部
分画像の貼合わせ結果も予測情報として利用できる。 (10) 前記撮像装置は、前記撮像対象領域に対応す
る画像データ全てを記憶可能な容量を有する全画像記憶
手段を有し、前記貼合わせ手段は、複数回の貼合わせ処
理を行なうことにより、高精細画像を生成する手段を含
み、さらに、被貼合わせ画像のオーバーラップする領域
内に前記基準ブロックが存在しない時には、当該貼合わ
せ処理とは別の貼合わせ処理の貼合わせ位置を予測情報
として用いる手段を含む前記(1)の撮像装置。
Therefore, the order of pasting partial images can be freely set. Also, the result of pasting the partial images captured later in time can be used as the prediction information. (10) The imaging device includes an all-image storage unit having a capacity capable of storing all image data corresponding to the imaging target region, and the bonding unit performs a bonding process a plurality of times, A unit for generating a high-definition image is further included, and when the reference block does not exist in the overlapping area of the image to be pasted, the pasting position of the pasting process different from the pasting process is used as the prediction information. The imaging device according to (1) above, including means for use.

【0153】従って、重複領域内に画像がない場合でも
貼合わせが可能になる。 (11) 前記貼合わせ処理手段は、前記被貼合わせ画
像のオーバーラップする領域内に設けられるべき前記基
準ブロックが存在せず、且つ、前記予測情報も使用せず
に貼合わせ処理を行う際に、当該貼合わせ画像と被貼合
わせ画像とを所定の位置で貼合わせ処理する手段を含む
(1)乃至(6)の撮像装置。
Therefore, even if there is no image in the overlapping area, the pasting can be performed. (11) When the bonding processing means performs the bonding process without the reference block that should be provided in the overlapping area of the image to be bonded and without using the prediction information. The imaging device according to any one of (1) to (6), including means for performing a bonding process on the bonded image and the bonded image at a predetermined position.

【0154】従って所定位置で貼合わせることにより、
必ず全体画像の出力が行われる。 (12) 少なくとも画面の一端側に他の画面とオーバ
ーラップする領域を持つように撮像対象領域を分割して
撮影し、複数の部分画像を得る撮像手段と、前記部分画
像で被貼合わせ画像側のオーバーラップする領域内に任
意の基準点を含む基準ブロックを設定し、貼合わせ画像
側のオーバーラップする領域内で前記基準ブロックと合
致する対応ブロック、若しくは基準点と合致する対応点
を探索し、基準ブロックと対応ブロック、若しくは基準
点と対応点を合致させて、部分画像を貼合わせ処理する
画像貼合わせ手段と、前記画像貼合わせ手段により、貼
合わせを行うことが不可能または不適当な場合で、且
つ、前記予測情報も使用せずに貼合わせ処理を行う際
に、当該貼合わせ画像と被貼合わせ画像とを所定の位置
で貼合わせ処理する手段と、を具備することを特徴とす
る撮像装置。
Therefore, by bonding at a predetermined position,
The entire image is always output. (12) Image pickup means for obtaining a plurality of partial images by dividing an image pickup target area so that at least one end side of the screen has an area overlapping with another screen, and a pasted image side with the partial images Set a reference block including an arbitrary reference point in the overlapping area of, and search for a corresponding block that matches the reference block or a corresponding point that matches the reference point in the overlapping area on the stitched image side. It is impossible or unsuitable to perform the combining by the image combining means for matching the reference block and the corresponding block, or the reference point and the corresponding point and combining the partial images, and the image combining means. In some cases, when performing the pasting process without using the prediction information, a unit for performing the pasting process of the pasting image and the pasted image at a predetermined position. An image pickup apparatus comprising:

【0155】従って、画像貼合わせ手段の貼合わせが不
可能な場合、あるいは使用が不適当な場合にも、適当な
全体画像出力が得られる。 (13) 前記全画像記憶手段は、当該撮像装置に対し
て着脱可能に挿着された記憶媒体であることを特徴とす
る(9)乃至(10)の撮像装置。
Therefore, when the image pasting means cannot be pasted together or when the use is inappropriate, an appropriate whole image output can be obtained. (13) The image pickup device according to any one of (9) to (10), wherein the all-image storage unit is a storage medium that is detachably attached to the image pickup device.

【0156】従って、画像保存用の主記憶媒体の一部を
利用することにより、撮像装置内にメモリを搭載しなく
ても済む。 (14) 前記撮像装置は、操作手段を更に有し、前記
画像貼合わせ手段は、複数回の貼合わせ処理を行なうこ
とにより高精細画像を生成する手段を含み、前記操作手
段の操作に基いて前記複数回の貼合わせ処理の回数を、
その範囲内で設定可能な前記(1)の撮像装置。
Therefore, by utilizing a part of the main storage medium for storing images, it is not necessary to mount a memory in the image pickup apparatus. (14) The image pickup apparatus further includes an operating unit, and the image pasting unit includes a unit that generates a high-definition image by performing a pasting process a plurality of times, and is based on the operation of the operating unit. The number of times of the above-mentioned plurality of bonding processes,
The imaging device according to (1) above, which can be set within the range.

【0157】従って、ユーザが所望する縦横比や解像度
で被写体が撮影できる。 (15) 前記撮像装置は、前記画像貼合わせ手段とし
て複数回の貼合わせ処理を行なうことによって、高精細
画像を得る手段を含み、前記各部分画像毎の撮像におけ
る各露光間隔を略一定にするための露光間隔制御手段を
更に有する前記(1)の撮像装置。
Therefore, the subject can be photographed with the aspect ratio and the resolution desired by the user. (15) The image pickup device includes a unit that obtains a high-definition image by performing a plurality of stitching processes as the image stitching unit, and makes each exposure interval in image pickup of each of the partial images substantially constant. The image pickup apparatus according to (1), further including exposure interval control means for

【0158】従って、手振れ等は、時間的にリニアな成
分と考えることができる。その場合、露光間隔が一定で
あれば予測が容易となる。 (16) 前記露光間隔は、前記各部分画像毎の撮像に
よる撮像信号の各信号処理期間のうちの最長期間に基づ
いて設定されることを特徴とする前記(1)の撮像装
置。
Therefore, camera shake and the like can be considered as a temporally linear component. In that case, if the exposure interval is constant, the prediction becomes easy. (16) The image pickup apparatus according to (1), wherein the exposure interval is set based on the longest period of each signal processing period of the image pickup signal by the image pickup for each partial image.

【0159】従って、露光間隔を最長時間に基づいて設
定すれば確実に信号処理期間が設定ができる。 (17) 前記撮像装置は、前記各部分画像毎の撮像に
係る露出レベルを一定にするための露出レベル制御手段
を有する前記(1)の撮像装置。
Therefore, if the exposure interval is set based on the longest time, the signal processing period can be surely set. (17) The image pickup device according to (1), wherein the image pickup device includes an exposure level control unit that keeps an exposure level related to image pickup for each of the partial images constant.

【0160】従って、露光レベルを同じにして良好な貼
合わせ画像を得ることができる。 (18) 前記撮像装置は、前記各部分画像毎の撮像に
係る露光時間を一定にするための露光制御手段を有する
前記(1)の撮像装置。
Therefore, a good laminated image can be obtained with the same exposure level. (18) The image pickup device according to (1), wherein the image pickup device has an exposure control unit for keeping a constant exposure time for image pickup for each of the partial images.

【0161】従って、露光間隔や露光レベルの制御が容
易に行なえる。 (19) 前記撮像装置は、前記各部分画像毎の撮像に
係る絞り値を一定にするための露出制御手段を有する前
記(1)の撮像装置。
Therefore, the exposure interval and the exposure level can be easily controlled. (19) The image pickup device according to (1), wherein the image pickup device includes an exposure control unit that keeps an aperture value for image pickup for each of the partial images constant.

【0162】従って、露光レベルを同じにして良好な貼
合わせ画像を得ることができる。 (20) 前記撮像装置は、前記部分画像の撮像に係る
露光開始タイミングを、当該撮像の直前に行なわれた別
の部分画像の撮像による撮像信号の処理終了タイミング
に基づいて、設定する露光開始タイミング設定手段を有
する前記(1)の撮像装置。従って、露光開始タイミン
グをできるだけ早くし、全撮影時間を短かくすることが
できる。
Therefore, a good laminated image can be obtained with the same exposure level. (20) The exposure start timing for the image pickup apparatus to set the exposure start timing for the image pickup of the partial image based on the processing end timing of the image pickup signal by the image pickup of another partial image performed immediately before the image pickup. The image pickup apparatus according to (1) above, which has setting means. Therefore, the exposure start timing can be set as early as possible and the total shooting time can be shortened.

【0163】[0163]

【発明の効果】以上詳述したように本発明によれば、画
像を分割して撮影し、部分画像から全体画像への復元時
に貼合わせ処理の時間短縮,精度向上を実現し、高画質
に画像を撮像する撮像装置を提供することができる。
As described above in detail, according to the present invention, an image is divided and photographed, and when the partial image is restored to the whole image, the time for the bonding process is shortened and the accuracy is improved, so that a high image quality is achieved. An imaging device that captures an image can be provided.

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

【図1】本発明による第1実施例としての撮像装置の概
略的な構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of an image pickup apparatus as a first embodiment according to the present invention.

【図2】第1実施例におけるメモリが記憶する部分画像
に分割される被写体像を示す図である。
FIG. 2 is a diagram showing a subject image divided into partial images stored in a memory according to the first embodiment.

【図3】本発明による第2実施例としての撮像装置の構
成例を示す図である。
FIG. 3 is a diagram showing a configuration example of an image pickup apparatus as a second embodiment according to the present invention.

【図4】第2実施例におけるメモリが記憶する部分画像
に分割される被写体像を示す図である。
FIG. 4 is a diagram showing a subject image divided into partial images stored in a memory according to a second embodiment.

【図5】貼合わせ処理について説明するための図であ
る。
FIG. 5 is a diagram for explaining a laminating process.

【図6】部分画像の貼合わせ処理により復元される1の
被写体像を示す図である。
FIG. 6 is a diagram showing one subject image restored by a process of combining partial images.

【図7】通常の探索を行うサーチエリアを示す図であ
る。
FIG. 7 is a diagram showing a search area for performing a normal search.

【図8】本実施例による予測情報による位置により探索
を行う例を示す図である。
FIG. 8 is a diagram showing an example of performing a search by a position based on prediction information according to the present embodiment.

【図9】本実施例の予測位置を利用した貼り合わせ処理
について説明するためのフローチャートである。
FIG. 9 is a flowchart for explaining a bonding process using predicted positions according to this embodiment.

【図10】本実施例の貼り合わせ処理における移動量,
回転量の算出について説明するためのフローチャートで
ある。
FIG. 10 is a movement amount in the bonding process of the present embodiment,
It is a flow chart for explaining calculation of the amount of rotation.

【図11】本実施例による探索を行うサーチエリアを示
す図である。
FIG. 11 is a diagram showing a search area for performing a search according to this embodiment.

【図12】基準ブロックや相関を導くためのブロックの
位置(座標)に示す図である。
FIG. 12 is a diagram showing positions (coordinates) of reference blocks and blocks for deriving a correlation.

【図13】本実施例による探索処理について説明するた
めのフローチャートである。
FIG. 13 is a flowchart for explaining a search process according to this embodiment.

【図14】本実施例による移動量,回転量について説明
するためのフローチャートである。
FIG. 14 is a flowchart for explaining a movement amount and a rotation amount according to the present embodiment.

【図15】本実施例による予測位置で貼り合わせる手法
を説明するためのフローチャートである。
FIG. 15 is a flowchart for explaining a method of pasting at a predicted position according to the present embodiment.

【図16】撮影する全部分画像を記憶できる容量がある
例について説明するためのフローチャートである。
FIG. 16 is a flowchart for explaining an example in which there is a capacity capable of storing all partial images to be captured.

【図17】図16において、移動量,回転量が算出でき
ない場合について説明するためのフローチャートであ
る。
FIG. 17 is a flowchart for explaining a case where a movement amount and a rotation amount cannot be calculated in FIG.

【図18】図17において、移動量,回転量の算出につ
いて説明するためのフローチャートである。
FIG. 18 is a flowchart for explaining calculation of a movement amount and a rotation amount in FIG.

【図19】図18において、移動量,回転量の算出につ
いて説明するためのフローチャートである。
FIG. 19 is a flowchart for explaining calculation of a movement amount and a rotation amount in FIG.

【図20】ミラーの回動により順次、取り込まれる画像
を示す図である。
FIG. 20 is a diagram showing images that are sequentially captured as the mirror rotates.

【図21】露光タイミングを説明するためのタイムチャ
ートである。
FIG. 21 is a time chart for explaining exposure timing.

【図22】第5実施例を説明するためのタイムチャート
である。
FIG. 22 is a time chart for explaining the fifth embodiment.

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

1…被写体像(被写体)、2…ミラー、3…ミラー駆動
部、4…撮像素子、5…撮影レンズ、6…絞り、7…撮
像系制御部、8…撮像回路、9…撮像素子駆動部、10
…A/D変換部、11…メモリ、12…メモリ駆動部、
13…パターンマッチング部、14…メモリカード、1
5…カード駆動部、16…プリンタ、17…プリンタ駆
動部、18…システム制御部、19…同期信号発生部、
20…EEPROM、21…手振れセンサ、22…表示
部、23…入力スイッチ、24…シーケンス処理部、2
5…貼合わせ処理部。
DESCRIPTION OF SYMBOLS 1 ... Subject image (subject), 2 ... Mirror, 3 ... Mirror drive part, 4 ... Imaging element, 5 ... Photographing lens, 6 ... Aperture, 7 ... Imaging system control part, 8 ... Imaging circuit, 9 ... Imaging device drive part 10,
... A / D converter, 11 ... Memory, 12 ... Memory driver,
13 ... Pattern matching part, 14 ... Memory card, 1
5 ... Card drive unit, 16 ... Printer, 17 ... Printer drive unit, 18 ... System control unit, 19 ... Sync signal generation unit,
20 ... EEPROM, 21 ... hand shake sensor, 22 ... display section, 23 ... input switch, 24 ... sequence processing section, 2
5 ... Lamination processing section.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 寺根 明夫 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 (72)発明者 小林 一也 東京都渋谷区幡ヶ谷2丁目43番2号 オリ ンパス光学工業株式会社内 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Akio Terane 2-43-2 Hatagaya, Shibuya-ku, Tokyo Inside Olympus Optical Co., Ltd. (72) Kazuya Kobayashi 2-43 Hatagaya, Shibuya-ku, Tokyo No. 2 Olympus Optical Co., Ltd.

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも画面の一端側に他の画面とオ
ーバーラップする領域を持つように撮像対象領域を分割
して撮影し、複数の部分画像を得る撮像手段と、 前記部分画像で被貼合わせ画像側のオーバーラップする
領域内に任意の基準点を含む基準ブロックを設定し、貼
合わせ画像側のオーバーラップする領域内で前記基準ブ
ロックと合致する対応ブロック、若しくは基準点と合致
する対応点を探索し、基準ブロックと対応ブロック、若
しくは基準点と対応点を合致させて、部分画像を貼合わ
せ処理する画像貼合わせ手段と、 前記画像貼合わせ手段により、少なくとも前回以前に貼
合わせた時に合致した前記基準ブロック若しくは基準点
及び、対応ブロック若しくは対応点の各位置に基づく情
報を予測情報として保持し、次回の部分画像の貼合わせ
の際に、前記予測情報により貼合わせ位置を予測し、貼
合わせ位置を前記画像貼合わせ手段に指示する貼合わせ
制御手段と、を具備することを特徴とする撮像装置。
1. An image pickup means for obtaining a plurality of partial images by dividing an image pickup target area so that at least one end side of the screen has an area overlapping with another screen, and the partial images are pasted together. Set a reference block including an arbitrary reference point in the overlapping area on the image side, and set a corresponding block that matches the reference block or a corresponding point that matches the reference point in the overlapping area on the laminated image side. By searching, matching the reference block and the corresponding block, or matching the reference point and the corresponding point, and combining the partial images, the image combining means and the image combining means match at least the time before the previous combining. The reference block or reference point and information based on each position of the corresponding block or corresponding point is held as prediction information, and the next partial image During mating, the predict the adhesion position by the prediction information, an imaging apparatus characterized by comprising a cemented control means for instructing the adhesion position in the image laminating means.
【請求項2】 前記画像貼合わせ手段は、1画像を形成
するための全部分画像を貼り合わせた後、1画像として
生成する手段を含むことを特徴とする請求項1記載の撮
像装置。
2. The image pickup apparatus according to claim 1, wherein the image combining unit includes a unit that combines all partial images for forming one image and then generates the image as one image.
【請求項3】 前記撮像装置は、さらに部分画像の撮像
時の手振れ量を検出する手振れ検出手段を具備し、 前記情報に前記手振れ量に基づく手振れ情報を含むこと
を特徴とする請求項1記載の撮像装置。
3. The image pickup apparatus further comprises a shake detection unit that detects a shake amount when a partial image is picked up, and the information includes shake information based on the shake amount. Imaging device.
【請求項4】 前記撮像装置は、撮像装置を構成する部
材が有する固有の機械的及び/又は電気的誤差に基づく
誤差情報を記憶するための誤差情報記憶手段を具備し、 前記情報には、前記誤差情報を含むことを特徴とする請
求項1記載の撮像装置。
4. The image pickup device comprises error information storage means for storing error information based on inherent mechanical and / or electrical error of a member forming the image pickup device, and the information includes: The image pickup apparatus according to claim 1, wherein the image pickup apparatus includes the error information.
【請求項5】 前記撮像装置は、前記誤差情報記憶手段
における誤差情報を使用形態に応じて変更する学習手段
を有する請求項4記載の撮像装置。
5. The image pickup apparatus according to claim 4, wherein the image pickup apparatus has a learning unit that changes the error information in the error information storage unit according to a usage pattern.
【請求項6】 前記画像貼合わせ手段は、 被貼合わせ画像のオーバーラップする領域内に設けられ
た前記基準ブロックに合致する対応ブロックを探索する
ために、前記予測情報に基づいて、被貼り合わせ画像重
複領域内に所定の大きさのサーチエリアを設定する手段
を、さらに具備することを特徴とする請求項1乃至請求
項5記載の撮像装置。
6. The image pasting means, based on the prediction information, seeks a corresponding block matching the reference block provided in an overlapping area of the pasted images, and the pasted image is pasted based on the prediction information. The image pickup apparatus according to claim 1, further comprising a unit that sets a search area having a predetermined size in the image overlapping region.
【請求項7】 前記貼合わせ手段は、前記被貼合わせ画
像のオーバーラップする領域内に設けられる前記基準ブ
ロックが存在しないとき、前記予測情報に基づいて画像
の貼合わせを行う手段を、さらに具備する請求項1乃至
請求項6記載の撮像装置。
7. The pasting means further comprises means for pasting images based on the prediction information when the reference block provided in the overlapping area of the pasted images does not exist. The image pickup apparatus according to claim 1, wherein
【請求項8】 前記撮像装置は、少なくとも1つの前記
部分画像に対応する画像データと前記オーバーラップす
る領域に対応する画像データを記憶可能な容量を有する
部分画像記憶手段を、さらに具備する請求項1乃至請求
項7記載の撮像装置。
8. The image pickup apparatus further comprises partial image storage means having a capacity capable of storing image data corresponding to at least one of the partial images and image data corresponding to the overlapping area. The imaging device according to any one of claims 1 to 7.
【請求項9】 前記撮像装置は、前記撮像対象領域に対
応する画像データ全てを記憶可能な容量を有する全画像
記憶手段を、さらに具備する請求項1乃至請求項7記載
の撮像装置。
9. The image pickup apparatus according to claim 1, wherein the image pickup apparatus further comprises an entire image storage unit having a capacity capable of storing all image data corresponding to the image pickup target area.
【請求項10】 前記撮像装置は、前記撮像対象領域に
対応する画像データ全てを記憶可能な容量を有する全画
像記憶手段を有し、 前記貼合わせ手段は、複数回の貼合わせ処理を行なうこ
とにより、高精細画像を生成する手段を含み、 さらに、被貼合わせ画像のオーバーラップする領域内に
前記基準ブロックが存在しない時には、当該貼合わせ処
理とは別の貼合わせ処理の貼合わせ位置を予測情報とし
て用いる手段を含む請求項1記載の撮像装置。
10. The image pickup device includes an all-image storage unit having a capacity capable of storing all image data corresponding to the image pickup target region, and the joining unit performs a plurality of joining processes. According to the above, a unit for generating a high-definition image is included, and when the reference block does not exist in the overlapping area of the images to be pasted, the pasting position of the pasting process different from the pasting process is predicted. The image pickup apparatus according to claim 1, further comprising means used as information.
【請求項11】 前記貼合わせ処理手段は、 前記被貼合わせ画像のオーバーラップする領域内に設け
られるべき前記基準ブロックが存在せず、且つ、前記予
測情報も使用せずに貼合わせ処理を行う際に、当該貼合
わせ画像と被貼合わせ画像とを所定の位置で貼合わせ処
理する手段を含む請求項1乃至請求項6記載の撮像装
置。
11. The pasting processing unit performs the pasting process without the reference block to be provided in an overlapping region of the pasted images and without using the prediction information. The imaging device according to claim 1, further comprising a unit that performs a bonding process on the bonded image and the image to be bonded at a predetermined position.
【請求項12】 少なくとも画面の一端側に他の画面と
オーバーラップする領域を持つように撮像対象領域を分
割して撮影し、複数の部分画像を得る撮像手段と、 前記部分画像で被貼合わせ画像側のオーバーラップする
領域内に任意の基準点を含む基準ブロックを設定し、貼
合わせ画像側のオーバーラップする領域内で前記基準ブ
ロックと合致する対応ブロック、若しくは基準点と合致
する対応点を探索し、基準ブロックと対応ブロック、若
しくは基準点と対応点を合致させて、部分画像を貼合わ
せ処理する画像貼合わせ手段を有し、 前記画像貼合わせ手段により、貼合わせを行うことが不
可能または不適当な場合で、且つ、前記予測情報も使用
せずに貼合わせ処理を行う際に、当該貼合わせ画像と被
貼合わせ画像とを所定の位置で貼合わせ処理する手段を
含むことを特徴とする撮像装置。
12. An image pickup means for obtaining a plurality of partial images by dividing an image pickup target area so that at least one end of the screen has an area overlapping with another screen, and the partial images are pasted together. Set a reference block including an arbitrary reference point in the overlapping area on the image side, and set a corresponding block that matches the reference block or a corresponding point that matches the reference point in the overlapping area on the laminated image side. It has an image pasting unit that searches and matches the reference block and the corresponding block or the reference point and the corresponding point and performs a stitching process on the partial images. It is impossible to perform the stitching by the image stitching unit. Or, when it is inappropriate and when performing the bonding process without using the prediction information, the bonding image and the bonding image are bonded at a predetermined position. Imaging apparatus characterized by comprising means for management.
【請求項13】前記全画像記憶手段は、当該撮像装置に
対して着脱可能に挿着された記憶媒体であることを特徴
とする請求項9乃至請求項10記載の撮像装置。
13. The image pickup apparatus according to claim 9, wherein the all-image storage means is a storage medium that is detachably attached to the image pickup apparatus.
【請求項14】 前記撮像装置は、操作手段を更に有
し、 前記画像貼合わせ手段は、複数回の貼合わせ処理を行な
うことにより高精細画像を生成する手段を含み、 前記操作手段の操作に基いて前記複数回の貼合わせ処理
の回数を、その範囲内で設定可能なことを特徴とする請
求項1記載の撮像装置。
14. The image pickup apparatus further includes an operating unit, and the image combining unit includes a unit that generates a high-definition image by performing a combining process a plurality of times. The image pickup apparatus according to claim 1, wherein the number of times of the plurality of pasting processes can be set based on the range.
【請求項15】 前記撮像装置は、前記画像貼合わせ手
段として複数回の貼合わせ処理を行なうことによって、
高精細画像を得る手段を含み、 前記各部分画像毎の撮像における各露光間隔を略一定に
するための露光間隔制御手段を更に有する請求項1記載
の撮像装置。
15. The image pickup device performs a plurality of bonding processes as the image bonding means,
The image pickup apparatus according to claim 1, further comprising an exposure interval control unit that includes a unit that obtains a high-definition image, and that makes each exposure interval in the image pickup of each of the partial images substantially constant.
【請求項16】 前記部分画像毎の撮像における露光間
隔は、前記各部分画像毎の撮像による撮像信号の各信号
処理期間のうちの最長期間に基づいて設定されることを
特徴とする請求項1記載の撮像装置。
16. The exposure interval in the image pickup for each partial image is set based on the longest period of each signal processing period of the image pickup signal by the image pickup for each partial image. The imaging device described.
【請求項17】 前記撮像装置は、前記各部分画像毎の
撮像に係る露出レベルを一定にするための露出レベル制
御手段を有する請求項1記載の撮像装置。
17. The image pickup apparatus according to claim 1, wherein the image pickup apparatus has an exposure level control unit for keeping a constant exposure level for image pickup for each of the partial images.
【請求項18】 前記撮像装置は、前記各部分画像毎の
撮像に係る露光時間を一定にするための露光制御手段を
有する請求項1記載の撮像装置。
18. The image pickup apparatus according to claim 1, wherein the image pickup apparatus has an exposure control unit for keeping a constant exposure time for image pickup for each of the partial images.
【請求項19】 前記撮像装置は、前記各部分画像毎の
撮像に係る絞り値を一定にするための露出制御手段を有
する請求項1記載の撮像装置。
19. The image pickup apparatus according to claim 1, wherein the image pickup apparatus has an exposure control unit for keeping a constant aperture value for image pickup for each of the partial images.
【請求項20】 前記撮像装置は、前記部分画像の撮像
に係る露光開始タイミングを、当該撮像の直前に行なわ
れた別の部分画像の撮像による撮像信号の処理終了タイ
ミングに基づいて、設定する露光開始タイミング設定手
段を有する請求項1記載の撮像装置。
20. The exposure apparatus sets an exposure start timing for capturing an image of the partial image based on an end timing of processing an image capturing signal by capturing another partial image immediately before the image capturing. The image pickup apparatus according to claim 1, further comprising start timing setting means.
JP6321887A 1994-12-26 1994-12-26 Image pickup device Withdrawn JPH08181903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6321887A JPH08181903A (en) 1994-12-26 1994-12-26 Image pickup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6321887A JPH08181903A (en) 1994-12-26 1994-12-26 Image pickup device

Publications (1)

Publication Number Publication Date
JPH08181903A true JPH08181903A (en) 1996-07-12

Family

ID=18137517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6321887A Withdrawn JPH08181903A (en) 1994-12-26 1994-12-26 Image pickup device

Country Status (1)

Country Link
JP (1) JPH08181903A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6633664B1 (en) 1999-05-11 2003-10-14 Nippon Telegraph And Telephone Corporation Three-dimensional structure acquisition method, apparatus and computer readable medium
JP2010130408A (en) * 2008-11-28 2010-06-10 Keyence Corp Imaging apparatus
JP2010141697A (en) * 2008-12-12 2010-06-24 Keyence Corp Imaging apparatus
JP2010141699A (en) * 2008-12-12 2010-06-24 Keyence Corp Imaging apparatus
JP2011010300A (en) * 2009-06-29 2011-01-13 Internatl Business Mach Corp <Ibm> Method, system and program for creating emission image of integrated circuit
JP2011259503A (en) * 2011-09-16 2011-12-22 Keyence Corp Imaging apparatus
JP2012044680A (en) * 2011-09-16 2012-03-01 Keyence Corp Imaging apparatus
JP2013021706A (en) * 2012-09-05 2013-01-31 Keyence Corp Imaging device
JP2013254236A (en) * 2012-06-05 2013-12-19 Sony Corp Information processing device, information processing method, program, and microscope system
CN112730243A (en) * 2020-12-24 2021-04-30 神华铁路装备有限责任公司 Adapter detection method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6633664B1 (en) 1999-05-11 2003-10-14 Nippon Telegraph And Telephone Corporation Three-dimensional structure acquisition method, apparatus and computer readable medium
JP2010130408A (en) * 2008-11-28 2010-06-10 Keyence Corp Imaging apparatus
JP2010141697A (en) * 2008-12-12 2010-06-24 Keyence Corp Imaging apparatus
JP2010141699A (en) * 2008-12-12 2010-06-24 Keyence Corp Imaging apparatus
US8451335B2 (en) 2008-12-12 2013-05-28 Keyence Corporation Imaging device
JP2011010300A (en) * 2009-06-29 2011-01-13 Internatl Business Mach Corp <Ibm> Method, system and program for creating emission image of integrated circuit
JP2011259503A (en) * 2011-09-16 2011-12-22 Keyence Corp Imaging apparatus
JP2012044680A (en) * 2011-09-16 2012-03-01 Keyence Corp Imaging apparatus
JP2013254236A (en) * 2012-06-05 2013-12-19 Sony Corp Information processing device, information processing method, program, and microscope system
JP2013021706A (en) * 2012-09-05 2013-01-31 Keyence Corp Imaging device
CN112730243A (en) * 2020-12-24 2021-04-30 神华铁路装备有限责任公司 Adapter detection method and device
CN112730243B (en) * 2020-12-24 2023-06-20 神华铁路装备有限责任公司 Bearing saddle detection method and device

Similar Documents

Publication Publication Date Title
TWI399977B (en) Image capture apparatus and program
US7783180B2 (en) Imaging apparatus with a function of compensating for hand shake, method of compensating for hand shake, and computer program product
JP5104918B2 (en) Imaging apparatus and imaging method
US20080030592A1 (en) Producing digital image with different resolution portions
JP6833746B2 (en) Imaging equipment, imaging methods, programs and recording media
JP2000050151A (en) Image pickup device
JP2008219428A (en) Imaging apparatus
JP2005328497A (en) Image pickup apparatus and image pickup method
JP2002152582A (en) Electronic camera and recording medium for displaying image
JP2006162991A (en) Stereoscopic image photographing apparatus
JP2015053741A (en) Image reproduction device
US6806905B1 (en) Digital camera
JP3984346B2 (en) Imaging apparatus and image composition method
JP2004153691A (en) Image pickup device, image pickup method and program
JP2003209727A (en) Digital camera
JPH08181903A (en) Image pickup device
JP2002027312A (en) Image pickup device
JP4977569B2 (en) Imaging control apparatus, imaging control method, imaging control program, and imaging apparatus
JPH11196299A (en) Image pickup device
JPH11196317A (en) Image pickup device
JP2007036843A (en) Imaging apparatus with projection display function, and portable electronic device
JP2000078467A (en) Picture compositing method
JP2002305676A (en) Electronic camera
JP5613145B2 (en) Imaging apparatus and program
JP3457993B2 (en) Red eye correction device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020305