JP2007272459A - Image processor and processing method, and imaging device - Google Patents

Image processor and processing method, and imaging device Download PDF

Info

Publication number
JP2007272459A
JP2007272459A JP2006095847A JP2006095847A JP2007272459A JP 2007272459 A JP2007272459 A JP 2007272459A JP 2006095847 A JP2006095847 A JP 2006095847A JP 2006095847 A JP2006095847 A JP 2006095847A JP 2007272459 A JP2007272459 A JP 2007272459A
Authority
JP
Japan
Prior art keywords
reliability
images
image processing
displacement
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006095847A
Other languages
Japanese (ja)
Other versions
JP2007272459A5 (en
JP4777116B2 (en
Inventor
Masashi Kimura
正史 木村
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006095847A priority Critical patent/JP4777116B2/en
Publication of JP2007272459A publication Critical patent/JP2007272459A/en
Publication of JP2007272459A5 publication Critical patent/JP2007272459A5/ja
Application granted granted Critical
Publication of JP4777116B2 publication Critical patent/JP4777116B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor, capable of further appropriately performing superimposing composition of a plurality of images. <P>SOLUTION: The image processor for superimposing and composing a plurality of related images 10a-10m into one image comprises a position detection part 1 for determining a relative displacement each between images; a reliability detection part 2 for determining a reliability of the displacement determined by the position detection part from the displacement; an image selection part 3 for selecting a plurality of images to be used for superimposing composition based on the reliability determined by the reliability detection part; and an image composition part 4 for positioning and composing the plurality of images selected by the image selection part based on the displacement determined by the position detection part so that each subject is matched. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は画像処理装置及び方法、及び撮像装置に関し、更に詳しくは、複数の画像を1つの画像に重ね合わせ合成する画像処理装置及び方法、及び撮像装置に関する。   The present invention relates to an image processing apparatus and method, and an imaging apparatus. More specifically, the present invention relates to an image processing apparatus and method that superimposes and combines a plurality of images on one image, and an imaging apparatus.

近年、カメラのデジタル化が急速に進んでおり、デジタル信号処理を用いたダイナミックレンジ拡大や手ぶれ補正など、カメラの撮影フィールドを広げる試みがなされている。   In recent years, digitalization of cameras has progressed rapidly, and attempts have been made to expand the shooting field of cameras, such as dynamic range expansion using digital signal processing and camera shake correction.

特許文献1は所謂ダイナミックレンジ拡大を行う方法を開示している。特許文献1では、露光量を変化させた画像を複数取得し、それらの信号を合成することによって、所謂白とびや黒つぶれを回避し、実質的なダイナミックレンジ拡大を行うことが開示されている。   Patent Document 1 discloses a method for performing so-called dynamic range expansion. Patent Document 1 discloses that a plurality of images with different exposure amounts are acquired, and those signals are combined to avoid so-called overexposure and underexposure and to substantially expand the dynamic range. .

特許文献2は複数画像を用いたぶれ除去装置を開示している。特許文献2によれば、動画を構成する個々の静止画を一旦メモリ上に格納した後に、次のコマの静止画とメモリ上の静止画の相関を求める。これにより、画像の移動を検出し、位置を合わせて記録を行う。結果として、所謂手ぶれによる像のふれを補正して、高品位な動画を得ることができる。   Patent Document 2 discloses a shake removal apparatus using a plurality of images. According to Japanese Patent Application Laid-Open No. 2004-228688, after each still image constituting a moving image is temporarily stored in a memory, the correlation between the still image of the next frame and the still image on the memory is obtained. Thereby, the movement of the image is detected, and the recording is performed with the position adjusted. As a result, a high-quality moving image can be obtained by correcting image blur due to so-called camera shake.

特許文献3及び4は複数の画像間の移動ベクトルの推定精度を向上させる方法を開示している。特許文献3に開示された発明によると、複数のブロックに分けて移動ベクトルを算出する場合に、隣接ブロックのベクトルを活用することによってベクトルの推定精度を向上させる。また、特許文献4に開示された発明によると、ベクトルの頻度を基にして、検出されたベクトルの信頼性を推定する。特許文献3及び4に開示された方法を適用することで、複数画像間の移動ベクトルの推定精度をあげて適切に画像処理を行うことができる。   Patent Documents 3 and 4 disclose methods for improving the estimation accuracy of a movement vector between a plurality of images. According to the invention disclosed in Patent Document 3, when a movement vector is calculated in a plurality of blocks, the vector estimation accuracy is improved by utilizing a vector of an adjacent block. According to the invention disclosed in Patent Document 4, the reliability of the detected vector is estimated based on the frequency of the vector. By applying the methods disclosed in Patent Documents 3 and 4, it is possible to appropriately perform image processing with increased accuracy of estimation of a movement vector between a plurality of images.

特開昭61−219270号公報Japanese Patent Laid-Open No. 61-219270 特開平01−109970号公報Japanese Patent Laid-Open No. 01-109970 特開平07−170496号公報Japanese Patent Application Laid-Open No. 07-170496 特開平07−007721号公報Japanese Unexamined Patent Publication No. 07-007721

しかしながら、特許文献1および2の発明をデジタルカメラ等に用いる場合においては、画像のSN比が良くない場合などは移動ベクトルの推定精度が落ちて適切に画像が処理できないという問題があった。   However, when the inventions of Patent Documents 1 and 2 are used for a digital camera or the like, there has been a problem that when the SN ratio of the image is not good, the estimation accuracy of the movement vector is lowered and the image cannot be processed appropriately.

また、特許文献3の発明をデジタルカメラ等に用いる場合においては、例えば夜景の撮影のように多くのブロックでSN比が良くない場合には、隣接ブロック情報を用いても十分に推定精度を向上させることが困難である。   In addition, when the invention of Patent Document 3 is used for a digital camera or the like, if the SN ratio is not good in many blocks, for example, when shooting a night scene, the estimation accuracy is sufficiently improved even if adjacent block information is used. It is difficult to do.

また、特許文献4の発明をデジタルカメラ等に用いる場合においては、瞬間的に大きく手ぶれが発生した場合などは、発生頻度情報に基づいて正しい条件が除去されてしまい、十分に推定精度を向上させることができないという問題があった。   In addition, when the invention of Patent Document 4 is used for a digital camera or the like, if a large amount of camera shake occurs instantaneously, the correct condition is removed based on the occurrence frequency information, and the estimation accuracy is sufficiently improved. There was a problem that I could not.

本発明は上記問題点を鑑みてなされたものであり、より適切に複数画像の重ね合わせ合成を行うことが可能な画像処理装置及び方法、及び撮像装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object thereof is to provide an image processing apparatus and method, and an imaging apparatus capable of performing overlay synthesis of a plurality of images more appropriately.

上記目的を達成するために、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する本発明の画像処理装置は、各画像間の相対的な変位を求める位置検出手段と、前記位置検出手段により求めた変位の信頼性を、当該変位から求める信頼性検出手段と、前記信頼性検出手段により求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択手段と、前記選択手段により選択された複数の画像を、前記位置検出手段により求めた変位に基づいて、被写体が合致するように位置合わせして合成する合成手段とを有する。   In order to achieve the above object, an image processing apparatus of the present invention for superimposing and synthesizing a plurality of images related to each other on a single image includes position detection means for obtaining a relative displacement between the images, and the position detection A reliability detecting means for obtaining the reliability of the displacement determined by the means, and a selecting means for selecting a plurality of images used for overlay synthesis based on the reliability obtained by the reliability detecting means; And combining means for aligning and synthesizing the plurality of images selected by the selection means so that the subject matches based on the displacement obtained by the position detection means.

また、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する本発明の画像処理方法は、各画像間の相対的な変位を求める位置検出工程と、前記位置検出工程で求めた変位の信頼性を、当該変位から求める信頼性検出工程と、前記信頼性検出工程で求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択工程と、前記選択工程で選択された複数の画像を、前記位置検出工程により求めた変位に基づいて、被写体が合致するように位置合わせして合成する合成工程とを有する。   The image processing method of the present invention for superimposing and synthesizing a plurality of images related to each other into a single image includes a position detection step for obtaining a relative displacement between the images, and a displacement obtained in the position detection step. Reliability is selected from the reliability detection step for obtaining reliability from the displacement, a selection step for selecting a plurality of images to be used for overlay synthesis based on the reliability obtained in the reliability detection step, and the selection step. A combining step of aligning and synthesizing the plurality of images based on the displacement obtained in the position detection step so that the subject matches.

また、別の構成によれば、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する本発明の画像処理装置は、各画像間の相対的な変位を求める位置検出手段と、前記位置検出手段により求めた変位の信頼性を、当該変位から求める信頼性検出手段と、前記信頼性検出手段により求められた信頼性が低い画像間の変位を、当該画像間以外の画像間の変位により置き換える置換手段と、前記位置検出手段により求めた変位及び前記置換手段により置き換えられた変位に基づいて、被写体が合致するように前記複数の画像を位置合わせして合成する合成手段とを有する。   According to another configuration, the image processing apparatus of the present invention for superimposing and synthesizing a plurality of images related to each other on a single image includes position detection means for obtaining a relative displacement between the images, and the position The displacement between the reliability detection means obtained from the displacement obtained by the detection means and the low reliability image obtained by the reliability detection means is determined by the displacement between the images other than the images. And replacing means for replacing, and combining means for aligning and synthesizing the plurality of images so that the subject matches based on the displacement obtained by the position detecting means and the displacement replaced by the replacing means.

また、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する本発明の画像処理方法は、各画像間の相対的な変位を求める位置検出工程と、前記位置検出工程で求めた変位の信頼性を、当該変位から求める信頼性検出工程と、前記信頼性検出工程で求められた信頼性が低い画像間の変位を、当該画像間以外の画像間の変位により置き換える置換工程と、前記位置検出工程により求めた変位及び前記置換工程により置き換えられた変位に基づいて、被写体が合致するように前記複数の画像を位置合わせして合成する合成工程とを有する。   The image processing method of the present invention for superimposing and synthesizing a plurality of images related to each other into a single image includes a position detection step for obtaining a relative displacement between the images, and a displacement obtained in the position detection step. A reliability detection step for obtaining reliability from the displacement, a replacement step for replacing displacement between images with low reliability obtained in the reliability detection step by displacement between images other than between the images, and the position Based on the displacement obtained by the detection step and the displacement replaced by the replacement step, the composition step of aligning and synthesizing the plurality of images so that the subject matches.

更に、別の構成によれば、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する本発明の画像処理装置は、前記複数の画像をそれぞれ複数ブロックに分割する分割手段と、前記分割手段により分割された各ブロックについて、画像間の相対的な変位を求める第1の位置検出手段と、前記第1の位置検出手段により求められた変位の信頼性を、当該変位から求める第1の信頼性検出手段と、前記複数ブロックの内、前記第1の信頼性検出手段により求められた信頼性が低いブロック以外のブロックの、前記第1の位置検出手段により求められた画像間の相対的な変位に基づいて、全体画像間の移動量または写像マトリックスを求める第2の位置検出手段と、前記第2の位置検出手段により求められた移動量または写像マトリックスに基づいて、当該移動量または写像マトリックスの信頼性を求める第2の信頼性検出手段と、前記第2の信頼性検出手段により求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択手段と、前記選択手段により選択された複数の画像を、前記第2の位置検出手段により求めた移動量または写像マトリックスに基づいて、被写体が合致するように位置合わせして合成する合成手段とを有する。   Furthermore, according to another configuration, the image processing apparatus of the present invention that superimposes and combines a plurality of images related to each other into a single image includes a dividing unit that divides the plurality of images into a plurality of blocks, and the division For each block divided by the means, a first position detecting means for obtaining a relative displacement between images, and a first position detecting means for obtaining the reliability of the displacement obtained by the first position detecting means from the displacement. Relative relationships between the images obtained by the first position detecting means of the blocks other than the reliability detecting means and the blocks having low reliability obtained by the first reliability detecting means among the plurality of blocks. A second position detecting means for obtaining a movement amount or mapping matrix between the entire images based on the displacement, and a movement amount or mapping matrix obtained by the second position detecting means. And selecting a plurality of images to be used for overlay synthesis based on the reliability obtained by the second reliability detecting means for obtaining the movement amount or the reliability of the mapping matrix, and the reliability obtained by the second reliability detecting means. And a combining means for aligning and synthesizing the plurality of images selected by the selecting means based on the amount of movement or the mapping matrix obtained by the second position detecting means so that the subject matches. And have.

また、互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理方法は、前記複数の画像をそれぞれ複数ブロックに分割する分割工程と、前記分割工程で分割された各ブロックについて、画像間の相対的な変位を求める第1の位置検出工程と、前記第1の位置検出工程で求められた変位の信頼性を、当該変位から求める第1の信頼性検出工程と、前記複数ブロックの内、前記第1の信頼性検出工程で求められた信頼性が低いブロック以外のブロックの、前記第1の位置検出工程で求められた画像間の相対的な変位に基づいて、全体画像間の移動量または写像マトリックスを求める第2の位置検出工程と、前記第2の位置検出工程で求められた移動量または写像マトリックスに基づいて、当該移動量または写像マトリックスの信頼性を求める第2の信頼性検出工程と、前記第2の信頼性検出工程で求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択工程と、前記選択工程で選択された複数の画像を、前記第2の位置検出工程で求めた移動量または写像マトリックスに基づいて、被写体が合致するように位置合わせして合成する合成工程とを有する。   An image processing method for superimposing and combining a plurality of images related to each other on a single image includes a dividing step of dividing the plurality of images into a plurality of blocks, and an image for each block divided in the dividing step. A first position detecting step for obtaining a relative displacement between the first position detecting step, a first reliability detecting step for obtaining the reliability of the displacement obtained in the first position detecting step from the displacement, Of the blocks other than the low-reliability block obtained in the first reliability detection step, based on the relative displacement between the images obtained in the first position detection step, between the whole images A second position detecting step for obtaining a moving amount or mapping matrix; and a reliability of the moving amount or mapping matrix based on the moving amount or mapping matrix obtained in the second position detecting step. Selected in the selection step, a selection step for selecting a plurality of images to be used for overlay synthesis based on the reliability obtained in the second reliability detection step A combining step of aligning and synthesizing the plurality of images based on the movement amount or mapping matrix obtained in the second position detection step so that the subject matches.

また、本発明の撮像装置は、上記いずれかに記載の画像処理装置を備える。   An imaging apparatus according to the present invention includes any one of the image processing apparatuses described above.

より適切に複数画像の重ね合わせ合成を行うことが可能な画像処理装置及び方法、及び撮像装置を提供することができる。   It is possible to provide an image processing apparatus and method, and an imaging apparatus capable of performing overlay synthesis of a plurality of images more appropriately.

以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

<第1の実施形態>
本発明の第1の実施形態について、図1から図5を参照して説明する。
<First Embodiment>
A first embodiment of the present invention will be described with reference to FIGS.

●画像処理装置の構成
図1は本発明の第1の実施形態における撮像装置の電気的構成を示すブロック図である。図1において、31はレンズおよび絞りからなる光学系、32はメカニカルシャッタ、33はCCDやCMOSセンサ等の固体撮像素子、34はアナログ信号処理を行うCDS回路である。35はアナログ信号をデジタル信号に変換するA/D変換器、36は、撮像素子33、CDS回路34およびA/D変換器35を動作させる信号を発生するタイミング信号発生回路である。37は、光学系31、シャッタ32および撮像素子33の駆動回路、38は撮影した画像データに必要な信号処理を行う信号処理回路、39は信号処理された画像データを記憶する画像メモリである。
Configuration of Image Processing Device FIG. 1 is a block diagram showing an electrical configuration of the imaging device according to the first embodiment of the present invention. In FIG. 1, 31 is an optical system comprising a lens and a diaphragm, 32 is a mechanical shutter, 33 is a solid-state image sensor such as a CCD or CMOS sensor, and 34 is a CDS circuit that performs analog signal processing. Reference numeral 35 denotes an A / D converter that converts an analog signal into a digital signal. Reference numeral 36 denotes a timing signal generation circuit that generates a signal for operating the image sensor 33, the CDS circuit 34, and the A / D converter 35. 37 is a drive circuit for the optical system 31, shutter 32 and image sensor 33, 38 is a signal processing circuit for performing signal processing necessary for captured image data, and 39 is an image memory for storing the signal processed image data.

40は撮像装置から取り外し可能な記録媒体、41は信号処理された画像データを記録媒体40に記録する記録回路、42は信号処理された画像データを表示する表示装置、43は表示装置42に画像を表示する表示回路である。44は撮像装置全体を制御するシステム制御部である。45はシステム制御部44で実行される制御方法を記載したプログラム、プログラムを実行する際に使用されるパラメータやテーブル等の制御データ、および、キズアドレス等の補正データを記憶しておく不揮発性メモリ(ROM)である。46は不揮発性メモリ45に記憶されたプログラム、制御データおよび補正データを転送して記憶しておき、システム制御部44が撮像装置を制御する際に使用する揮発性メモリ(RAM)である。   Reference numeral 40 denotes a recording medium that can be removed from the imaging apparatus, 41 denotes a recording circuit that records signal processed image data on the recording medium 40, 42 denotes a display apparatus that displays the signal processed image data, and 43 denotes an image on the display apparatus 42. Is a display circuit. A system control unit 44 controls the entire imaging apparatus. 45 is a nonvolatile memory for storing a program describing a control method executed by the system control unit 44, control data such as parameters and tables used when executing the program, and correction data such as a scratch address (ROM). A volatile memory (RAM) 46 is used to transfer and store the program, control data, and correction data stored in the nonvolatile memory 45 and used when the system control unit 44 controls the imaging apparatus.

●撮影動作
以下、上記のように構成された撮像装置を用いてメカニカルシャッタ32を使用した場合の撮影動作について説明する。なお、撮影動作に先立ち、撮像装置の電源投入時等のシステム制御部44の動作開始時において、不揮発性メモリ45から必要なプログラム、制御データおよび補正データを揮発性メモリ46に転送して記憶しておくものとする。これらのプログラムやデータは、システム制御部44が撮像装置を制御する際に使用する。更に、必要に応じて、追加のプログラムやデータを不揮発性メモリ45から揮発性メモリ46に転送したり、システム制御部44が直接不揮発性メモリ45内のデータを読み出して使用したりするものとする。
Shooting Operation Hereinafter, a shooting operation when the mechanical shutter 32 is used with the imaging apparatus configured as described above will be described. Prior to the photographing operation, necessary programs, control data, and correction data are transferred from the nonvolatile memory 45 to the volatile memory 46 and stored at the start of the operation of the system control unit 44 such as when the imaging apparatus is turned on. Shall be kept. These programs and data are used when the system control unit 44 controls the imaging apparatus. Furthermore, as necessary, additional programs and data are transferred from the nonvolatile memory 45 to the volatile memory 46, or the system control unit 44 directly reads and uses the data in the nonvolatile memory 45. .

まず、光学系31は、システム制御部44からの制御信号により、絞りとレンズを駆動して、適切な明るさに設定された被写体像を撮像素子33上に結像させる。次に、メカニカルシャッタ32は、システム制御部44からの制御信号により、必要な露光時間となるように撮像素子33の動作に合わせて撮像素子33を遮光するように駆動される。この時、撮像素子33が電子シャッタ機能を有する場合は、メカニカルシャッタ32と併用して、必要な露光時間を確保してもよい。   First, the optical system 31 drives a diaphragm and a lens in accordance with a control signal from the system control unit 44 to form a subject image set to an appropriate brightness on the image sensor 33. Next, the mechanical shutter 32 is driven by a control signal from the system control unit 44 so as to shield the image sensor 33 in accordance with the operation of the image sensor 33 so as to have a necessary exposure time. At this time, when the image sensor 33 has an electronic shutter function, it may be used together with the mechanical shutter 32 to secure a necessary exposure time.

撮像素子33は、システム制御部44により制御されるタイミング信号発生回路36が発生する動作パルスをもとにした駆動パルスで駆動され、被写体像を光電変換により電気信号に変換してアナログ画像信号として出力する。撮像素子33から出力されたアナログの画像信号は、システム制御部44により制御されるタイミング信号発生回路36が発生する動作パルスにより、CDS回路34でクロック同期性ノイズを除去し、A/D変換器35でデジタル画像信号に変換される。   The image sensor 33 is driven by a drive pulse based on the operation pulse generated by the timing signal generation circuit 36 controlled by the system control unit 44, and converts the subject image into an electrical signal by photoelectric conversion as an analog image signal. Output. The analog image signal output from the image pickup device 33 is subjected to an operation pulse generated by a timing signal generation circuit 36 controlled by the system control unit 44, and the clock synchronization noise is removed by the CDS circuit 34. The A / D converter In 35, it is converted into a digital image signal.

次に、システム制御部44により制御される信号処理回路38において、デジタル画像信号に対して、不図示の色変換、ホワイトバランス補正、ガンマ補正等の画像処理、解像度変換処理、画像圧縮処理等を行う。さらに、複数の画像を重ね合わせ合成して1つの画像を生成する処理を施す。なお、この合成処理については、詳細に後述する。画像メモリ39は、信号処理中のデジタル画像信号を一時的に記憶したり、信号処理されたデジタル画像信号である画像データを記憶したりするために用いられる。   Next, the signal processing circuit 38 controlled by the system control unit 44 performs image processing such as color conversion, white balance correction, and gamma correction (not shown), resolution conversion processing, image compression processing, and the like on the digital image signal. Do. Further, a process of generating a single image by superposing and synthesizing a plurality of images is performed. This synthesis process will be described later in detail. The image memory 39 is used for temporarily storing a digital image signal during signal processing or for storing image data which is a digital image signal subjected to signal processing.

信号処理回路38で信号処理された画像データや画像メモリ39に記憶されている画像データは、記録回路41において記録媒体40への記録に適したデータ(例えば階層構造を持つファイルシステムデータ)に変換されて記録媒体40に記録される。また、信号処理回路38で解像度変換処理が実施された後、表示回路43において表示装置42に適した信号(例えばNTSC方式のアナログ信号等)に変換されて表示装置42に表示されたりする。   The image data signal-processed by the signal processing circuit 38 and the image data stored in the image memory 39 are converted into data suitable for recording on the recording medium 40 (for example, file system data having a hierarchical structure) in the recording circuit 41. And recorded on the recording medium 40. Further, after the resolution conversion processing is performed by the signal processing circuit 38, the display circuit 43 converts the signal into a signal suitable for the display device 42 (for example, an NTSC analog signal) and displays it on the display device 42.

ここで、信号処理回路38においては、システム制御部44からの制御信号により信号処理をせずにデジタル画像信号をそのまま画像データとして、画像メモリ39や記録回路41に出力してもよい。また、信号処理回路38は、システム制御部44から要求があった場合に、信号処理の過程で生じたデジタル画像信号や画像データの情報をシステム制御部44に出力する。ここで出力される情報は、例えば、画像の空間周波数、指定領域の平均値、圧縮画像のデータ量等の情報、あるいは、それらから抽出された情報等である。さらに、記録回路41は、システム制御部44から要求があった場合に、記録媒体40の種類や空き容量等の情報をシステム制御部44に出力する。   Here, the signal processing circuit 38 may output the digital image signal as it is as image data to the image memory 39 or the recording circuit 41 without performing signal processing by the control signal from the system control unit 44. Further, when requested by the system control unit 44, the signal processing circuit 38 outputs information on digital image signals and image data generated in the signal processing process to the system control unit 44. The information output here is, for example, information such as the spatial frequency of the image, the average value of the designated area, the data amount of the compressed image, or information extracted from them. Further, the recording circuit 41 outputs information such as the type of the recording medium 40 and the free capacity to the system control unit 44 when requested by the system control unit 44.

●再生動作
記録媒体40に画像データが記録されている場合の再生動作について説明する。システム制御部44からの制御信号により、記録回路41は、記録媒体40から画像データを読み出す。また、同じくシステム制御部44からの制御信号により、信号処理回路38は、画像データが圧縮画像であった場合には、画像伸長処理を行い、画像メモリ39に記憶する。画像メモリ39に記憶されている画像データは、信号処理回路38で解像度変換処理を実施された後、表示回路43において表示装置42に適した信号に変換されて表示装置42に表示される。
Reproduction Operation A reproduction operation when image data is recorded on the recording medium 40 will be described. In response to a control signal from the system control unit 44, the recording circuit 41 reads image data from the recording medium 40. Similarly, in response to a control signal from the system control unit 44, the signal processing circuit 38 performs image expansion processing and stores the image data in the image memory 39 when the image data is a compressed image. The image data stored in the image memory 39 is subjected to resolution conversion processing by the signal processing circuit 38, converted to a signal suitable for the display device 42 by the display circuit 43, and displayed on the display device 42.

●画像合成処理
図2は複数の画像を合成処理する場合の、信号処理装置38の機能構成を示すブロック図である。なお、ここで行われる合成処理は重ね合わせ合成であって、公知のダイナミックレンジ拡大やノイズ低減、手振れ補正等に利用することが可能である。また、この合成処理を常に行う必要はなく、必要に応じてまたは操作者の設定に応じて行えばよい。
Image Synthesis Processing FIG. 2 is a block diagram showing the functional configuration of the signal processing device 38 when a plurality of images are synthesized. Note that the synthesis processing performed here is overlay synthesis, and can be used for known dynamic range expansion, noise reduction, camera shake correction, and the like. Further, it is not always necessary to perform this synthesis process, and it may be performed according to the necessity or according to the setting of the operator.

図2にあるように複数の画像10a、10b、…、10mが位置検出部1および画像選択部3に与えられる。位置検出部1では例えば特開2000−341582に開示された方法などによって複数画像間の位置ずれを検出する。信頼性検出部2では、位置検出部1の出力を基に位置検出の信頼性を判断し、画像合成に適した画像を求める。画像選択部3においては、信頼性検出部2によって求められた信頼性情報を基に、複数の画像10a、10b、…、10mの内、合成に用いる画像を選択し、選択した画像のみを画像合成部4に渡す。画像合成部4では、位置検出部1の情報を基に、画像選択部3によって選択された複数の画像に対して位置合わせと画像の露出補正などを行い、1つの画像に合成する。   As shown in FIG. 2, a plurality of images 10 a, 10 b,..., 10 m are given to the position detection unit 1 and the image selection unit 3. The position detection unit 1 detects a positional deviation between a plurality of images by, for example, a method disclosed in Japanese Patent Laid-Open No. 2000-341582. The reliability detection unit 2 determines the reliability of position detection based on the output of the position detection unit 1 and obtains an image suitable for image synthesis. In the image selection unit 3, based on the reliability information obtained by the reliability detection unit 2, an image used for composition is selected from the plurality of images 10a, 10b,. It passes to the synthesis unit 4. The image composition unit 4 performs alignment and image exposure correction on a plurality of images selected by the image selection unit 3 based on the information of the position detection unit 1 and composes it into one image.

次に、図3を参照して複数画像の合成と移動ベクトルおよび信頼性検出部2について説明する。   Next, with reference to FIG. 3, the composition of multiple images and the movement vector and reliability detection unit 2 will be described.

図3において、(a)及び(b)は合成の対象となる2枚の画像を示す模式図、(c)は(a)及び(b)に示した画像を位置合わせせずにそのまま重ねた場合を示す模式図、(d)は(a)及び(b)に示した画像を位置合わせして重ねた場合を示す模式図である。   In FIG. 3, (a) and (b) are schematic diagrams showing two images to be combined, and (c) is an overlay of the images shown in (a) and (b) without alignment. FIG. 4D is a schematic diagram illustrating a case where the images illustrated in FIGS. 2A and 2B are aligned and superimposed.

また、21a、21bはそれぞれ被写体を示し、図3(c)の20a及び20bは(a)及び(b)に示した画像間の移動ベクトルを示す。   Reference numerals 21a and 21b denote subjects, respectively. Reference numerals 20a and 20b in FIG. 3C denote movement vectors between the images shown in FIGS.

手ぶれ等、画角が変化する要因がある状態で撮影された複数画像は、図3(c)に示すようにそのまま重ねた場合、被写体21a、21bがずれてしまう。特開2000−341582に開示された方法などにより、画像の相関を取ることなどによって2つの像の位置ずれを求めることができる。本願発明では、画像間のずれを示すベクトルを「移動ベクトル」と呼ぶ。求められた移動ベクトルを使って画像を写像することによって位置合わせを行うことが可能であり、図3(d)に示したような位置合わせを行った後に合成した像を得ることができる。   If a plurality of images taken in a state where there is a factor that changes the angle of view, such as camera shake, are superimposed as they are as shown in FIG. 3C, the subjects 21a and 21b are displaced. The positional deviation between the two images can be obtained by taking the correlation between the images by the method disclosed in Japanese Patent Laid-Open No. 2000-341582. In the present invention, a vector indicating a shift between images is referred to as a “movement vector”. It is possible to perform alignment by mapping the image using the obtained movement vector, and it is possible to obtain a combined image after performing alignment as shown in FIG.

図3では説明の簡単のために2枚の画像の合成と移動ベクトルについて説明を行ったが、さらに多くの画像に関しても順次同様の処理を行うことで、3枚以上の画像の合成を行うことができる。   In FIG. 3, for the sake of simplicity of explanation, the composition of two images and the movement vector have been described. However, the same processing is sequentially performed for more images, so that three or more images can be composed. Can do.

次に、図4を用いて、信頼性検出部2にて行われる複数画像間の移動ベクトルの信頼性推定の原理について説明する。   Next, the principle of the reliability estimation of the movement vector between a plurality of images performed by the reliability detection unit 2 will be described with reference to FIG.

以下の説明において、p枚目からq枚目に向かう移動ベクトルをvpqと記す。図4は1枚目からn枚目までのベクトルを示している。図4(a)は1枚目からn枚目の画像まで移動ベクトルの検出の失敗や誤差が無い場合を、図4(b)は1枚目からn枚目の画像のうち、n−1枚目からn枚目への移動ベクトルの検出に失敗や誤差がある場合をそれぞれ示している。理想的な被写体では、移動ベクトルの検出に誤差や失敗は無いが、元の画像中の被写体に動きがある場合や、撮像素子のノイズの影響を受ける場合には移動ベクトルはその影響によって検出に誤差や失敗が生じる場合がある。図4から分かるように、各画像間の移動ベクトルを求めるには冗長性がある。つまり、1枚目からn枚目へ向かうベクトルは、v1nとして求めることもできるが、v12+v23+…+v(n-1)nとして求めることもできる。つまり、
1n=v12+v23+…+v(n-1)n …(1)
In the following description, a movement vector from the p-th sheet to the q-th sheet is denoted as v pq . FIG. 4 shows vectors from the first sheet to the nth sheet. FIG. 4A shows a case where there is no failure or error in detection of the movement vector from the first image to the n-th image, and FIG. 4B shows n−1 among the first to n-th images. The cases where there is a failure or error in the detection of the movement vector from the first sheet to the nth sheet are shown. For an ideal subject, there is no error or failure in detecting the movement vector, but if the subject in the original image has movement or is affected by the noise of the image sensor, the movement vector is detected by that effect. Errors and failures may occur. As can be seen from FIG. 4, there is redundancy in determining the movement vector between the images. That is, the vector from the first sheet to the nth sheet can be obtained as v 1n , but can also be obtained as v 12 + v 23 +... + V (n−1) n . That means
v 1n = v 12 + v 23 + ... + v (n-1) n (1)

が成り立つ。図4(a)に示したように検出の失敗や誤差が無い状態では、
12+v23+…+v(n-1)n−v1n=v12+v23+…+v(n-1)n+vn1=0 …(2)
が成り立つ。しかし、一般的には検出の誤差などがあるために図4(b)のように
1n≠v12+v23+…+v(n-1)n …(3)
であり、結果として、
12+v23+…+v(n-1)n−v1n=v12+v23+…+v(n-1)n+vn1≠0 …(4)
となる。一方で1枚目からn−1枚目までの移動ベクトルを考えると、図4(b)の例でも
12+v23+…+v(n-2)(n-1)−v1(n-1)=v12+v23+…+v(n-2)(n-1)+v(n-1)1=0 …(5)
が成り立つ。ここで1枚目からn枚目までの移動ベクトルの同定の信頼性の評価値として次式(6)を用いる。
Holds. In the state where there is no detection failure or error as shown in FIG.
v 12 + v 23 + ... + v (n1) n -v 1n = v 12 + v 23 + ... + v (n1) n + v n1 = 0 ... (2)
Holds. However, since there is generally a detection error, as shown in FIG. 4B, v 1n ≠ v 12 + v 23 +... + V (n−1) n (3)
And as a result,
v 12 + v 23 + ... + v (n1) n -v 1n = v 12 + v 23 + ... + v (n1) n + v n1 ≠ 0 ... (4)
It becomes. On the other hand considering the motion vector from the first sheet to n-1 th, 4 in the example of (b) v 12 + v 23 + ... + v (n-2) (n-1) -v 1 (n- 1) = v 12 + v 23 + ... + v (n-2) (n-1) + v (n-1) 1 = 0 ... (5)
Holds. Here, the following expression (6) is used as an evaluation value of the reliability of the identification of the movement vector from the first sheet to the nth sheet.

(信頼性評価値)=|v12+v23+…+v(n-1)n+vn1| …(6)
図4を用いて説明したように、移動ベクトルの同定において検出間違いや大きな誤差がある場合、信頼性評価値は大きな値をとり、全く誤差が無い場合にはゼロとなる。つまり信頼性評価値でベクトルの同定精度を見積もることが可能である。
さらに、信頼性評価値を用いて画像の合成に用いる移動ベクトルおよび画像を決定する方法について、図4および図5を用いて説明する。
(Reliability evaluation value) = | v 12 + v 23 + ... + v (n1) n + v n1 | ... (6)
As described with reference to FIG. 4, when there is a detection error or a large error in the identification of the movement vector, the reliability evaluation value takes a large value, and becomes zero when there is no error at all. That is, it is possible to estimate the vector identification accuracy by the reliability evaluation value.
Further, a method of determining a movement vector and an image used for image synthesis using the reliability evaluation value will be described with reference to FIGS.

図5では説明を簡単にするために、4枚の画像を合成する場合を例に挙げて説明するが、5枚以上の画像を合成する場合においても同様に適用することができる。図5(a)は1枚目から4枚目までの移動ベクトルの検出の失敗や誤差が無い場合を、図5(b)は1枚目から4枚目までのうち3枚目から4枚目への移動ベクトルの検出に失敗や誤差がある場合をそれぞれ示している。ここでは3枚目から4枚目に向かうベクトル以外は正確に同定できると仮定する。   In FIG. 5, for the sake of simplicity, a case where four images are combined will be described as an example. However, the present invention can be similarly applied to a case where five or more images are combined. FIG. 5A shows the case where there is no failure or error in detection of the movement vector from the first to the fourth sheet, and FIG. 5B shows the third to fourth of the first to fourth sheets. The cases where there are failures or errors in the detection of the movement vector to the eye are shown. Here, it is assumed that the vectors other than the third to fourth vectors can be accurately identified.

図4を用いて説明したように図5(b)の状態では   As described with reference to FIG. 4, in the state of FIG.

(信頼性評価値)=|v12+v23+v34+v41|≠0 …(7)
である。
信頼性検出部2は、図5(b)に示す例のように、上述したようにして算出した信頼性評価値が予め設定された所定値よりも大きい(信頼性が低い)場合に、合成すべき4枚の画像のうち、いずれか1つの画像を飛ばしながら再度上記評価値を計算する。なお、許容できる信頼性評価値の値は、実用的には許容錯乱円等を考慮して決定すればよい。図5(b)に示す移動ベクトルの内、1枚目の画像を飛ばした場合を図5(c)に、2枚目の画像を飛ばした場合を図5(d)に、3枚目の画像を飛ばした場合を図5(e)に、そして4枚目の画像を飛ばした場合を図5(f)にそれぞれ示している。
(Reliability evaluation value) = | v 12 + v 23 + v 34 + v 41 | ≠ 0 (7)
It is.
The reliability detection unit 2 performs synthesis when the reliability evaluation value calculated as described above is larger than a predetermined value (reliability is low) as in the example illustrated in FIG. The evaluation value is calculated again while skipping any one of the four images to be processed. The allowable reliability evaluation value may be determined in consideration of an allowable circle of confusion and the like. Of the movement vectors shown in FIG. 5B, the case where the first image is skipped is shown in FIG. 5C, the case where the second image is skipped is shown in FIG. FIG. 5E shows the case where the image is skipped, and FIG. 5F shows the case where the fourth image is skipped.

図5から、明らかに、
(1枚目を除いた場合の信頼性評価値)=|v23+v34+v42|≠0
(2枚目を除いた場合の信頼性評価値)=|v13+v34+v41|≠0
(3枚目を除いた場合の信頼性評価値)=|v12+v24+v41|=0
From FIG. 5, clearly
(Reliability evaluation value when the first sheet is removed) = | v 23 + v 34 + v 42 | ≠ 0
(Reliability evaluation value when the second sheet is removed) = | v 13 + v 34 + v 41 | ≠ 0
(Reliability evaluation value when the third sheet is removed) = | v 12 + v 24 + v 41 | = 0

(4枚目を除いた場合の信頼性評価値)=|v12+v23+v31|=0 …(8)
となる。一般的に同定は誤差を含むために上記の信頼性評価値は厳密には0にならないが、小さくなるようなベクトルを基に画像を合成することで、画像の位置あわせ精度を向上することができる。
図2に示した位置検出部1は、信頼性検出部2により式(8)に示すような各画像を除いた信頼性評価値を算出するために、必要な移動ベクトルをすべて検出し、信頼性検出部2に出力する。必要な移動ベクトルの数は、任意の2点の組み合わせで決まるので、n枚の画像においてはn(n-1)/2個のベクトルとなる。例えば、上述したように画像が4枚の場合には、v12、v13、v23、v24、v34、v41である。
(Reliability evaluation value when the fourth sheet is removed) = | v 12 + v 23 + v 31 | = 0 (8)
It becomes. In general, since the identification includes an error, the reliability evaluation value is not strictly zero. However, by synthesizing an image based on a vector that becomes small, the alignment accuracy of the image can be improved. it can.
The position detection unit 1 shown in FIG. 2 detects all the necessary movement vectors in order to calculate the reliability evaluation value excluding each image as shown in the equation (8) by the reliability detection unit 2. Output to the sex detector 2. Since the number of necessary movement vectors is determined by a combination of two arbitrary points, n (n−1) / 2 vectors are obtained for n images. For example, when there are four images as described above, they are v 12 , v 13 , v 23 , v 24 , v 34 , v 41 .

このように、信頼性検出部2において上述したようにして信頼性評価値を求め、信頼性の高いベクトルを求める。次に図2に示した画像選択部3において、信頼性検出部2からの値に基づいて、合成すべき画像と合成に用いる移動ベクトルを決定する。式(8)に示す例では、3枚目を除いた場合の信頼性評価値と4枚目を除いた場合の信頼性評価値とが共に0であるため、3枚目または4枚目を除いた3枚の画像(即ち、1、2、4枚目、または1、2、3枚目)を用いて合成を行うようにする。図5(b)から分かるように、ここでは3枚目から4枚目への移動ベクトルの検出に失敗しているため、3枚目または4枚目のいずれを除いても、画像の合成時に移動ベクトルv34が使用されないようにすることができる。なお、実際には信頼性評価値が0になることはまれであるため、信頼性評価値が小さい方(信頼性が高い方)の画像の組み合わせを選択すればよい。 As described above, the reliability evaluation unit 2 obtains the reliability evaluation value as described above, and obtains a highly reliable vector. Next, the image selection unit 3 shown in FIG. 2 determines an image to be combined and a movement vector used for the combination based on the value from the reliability detection unit 2. In the example shown in Expression (8), the reliability evaluation value when the third sheet is removed and the reliability evaluation value when the fourth sheet is removed are both 0. Synthesis is performed using the removed three images (that is, the first, second, fourth, or first, second, third). As can be seen from FIG. 5B, since the detection of the movement vector from the third image to the fourth image has failed here, any of the third image and the fourth image can be excluded during image synthesis. movement vector v 34 can be prevented from being used. In practice, since the reliability evaluation value rarely becomes 0, a combination of images having a smaller reliability evaluation value (higher reliability) may be selected.

合成に用いる画像及び移動ベクトルを決定すると、次に、画像合成部4で、位置合わせと画像の露出補正などを行って複数画像から1つの画像を合成する。結果として高品位な合成画像を得ることができる。この高品位な画像を図1に示した記録回路41を利用して記録媒体40に記録する。   Once the image and the movement vector used for the composition are determined, the image composition unit 4 then composes one image from a plurality of images by performing alignment and image exposure correction. As a result, a high-quality composite image can be obtained. This high-quality image is recorded on the recording medium 40 using the recording circuit 41 shown in FIG.

上記の通り本第1の実施形態によれば、より適切に複数画像の重ね合わせ合成を行うことができる。   As described above, according to the first embodiment, a plurality of images can be superimposed and combined more appropriately.

<変形例>
上記第1の実施形態では、式(8)に示す信頼性評価値に基づいて、複数の画像の内、合成に用いる画像及び移動ベクトルを選択したが、以下に記すように移動ベクトルを置き換えるようにしても良い。式(8)の例では、v34を含む場合に信頼性評価値が大きくなる(信頼性が低くなる)ことから、v34が検出に失敗した移動ベクトルであると評価することができる。
<Modification>
In the first embodiment, based on the reliability evaluation value shown in Expression (8), the image and the movement vector used for the synthesis are selected from among the plurality of images. However, the movement vector is replaced as described below. Anyway. In the example of Expression (8), when v 34 is included, the reliability evaluation value becomes large (the reliability becomes low), so it can be evaluated that v 34 is a movement vector that has failed to be detected.

従って、画像選択部3において、検出に失敗した移動ベクトルまたは検出に成功した移動ベクトルを選択し、v34を他の移動ベクトルにより置き換えて画像合成部4に置き換えた移動ベクトルを出力するようにしても良い。具体的には、v31+v14やv32+v24に置き換える。そして画像合成部4では、位置検出部1から得られた移動ベクトル及び画像選択部3により置き換えられた移動ベクトルを用いて、1〜4枚目のすべての画像を合成することも可能である。なお、ここでは4枚の画像を合成する場合について説明したが、4枚以外の枚数の画像を合成する場合にも、同様の処理を行えば良いことは言うまでもない。 Accordingly, the image selection unit 3 selects a movement vector that has failed in detection or a movement vector that has succeeded in detection, and outputs a movement vector in which v 34 is replaced with another movement vector and replaced with the image composition unit 4. Also good. Specifically, it is replaced with v 31 + v 14 or v 32 + v 24 . The image synthesis unit 4 can also synthesize all the first to fourth images using the movement vector obtained from the position detection unit 1 and the movement vector replaced by the image selection unit 3. Although the case where four images are combined has been described here, it is needless to say that the same processing may be performed when combining images other than four images.

上記のようにすることで、第1の実施形態と比較して、より多くの枚数の画像を適切に合成することが可能になる。   As described above, it is possible to appropriately synthesize a larger number of images as compared with the first embodiment.

<第2の実施形態>
次に、本発明の第2の実施形態について、図1、図2および図6から図8を用いて説明する。
<Second Embodiment>
Next, a second embodiment of the present invention will be described with reference to FIGS. 1, 2, and 6 to 8. FIG.

本第2の実施形態では、位置検出部1及び信頼性検出部2の動作が上記第1の実施形態と異なる。それ以外の構成及び動作は上記第1の実施形態と同様であるため、位置検出部1及び信頼性検出部2の説明を以下に行い、それ以外については説明を省略する。   In the second embodiment, the operations of the position detector 1 and the reliability detector 2 are different from those of the first embodiment. Since other configurations and operations are the same as those in the first embodiment, the position detection unit 1 and the reliability detection unit 2 will be described below, and the description of the other components will be omitted.

図6は本第2の実施形態における位置検出部1の機能構成を示すブロック図である。図6に示すように、位置検出部1は分割部5、移動ベクトル検出部6、ブロック信頼性検出部7、アフィン写像生成部8から構成されている。   FIG. 6 is a block diagram illustrating a functional configuration of the position detection unit 1 in the second embodiment. As shown in FIG. 6, the position detection unit 1 includes a division unit 5, a movement vector detection unit 6, a block reliability detection unit 7, and an affine map generation unit 8.

次に、上記構成を有する位置検出部1の動作について説明する。   Next, the operation of the position detection unit 1 having the above configuration will be described.

まず分割部5によって複数の画像10a〜10mをそれぞれ、予め設定されたn個の領域(ブロック)に分割する。なお、分割部5により分割をする代わりに、特徴点抽出部を用いて画像中のいくつかの特徴点を抽出するようにしても良い。画像の中の複数の点で移動ベクトルを用いると言うことではどちらの方法を用いても本質的な違いは無い。従って、本第2の実施形態では分割部5を用いた場合について説明を行うが、特徴点を用いた方法に本第2の実施形態を適用することが可能である。   First, the dividing unit 5 divides each of the plurality of images 10a to 10m into n regions (blocks) set in advance. Instead of dividing by the dividing unit 5, some feature points in the image may be extracted using a feature point extracting unit. There is no essential difference between the two methods when it comes to using movement vectors at multiple points in the image. Therefore, although the case where the dividing unit 5 is used will be described in the second embodiment, the second embodiment can be applied to a method using feature points.

次に、移動ベクトル検出部6で、例えば特開2000−341582に開示された方法などを用いて、各々のブロック毎に複数画像間の位置ずれを検出する。ブロック信頼性検出部7では、移動ベクトル検出部6の出力を基に位置検出の信頼性を判断し、アフィン写像の同定に適したブロックを求める。アフィン写像生成部8ではブロック信頼性検出部7から得られたブロックと、当該ブロックの画像上の位置情報から、複数画像間の写像を表すアフィン写像マトリックスを生成する。   Next, the movement vector detection unit 6 detects misalignment between a plurality of images for each block using, for example, the method disclosed in Japanese Patent Application Laid-Open No. 2000-341582. The block reliability detection unit 7 determines the reliability of position detection based on the output of the movement vector detection unit 6 and obtains a block suitable for identifying an affine map. The affine mapping generation unit 8 generates an affine mapping matrix representing mapping between a plurality of images from the block obtained from the block reliability detection unit 7 and position information on the image of the block.

上述の動作を図7を用いて具体的に説明する。   The above operation will be specifically described with reference to FIG.

図7において、(a)及び(b)は合成の対象となる2枚の画像を示す模式図、(c)は(a)及び(b)に示した画像を位置合わせせずにそのまま重ねた場合を示す模式図、(d)は(a)及び(b)に示した画像を位置合わせして重ねた場合を示す模式図である。図7(c)は、複数のブロックに分けて示している。   In FIG. 7, (a) and (b) are schematic diagrams showing two images to be combined, and (c) is a direct overlay of the images shown in (a) and (b) without alignment. FIG. 4D is a schematic diagram illustrating a case where the images illustrated in FIGS. 2A and 2B are aligned and superimposed. FIG. 7C shows a plurality of blocks.

図7において、21a、21bはそれぞれ被写体を示し、(c)の20a、20b、20c、20d、20eは(a)及び(b)に示した画像間の移動ベクトルを示す。   In FIG. 7, reference numerals 21a and 21b denote subjects, and reference numerals 20a, 20b, 20c, 20d, and 20e in (c) denote movement vectors between images shown in (a) and (b).

手ぶれ等、画角が変化する要因がある状態で撮影された複数画像は、図7(c)に示すようにそのまま重ねた場合、被写体21a、21bがずれてしまう。そこで、分割された各領域で画像の相関を取ることなどによって各領域での2つの像の位置ずれを求めることができる。本第2の実施形態においても、画像間のずれを示すベクトルを移動ベクトルと呼ぶ。   If a plurality of images taken in a state where there is a factor that changes the angle of view, such as camera shake, are superimposed as they are as shown in FIG. 7C, the subjects 21a and 21b are displaced. Therefore, the positional deviation between the two images in each region can be obtained by taking the correlation between the images in each divided region. Also in the second embodiment, a vector indicating a shift between images is referred to as a movement vector.

また、図7(c)において、移動ベクトル20eが存在するブロックは所謂被写体が存在しないものとする。被写体が無いブロックでは画像間の相関がうまく取れないことがあり、そのような場合には20eに示すように不適切な移動ベクトルが求められる場合がある。移動ベクトル20eのように同定が不適切な場合も含めて画像全体のアフィン写像マトリックスを同定すると、位置合わせを正確に行うことが困難である。   In FIG. 7C, it is assumed that a block in which the movement vector 20e exists does not have a so-called subject. In a block having no subject, correlation between images may not be obtained well. In such a case, an inappropriate movement vector may be obtained as shown in 20e. If the affine mapping matrix of the entire image is identified including the case where the identification is inappropriate like the movement vector 20e, it is difficult to accurately perform the alignment.

アフィン写像生成部8の動作を図8を用いて説明する。図8において、Oは画像上の基準点を示す。本第2の実施形態においては、p枚目の画像において、画像上に設けた計算の基準点Oからi番目の領域へ向かうベクトルをvpiとし、i番目の領域において、ブロック位置検出部4によって求められたp枚目の画像とq枚目の画像間の移動ベクトルをuipqとする。 The operation of the affine map generation unit 8 will be described with reference to FIG. In FIG. 8, O indicates a reference point on the image. In the second embodiment, in the p-th image, a vector from the calculation reference point O provided on the image to the i-th region is represented by v pi, and in the i-th region, the block position detection unit 4 Let u ipq be the movement vector between the p-th image and the q-th image obtained by the above.

図7では1枚目と2枚目の間で1番目から5番目までのブロックで求められた移動ベクトルとブロックへのベクトルを図示している。図8において5番目のブロックは移動ベクトルの同定が適切に行われておらず、その他のブロックは適切に同定されていると仮定する。ここで、p枚目からq枚目へのアフィン写像を表すマトリックスをApqと表現すると、上述した定義から明らかに
qi=vpi+uipq=Apqpi …(9)
FIG. 7 illustrates the movement vector and the vector to the block obtained in the first to fifth blocks between the first and second sheets. In FIG. 8, it is assumed that the fifth block is not properly identified with the motion vector, and the other blocks are properly identified. Here, if the matrix representing the affine mapping from the p-th to the q-th is expressed as A pq , it is apparent from the above definition that v qi = v pi + u ipq = A pq v pi (9)

上記式(9)において、uipqは移動ベクトル検出部6によって求められ、vpiはブロックの分割方法によって決まる既知の値である。また、上記式はブロックiに関わらず成り立つので、 In the above equation (9), u ipq is obtained by the movement vector detection unit 6, and v pi is a known value determined by the block division method. Moreover, since the above equation holds regardless of the block i,

(vq1, vq2, ..., vqm)=(vp1+u1pq, vp2+u2pq, ..., vpm+umpq
=Apq(vp1, vp2, ..., vpm) …(10)
上記式(10)において、(vq1, vq2, ..., vqm)=Mq、(vp1, vp2, ..., vpm)=Mpと標記すると、上記式(10)は
q=Apqp …(11)
(V q1, v q2, ... , v qm) = (v p1 + u 1pq, v p2 + u 2pq, ..., v pm + u mpq)
= A pq (v p1 , v p2 , ..., v pm ) (10)
In the above equation (10), when (v q1 , v q2 ,..., V qm ) = M q and (v p1 , v p2 ,..., V pm ) = M p , ) Is M q = A pq M p (11)

と書くことができる。この式(11)を解くと、Apqは、
pq=Mqp T(Mpp T-1 …(12)
として求めることができる。式(12)における(Mpp T-1がランク落ちをしないように適切に処理をすることで、Apqを求めることができる。Apqは残差2乗和が最小になるように求められるので、図7においてu512のように不適切に同定されたブロックがあるとアフィンマトリックスの同定精度を下げてしまう。そこで各ブロックにおいてn枚の画像間で求められた移動ベクトルに対して上記第1の実施形態を適用してアフィンマトリックスの同定精度を向上させる。具体的にはi番目のブロックにおいて求められた移動ベクトル
i12,ui23,…,ui(n-1)n
に対して、上記第1の実施形態の方法を適用する。第1の実施形態の方法によってブロック信頼性検出部7がアフィンマトリックスの同定に適したブロックを選択する。例えば図7において5番目のブロックは不適切に同定が行われているが、図7に示したように背景部分などは同定が不適切になりやすい。このようなブロックは画像間で移動ベクトルがランダムに求まるので、第1の実施形態に示した評価値が小さくならないため容易に除外することができる。このようなブロックの移動ベクトルを除去した後にアフィンマトリックスを同定することで、図7(d)のような正確に重ね合わされた像を得ることができる。
図2に示すように、位置検出部1で求められたアフィンマトリックスは信頼性検出部2に渡される。本第2の実施形態では信頼性検出部2はアフィンマトリックスの行列式を用いて評価を行う。つまり、第1の実施形態での移動ベクトルの場合と同様に誤差無くアフィンマトリックスが同定された場合は
1n=A1223…A(n-1)n …(13)
Can be written. Solving this equation (11), A pq is
A pq = M q M p T (M p M p T ) −1 (12)
Can be obtained as By appropriately processing so that (M p M p T ) −1 in Expression (12) does not drop in rank, A pq can be obtained. Since A pq is obtained so that the residual sum of squares is minimized, if there is an improperly identified block such as u 512 in FIG. 7, the identification accuracy of the affine matrix is lowered. Therefore, the first embodiment is applied to the movement vector obtained between n images in each block to improve the affine matrix identification accuracy. More specifically, the movement vectors u i12 , u i23 ,..., U i (n−1) n obtained in the i-th block.
In contrast, the method of the first embodiment is applied. According to the method of the first embodiment, the block reliability detection unit 7 selects a block suitable for identifying an affine matrix. For example, although the fifth block in FIG. 7 is inappropriately identified, the background portion and the like are likely to be inappropriately identified as shown in FIG. Such blocks can be easily excluded because the movement vector is obtained randomly between images, and the evaluation value shown in the first embodiment does not become small. By identifying the affine matrix after removing the movement vector of such a block, an accurately superimposed image as shown in FIG. 7D can be obtained.
As shown in FIG. 2, the affine matrix obtained by the position detection unit 1 is passed to the reliability detection unit 2. In the second embodiment, the reliability detection unit 2 performs an evaluation using an affine matrix determinant. That is, when the affine matrix is identified without error as in the case of the movement vector in the first embodiment, A 1n = A 12 A 23 ... A (n−1) n (13)

が成り立つ。この式(13)を変形すると
E=A1223…A(n-1)nn1 …(14)
となる。ただし、式(14)の左辺のEは単位行列を表す。つまり、1枚目からn枚目までの写像を順次重ねたものにさらにn枚目から1枚目までの写像を行うと、元に戻る単位行列になるのである。上式の両辺の行列式を考えると
Holds. When this equation (13) is transformed, E = A 12 A 23 ... A (n-1) n A n1 (14)
It becomes. However, E on the left side of Equation (14) represents a unit matrix. In other words, when the mapping from the nth sheet to the first sheet is further performed on the one obtained by sequentially superimposing the mappings from the first sheet to the nth sheet, the unit matrix is restored. Considering the determinant on both sides of the above equation

(信頼性評価値)=det(E)=det(A1223…A(n-1)nn1)=0 …(15)
となるので、式(15)により得られる値を、信頼性評価値として定義する。そして、
(k枚目を除いた信頼性評価値)=det(A1223…A(k-2)(k-1)(k-1)(k+1)…A(n-1)nn1) …(16)
を順次計算していき、第1の実施形態の信頼性評価値と同様にこの値を小さくすることで適切なアフィン写像を選別することができる。
図2に示す信頼性検出部2において、本第2の実施形態においては式(16)により信頼性評価値を求め、信頼性の高いアフィン写像を求める。次に図2に示した画像選択部3において、信頼性検出部2からの値に基づいて合成すべき画像と合成に用いるアフィン写像を決定する。
(Reliability evaluation value) = det (E) = det (A 12 A 23 ... A (n−1) n A n1 ) = 0 (15)
Therefore, the value obtained by Expression (15) is defined as the reliability evaluation value. And
(Reliability evaluation value excluding the kth sheet) = det (A 12 A 23 ... A (k−2) (k−1) A (k−1) (k + 1) ... A (n−1) n A n1 ) (16)
Are sequentially calculated, and an appropriate affine map can be selected by reducing this value in the same manner as the reliability evaluation value of the first embodiment.
In the reliability detection unit 2 shown in FIG. 2, in the second embodiment, a reliability evaluation value is obtained by Expression (16), and a highly reliable affine map is obtained. Next, the image selection unit 3 shown in FIG. 2 determines an image to be combined and an affine map used for the combination based on the values from the reliability detection unit 2.

そして、最終的に画像合成部4で、位置合わせと画像の露出補正などを行って、複数画像から1つの画像を合成する。結果として高品位な合成画像を得ることができる。この高品位な画像を図1に示す記録回路41を利用して記録媒体40に記録する。   Then, finally, the image composition unit 4 performs alignment, image exposure correction, and the like to compose one image from a plurality of images. As a result, a high-quality composite image can be obtained. This high-quality image is recorded on the recording medium 40 using the recording circuit 41 shown in FIG.

上記の通り本第2の実施形態によれば、より適切に複数画像の重ね合わせ合成を行うことができる。   As described above, according to the second embodiment, a plurality of images can be superimposed and combined more appropriately.

<他の実施形態>
上記第1及び第2の実施形態では、本発明の信号処理回路を撮像装置に搭載した場合について説明したが、本発明はこれに限るものではない。例えば、撮像装置から入力される画像をコンピュータなどの外部信号処理装置において処理する場合に適用することができる。
<Other embodiments>
In the first and second embodiments, the case where the signal processing circuit of the present invention is mounted on the imaging apparatus has been described, but the present invention is not limited to this. For example, the present invention can be applied when an image input from an imaging device is processed by an external signal processing device such as a computer.

その場合、本発明の目的は、例えば、以下の様にして達成することも可能である。まず、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給する。そして、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行する。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In that case, the object of the present invention can be achieved, for example, as follows. First, a storage medium (or recording medium) that records a program code of software that implements the functions of the above-described embodiments is supplied to a system or apparatus. Then, the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、以下のようにして達成することも可能である。即ち、読み出したプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合である。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、光ディスク、光磁気ディスク、MOなどが考えられる。また、LAN(ローカル・エリア・ネットワーク)やWAN(ワイド・エリア・ネットワーク)などのコンピュータネットワークを、プログラムコードを供給するために用いることができる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the following can be achieved. That is, when the operating system (OS) running on the computer performs part or all of the actual processing based on the instruction of the read program code, the functions of the above-described embodiments are realized by the processing. It is. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, optical disk, magneto-optical disk, MO, and the like. Can be considered. Also, a computer network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be used to supply the program code.

本発明の実施の形態における撮像装置の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of an imaging apparatus according to an embodiment of the present invention. 本発明の実施の形態における画像処理装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the image processing apparatus in embodiment of this invention. 複数画像の重ね合わせ合成について説明するための図である。It is a figure for demonstrating the superimposition synthesis | combination of a several image. 本発明の実施の形態におけるベクトルの定義を説明する図である。It is a figure explaining the definition of the vector in embodiment of this invention. 本発明の第1の実施形態における信頼性の高いベクトルを抽出する場合の説明図である。It is explanatory drawing in the case of extracting a highly reliable vector in the 1st Embodiment of this invention. 本発明の第2の実施形態における位置検出部の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the position detection part in the 2nd Embodiment of this invention. 本発明の第2の実施形態における複数画像の重ね合わせ合成について説明するための図である。It is a figure for demonstrating the superimposition synthesis | combination of the several image in the 2nd Embodiment of this invention. 本発明の第2の実施形態におけるベクトルの定義を説明する図である。It is a figure explaining the definition of the vector in the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

1 位置検出部
2 信頼性検出部
3 画像選択部
4 画像合成部
5 分割部or特徴点抽出部
6 移動ベクトル検出部
7 ブロック信頼性検出部
8 アフィン写像生成部
10a〜10m 画像
11 出力画像
20 移動ベクトル
21 被写体
31 光学系
32 メカニカルシャッタ
33 撮像素子
34 CDS回路
35 A/D変換器
36 タイミング信号発生回路
37 駆動回路
38 信号処理回路
39 画像メモリ
40 記録媒体
41 記録回路
42 表示装置
43 表示回路
44 システム制御部
45 不揮発性メモリ(ROM)
46 揮発性メモリ(RAM)
DESCRIPTION OF SYMBOLS 1 Position detection part 2 Reliability detection part 3 Image selection part 4 Image synthetic | combination part 5 Dividing part or feature point extraction part 6 Movement vector detection part 7 Block reliability detection part 8 Affine map generation part 10a-10m image 11 Output image 20 Movement Vector 21 Subject 31 Optical system 32 Mechanical shutter 33 Image sensor 34 CDS circuit 35 A / D converter 36 Timing signal generation circuit 37 Drive circuit 38 Signal processing circuit 39 Image memory 40 Recording medium 41 Recording circuit 42 Display device 43 Display circuit 44 System Control unit 45 Non-volatile memory (ROM)
46 Volatile memory (RAM)

Claims (26)

互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理装置であって、
各画像間の相対的な変位を求める位置検出手段と、
前記位置検出手段により求めた変位の信頼性を、当該変位から求める信頼性検出手段と、
前記信頼性検出手段により求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択手段と、
前記選択手段により選択された複数の画像を、前記位置検出手段により求めた変位に基づいて、被写体が合致するように位置合わせして合成する合成手段と
を有することを特徴とする画像処理装置。
An image processing apparatus that superimposes and combines a plurality of mutually related images on a single image,
Position detecting means for obtaining a relative displacement between the images;
Reliability detection means for determining the reliability of displacement obtained by the position detection means from the displacement;
Selection means for selecting a plurality of images to be used for overlay synthesis based on the reliability obtained by the reliability detection means;
An image processing apparatus comprising: combining means for aligning and synthesizing a plurality of images selected by the selection means so that a subject matches based on the displacement obtained by the position detection means.
互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理装置であって、
各画像間の相対的な変位を求める位置検出手段と、
前記位置検出手段により求めた変位の信頼性を、当該変位から求める信頼性検出手段と、
前記信頼性検出手段により求められた信頼性が低い画像間の変位を、当該画像間以外の画像間の変位により置き換える置換手段と、
前記位置検出手段により求めた変位及び前記置換手段により置き換えられた変位に基づいて、被写体が合致するように前記複数の画像を位置合わせして合成する合成手段と
を有することを特徴とする画像処理装置。
An image processing apparatus that superimposes and combines a plurality of mutually related images on a single image,
Position detecting means for obtaining a relative displacement between the images;
Reliability detection means for determining the reliability of displacement obtained by the position detection means from the displacement;
Replacement means for replacing displacement between images with low reliability obtained by the reliability detection means by displacement between images other than between the images;
An image processing method comprising: combining means for aligning and synthesizing the plurality of images so that a subject matches based on the displacement obtained by the position detection means and the displacement replaced by the replacement means. apparatus.
前記位置検出手段は前記変位を移動ベクトルとして求め、前記信頼性検出手段は前記複数の画像間の移動ベクトルの合成を用いて信頼性を求めることを特徴とする請求項1または2に記載の画像処理装置。   3. The image according to claim 1, wherein the position detection unit obtains the displacement as a movement vector, and the reliability detection unit obtains reliability using synthesis of movement vectors between the plurality of images. Processing equipment. 前記信頼性検出手段は、n枚の画像を合成する場合において、p枚目からq枚目への移動ベクトルをvpqと表現した場合に、
|v12+…+v(n-1)n+vn1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
|v12+…+v(k-1)(k+1)+…+v(n-1)n+vn1
を信頼性として求めることを特徴とする請求項3に記載の画像処理装置。
In the case where n images are synthesized, the reliability detecting means expresses a movement vector from the p-th sheet to the q-th sheet as v pq .
| V 12 + ... + v ( n1) n + v n1 |
If the reliability is lower than the preset reliability, further | v 12 + ... + v while sequentially removing one of the plurality of images (k = 1 to n) (k-1) (k + 1) + ... + v (n-1) n + v n1 |
The image processing apparatus according to claim 3, wherein the image processing device is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項4に記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the predetermined reliability is a function of an allowable circle of confusion. 互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理装置であって、
前記複数の画像をそれぞれ複数ブロックに分割する分割手段と、
前記分割手段により分割された各ブロックについて、画像間の相対的な変位を求める第1の位置検出手段と、
前記第1の位置検出手段により求められた変位の信頼性を、当該変位から求める第1の信頼性検出手段と、
前記複数ブロックの内、前記第1の信頼性検出手段により求められた信頼性が低いブロック以外のブロックの、前記第1の位置検出手段により求められた画像間の相対的な変位に基づいて、全体画像間の移動量または写像マトリックスを求める第2の位置検出手段と、
前記第2の位置検出手段により求められた移動量または写像マトリックスに基づいて、当該移動量または写像マトリックスの信頼性を求める第2の信頼性検出手段と、
前記第2の信頼性検出手段により求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択手段と、
前記選択手段により選択された複数の画像を、前記第2の位置検出手段により求めた移動量または写像マトリックスに基づいて、被写体が合致するように位置合わせして合成する合成手段と
を有することを特徴とする画像処理装置。
An image processing apparatus that superimposes and combines a plurality of mutually related images on a single image,
Dividing means for dividing the plurality of images into a plurality of blocks, respectively.
First position detecting means for obtaining a relative displacement between images for each block divided by the dividing means;
First reliability detection means for determining the reliability of the displacement determined by the first position detection means from the displacement;
Based on the relative displacement between the images obtained by the first position detection means of the blocks other than the low reliability blocks obtained by the first reliability detection means among the plurality of blocks. Second position detecting means for obtaining a movement amount or mapping matrix between the entire images;
Second reliability detection means for determining the reliability of the movement amount or mapping matrix based on the movement amount or mapping matrix obtained by the second position detection means;
Selection means for selecting a plurality of images used for overlay synthesis based on the reliability obtained by the second reliability detection means;
Combining a plurality of images selected by the selection unit based on a movement amount or a mapping matrix obtained by the second position detection unit so as to match the subject so as to match with each other. A featured image processing apparatus.
前記第1の位置検出手段は前記変位を移動ベクトルとして求め、前記第1の信頼性検出手段は、前記複数の画像間の移動ベクトルの合成を用いて信頼性を求めることを特徴とする請求項6に記載の画像処理装置。   The first position detection unit obtains the displacement as a movement vector, and the first reliability detection unit obtains the reliability using synthesis of movement vectors between the plurality of images. 6. The image processing apparatus according to 6. 前記第1の信頼性検出手段は、n枚の画像を合成する場合において、p枚目からq枚目への移動ベクトルをvpqと表現した場合に、
|v12+…+v(n-1)n+vn1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
|v12+…+v(k-1)(k+1)+…+v(n-1)n+vn1
を信頼性として求めることを特徴とする請求項7に記載の画像処理装置。
The first reliability detection unit, when combining n images, represents a movement vector from the p-th to the q-th as v pq ,
| V 12 + ... + v ( n1) n + v n1 |
If the reliability is lower than the preset reliability, further | v 12 + ... + v while sequentially removing one of the plurality of images (k = 1 to n) (k-1) (k + 1) + ... + v (n-1) n + v n1 |
The image processing apparatus according to claim 7, wherein the image processing device is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項8に記載の画像処理装置。   The image processing apparatus according to claim 8, wherein the preset reliability is a function of an allowable circle of confusion. 前記第2の信頼性検出手段は、n枚の画像を合成する場合において、p枚目からq枚目へのアフィン写像を表すマトリックスをApqと表現するとき、
det(A12+…+A(n-1)n+An1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
det(A12…A(k-1)(k+1)+…+A(n-1)n+An1
を信頼性として求めることを特徴とする請求項6乃至9のいずれかに記載の画像処理装置。
The second reliability detection means, in the case of synthesizing the n images, when a matrix representing the affine transformation to the q-th from p th is expressed as A pq,
det (A 12 + ... + A (n1) n + A n1)
If the reliability is lower than a preset reliability, further removing one of the plurality of images (k = 1 to n) in order.
det (A 12 ... A (k -1) (k + 1) + ... + A (n1) n + A n1 |
The image processing apparatus according to claim 6, wherein the image processing apparatus is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項10に記載の画像処理装置。   The image processing apparatus according to claim 10, wherein the predetermined reliability is a function of an allowable circle of confusion. 請求項1から11のいずれかに記載の画像処理装置を備えた撮像装置。   An imaging apparatus comprising the image processing apparatus according to claim 1. 互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理方法であって、
各画像間の相対的な変位を求める位置検出工程と、
前記位置検出工程で求めた変位の信頼性を、当該変位から求める信頼性検出工程と、
前記信頼性検出工程で求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択工程と、
前記選択工程で選択された複数の画像を、前記位置検出工程により求めた変位に基づいて、被写体が合致するように位置合わせして合成する合成工程と
を有することを特徴とする画像処理方法。
An image processing method for superimposing and synthesizing a plurality of images related to each other on a single image,
A position detecting step for obtaining a relative displacement between the images;
A reliability detection step for determining the reliability of the displacement obtained in the position detection step from the displacement;
A selection step for selecting a plurality of images used for overlay synthesis based on the reliability obtained in the reliability detection step;
An image processing method comprising: combining a plurality of images selected in the selection step so as to align and synthesize a subject based on the displacement obtained in the position detection step.
互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理方法であって、
各画像間の相対的な変位を求める位置検出工程と、
前記位置検出工程で求めた変位の信頼性を、当該変位から求める信頼性検出工程と、
前記信頼性検出工程で求められた信頼性が低い画像間の変位を、当該画像間以外の画像間の変位により置き換える置換工程と、
前記位置検出工程により求めた変位及び前記置換工程により置き換えられた変位に基づいて、被写体が合致するように前記複数の画像を位置合わせして合成する合成工程と
を有することを特徴とする画像処理方法。
An image processing method for superimposing and synthesizing a plurality of images related to each other on a single image,
A position detecting step for obtaining a relative displacement between the images;
A reliability detection step for determining the reliability of the displacement obtained in the position detection step from the displacement;
Replacing the displacement between images with low reliability determined in the reliability detection step by displacement between images other than between the images; and
An image processing method comprising: a combining step of aligning and combining the plurality of images so that a subject matches based on the displacement obtained by the position detection step and the displacement replaced by the replacement step. Method.
前記位置検出工程では前記変位を移動ベクトルとして求め、前記信頼性検出工程では前記複数の画像間の移動ベクトルの合成を用いて信頼性を求めることを特徴とする請求項13または14に記載の画像処理方法。   The image according to claim 13 or 14, wherein the displacement is obtained as a movement vector in the position detection step, and the reliability is obtained using synthesis of movement vectors between the plurality of images in the reliability detection step. Processing method. 前記信頼性検出工程では、n枚の画像を合成する場合において、p枚目からq枚目への移動ベクトルをvpqと表現した場合に、
|v12+…+v(n-1)n+vn1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
|v12+…+v(k-1)(k+1)+…+v(n-1)n+vn1
を信頼性として求めることを特徴とする請求項15に記載の画像処理方法。
In the reliability detection step, when n images are synthesized, when a movement vector from the p-th sheet to the q-th sheet is expressed as v pq ,
| V 12 + ... + v ( n1) n + v n1 |
If the reliability is lower than the preset reliability, further | v 12 + ... + v while sequentially removing one of the plurality of images (k = 1 to n) (k-1) (k + 1) + ... + v (n-1) n + v n1 |
The image processing method according to claim 15, wherein the image processing method is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項16に記載の画像処理方法。   The image processing method according to claim 16, wherein the preset reliability is a function of an allowable circle of confusion. 互いに関連する複数の画像を1枚の画像に重ね合わせ合成する画像処理方法であって、
前記複数の画像をそれぞれ複数ブロックに分割する分割工程と、
前記分割工程で分割された各ブロックについて、画像間の相対的な変位を求める第1の位置検出工程と、
前記第1の位置検出工程で求められた変位の信頼性を、当該変位から求める第1の信頼性検出工程と、
前記複数ブロックの内、前記第1の信頼性検出工程で求められた信頼性が低いブロック以外のブロックの、前記第1の位置検出工程で求められた画像間の相対的な変位に基づいて、全体画像間の移動量または写像マトリックスを求める第2の位置検出工程と、
前記第2の位置検出工程で求められた移動量または写像マトリックスに基づいて、当該移動量または写像マトリックスの信頼性を求める第2の信頼性検出工程と、
前記第2の信頼性検出工程で求められた信頼性に基づいて、重ね合わせ合成に用いる複数の画像を選択する選択工程と、
前記選択工程で選択された複数の画像を、前記第2の位置検出工程で求めた移動量または写像マトリックスに基づいて、被写体が合致するように位置合わせして合成する合成工程と
を有することを特徴とする画像処理方法。
An image processing method for superimposing and synthesizing a plurality of images related to each other on a single image,
A dividing step of dividing each of the plurality of images into a plurality of blocks;
A first position detecting step for obtaining a relative displacement between images for each block divided in the dividing step;
A first reliability detection step for determining the reliability of the displacement determined in the first position detection step from the displacement;
Based on the relative displacement between the images obtained in the first position detection step of blocks other than the low reliability block obtained in the first reliability detection step among the plurality of blocks. A second position detecting step for obtaining a movement amount or mapping matrix between the entire images;
A second reliability detecting step for determining the reliability of the moving amount or mapping matrix based on the moving amount or mapping matrix obtained in the second position detecting step;
A selection step of selecting a plurality of images to be used for overlay synthesis based on the reliability obtained in the second reliability detection step;
Combining a plurality of images selected in the selection step so as to align and synthesize the subject based on the movement amount or mapping matrix obtained in the second position detection step. A featured image processing method.
前記第1の位置検出工程では前記変位を移動ベクトルとして求め、前記第1の信頼性検出工程では、前記複数の画像間の移動ベクトルの合成を用いて信頼性を求めることを特徴とする請求項18に記載の画像処理方法。   The first position detection step obtains the displacement as a movement vector, and the first reliability detection step obtains the reliability using synthesis of movement vectors between the plurality of images. The image processing method according to claim 18. 前記第1の信頼性検出工程では、n枚の画像を合成する場合において、p枚目からq枚目への移動ベクトルをvpqと表現した場合に、
|v12+…+v(n-1)n+vn1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
|v12+…+v(k-1)(k+1)+…+v(n-1)n+vn1
を信頼性として求めることを特徴とする請求項19に記載の画像処理方法。
In the first reliability detection step, when n images are synthesized, when a movement vector from the p-th sheet to the q-th sheet is expressed as v pq ,
| V 12 + ... + v ( n1) n + v n1 |
If the reliability is lower than the preset reliability, further | v 12 + ... + v while sequentially removing one of the plurality of images (k = 1 to n) (k-1) (k + 1) + ... + v (n-1) n + v n1 |
The image processing method according to claim 19, wherein the image processing method is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項20に記載の画像処理方法。   21. The image processing method according to claim 20, wherein the preset reliability is a function of an allowable circle of confusion. 前記第2の信頼性検出工程では、n枚の画像を合成する場合において、p枚目からq枚目へのアフィン写像を表すマトリックスをApqと表現するとき、
det(A12+…+A(n-1)n+An1
を信頼性として求め、当該信頼性が予め設定された信頼性よりも低い場合に、更に、前記複数の画像の内の1つ(k=1〜n)を順に除きながら
det(A12…A(k-1)(k+1)+…+A(n-1)n+An1
を信頼性として求めることを特徴とする請求項18乃至21のいずれかに記載の画像処理方法。
In the second reliability detection step, when n images are synthesized, when a matrix representing an affine mapping from the p-th image to the q-th image is expressed as A pq ,
det (A 12 + ... + A (n1) n + A n1)
If the reliability is lower than a preset reliability, further removing one of the plurality of images (k = 1 to n) in order.
det (A 12 ... A (k -1) (k + 1) + ... + A (n1) n + A n1 |
The image processing method according to claim 18, wherein the image processing method is obtained as reliability.
前記予め設定された信頼性が、許容錯乱円の関数であることを特徴とする請求項22に記載の画像処理方法。   The image processing method according to claim 22, wherein the preset reliability is a function of an allowable circle of confusion. 情報処理装置が実行可能なプログラムであって、前記プログラムを実行した情報処理装置を、請求項1乃至11のいずれかに記載の画像処理装置として機能させることを特徴とするプログラム。   A program that can be executed by an information processing apparatus, and that causes the information processing apparatus that has executed the program to function as the image processing apparatus according to any one of claims 1 to 11. 請求項13乃至23のいずれかに記載の画像処理方法の各工程を実現するためのプログラムコードを有することを特徴とする情報処理装置が実行可能なプログラム。   24. A program executable by an information processing apparatus, comprising program code for realizing each step of the image processing method according to claim 13. 請求項24または25に記載のプログラムを記憶したことを特徴とする情報処理装置が読み取り可能な記憶媒体。   26. A storage medium readable by an information processing apparatus, wherein the program according to claim 24 or 25 is stored.
JP2006095847A 2006-03-30 2006-03-30 Image processing apparatus and method, and imaging apparatus Expired - Fee Related JP4777116B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006095847A JP4777116B2 (en) 2006-03-30 2006-03-30 Image processing apparatus and method, and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006095847A JP4777116B2 (en) 2006-03-30 2006-03-30 Image processing apparatus and method, and imaging apparatus

Publications (3)

Publication Number Publication Date
JP2007272459A true JP2007272459A (en) 2007-10-18
JP2007272459A5 JP2007272459A5 (en) 2009-05-07
JP4777116B2 JP4777116B2 (en) 2011-09-21

Family

ID=38675216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006095847A Expired - Fee Related JP4777116B2 (en) 2006-03-30 2006-03-30 Image processing apparatus and method, and imaging apparatus

Country Status (1)

Country Link
JP (1) JP4777116B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011023814A (en) * 2009-07-13 2011-02-03 Sharp Corp Imaging apparatus
EP2456191A2 (en) 2010-11-19 2012-05-23 Fujitsu Limited Image processing apparatus, image processing method and computer readable information recording medium
WO2012147719A1 (en) 2011-04-28 2012-11-01 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program
WO2014027551A1 (en) * 2012-08-16 2014-02-20 ソニー株式会社 Image processing device, image processing method, and program
JP2014168270A (en) * 2009-04-22 2014-09-11 Qualcomm Incorporated Image selection and combination method and device
JP2016076838A (en) * 2014-10-07 2016-05-12 キヤノン株式会社 Image processing apparatus and control method of image processing apparatus
JP2019121981A (en) * 2018-01-10 2019-07-22 キヤノン株式会社 Image processing apparatus, image processing method, and program
WO2023188044A1 (en) * 2022-03-29 2023-10-05 キヤノン株式会社 Imaging device and control method therefor, and image processing device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000341582A (en) * 1999-05-31 2000-12-08 Sony Corp Image pickup device and its method
JP2007035029A (en) * 2005-07-28 2007-02-08 Mitsubishi Electric Research Laboratories Inc Method and system for generating enhanced output image
JP4597087B2 (en) * 2006-03-30 2010-12-15 キヤノン株式会社 Image processing apparatus and method, and imaging apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000341582A (en) * 1999-05-31 2000-12-08 Sony Corp Image pickup device and its method
JP2007035029A (en) * 2005-07-28 2007-02-08 Mitsubishi Electric Research Laboratories Inc Method and system for generating enhanced output image
JP4597087B2 (en) * 2006-03-30 2010-12-15 キヤノン株式会社 Image processing apparatus and method, and imaging apparatus

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014168270A (en) * 2009-04-22 2014-09-11 Qualcomm Incorporated Image selection and combination method and device
JP2011023814A (en) * 2009-07-13 2011-02-03 Sharp Corp Imaging apparatus
EP2456191A2 (en) 2010-11-19 2012-05-23 Fujitsu Limited Image processing apparatus, image processing method and computer readable information recording medium
JP2012114520A (en) * 2010-11-19 2012-06-14 Fujitsu Ltd Image processing device, image processing method, and image processing program
US8687846B2 (en) 2010-11-19 2014-04-01 Fujitsu Limited Image processing apparatus, image processing method and computer readable information recording medium
WO2012147719A1 (en) 2011-04-28 2012-11-01 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program
US9118840B2 (en) 2011-04-28 2015-08-25 Olympus Corporation Image processing apparatus which calculates motion vectors between images shot under different exposure conditions, image processing method, and computer readable medium
WO2014027551A1 (en) * 2012-08-16 2014-02-20 ソニー株式会社 Image processing device, image processing method, and program
JP2016076838A (en) * 2014-10-07 2016-05-12 キヤノン株式会社 Image processing apparatus and control method of image processing apparatus
JP2019121981A (en) * 2018-01-10 2019-07-22 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP7102150B2 (en) 2018-01-10 2022-07-19 キヤノン株式会社 Image processing equipment, image processing methods, and programs
WO2023188044A1 (en) * 2022-03-29 2023-10-05 キヤノン株式会社 Imaging device and control method therefor, and image processing device and method

Also Published As

Publication number Publication date
JP4777116B2 (en) 2011-09-21

Similar Documents

Publication Publication Date Title
JP4777116B2 (en) Image processing apparatus and method, and imaging apparatus
JP5574423B2 (en) Imaging apparatus, display control method, and program
JP4671430B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP4549260B2 (en) Recording / reproducing apparatus, recording / reproducing method, and computer program
JP4501994B2 (en) Imaging device
JP2012191486A (en) Image composing apparatus, image composing method, and program
JP4597087B2 (en) Image processing apparatus and method, and imaging apparatus
JP2012199752A (en) Image processing apparatus, image processing method, and program
JP2010062952A (en) Imaging device, image processing device, method for processing image, program, and recording medium
JP2007286846A (en) Imaging device, its control method, image processing apparatus, method and program
JP2010193058A (en) Image capture device, image capturing method, and image capturing program
JP2013165487A (en) Image processing apparatus, image capturing apparatus, and program
JP2008181196A (en) Image processing apparatus, electronic camera, and image processing program
US9066011B2 (en) Image synthesizing apparatus that synthesizes multiple images to obtain moving image, control method therefor, and storage medium
JP2007336394A (en) Imaging apparatus and image compositing method
JP2012075082A (en) Moving image playback system and image capturing apparatus
JP4665826B2 (en) Imaging apparatus and image processing program
JP4499686B2 (en) Image processing apparatus and method, recording medium, and program
JP2013258468A (en) Imaging device, method for controlling the same, and program
JP2007306243A (en) Imaging apparatus
JP3925560B2 (en) Image processing apparatus and method, recording medium, and program
JP5962974B2 (en) Imaging apparatus, imaging method, and program
JP3925559B2 (en) Image processing apparatus and method, recording medium, and program
JP2013146110A (en) Imaging device, method and program
JP5041050B2 (en) Imaging apparatus and image processing program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090323

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110415

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110609

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110627

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110629

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140708

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees