Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4810465B2 - Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program - Google Patents
[go: Go Back, main page]

JP4810465B2 - Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program - Google Patents

Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program Download PDF

Info

Publication number
JP4810465B2
JP4810465B2 JP2007045961A JP2007045961A JP4810465B2 JP 4810465 B2 JP4810465 B2 JP 4810465B2 JP 2007045961 A JP2007045961 A JP 2007045961A JP 2007045961 A JP2007045961 A JP 2007045961A JP 4810465 B2 JP4810465 B2 JP 4810465B2
Authority
JP
Japan
Prior art keywords
image
encoding
motion compensation
camera
encoded data
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.)
Expired - Fee Related
Application number
JP2007045961A
Other languages
Japanese (ja)
Other versions
JP2008211502A (en
Inventor
悟 岡本
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2007045961A priority Critical patent/JP4810465B2/en
Publication of JP2008211502A publication Critical patent/JP2008211502A/en
Application granted granted Critical
Publication of JP4810465B2 publication Critical patent/JP4810465B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、三次元画像の画像符号化装置、画像復号化装置、画像符号化方法、画像復号化方法、撮像装置、撮像装置の制御方法及びプログラムに関する。   The present invention relates to an image encoding device, an image decoding device, an image encoding method, an image decoding method, an imaging device, an imaging device control method, and a program.

近時、デジタルカメラやデジタルビデオ等の普及に伴い、三次元動画の符号化処理についての技術が種々提案されている。   In recent years, with the spread of digital cameras and digital videos, various techniques for encoding 3D moving images have been proposed.

例えば特許文献1には、三次元ボリュームデータの動き補償予測に関して、奥行き階層に対する相関等を利用したり、適応的な動き補償を行うことで、演算量を削減することが開示されている。   For example, Patent Document 1 discloses that, regarding motion compensation prediction of three-dimensional volume data, the amount of calculation is reduced by using a correlation with a depth hierarchy or performing adaptive motion compensation.

特許文献2には、輻輳点を固定する立体撮像装置において、電子ズームの倍率によって、輻輳点がずれることによって発生する問題を解決することが開示されている。   Patent Document 2 discloses that in a stereoscopic imaging apparatus that fixes a convergence point, a problem that occurs when the convergence point is shifted by the magnification of the electronic zoom is disclosed.

特許文献3には、三次元画像を対象にしたDVDビデオ規格において、奥行き情報をオプション領域に記憶することで、汎用のDVDで二次元及び三次元の画像が利用可能になることが開示されている。   Patent Document 3 discloses that, in the DVD video standard for 3D images, 2D and 3D images can be used on a general-purpose DVD by storing depth information in an optional area. Yes.

特許文献4には、MPEG−4で定義されているMACを利用して、立体ビデオ画像を符号化、復号化することが開示されている。   Patent Document 4 discloses that a stereoscopic video image is encoded and decoded using a MAC defined in MPEG-4.

特許文献5には、動き補償予測において、縦方向処理を行い、さらに、MPEGの横方向処理又はH.261の横方向処理のいずれかを切り替えて行うことが開示されている。   In Patent Document 5, vertical processing is performed in motion compensation prediction, and further, horizontal processing of MPEG or H.264 is performed. It is disclosed that any one of the H.261 horizontal processes is switched.

特許文献6には、立体画像ビデオカメラで、左右及び正面の3台のビデオカメラで、正面を基準にして左右画像を比較して左右画像の動きを予測し、予測ベクトルの方向に参照画像をシフトすることが開示されている。   In Patent Document 6, a stereoscopic video camera uses three video cameras, left, right, and front, to compare the left and right images based on the front, predict the movement of the left and right images, and set the reference image in the direction of the prediction vector. Shifting is disclosed.

特許文献7には、右目画像及び左目画像の視差に基づく方向を考慮して、対応部分を求めるためのサーチ範囲を決定することが開示されている。   Patent Document 7 discloses that a search range for determining a corresponding portion is determined in consideration of a direction based on parallax between a right eye image and a left eye image.

特開平6−111004号公報JP-A-6-111004 特開平9−37302号公報Japanese Patent Laid-Open No. 9-37302 特開2006−191357号公報JP 2006-191357 A 特表2006−512809号公報Special table 2006-512809 gazette 特開平6−113265号公報JP-A-6-113265 特開平11−69381号公報JP 11-69381 A 特開2000−165909号公報JP 2000-165909 A

上述した特許文献1〜7を含め、従来の三次元画像の符号化処理は、複数の画像をそれぞれ独立して符号化するようにしている。この場合、従来から用いられている二次元画像の符号化方式やシステムをそのまま利用できるため、容易に実現させることができるという利点がある。   In the conventional 3D image encoding process including Patent Documents 1 to 7 described above, a plurality of images are independently encoded. In this case, since the conventional two-dimensional image encoding method and system can be used as they are, there is an advantage that they can be easily realized.

しかしながら、このような複数の画像をそれぞれ独立に符号化する方法は、複数の画像の相関が高いことを考慮していないため、以下のような問題がある。   However, such a method of independently encoding a plurality of images does not take into account that the correlation between the plurality of images is high, and thus has the following problems.

(1)符号化された後のデータ量が二次元画像の2倍の容量になる。 (1) The amount of data after encoding becomes twice the capacity of a two-dimensional image.

(2)動きベクトルの探索に要する処理量、時間が二次元画像の場合よりも大幅に増大する。 (2) The processing amount and time required for motion vector search are significantly increased as compared to the case of a two-dimensional image.

(3)消費電力も増加する。 (3) Power consumption also increases.

(4)復号化に要する処理量、時間も符号化と同様に大幅に増大する。 (4) The amount of processing and time required for decoding increase significantly as with encoding.

本発明はこのような課題を考慮してなされたものであり、三次元画像やマルチ画像の符号化処理、復号化処理に適用した場合において、動き補償予測にかかる処理量、時間を削減することができ、符号化処理、復号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる画像符号化装置、画像復号化装置、画像符号化方法、画像復号化方法、撮像装置、撮像装置の制御方法及びプログラムを提供することを目的とする。   The present invention has been made in consideration of such problems, and reduces the amount of processing and time required for motion compensation prediction when applied to encoding and decoding processing of 3D images and multi-images. Image encoding apparatus, image decoding apparatus, image encoding method, and image encoding apparatus, image decoding apparatus, image encoding method, image encoding apparatus, image decoding apparatus, image encoding method, and image encoding apparatus It is an object to provide a decoding method, an imaging apparatus, an imaging apparatus control method, and a program.

第1の本発明に係る画像符号化装置は、視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする。
An image encoding device according to a first aspect of the present invention is a first encoding processing unit that encodes a first image that is one of parallax images and outputs the first image as first encoded data, and the other of the parallax images. Second encoding processing means for encoding the second image and outputting it as second encoded data, wherein the first encoding processing means performs first motion-compensated prediction of the first image. has a compensation unit, said second encoding means, based on the storage unit for displacement information of the second image is stored for the first image, wherein the deviation information stored in the storage unit, the Search range setting means for setting a search range for searching for a portion overlapping the first image in the second image, and search means for searching for a portion overlapping the first image for the set search range And a portion overlapping the searched first image A code information generating unit that generates code information in which the first image and the second image are associated with each other, and a second motion that performs motion compensation prediction on a portion of the second image that does not overlap with the first image. Compensating means .

これにより、三次元画像やマルチ画像の符号化処理に適用した場合において、動き補償予測にかかる処理量、時間を削減することができ、符号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる。   This makes it possible to reduce the amount of processing and time required for motion compensation prediction when applied to 3D image and multi-image encoding processing, speeding up encoding processing, reducing power consumption, and encoding. The amount of data after conversion can be reduced.

そして、第1の本発明において、被写体を撮像して前記第1画像を得る第1カメラと前記被写体を撮像して前記第2画像を得る第2カメラとの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記ずれ情報を設定して前記記憶部に記憶する手段を有するようにしてもよい。この場合、光軸の間隔や、輻輳角に応じて、動きベクトルの探索範囲を変更できるため、被写体や撮影目的の画像に応じた最適な符号化処理を行うことができる。   In the first aspect of the present invention, the convergence angle between the first camera that captures the subject and obtains the first image and the second camera that captures the subject and obtains the second image, and the first camera You may make it have a means to set the shift | offset | difference information based on at least one among the space | intervals of an optical axis and the optical axis of the said 2nd camera, and memorize | store in the said memory | storage part. In this case, since the search range of the motion vector can be changed according to the optical axis interval and the convergence angle, it is possible to perform optimum encoding processing according to the subject and the image to be captured.

また、第1の本発明において、前記探索手段は、前記探索範囲設定手段にて設定された前記探索範囲に含まれる複数のマクロブロックと、前記第1画像に含まれる複数のマクロブロックとをそれぞれ順番に比較する比較手段を有し前記コード情報生成手段は、前記比較手段からの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けた前記コード情報を出力するようにしてもよい。この場合、動きベクトルの探索処理の簡略化、処理時間の削減、並びに符号化後のデータ量の削減を図ることができる。 In the first aspect of the present invention, the search means includes a plurality of macroblocks included in the search range set by the search range setting means and a plurality of macroblocks included in the first image, respectively. A comparison means for comparing in order, wherein the code information generation means indicates the comparison among the plurality of macroblocks of the second image when the comparison result from the comparison means indicates that they match or substantially match. and macro block that is to be the result of interest, the code information may be Unishi by you output that associates the macro block of the first image as compared to the macro-block. In this case, the motion vector search process can be simplified, the processing time can be reduced, and the amount of data after encoding can be reduced.

また、第1の本発明において、前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段を有し、前記探索手段は、前記記憶部に記憶された前記マクロブロック単位のずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するようにしてもよい。この場合、マクロブロックの距離情報に応じて動きベクトルの探索範囲を変更することができるため、被写体や撮影目的の画像に応じた最適な符号化処理を行うことができる。
Further, in the first aspect of the present invention, there is provided means for setting deviation information in units of macroblocks based on depth information in units of macroblocks relating to the first image and storing the information in the storage unit , A portion of the second image that overlaps the first image may be searched for based on the macroblock unit shift information stored in the storage unit . In this case, since the search range of the motion vector can be changed according to the macroblock distance information, it is possible to perform optimum encoding processing according to the subject and the image to be captured.

また、第1の本発明において、前記探索手段は、前記探索範囲設定手段にて設定された前記探索範囲に含まれるマクロブロックと、前記第1画像に含まれるマクロブロックとを比較する比較手段を有し前記コード情報生成手段は、前記比較手段からの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けた前記コード情報を出力するようにしてもよい。この場合、動きベクトルの探索処理の簡略化、処理時間の削減、並びに符号化後のデータ量の削減を図ることができる。 In the first aspect of the present invention, the search means includes comparison means for comparing the macroblocks included in the search range set by the search range setting means with the macroblocks included in the first image. And the code information generation means is a target of the comparison result among a plurality of macroblocks of the second image when the comparison result from the comparison means indicates that the comparison results match or substantially match. macroblock, the code information may be Unishi by you output that associates the macro block of the first image as compared to the macro-block. In this case, the motion vector search process can be simplified, the processing time can be reduced, and the amount of data after encoding can be reduced.

次に、第2の本発明に係る画像復号化装置は、第1の本発明に係る画像符号化装置から出力された符号化データを復号化処理する画像復号化装置であって、前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理手段と、前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理手段とを有し、前記第1復号化処理手段は、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償手段を有し、前記第2復号化処理手段は、前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元手段と、前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償手段とを有することを特徴とする。 Next, an image decoding apparatus according to the second aspect of the present invention is an image decoding apparatus for decoding encoded data output from the image encoding apparatus according to the first aspect of the present invention, wherein the image code Code information in which the first decoding processing means for decoding the first encoded data from the encoding device and restoring the first image, and the first image and the second image from the image encoding device are associated with each other Second decoding processing means for decoding the second encoded data including and restoring the second image, wherein the first decoding processing means includes decoding data of the first encoded data. Third motion compensation means for performing motion compensation prediction, wherein the second decoding processing means is configured to generate a second image based on the decoded code information included in the decoded data of the second encoded data. among overlapping portion to restore the parts common to those in the first Ima And restoring means, among the decoded data of the second encoded data, and having a fourth motion compensation means for performing motion compensated prediction with respect to the portion that does not overlap with the first image.

これにより、三次元画像やマルチ画像の復号化処理に適用した場合において、画像の復元にかかる処理量、時間を削減することができ、復号化処理の高速化、消費電力の低減化を図ることができる。   As a result, when applied to decoding processing of 3D images and multi-images, the processing amount and time required for image restoration can be reduced, and the decoding processing speed can be increased and the power consumption can be reduced. Can do.

そして、第2の本発明において、前記重複部分復元手段は、前記コード情報において関連付けされた前記第2画像のマクロブロックに対応する第1画像のマクロブロックによって、前記第1画像と重複する部分を復元するようにしてもよい。この場合、画像の復元処理の簡略化、処理時間の削減を図ることができる。 A portion in the second invention, the overlapping portion restoring means, by the macro blocks of the first image corresponding to the macro block of the associated said second image in said code information, which overlaps with the first Ima May be restored. In this case, the image restoration process can be simplified and the processing time can be reduced.

次に、第3の本発明に係る撮像装置は、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶する手段と、前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする。
Next, an imaging apparatus according to a third aspect of the present invention includes a first camera that captures a subject and obtains a first image that is one of parallax images, and a second camera that captures the subject and is the other of the parallax images . A second camera that obtains an image; a storage unit that stores deviation information of the second image with respect to the first image; a convergence angle between the first camera and the second camera; and an optical axis of the first camera. of spacing of the optical axis of the second camera, on the basis of at least one, coding means for storing in the storage unit sets the deviation information of the second image to the first image, the first image A first encoding processing unit that processes and outputs the first encoded data; and a second encoding processing unit that encodes the second image and outputs the second encoded data. 1 coding processing means, the line motion compensated prediction of the first image Has a first motion compensation unit, said second encoding means, based on the deviation information stored in the storage unit, of said second image, searching for the parts common to those in the first image Search range setting means for setting a search range for search, search means for searching for a portion that overlaps the first image with respect to the set search range, and a portion that overlaps with the searched first image Code information generating means for generating code information associating one image with the second image, and second motion compensating means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image. It is characterized by having.

次に、第4の本発明に係る撮像装置は、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段と、視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする。
Next, an imaging apparatus according to a fourth aspect of the present invention includes a first camera that captures a subject and obtains a first image that is one of parallax images, and a second camera that captures the subject and is the other of the parallax images . Based on the second camera that obtains the image, the storage unit that stores the shift information of the second image with respect to the first image, and the depth information of the macro block unit related to the first image, the shift information of the macro block unit is obtained. Means for setting and storing in the storage unit, first encoding processing means for encoding the first image as one of the parallax images and outputting the first encoded data as data, and first as the other of the parallax images Second encoding processing means for encoding two images and outputting them as second encoded data, wherein the first encoding processing means performs first motion compensation prediction for motion compensation prediction of the first image. and means, said second encoding means A search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the deviation information stored in the storage unit; Search means for searching for a portion that overlaps the first image with respect to a search range, and a code that generates code information that associates the first image with the second image for the portion that overlaps the searched first image It has an information production | generation means and the 2nd motion compensation means which performs motion compensation prediction about the part which does not overlap with the said 1st image among said 2nd images .

これら第3及び第4の本発明においては、三次元画像やマルチ画像の符号化処理に適用した場合において、動き補償予測にかかる処理量、時間を削減することができ、符号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる。   In the third and fourth aspects of the present invention, when applied to the encoding process of a three-dimensional image or a multi-image, the processing amount and time required for motion compensation prediction can be reduced, and the encoding process can be speeded up. Thus, it is possible to reduce power consumption and reduce the amount of data after encoding.

次に、第5の本発明に係る画像符号化方法は、視差画像の一方である第1画像に対する前記視差画像の他方である第2画像のずれ情報が記憶された記憶部を有する画像符号化装置にて使用され、前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、前記第2符号化処理ステップは、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする。
Next, an image encoding method according to a fifth aspect of the present invention is an image encoding method including a storage unit that stores shift information of a second image that is the other of the parallax images with respect to the first image that is one of the parallax images. A first encoding processing step for encoding the first image and outputting it as first encoded data; and encoding the second image and outputting it as second encoded data. A second encoding processing step, wherein the first encoding processing step includes a first motion compensation step for performing motion compensation prediction of the first image , and the second encoding processing step includes the storage A search range setting step for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the section, and the set search range Overlapping with the first image A search step for searching for a portion to be searched, a code information generation step for generating code information associating the first image with the second image for a portion overlapping with the searched first image, and the second image And a second motion compensation step for performing motion compensation prediction on a portion that does not overlap with the first image .

そして、第5の本発明において、さらに、被写体を撮像して前記第1画像を得る第1カメラと前記被写体を撮像して前記第2画像を得る第2カメラとの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記ずれ情報を設定して前記記憶部に記憶するステップを有するようにしてもよい。   In the fifth aspect of the present invention, the convergence angle between the first camera that captures the subject and obtains the first image and the second camera that captures the subject and obtains the second image, and the first You may make it have the step which sets and memorize | stores the said shift | offset | difference information based on at least one among the space | intervals of the optical axis of a camera, and the optical axis of a said 2nd camera.

この場合、前記探索ステップは、前記探索範囲設定ステップにて設定された前記探索範囲に含まれる複数のマクロブロックと、前記第1画像に含まれる複数のマクロブロックとをそれぞれ順番に比較する比較ステップを有し前記コード情報生成ステップは、前記比較ステップからの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けたコード情報を出力するようにしてもよい。 In this case, the search step compares each of the plurality of macroblocks included in the search range set in the search range setting step and the plurality of macroblocks included in the first image in order. And the code information generation step is a target of the comparison result among a plurality of macroblocks of the second image when the comparison result from the comparison step indicates that the comparison result is identical or substantially coincides. and macroblocks are may be due Unishi you output the code information associated with the macroblock of the first image as compared to the macro-block.

また、第5の本発明において、さらに、前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶するステップを有し、前記探索ステップは、前記記憶部に記憶された前記マクロブロック単位のずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するようにしてもよい。
Further, in the fifth aspect of the present invention, the searching step further includes the step of setting deviation information in units of macroblocks based on depth information in units of macroblocks relating to the first image and storing the information in the storage unit. May search for a portion of the second image that overlaps the first image, based on the deviation information in units of macroblocks stored in the storage unit .

この場合、前記探索ステップは、前記探索範囲設定ステップにて設定された前記探索範囲に含まれるマクロブロックと、前記第1画像に含まれるマクロブロックとを比較する比較ステップを有し前記コード情報生成ステップは、前記比較ステップからの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けたコード情報を出力するようにしてもよい。 In this case, the search step includes a comparison step of comparing the macroblock included in the search range set in the search range setting step with the macroblock included in the first image, and the code information The generating step indicates that, when the comparison result from the comparison step matches or substantially matches, the macro block that is the target of the comparison result among the plurality of macro blocks of the second image, and the macro it you output the code information associated with the macroblock of the first image as compared with the block may be Unishi.

次に、第6の本発明に係る画像復号化方法は、第5の本発明に係る画像符号化方法を使用した画像符号化装置から出力された符号化データを復号化処理する画像復号化装置にて使用され、前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理ステップと、前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理ステップとを有し、前記第1復号化処理ステップは、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償ステップを有し、前記第2復号化処理ステップは、前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元ステップと、前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償ステップとを有することを特徴とする。 Next, an image decoding method according to a sixth aspect of the present invention is an image decoding device that decodes encoded data output from an image encoding device using the image encoding method according to the fifth aspect of the present invention. A first decoding processing step for decoding the first encoded data from the image encoding device to restore the first image, the first image from the image encoding device, and the first A second decoding processing step of decoding the second encoded data including code information associated with two images and restoring the second image, and the first decoding processing step includes: A third motion compensation step for performing motion compensation prediction of the decoded data of the encoded data, wherein the second decoding processing step includes the decoded code information included in the decoded data of the second encoded data. Based on the second image Chi, the overlapping portion restoration step of restoring a portion that overlaps with the first Ima, among the decoded data of the second encoded data, a fourth performing motion compensated prediction with respect to the first image does not overlap with the portion And a motion compensation step.

前記重複部分復元ステップは、前記コード情報において関連付けされた前記第2画像のマクロブロックに対応する第1画像のマクロブロックによって、前記第1画像と重複する部分を復元するようにしてもよい。 The overlapping portion restoration step, the macro-block of the first image corresponding to the macro block of the associated said second image in said code information, may be to restore the parts common to those in the first Ima.

次に、第7の本発明に係る撮像装置の制御方法は、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置の制御方法において、前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶するステップと、前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、前記第2符号化処理ステップは、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする。
Next, the control method of the imaging apparatus according to a seventh aspect of the present invention includes a first camera for obtaining the first image is one of a parallax image by imaging a subject, the other parallax image by imaging the object In a control method of an imaging apparatus, comprising: a second camera that obtains a second image; and a storage unit that stores shift information of the second image with respect to the first image. Congestion between the first camera and the second camera corner, as well as of the distance between the optical axis of the first camera of the optical axis and the second camera, on the basis of at least one, stored in said storage unit by setting the deviation information of the second image to the first image A first encoding processing step for encoding the first image and outputting it as first encoded data, and a second encoding step for encoding the second image and outputting it as second encoded data. An encoding process step, Serial first encoding processing step includes a first motion compensation step of performing motion compensation prediction of the first image, the second encoding processing step, based on said deviation information stored in the storage unit A search range setting step for setting a search range for searching for a portion overlapping with the first image in the second image, and searching for a portion overlapping with the first image for the set search range. A search step; a code information generation step for generating code information in which the first image and the second image are associated with each other in a portion overlapping with the searched first image; and And a second motion compensation step for performing motion compensation prediction for a portion that does not overlap with one image .

次に、第8の本発明に係る撮像装置の制御方法は、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置の制御方法において、前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶するステップと、前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、前記第2符号化処理ステップは、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする。 Next, according to an eighth aspect of the present invention, there is provided a method for controlling an imaging apparatus, comprising: a first camera that captures a subject to obtain a first image that is one of parallax images; In a control method of an imaging apparatus including a second camera that obtains a second image and a storage unit that stores shift information of the second image with respect to the first image, depth information in units of macroblocks regarding the first image A step of setting deviation information in units of macroblocks and storing the information in the storage unit, a first encoding processing step of encoding the first image and outputting the first encoded data, and disparity A second encoding processing step that encodes a second image that is the other of the images and outputs the second encoded data as second encoded data, wherein the first encoding processing step includes motion compensated prediction of the first image Do the first A motion compensation step, the second encoding processing step, based on the stored the displacement information in the storage unit, of said second image, for searching for a partial overlapping with the first image A search range setting step for setting a search range; a search step for searching for a portion that overlaps the first image with respect to the set search range; and a portion that overlaps the searched first image for the first image A code information generation step for generating code information that associates the second image with the second image, and a second motion compensation step for performing motion compensation prediction on a portion of the second image that does not overlap with the first image. It is characterized by.

次に、第9の本発明に係るプログラムは、視差画像の一方である第1画像に対する前記視差画像の他方である第2画像のずれ情報が記憶された記憶部を有するコンピュータを具備した画像符号化装置を、視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、として機能させるためのプログラムであって、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする
Next, a program according to a ninth aspect of the present invention is an image code including a computer having a storage unit in which deviation information of the second image that is the other of the parallax images with respect to the first image that is one of the parallax images is stored. the apparatus, first encoding means for outputting a first image which is one of the parallax image as the first encoded data by encoding processing, the second image which is the other of the parallax image by performing encoding processing first A program for functioning as a second encoding processing unit that outputs two encoded data, wherein the first encoding processing unit includes a first motion compensation unit that performs motion compensation prediction of the first image. Then, the second encoding processing means sets a search range for searching for a portion overlapping the first image in the second image based on the shift information stored in the storage unit. Search range setting means; Code information that associates the first image and the second image with respect to a portion that overlaps the searched first image and a search unit that searches for a portion that overlaps the first image with respect to the determined search range Code information generating means, and second motion compensation means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image .

次に、第10の本発明に係るプログラムは、第9の本発明に係る画像符号化装置から出力された符号化データを復号化処理するコンピュータを具備した画像復号化装置を、前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理手段、前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理手段、として機能させるためのプログラムであって、前記第1復号化処理手段は、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償手段を有し、前記第2復号化処理手段は、前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元手段と、前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償手段とを有することを特徴とする。 Next, a program according to a tenth aspect of the present invention provides an image decoding apparatus including a computer that performs decoding processing on encoded data output from the image encoding apparatus according to the ninth aspect of the present invention. A first decoding processing means for decoding the first encoded data from the device and restoring the first image; and code information relating the first image and the second image from the image encoding device A program for functioning as second decoding processing means for decoding the second encoded data and restoring the second image, wherein the first decoding processing means 3rd motion compensation means for performing motion compensation prediction of decoded data, and the second decoding processing means is based on the decoded code information included in the decoded data of the second encoded data, Second image The a overlapping portion restoring means for restoring the portions overlapping with the first Ima, the second of the decoded data of the encoded data, a fourth motion for motion compensated prediction with respect to the portion that does not overlap with the first image Compensating means.

次に、第11の本発明に係るプログラムは、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置を、前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶する手段、前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、として機能させるためのプログラムであって、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする
Next, a program according to an eleventh aspect of the present invention includes a first camera that captures a subject and obtains a first image that is one of parallax images, and a second image that captures the subject and is the other of the parallax images. An imaging apparatus having a second camera for obtaining the first image, and a storage unit storing information on a shift of the second image with respect to the first image, a convergence angle of the first camera and the second camera, and the first camera of the optical axis and distance of the optical axis of the second camera, on the basis of at least one, means for storing in the storage unit sets the deviation information of the second image to the first image, the first image Are encoded and processed as first encoded data, and the second image is encoded and processed as second encoded data that is output as second encoded data. The program 1 encoding means includes a first motion compensation means for performing motion compensated prediction of the first image, the second encoding means, based on the deviation information stored in the storage unit, the Search range setting means for setting a search range for searching for a portion overlapping the first image in the second image, and search means for searching for a portion overlapping the first image for the set search range And code information generating means for generating code information that associates the first image with the second image for a portion that overlaps the searched first image, and the first image among the second images. And second motion compensation means for performing motion compensation prediction on a portion that does not overlap with the second motion compensation means .

次に、第12の本発明に係るプログラムは、被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置を、前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段、視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、として機能させるためのプログラムであって、前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、前記第2符号化処理手段は、前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする
Next, a program according to a twelfth aspect of the present invention includes a first camera that captures a subject and obtains a first image that is one of parallax images, and a second image that captures the subject and is the other of the parallax images. An image pickup apparatus having a second camera for obtaining the first image and a storage unit in which shift information of the second image with respect to the first image is stored is based on macroblock unit depth information about the first image. Means for setting the shift information and storing it in the storage unit, the first encoding processing means for encoding the first image that is one of the parallax images and outputting it as the first encoded data, and the other of the parallax images A program for causing a second image to function as second encoding processing means that encodes a second image and outputs it as second encoded data, wherein the first encoding processing means moves the first image Compensation prediction Has a first motion compensation means for performing the second encoding means, based on the deviation information stored in the storage unit, of said second image, searching for a partial overlapping with the first image Search range setting means for setting a search range to search, search means for searching for a portion that overlaps the first image for the set search range, and a portion that overlaps the searched first image, Code information generating means for generating code information associating the first image with the second image, and second motion compensating means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image; It is characterized by having .

以上説明したように、本発明に係る画像符号化装置、画像復号化装置、画像符号化方法、画像復号化方法、撮像装置、撮像装置の制御方法及びプログラムによれば、三次元画像やマルチ画像の符号化処理、復号化処理に適用した場合において、動き補償予測にかかる処理量、時間を削減することができ、符号化処理、復号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる。   As described above, according to the image encoding device, the image decoding device, the image encoding method, the image decoding method, the image decoding method, the image capturing device control method, and the program according to the present invention, a three-dimensional image or multi-image When applied to the encoding process and decoding process, the processing amount and time required for motion compensation prediction can be reduced, the encoding process, the speed of the decoding process, the reduction in power consumption, and the encoding The amount of data can be reduced later.

以下、本発明に係る画像符号化装置、画像復号化装置、画像符号化方法、画像復号化方法、撮像装置、撮像装置の制御方法及びプログラムの実施の形態例を図1〜図24を参照しながら説明する。   Embodiments of an image encoding device, an image decoding device, an image encoding method, an image decoding method, an imaging device, an imaging device control method, and a program according to the present invention will be described below with reference to FIGS. While explaining.

先ず、第1の実施の形態に係る画像符号化装置(以下、第1符号化装置10Aと記す)は、図1に示すように、被写体を撮像して被写体の動画を得る2つのカメラ(第1カメラ12及び第2カメラ14)と、第1カメラ12から出力される動画を符号化処理して例えば記録媒体16に記録する第1符号化処理系18と、第2カメラ14から出力される動画を符号化処理して例えば記録媒体16に記録する第2符号化処理系20とを有する。   First, as shown in FIG. 1, an image encoding device according to the first embodiment (hereinafter referred to as a first encoding device 10A) captures a subject and obtains a moving image of the subject (first step). 1 camera 12 and second camera 14), a first encoding processing system 18 that encodes a moving image output from the first camera 12 and records it on, for example, the recording medium 16, and an output from the second camera 14. A second encoding processing system 20 that encodes the moving image and records the moving image on the recording medium 16, for example.

第1符号化処理系18は、第1カメラ12から出力される動画をフレーム単位に保持する第1バッファメモリ22と、第1バッファメモリ22に保持された画像(第1画像)を符号化処理する第1符号化回路24と、第1画像の動き補償予測を行う第1動き補償回路26と、第1画像の圧縮符号化データを一時的に保持する第2バッファメモリ28とを有する。   The first encoding processing system 18 encodes a first buffer memory 22 that holds a moving image output from the first camera 12 in units of frames, and an image (first image) held in the first buffer memory 22. The first encoding circuit 24, the first motion compensation circuit 26 that performs motion compensation prediction of the first image, and the second buffer memory 28 that temporarily holds the compression encoded data of the first image.

図2に示すように、第1符号化回路24は、第1バッファメモリ22からの第1画像に対して離散コサイン変換を行う第1DCT器30と、第1DCT器30からのデータを所定ビットに量子化する第1量子化器32と、量子化されたデータを可変長符号化して第2バッファメモリ28に格納する第1可変長符号化器34と、第2バッファメモリ28から送信されてきた発生符号量データと目標となる符号量との間の誤差符号量を検出して第1量子化器32にフィードバックする第1符号量制御器36とを有する。また、第1符号化回路24は、フレーム内予測符号化の際にオンとなる第1スイッチ38と、順方向予測や双方向予測の際に、第1バッファメモリ22からの第1画像と第1動き補償回路26からの出力データとの減算データを得る第1減算器40を有する。   As shown in FIG. 2, the first encoding circuit 24 converts the first DCT unit 30 that performs discrete cosine transform on the first image from the first buffer memory 22 and the data from the first DCT unit 30 into predetermined bits. The first quantizer 32 that performs quantization, the first variable length encoder 34 that performs variable length coding on the quantized data and stores the quantized data in the second buffer memory 28, and the second buffer memory 28 A first code amount controller that detects an error code amount between the generated code amount data and the target code amount and feeds back the error code amount to the first quantizer 32; In addition, the first encoding circuit 24 is turned on at the time of intra-frame prediction encoding, and the first image and the first image from the first buffer memory 22 at the time of forward prediction and bidirectional prediction. The first subtractor 40 for obtaining subtraction data from the output data from the one motion compensation circuit 26 is provided.

第1動き補償回路26は、第1逆量子化器42と、第1逆DCT器44と、第1加算器46と、第1画像メモリ48と、第2スイッチ50と、第1動き補償予測器52とを有する。離散コサイン変換及び量子化処理された第1画像あるいは差分データが第1逆量子化器42及び第1逆DCT器44を介して復元され、第1画像メモリ48に格納される。特に、復元された差分データは、第2スイッチ50を介して第1動き補償予測器52からのデータが第1加算器46にて加算されるようになっている。   The first motion compensation circuit 26 includes a first inverse quantizer 42, a first inverse DCT device 44, a first adder 46, a first image memory 48, a second switch 50, and a first motion compensation prediction. Instrument 52. The first image or difference data subjected to the discrete cosine transform and quantization processing is restored via the first inverse quantizer 42 and the first inverse DCT unit 44 and stored in the first image memory 48. In particular, the restored difference data is added by the first adder 46 with the data from the first motion compensation predictor 52 via the second switch 50.

従って、例えば図3に示すように、n−1フレーム、nフレーム及びn+1フレームの各第1画像54a〜54cを考えたとき、先ず、n−1フレームの第1画像54aが符号化されて第2バッファメモリ28に書き込まれると共に、復元されたn−1フレームの第1画像54aが第1画像メモリ48に書き込まれ、さらに、第1バッファメモリ22にnフレームの第1画像54bが蓄積される。   Therefore, for example, as shown in FIG. 3, when considering the first images 54a to 54c of the (n-1) th frame, the nth frame, and the (n + 1) th frame, first, the first image 54a of the (n-1) th frame is encoded. The n-1 frame first image 54a is written to the first image memory 48, and the n frame first image 54b is stored in the first buffer memory 22. .

そして、第1動き補償予測器52において、今回のnフレームの第1画像54bと第1画像メモリ48に蓄積されたn−1フレームの第1画像54aとの間でマクロブロック毎のパターンマッチング処理が行われ、この結果得られた動きベクトルだけシフトされたn−1フレームの第1画像が参照画像54arとして第1減算器40及び第1加算器46にそれぞれ供給される。   Then, in the first motion compensation predictor 52, pattern matching processing for each macroblock is performed between the current n-frame first image 54b and the n−1-frame first image 54a stored in the first image memory 48. The first image of n−1 frames shifted by the motion vector obtained as a result is supplied to the first subtractor 40 and the first adder 46 as the reference image 54ar, respectively.

第1減算器40からは、nフレームの第1画像54bとn−1フレームの参照画像54ar(動き補償予測されたn−1フレームの第1画像)との差分データが出力される。参照画像54arは、例えば図3に示すように、ボールの画像56がnフレームの第1画像54bと同じ位置になるように破線で示す位置にシフトされた画像となる。従って、第1減算器40から出力される差分データは、動き補償予測しない場合と比して大幅にデータ量が削減されたデータとなる。そして、差分データは、第1DCT器30、第1量子化器32、第1可変長符号化器34を経ることによって符号化される。このとき、第1動き補償予測器52により得られた動きベクトルも第1可変長符号化器34に送られて可変長符号化される。符号化されたデータは第2バッファメモリ28に蓄積され、所定の転送レートで読み出されて外部に出力され、記録媒体16に記録されることになる。   The first subtracter 40 outputs difference data between the first image 54b of n frames and the reference image 54ar of n-1 frames (the first image of n-1 frames subjected to motion compensation prediction). For example, as shown in FIG. 3, the reference image 54ar is an image that is shifted to a position indicated by a broken line so that the ball image 56 is located at the same position as the first image 54b of the n frame. Therefore, the difference data output from the first subtracter 40 is data in which the data amount is significantly reduced as compared with the case where motion compensation prediction is not performed. The difference data is encoded by passing through the first DCT unit 30, the first quantizer 32, and the first variable length encoder 34. At this time, the motion vector obtained by the first motion compensated predictor 52 is also sent to the first variable length encoder 34 to be variable length encoded. The encoded data is stored in the second buffer memory 28, read out at a predetermined transfer rate, output to the outside, and recorded on the recording medium 16.

上述の例は、順方向予測を主体に説明したが、MPEG(Motion Picture Experts Group)にて規定されているように、双方向予測も行われる。   In the above example, forward prediction has been mainly described, but bi-directional prediction is also performed as defined in MPEG (Motion Picture Experts Group).

その一方で、差分データは第1逆量子化器42、第1逆DCT器44を経て復元され、さらに、この復元された差分データと、第1動き補償予測器52から第2スイッチ50を介して供給された参照画像54ar(動き補償済みのn−1フレームの第1画像)とが第1加算器46にて加算されてnフレームの第1画像54bとして第1画像メモリ48に蓄積される。   On the other hand, the difference data is restored through the first inverse quantizer 42 and the first inverse DCT unit 44, and the restored difference data and the first motion compensated predictor 52 through the second switch 50. The reference image 54ar (the n-1 frame first image after motion compensation) supplied in this way is added by the first adder 46 and stored in the first image memory 48 as the first image 54b of n frames. .

その後、上述した一連の処理と同様に、第1動き補償予測器52において、今回のn+1フレームの第1画像54cと第1画像メモリ48に蓄積されたnフレームの第1画像54bとの間でマクロブロック毎のパターンマッチング処理が行われ、この結果得られた動きベクトルだけシフトされたnフレームの第1画像が参照画像54brとして第1減算器40及び第1加算器46にそれぞれ供給される。   Thereafter, similarly to the series of processes described above, in the first motion compensation predictor 52, the current n + 1 frame first image 54c and the n frame first image 54b accumulated in the first image memory 48 are used. Pattern matching processing for each macroblock is performed, and the first image of n frames shifted by the motion vector obtained as a result is supplied to the first subtractor 40 and the first adder 46 as a reference image 54br.

第1減算器40からは、n+1フレームの第1画像54cと参照画像54br(動き補償予測されたnフレームの第1画像)との差分データが出力される。参照画像54brは、例えば図3に示すように、ボールの画像56がn+1フレームの第1画像54cと同じ位置になるように破線で示す位置にシフトされた画像となる。   The first subtracter 40 outputs difference data between the first image 54c of n + 1 frames and the reference image 54br (the first image of n frames subjected to motion compensation prediction). For example, as shown in FIG. 3, the reference image 54br is an image that is shifted to a position indicated by a broken line so that the ball image 56 is located at the same position as the first image 54c of the (n + 1) th frame.

差分データは、第1DCT器30、第1量子化器32、第1可変長符号化器34を経ることによって符号化され、また、第1動き補償予測器52により得られた動きベクトルも第1可変長符号化器34に送られて可変長符号化される。符号化されたデータは第2バッファメモリ28に蓄積される。   The difference data is encoded by passing through the first DCT unit 30, the first quantizer 32, and the first variable length encoder 34, and the motion vector obtained by the first motion compensated predictor 52 is also the first. The data is sent to the variable length coder 34 for variable length coding. The encoded data is stored in the second buffer memory 28.

また、差分データは第1逆量子化器42、第1DCT器44を経て復元され、さらに、この復元された差分データと、第1動き補償予測器52から第2スイッチ50を介して供給された参照画像54br(動き補償済みのnフレームの第1画像)とが第1加算器46にて加算されてn+1フレームの第1画像54cとして第1画像メモリ48に蓄積される。   The difference data is restored through the first inverse quantizer 42 and the first DCT unit 44, and the restored difference data and the first motion compensation predictor 52 are supplied via the second switch 50. The reference image 54br (the first image of n frames after motion compensation) is added by the first adder 46 and stored in the first image memory 48 as the first image 54c of n + 1 frames.

上述した処理が繰り返されて、第1カメラ12からの動画が符号化されて第2バッファメモリ28に蓄積されたデータは、所定の転送レートで読み出されて外部に出力され、例えば外部の記録媒体16に記録されることになる。   The above-described processing is repeated, and the moving image from the first camera 12 is encoded and stored in the second buffer memory 28 is read out at a predetermined transfer rate and output to the outside, for example, an external recording It is recorded on the medium 16.

一方、図1に示すように、第2符号化処理系20は、上述した第1符号化処理系18と同様に、第2カメラ14から出力される動画をフレーム単位に保持する第3バッファメモリ58と、第3バッファメモリ58に保持された画像(第2画像)を符号化処理する第2符号化回路60と、第2画像の動き補償予測を行う第2動き補償回路62と、第2画像の圧縮符号化データを一時的に保持する第4バッファメモリ64とを有する。   On the other hand, as shown in FIG. 1, the second encoding processing system 20 is a third buffer memory that holds the moving image output from the second camera 14 in units of frames, as in the first encoding processing system 18 described above. 58, a second encoding circuit 60 that encodes the image (second image) held in the third buffer memory 58, a second motion compensation circuit 62 that performs motion compensation prediction of the second image, and a second And a fourth buffer memory 64 for temporarily storing compressed encoded data of the image.

図4に示すように、第2符号化回路60は、上述した第1符号化回路24と同様に、第3バッファメモリ58からの第2画像に対して離散コサイン変換を行う第2DCT器66と、第2DCT器66からのデータを所定ビットに量子化する第2量子化器68と、量子化されたデータを可変長符号化して第4バッファメモリ64に格納する第2可変長符号化器70と、第4バッファメモリ64から送信されてきた発生符号量データと目標となる符号量との間の誤差符号量を検出して第2量子化器68にフィードバックする第2符号量制御器72とを有する。また、第2符号化回路60は、フレーム内予測符号化の際にオンとなる第3スイッチ74と、順方向予測や双方向予測の際に、第3バッファメモリ58からの第2画像と第2動き補償回路62からの出力データとの減算データを得る第2減算器76を有する。   As shown in FIG. 4, the second encoding circuit 60 includes a second DCT unit 66 that performs discrete cosine transform on the second image from the third buffer memory 58, similarly to the first encoding circuit 24 described above. A second quantizer 68 that quantizes the data from the second DCT device 66 into predetermined bits, and a second variable length encoder 70 that performs variable length coding on the quantized data and stores the quantized data in the fourth buffer memory 64. A second code amount controller 72 that detects an error code amount between the generated code amount data transmitted from the fourth buffer memory 64 and the target code amount and feeds back to the second quantizer 68; Have The second encoding circuit 60 also turns on the third switch 74 that is turned on during intra-frame prediction encoding, the second image from the third buffer memory 58 and the second switch during forward prediction and bidirectional prediction. The second subtractor 76 for obtaining subtraction data from the output data from the two motion compensation circuit 62 is provided.

第2動き補償回路62は、上述した第1動き補償回路26と同様に、第2逆量子化器78と、第2逆DCT器80と、第2加算器82と、第2画像メモリ84と、第4スイッチ86と、第2動き補償予測器88とを有する。離散コサイン変換及び量子化処理された第2画像あるいは差分データが第2逆量子化器78及び第2逆DCT器80を介して復元され、第2画像メモリ84に格納される。特に、復元された差分データは、第4スイッチ86を介して第2動き補償予測器88からのデータが第2加算器82にて加算されるようになっている。   Similar to the first motion compensation circuit 26 described above, the second motion compensation circuit 62 includes a second inverse quantizer 78, a second inverse DCT device 80, a second adder 82, and a second image memory 84. , A fourth switch 86 and a second motion compensation predictor 88. The second image or difference data subjected to the discrete cosine transform and quantization processing is restored via the second inverse quantizer 78 and the second inverse DCT device 80 and stored in the second image memory 84. In particular, the restored difference data is added by the second adder 82 to the data from the second motion compensation predictor 88 via the fourth switch 86.

さらに、この第2符号化処理系20は、図1に示すように、第1画像に対する第2画像のずれ情報(ずれ方向及びずれ量)が記憶された記憶部90と、第2動き補償回路62での第2画像の動きベクトルの探索範囲を、記憶部90に記憶されたずれ情報に基づいて変更する探索範囲変更回路92とを有する。ずれ方向は、複数のカメラの設置方向(水平方向、垂直方向)を示し、ずれ量は、例えば1つのカメラから被写体までの距離に基づいたずれ量を示す。   Further, as shown in FIG. 1, the second encoding processing system 20 includes a storage unit 90 in which shift information (shift direction and shift amount) of the second image with respect to the first image is stored, and a second motion compensation circuit. And a search range change circuit 92 that changes the search range of the motion vector of the second image at 62 based on the shift information stored in the storage unit 90. The shift direction indicates the installation direction (horizontal direction, vertical direction) of a plurality of cameras, and the shift amount indicates a shift amount based on the distance from one camera to the subject, for example.

ここで、探索範囲変更回路92の機能について図5〜図7を参照しながら説明する。   Here, the function of the search range changing circuit 92 will be described with reference to FIGS.

先ず、図5に示すように、第1カメラ12にて撮像して得られる第1画像54に含まれる被写体の画像と、第2カメラ14にて撮像して得られる第2画像94に含まれる被写体の画像との間には、被写体までの距離に起因するずれ96が存在する。例えば第1カメラ12と第2カメラ14とが水平方向に沿って併設されていれば、図5に示すように、水平方向にずれ96が生じ、第1カメラ12と第2カメラ14とが垂直方向に沿って併設されていれば、図6に示すように、垂直方向にずれ96が生じる。4つのカメラをマトリクス状に配設した場合は、図7に示すように、水平方向のずれ96と垂直方向のずれ96が生じることになる。簡単のために、ここでは、図5に示すように、一般的な使用形態である2つのカメラ(第1カメラ12及び第2カメラ14)を水平方向に併設した場合を主体に説明する。   First, as shown in FIG. 5, the image of the subject included in the first image 54 obtained by imaging with the first camera 12 and the second image 94 obtained by imaging with the second camera 14 are included. There is a deviation 96 due to the distance to the subject between the subject image and the subject image. For example, if the first camera 12 and the second camera 14 are provided side by side in the horizontal direction, as shown in FIG. 5, a shift 96 occurs in the horizontal direction, and the first camera 12 and the second camera 14 are vertical. If they are provided along the direction, as shown in FIG. 6, a deviation 96 occurs in the vertical direction. When four cameras are arranged in a matrix, a horizontal displacement 96 and a vertical displacement 96 occur as shown in FIG. For the sake of simplicity, here, as shown in FIG. 5, a case where two cameras (first camera 12 and second camera 14), which are general usage forms, are provided side by side in the horizontal direction will be mainly described.

上述のように、第1画像54と第2画像94との間に水平方向にずれ96が存在する場合、第1画像54のうち、重複部分98に対応する被写体の画像と、第2画像94のうち、重複部分98に対応する被写体の画像は、ほぼ一致したものとなる。この特性を利用して、第2動き補償予測器88での第2画像94に対するマクロブロック単位の動きベクトルの探索範囲を、記憶部90に記憶されたずれ情報に基づいて変更すれば、第1画像54に対する動き補償予測と同じ処理になる。   As described above, when there is a horizontal displacement 96 between the first image 54 and the second image 94, the image of the subject corresponding to the overlapping portion 98 and the second image 94 in the first image 54. Among them, the images of the subject corresponding to the overlapping portion 98 are substantially the same. If the search range of the motion vector in units of macroblocks for the second image 94 in the second motion compensation predictor 88 is changed based on the shift information stored in the storage unit 90 using this characteristic, the first The processing is the same as the motion compensation prediction for the image 54.

通常、第2画像94の左端からマクロブロック単位の動きベクトルの探索が行われるが、本実施の形態では、図5に示すように、第2画像94の左端からずれ96分だけシフトした位置からマクロブロック単位の動きベクトルの探索を行う。しかも、第1画像54に対する動き補償予測が既に終了していれば、そのデータを利用することで、第2画像94に対する符号化に係る処理時間、符号化データの量も大幅に削減することができる。   Normally, a search for a motion vector in units of macroblocks is performed from the left end of the second image 94. In the present embodiment, as shown in FIG. 5, from the position shifted by 96 minutes from the left end of the second image 94. Search for motion vectors in units of macroblocks. Moreover, if the motion compensation prediction for the first image 54 has already been completed, the processing time and the amount of encoded data for encoding the second image 94 can be significantly reduced by using the data. it can.

従って、上述した探索範囲変更回路92から、記憶部90に記憶されたずれ情報に基づいて、第1画像54からマクロブロック単位に読み出すための順序を示す情報(第1読出順序情報)と、第2画像94からマクロブロック単位に読み出すための順序を示す情報(第2読出順序情報)とが出力されるようにすれば、第1読出順序情報に基づいて読み出された第1画像54のマクロブロックと、第2読出順序情報に基づいて読み出された第2画像94のマクロブロックとを比較することが可能となり、上述したように、複数のカメラの設置位置に拘わらず、第1画像54と第2画像94とがほぼ一致する部分を容易に検出することができる。   Therefore, based on the shift information stored in the storage unit 90 from the search range changing circuit 92 described above, information indicating the order for reading out from the first image 54 in units of macroblocks (first reading order information); If information indicating the order for reading out the macroblock unit from the two images 94 (second reading order information) is output, the macro of the first image 54 read based on the first reading order information is output. It is possible to compare the block and the macroblock of the second image 94 read based on the second reading order information, and as described above, the first image 54 regardless of the installation positions of the plurality of cameras. And the second image 94 can be easily detected.

そこで、図4に示すように、第2動き補償回路62には、上述した各種回路に加えて、第1抽出回路100と、第2抽出回路102と、比較回路104と、コード情報作成回路106と、コード情報転送回路108と、圧縮処理テーブル作成回路110と、第3抽出回路112とが設けられている。   Therefore, as shown in FIG. 4, in addition to the various circuits described above, the second motion compensation circuit 62 includes a first extraction circuit 100, a second extraction circuit 102, a comparison circuit 104, and a code information creation circuit 106. A code information transfer circuit 108, a compression processing table creation circuit 110, and a third extraction circuit 112.

第1抽出回路100は、探索範囲変更回路92からの第1読出順序情報に基づいて、第1バッファメモリ22の第1画像54からマクロブロック単位にデータを読み出す。   The first extraction circuit 100 reads data from the first image 54 of the first buffer memory 22 in units of macroblocks based on the first reading order information from the search range changing circuit 92.

第2抽出回路102は、探索範囲変更回路92からの第2読出順序情報に基づいて、第3バッファメモリ58の第2画像94からマクロブロック単位にデータを読み出す。   The second extraction circuit 102 reads data in units of macroblocks from the second image 94 in the third buffer memory 58 based on the second reading order information from the search range changing circuit 92.

比較回路104は、第1抽出回路100によって読み出された第1画像54のマクロブロックと、第2抽出回路102によって読み出された第2画像94のマクロブロックとを比較する。1つの例で示すと、例えば第1画像54の左端を基準とした1行1列に関するマクロブロックと、第2画像94のずれ96分だけシフトした位置を基準とした1行1列に関するマクロブロックとが比較される。同様に、第1画像54の左端を基準とした1行2列についてのマクロブロックと、第2画像94のずれ96分だけシフトした位置を基準とした1行2列に関するマクロブロックとが比較される。   The comparison circuit 104 compares the macroblock of the first image 54 read by the first extraction circuit 100 with the macroblock of the second image 94 read by the second extraction circuit 102. In one example, for example, a macro block related to 1 row and 1 column with the left end of the first image 54 as a reference, and a macro block related to 1 row and 1 column based on a position shifted by a shift 96 of the second image 94. Are compared. Similarly, the macroblock for the first row and the second column with respect to the left end of the first image 54 is compared with the macroblock for the first row and the second column with the position shifted by the displacement 96 of the second image 94 as a reference. The

コード情報作成回路106は、図8に示すコード情報114を作成する。このコード情報114は、先頭にコード情報114の開始を示すデータコード(開始コード116)と、終端にコード情報114の最終を示すデータコード(終端コード118)が配置され、開始コード116と終端コード118との間に複数のアドレスコード120が配置されたフォーマット構成となっている。   The code information creation circuit 106 creates the code information 114 shown in FIG. The code information 114 has a data code (start code 116) indicating the start of the code information 114 at the beginning and a data code (end code 118) indicating the end of the code information 114 at the end, and the start code 116 and the end code. A format configuration in which a plurality of address codes 120 are arranged between the address codes 120 and 118.

そして、図4に示すように、コード情報作成回路106は、探索範囲変更回路92からの探索開始信号に基づいて開始コード116を生成してコード情報114の先頭に配置する。その後、第1抽出回路100によって読み出された第1画像54のマクロブロックと、第2抽出回路102によって読み出された第2画像94のマクロブロックとが比較回路104で比較されて、該比較回路104からの比較結果が一致又はほぼ一致することを示す場合に、比較対象の第1画像54のマクロブロックのアドレスと第2画像94のマクロブロックのアドレスとを含むアドレスコード120(図8参照)を生成して開始コード116の次に配置する。   Then, as shown in FIG. 4, the code information creation circuit 106 generates a start code 116 based on the search start signal from the search range change circuit 92 and arranges it at the head of the code information 114. Thereafter, the macro block of the first image 54 read by the first extraction circuit 100 and the macro block of the second image 94 read by the second extraction circuit 102 are compared by the comparison circuit 104, and the comparison is performed. When the comparison result from the circuit 104 indicates that they match or almost match, an address code 120 including the macroblock address of the first image 54 to be compared and the macroblock address of the second image 94 (see FIG. 8). ) Is generated and placed after the start code 116.

同様に、第1抽出回路100によって順次読み出される第1画像54のマクロブロックと、第2抽出回路102によって順次読み出される第2画像94のマクロブロックとがそれぞれ比較回路104にて比較され、比較結果が一致又はほぼ一致することを示す場合に、それぞれ比較対象の第1画像54のマクロブロックのアドレスと第2画像94のマクロブロックのアドレスとを含むアドレスコード120が生成されて順次配置される。   Similarly, the macro block of the first image 54 sequentially read by the first extraction circuit 100 and the macro block of the second image 94 sequentially read by the second extraction circuit 102 are respectively compared by the comparison circuit 104 and the comparison result is obtained. Are coincident or almost coincident, an address code 120 including the address of the macroblock of the first image 54 to be compared and the address of the macroblock of the second image 94 is generated and sequentially arranged.

そして、コード情報作成回路106は、探索範囲変更回路92からの探索終了信号に基づいて終端コード118を生成してコード情報114の終端に配置する。これらの一連の処理によってコード情報114が作成される。   Then, the code information creation circuit 106 generates a termination code 118 based on the search end signal from the search range changing circuit 92 and places it at the end of the code information 114. Code information 114 is created by a series of these processes.

コード情報114が作成されると、コード情報作成回路から転送指示信号が出力されてコード情報転送回路108に供給される。   When the code information 114 is created, a transfer instruction signal is output from the code information creation circuit and supplied to the code information transfer circuit 108.

コード情報転送回路108は、コード情報作成回路106からの転送指示信号が供給された時点で、コード情報114を第2可変長符号化器70に転送する。これによって、コード情報114は可変長符号化され、その後、第4バッファメモリ64に格納される。   The code information transfer circuit 108 transfers the code information 114 to the second variable length encoder 70 when the transfer instruction signal from the code information creation circuit 106 is supplied. As a result, the code information 114 is subjected to variable-length coding and then stored in the fourth buffer memory 64.

一方、圧縮処理テーブル作成回路110は、作成されたコード情報114に登録された第2画像94のマクロブロックのアドレスに基づいて、該コード情報114に登録されていない第2画像94のマクロブロックのアドレスが配列された圧縮処理テーブル122を作成する。つまり、この圧縮処理テーブル122に配列されたアドレスは、第2画像94のうち、重複部分98(例えば図5参照)から外れたマクロブロックのアドレス又は第1画像と一致(又はほぼ一致)しなかったマクロブロックのアドレスを示すものであり、通常の動き補償予測が必要なマクロブロックのアドレスを示す。   On the other hand, based on the address of the macroblock of the second image 94 registered in the created code information 114, the compression processing table creation circuit 110 creates macroblocks of the second image 94 that are not registered in the code information 114. A compression processing table 122 in which addresses are arranged is created. In other words, the addresses arranged in the compression processing table 122 do not match (or almost match) the address of the macroblock out of the overlapping portion 98 (see, for example, FIG. 5) or the first image in the second image 94. The address of the macro block indicates the address of the macro block that requires normal motion compensation prediction.

第3抽出回路112は、第3バッファメモリ58に格納された第2画像94のうち、圧縮処理テーブル122に格納されたアドレスに対応したマクロブロックを読み出して第2符号化回路60に供給する。   The third extraction circuit 112 reads a macroblock corresponding to the address stored in the compression processing table 122 from the second image 94 stored in the third buffer memory 58 and supplies the macroblock to the second encoding circuit 60.

従って、例えばn−1フレーム及びnフレームの各第2画像94を考えたとき、先ず、n−1フレームの第2画像94のうち、圧縮処理テーブル122に格納されたアドレスに対応したマクロブロック群(以下、部分画像と記す)が符号化されて第4バッファメモリ64に書き込まれると共に、復元されたn−1フレームの部分画像が第2画像メモリ84に書き込まれ、さらに、第3バッファメモリ58にnフレームの第2画像94が蓄積される。   Therefore, for example, when considering each second image 94 of n-1 frame and n frame, first, a macroblock group corresponding to the address stored in the compression processing table 122 in the second image 94 of n-1 frame. (Hereinafter referred to as a partial image) is encoded and written to the fourth buffer memory 64, and the restored n-1 frame partial image is written to the second image memory 84. N frames of the second image 94 are stored.

そして、第2動き補償予測器88において、今回のnフレームの第2画像94のうち、圧縮処理テーブル122に格納されたアドレスに対応したマクロブロック群(nフレームの部分画像)と、第2画像メモリ84に蓄積されたn−1フレームの部分画像との間でマクロブロック毎のパターンマッチング処理が行われ、この結果得られた動きベクトルだけシフトされたn−1フレームの部分画像が参照画像として第2減算器76及び第2加算器82にそれぞれ供給される。   Then, in the second motion compensation predictor 88, among the second image 94 of the current n frame, a macroblock group (a partial image of n frame) corresponding to the address stored in the compression processing table 122, and the second image Pattern matching processing for each macroblock is performed between the n-1 frame partial images stored in the memory 84, and the resulting n-1 frame partial image shifted by the motion vector is used as a reference image. The signals are supplied to the second subtracter 76 and the second adder 82, respectively.

第2減算器76からは、nフレームの部分画像と動き補償予測されたn−1フレームの部分画像(参照画像)との差分データが出力される。差分データは、第2DCT器66、第2量子化器68、第2可変長符号化器70を経ることによって圧縮符号化される。このとき、第2動き補償予測器88により得られた動きベクトルも第2可変長符号化器70に送られて可変長符号化される。圧縮符号化されたデータは第4バッファメモリ64に蓄積される。上述の例は、順方向予測を主体に説明したが、MPEGにて規定されているように、双方向予測も行われる。   The second subtracter 76 outputs difference data between the n-frame partial image and the motion compensation predicted n-1 frame partial image (reference image). The difference data is compressed and encoded by passing through the second DCT unit 66, the second quantizer 68, and the second variable length encoder 70. At this time, the motion vector obtained by the second motion compensated predictor 88 is also sent to the second variable length encoder 70 to be variable length encoded. The compression encoded data is stored in the fourth buffer memory 64. In the above example, forward prediction has been mainly described, but bidirectional prediction is also performed as defined in MPEG.

第4バッファメモリ64に蓄積された圧縮符号化されたデータ(コード情報114を含む)は、所定の転送レートで読み出されて外部に出力され、例えば外部の記録媒体16に記録されることになる。   The compression-encoded data (including code information 114) stored in the fourth buffer memory 64 is read out at a predetermined transfer rate, outputted to the outside, and recorded on the external recording medium 16, for example. Become.

このように、第2動き補償回路62の第2動き補償予測器88は、第2画像94の全てについて動きベクトルを探索するのではなく、第2画像94のうち、圧縮処理テーブル122に配列されたアドレスに対応するマクロブロックについての動きベクトルを探索する。そのため、第2画像94に対する圧縮符号化に係る処理時間を大幅に短縮させることができる。しかも、コード情報114をテキストデータにて構成することができるため、符号化データの量も大幅に削減することができる。   As described above, the second motion compensation predictor 88 of the second motion compensation circuit 62 does not search for motion vectors for all of the second images 94 but is arranged in the compression processing table 122 in the second images 94. The motion vector for the macroblock corresponding to the specified address is searched. Therefore, the processing time related to the compression encoding for the second image 94 can be greatly shortened. Moreover, since the code information 114 can be composed of text data, the amount of encoded data can be greatly reduced.

次に、第1符号化装置10Aの基本的な処理動作について図9を参照しながら説明する。   Next, a basic processing operation of the first encoding device 10A will be described with reference to FIG.

図9に示すように、先ず、ステップS1において、第2符号化処理系20の探索範囲変更回路92は、記憶部90からずれ情報を読み出す。   As shown in FIG. 9, first, in step S <b> 1, the search range changing circuit 92 of the second encoding processing system 20 reads deviation information from the storage unit 90.

その後、ステップS2において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。   Thereafter, in step S2, the search range changing circuit 92 sets the search range of the motion vector of the second image 94 based on the read deviation information.

そして、ステップS3において、第1符号化処理系18は、第1画像54の圧縮符号化を行い、圧縮符号化された第1画像54を第2バッファメモリ28を介して記録媒体16に保存する。   In step S <b> 3, the first encoding processing system 18 performs compression encoding of the first image 54, and stores the compression-encoded first image 54 in the recording medium 16 via the second buffer memory 28. .

一方、ステップS4において、コード情報作成回路106は、コード情報114を作成する。すなわち、変更された探索範囲のうち、第1画像54と一致又はほぼ一致する部分を抽出し、抽出した部分のアドレス情報等に基づいてコード情報114を作成する。   On the other hand, in step S4, the code information creation circuit 106 creates code information 114. That is, a portion that matches or substantially matches the first image 54 in the changed search range is extracted, and code information 114 is created based on the address information and the like of the extracted portion.

その後、ステップS5において、第2符号化処理系20は、作成されたコード情報114を符号化し、符号化されたコード情報114を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S <b> 5, the second encoding processing system 20 encodes the generated code information 114 and stores the encoded code information 114 in the recording medium 16 via the fourth buffer memory 64.

その後、ステップS6において、第2符号化処理系20は、第2画像94のうち、残りの部分画像の圧縮符号化を行い、圧縮符号化された部分画像を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S <b> 6, the second encoding processing system 20 performs compression encoding of the remaining partial images in the second image 94, and records the compression-encoded partial images via the fourth buffer memory 64. Save to medium 16.

そして、撮影が終了するまで、ステップS1〜6の処理を繰り返す(ステップS7)。   Then, the processes in steps S1 to 6 are repeated until the photographing is completed (step S7).

図9の例では、第1符号化処理系18での圧縮符号化処理をステップS3に示し、第2符号化処理系20での圧縮符号化処理をステップS4〜ステップS6に示したが、第1符号化処理系18での圧縮符号化処理と第2符号化処理系20での圧縮符号化処理はマルチタスク方式にて行われるようになっている。   In the example of FIG. 9, the compression coding process in the first coding processing system 18 is shown in step S3, and the compression coding process in the second coding processing system 20 is shown in steps S4 to S6. The compression coding process in the one coding processing system 18 and the compression coding process in the second coding processing system 20 are performed by a multitask method.

次に、図9に示す基本的動作の具体的な処理動作の一例について図10〜図12を参照しながら説明する。   Next, an example of a specific processing operation of the basic operation shown in FIG. 9 will be described with reference to FIGS.

先ず、第1符号化処理系18の処理動作について図10を参照しながら説明する。   First, the processing operation of the first encoding processing system 18 will be described with reference to FIG.

図10のステップS101において、第1符号化処理系18は、フレームの計数を行うカウンタmに初期値「1」を格納する。   In step S101 in FIG. 10, the first encoding processing system 18 stores an initial value “1” in a counter m that counts frames.

その後、ステップS102において、第1符号化処理系18は、mフレーム目の第1画像54を第1バッファメモリ22に格納する。   Thereafter, in step S <b> 102, the first encoding processing system 18 stores the first image 54 of the mth frame in the first buffer memory 22.

次いで、ステップS103において、第1符号化処理系18の第1符号化回路24は、mフレーム目の第1画像54をフレーム内予測符号化して第2バッファメモリ28に格納する。このとき、第1動き補償回路26は、mフレームの符号化された第1画像54を復号化してmフレーム目の第1画像54として第1画像メモリ48に記録する。   Next, in step S <b> 103, the first encoding circuit 24 of the first encoding processing system 18 performs intra-frame predictive encoding on the first image 54 of the m-th frame and stores it in the second buffer memory 28. At this time, the first motion compensation circuit 26 decodes the m-frame encoded first image 54 and records it in the first image memory 48 as the m-th first image 54.

その後、ステップS104において、第1符号化処理系18は、m+1フレーム目の第1画像54を第1バッファメモリ22に格納する。   Thereafter, in step S104, the first encoding processing system 18 stores the first image 54 of the (m + 1) th frame in the first buffer memory 22.

その後、ステップS105において、第1動き補償回路26は、mフレーム目の第1画像54の動き補償予測を行う。これによって、順方向予測による差分データ及び双方向予測による差分データが第1符号化回路24によって圧縮符号化されて第2バッファメモリ28に格納される。   Thereafter, in step S105, the first motion compensation circuit 26 performs motion compensation prediction of the first image 54 in the m-th frame. As a result, the difference data based on the forward prediction and the difference data based on the bidirectional prediction are compressed and encoded by the first encoding circuit 24 and stored in the second buffer memory 28.

その後、ステップS106において、mフレーム目の第1画像54の圧縮符号化データ(動き補償予測データを含む)は、第2バッファメモリ28から所定の転送レートで読み出されて、例えば外部の記録媒体16に記録される。   Thereafter, in step S106, the compression encoded data (including motion compensation prediction data) of the first image 54 of the m-th frame is read from the second buffer memory 28 at a predetermined transfer rate, for example, an external recording medium 16 is recorded.

その後、ステップS107において、第1符号化処理系18は、カウンタmの値を+1更新する。   Thereafter, in step S107, the first encoding processing system 18 updates the value of the counter m by +1.

次いで、ステップS108において、第1符号化処理系18は、撮影終了であるかどうかを判別する。この判別は、例えば撮影の終了を示す割り込み信号等の入力があったかどうかで行われる。   Next, in step S108, the first encoding processing system 18 determines whether or not the photographing is finished. This determination is made, for example, based on whether or not an interrupt signal indicating the end of shooting has been input.

終了要求がなければ、前記ステップS103に戻り、該ステップS103以降の処理を繰り返す。   If there is no end request, the process returns to step S103, and the processes after step S103 are repeated.

そして、前記ステップS108において、終了要求であると判別された場合、この第1符号化処理系18での処理が終了する。   If it is determined in step S108 that the request is an end request, the processing in the first encoding processing system 18 ends.

次に、第2符号化処理系20の処理動作について図11及び図12を参照しながら説明する。   Next, the processing operation of the second encoding processing system 20 will be described with reference to FIGS. 11 and 12.

図11のステップS201において、第2符号化処理系20は、フレームの計数を行うカウンタnに初期値「1」を格納する。   In step S201 of FIG. 11, the second encoding processing system 20 stores an initial value “1” in a counter n that counts frames.

その後、ステップS202において、第2符号化処理系20は、nフレーム目の第2画像94を第3バッファメモリ58に格納する。   Thereafter, in step S202, the second encoding processing system 20 stores the second image 94 of the nth frame in the third buffer memory 58.

その後、ステップS203において、探索範囲変更回路92は、記憶部90からずれ情報を読み出す。   Thereafter, in step S <b> 203, the search range changing circuit 92 reads deviation information from the storage unit 90.

その後、ステップS204において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。具体的には、第1画像54からのマクロブロック単位の第1読出順序と、第2画像94からのマクロブロック単位の第2読出順序を設定する。   Thereafter, in step S204, the search range changing circuit 92 sets a search range for the motion vector of the second image 94 based on the read deviation information. Specifically, a first reading order for each macroblock from the first image 54 and a second reading order for each macroblock from the second image 94 are set.

その後、ステップS205において、コード情報作成回路106は、コード情報114の開始コード116を生成してワークメモリに格納する。   Thereafter, in step S205, the code information creation circuit 106 generates the start code 116 of the code information 114 and stores it in the work memory.

その後、ステップS206において、nフレーム目の第1画像54から第1読出順序に基づいてマクロブロックを読み出す。   Thereafter, in step S206, the macroblock is read from the first image 54 of the nth frame based on the first reading order.

次いで、ステップS207において、nフレーム目の第2画像94から第2読出順序に基づいてマクロブロックを読み出す。   Next, in step S207, the macroblock is read from the second image 94 in the nth frame based on the second reading order.

そして、ステップS208において、ステップS206で読み出されたマクロブロックと、ステップS207で読み出されたマクロブロックとを比較し、比較結果が一致又はほぼ一致していた場合に、ステップS209において、これらマクロブロックに関するアドレスが記録されたアドレスコード120を生成してワークメモリに格納する。   In step S208, the macro block read in step S206 is compared with the macro block read in step S207. If the comparison results match or substantially match, these macro blocks are checked in step S209. An address code 120 in which an address related to the block is recorded is generated and stored in the work memory.

次のステップS210において、コード情報作成回路106は、コード情報114の生成処理を終了するか否かを判別する。この判別は、第1読出順序及び第2読出順序の終了に基づいて探索範囲変更回路92から出力される探索終了信号の入力があったかどうかで行われる。 In the next step S210 , the code information creation circuit 106 determines whether or not to end the generation process of the code information 114. This determination is made based on whether or not a search end signal output from the search range changing circuit 92 is input based on the end of the first reading order and the second reading order.

コード情報114の生成処理が終了でないと判別された場合は、前記ステップS206以降の処理を繰り返して、アドレスコード120の生成、格納を行う。   If it is determined that the generation process of the code information 114 is not completed, the process after step S206 is repeated to generate and store the address code 120.

そして、コード情報114の生成処理が終了した場合は、次のステップS211に進み、終端コード118をワークメモリに格納する。この段階で、nフレーム目のコード情報114の作成が完了することとなる。   When the generation process of the code information 114 is completed, the process proceeds to the next step S211 and the end code 118 is stored in the work memory. At this stage, the creation of the code information 114 of the nth frame is completed.

その後、図12のステップS212において、コード情報転送回路108は、ワークメモリに記録されたnフレーム目のコード情報114を第2可変長符号化器70に転送する。これによって、コード情報114は可変長符号化され、その後、第4バッファメモリ64に格納される。   Thereafter, in step S <b> 212 of FIG. 12, the code information transfer circuit 108 transfers the code information 114 of the nth frame recorded in the work memory to the second variable length encoder 70. As a result, the code information 114 is subjected to variable-length coding and then stored in the fourth buffer memory 64.

その後、ステップS213において、nフレーム目のコード情報114の圧縮符号化データは、第4バッファメモリ64から所定の転送レートで読み出されて、例えば外部の記録媒体16に記録される。   Thereafter, in step S213, the compression encoded data of the code information 114 of the nth frame is read from the fourth buffer memory 64 at a predetermined transfer rate and recorded on the external recording medium 16, for example.

その後、図12のステップS214において、圧縮処理テーブル作成回路110は、作成されたコード情報114に登録された第2画像94のマクロブロックのアドレスに基づいて、該コード情報114に登録されていない第2画像94のマクロブロックのアドレスが配列された圧縮処理テーブル122を作成する。   After that, in step S214 of FIG. 12, the compression processing table creation circuit 110 generates the first unregistered code information 114 based on the macroblock address of the second image 94 registered in the created code information 114. The compression processing table 122 in which the addresses of the macro blocks of the two images 94 are arranged is created.

その後、ステップS215において、第3抽出回路112は、第3バッファメモリ58に格納されたnフレーム目の第2画像94のうち、圧縮処理テーブル122に格納されたアドレスに対応したマクロブロック(nフレーム目の部分画像)を読み出して第2符号化回路60に供給する。第2符号化回路60は、nフレーム目の部分画像をフレーム内予測符号化して第4バッファメモリ64に格納する。このとき、第2動き補償回路62は、nフレーム目の符号化された部分画像を復号化してnフレーム目の部分画像として第2画像メモリ84に記録する。   Thereafter, in step S215, the third extraction circuit 112 selects a macroblock (n frame) corresponding to the address stored in the compression processing table 122 from the second image 94 of the n frame stored in the third buffer memory 58. A partial image of the eye) is read out and supplied to the second encoding circuit 60. The second encoding circuit 60 performs intra-frame predictive encoding on the n-th frame partial image and stores it in the fourth buffer memory 64. At this time, the second motion compensation circuit 62 decodes the encoded partial image of the nth frame and records it in the second image memory 84 as a partial image of the nth frame.

その後、ステップS216において、第2符号化処理系20は、n+1フレーム目の第2画像94を第3バッファメモリ58に格納する。   Thereafter, in step S216, the second encoding processing system 20 stores the second image 94 of the (n + 1) th frame in the third buffer memory 58.

その後、ステップS217において、第2動き補償回路62は、nフレーム目の部分画像の動き補償予測を行う。これによって、順方向予測による差分データ及び双方向予測による差分データが第2符号化回路60によって圧縮符号化されて第4バッファメモリ64に格納される。   Thereafter, in step S217, the second motion compensation circuit 62 performs motion compensation prediction for the nth partial image. As a result, the difference data based on the forward prediction and the difference data based on the bidirectional prediction are compression encoded by the second encoding circuit 60 and stored in the fourth buffer memory 64.

そして、ステップS218において、nフレーム目の部分画像の圧縮符号化データ(動き補償予測データを含む)は、第4バッファメモリ64から所定の転送レートで読み出されて、例えば外部の記録媒体16に記録される。   In step S218, the compression encoded data (including motion compensated prediction data) of the nth partial image is read from the fourth buffer memory 64 at a predetermined transfer rate, and is stored in, for example, the external recording medium 16. To be recorded.

その後、ステップS219において、第2符号化処理系20は、カウンタnの値を+1更新する。   Thereafter, in step S219, the second encoding processing system 20 updates the value of the counter n by +1.

次いで、ステップS220において、第2符号化処理系20は、撮影終了であるかどうかを判別する。この判別は、例えば撮影の終了を示す割り込み信号等の入力があったかどうかで行われる。   Next, in step S220, the second encoding processing system 20 determines whether or not the shooting is finished. This determination is made, for example, based on whether or not an interrupt signal indicating the end of shooting has been input.

終了要求がなければ、図11の前記ステップS205に戻り、該ステップS205以降の処理を繰り返す。   If there is no end request, the process returns to step S205 in FIG. 11 to repeat the processes after step S205.

そして、前記ステップS220において、終了要求であると判別された場合、この第2符号化処理系20での処理が終了する。   If it is determined in step S220 that the request is an end request, the processing in the second encoding processing system 20 ends.

図10に示す第1符号化処理系18の処理と、図11及び図12に示す第2符号化処理系20の処理は、マルチタスク方式にて行われるようになっており、カウンタmの値及びカウンタnの値もほぼ同期して更新されるようになっている。   The processing of the first encoding processing system 18 shown in FIG. 10 and the processing of the second encoding processing system 20 shown in FIGS. 11 and 12 are performed by the multitask method, and the value of the counter m The value of the counter n is also updated almost synchronously.

次に、本実施の形態に係る復号化装置124について図13を参照しながら説明する。   Next, decoding apparatus 124 according to the present embodiment will be described with reference to FIG.

この復号化装置124は、図13に示すように、例えば記録媒体16から読み出された第1カメラ12についての動画の符号化データを復号化処理する第1復号化処理系126と、例えば記録媒体16から読み出された第2カメラ14についての動画の符号化データを復号化処理する第2復号化処理系128とを有する。   As shown in FIG. 13, the decoding device 124 includes, for example, a first decoding processing system 126 that decodes moving image encoded data for the first camera 12 read from the recording medium 16, for example, a recording A second decoding processing system 128 that decodes moving image encoded data of the second camera 14 read from the medium 16.

第1復号化処理系126は、記録媒体16から供給された第1カメラ12についての動画の符号化データをフレーム単位に保持する第5バッファメモリ130と、第5バッファメモリ130に保持されたデータ(第1画像54の符号化データ)を復号化処理する第1復号化回路132と、第1画像54の符号化データ(特に、順方向予測の差分データや双方向予測の差分データ)の動き補償予測を行う第3動き補償回路134と、伸長復号化された第1画像54を一時的に保持する第6バッファメモリ136とを有する。   The first decoding processing system 126 includes a fifth buffer memory 130 that holds encoded video data of the first camera 12 supplied from the recording medium 16 in units of frames, and data held in the fifth buffer memory 130. The movement of the first decoding circuit 132 for decoding (encoded data of the first image 54) and the encoded data of the first image 54 (particularly, difference data for forward prediction and difference data for bidirectional prediction). It has the 3rd motion compensation circuit 134 which performs compensation prediction, and the 6th buffer memory 136 which hold | maintains the 1st image 54 by which the expansion decoding was carried out temporarily.

第1復号化回路132は、図14に示すように、第5バッファメモリ130からの第1画像54の符号化データを可変長復号化する第1可変長復号化器138と、可変長復号化されたデータを逆量子化処理する逆量子化器140と、逆量子化処理されたデータに対して逆離散コサイン変換を行う逆DCT器142とを有する。さらに、第1復号化回路132は、逆離散コサイン変換されたデータが順方向予測の差分データや双方向予測の差分データである場合に、第3動き補償回路134からの出力データとの加算データを得る第3加算器144を有する。また、第1可変長復号化器138は、可変長復号化されたデータに動きベクトルが含まれていれば、この動きベクトルを第3動き補償回路134に送信する。   As shown in FIG. 14, the first decoding circuit 132 includes a first variable length decoder 138 for variable length decoding the encoded data of the first image 54 from the fifth buffer memory 130, and variable length decoding. Inverse quantizer 140 that performs inverse quantization processing on the processed data, and inverse DCT device 142 that performs inverse discrete cosine transform on the inversely quantized data. Further, the first decoding circuit 132 adds data with the output data from the third motion compensation circuit 134 when the inverse discrete cosine transformed data is forward prediction difference data or bidirectional prediction difference data. A third adder 144 for obtaining In addition, if the variable length decoded data includes a motion vector, the first variable length decoder 138 transmits the motion vector to the third motion compensation circuit 134.

第3動き補償回路134は、第3画像メモリ146と、第3動き補償予測器148とを有する。第3画像メモリ146には、逆離散コサイン変換された第1画像54(復元された例えばnフレームの第1画像54)が格納される。特に、順方向予測の差分データや双方向予測の差分データを復元する際には、第3画像メモリ146に格納された第1画像54の一部が動きベクトルに基づいてシフトされて第3加算器144に供給され、これにより、n+1フレーム目の第1画像54が復元されることになる。   The third motion compensation circuit 134 includes a third image memory 146 and a third motion compensation predictor 148. The third image memory 146 stores the first image 54 subjected to inverse discrete cosine transform (the restored first image 54 of n frames, for example). In particular, when restoring difference data for forward prediction or difference data for bidirectional prediction, a part of the first image 54 stored in the third image memory 146 is shifted based on the motion vector and the third addition is performed. The first image 54 of the (n + 1) th frame is restored by this.

第1復号化回路132における各種回路での処理が順次行われることによって、第1カメラ12についての符号化データが復元されて第6バッファメモリ136に一時的に保持され、該第6バッファメモリ136から所定の転送レートで読み出されることによって第1カメラ12にて撮影された動画として再生出力されることになる。   By sequentially performing processing in various circuits in the first decoding circuit 132, encoded data for the first camera 12 is restored and temporarily stored in the sixth buffer memory 136, and the sixth buffer memory 136 is restored. Is read out at a predetermined transfer rate and reproduced and output as a moving image shot by the first camera 12.

一方、第2復号化処理系128は、図13に示すように、記録媒体16から供給された第2カメラ14についての動画の符号化データ(第2画像94のコード情報114と部分画像の符号化データ)をフレーム単位に保持する第7バッファメモリ150と、該第7バッファメモリ150に保持されたデータ(1つのフレームのコード情報114と部分画像の符号化データ)を復号化処理する第2復号化回路152と、部分画像の符号化データ(特に、順方向予測の差分データや双方向予測の差分データ)の動き補償予測を行う第4動き補償回路154と、コード情報処理回路156と、第2復号化回路152からの復元データとコード情報処理回路156からの復元データとを合成して第2画像94に復元する合成回路158と、復元された第2画像94を一時的に保持する第8バッファメモリ160とを有する。   On the other hand, as shown in FIG. 13, the second decoding processing system 128 encodes moving image encoded data (the code information 114 of the second image 94 and the code of the partial image) for the second camera 14 supplied from the recording medium 16. The second buffer for decoding the data (the code information 114 of one frame and the encoded data of the partial image) held in the seventh buffer memory 150. A decoding circuit 152; a fourth motion compensation circuit 154 that performs motion compensation prediction of encoded data of partial images (particularly difference data for forward prediction and difference data for bidirectional prediction); a code information processing circuit 156; A synthesis circuit 158 that synthesizes the restored data from the second decoding circuit 152 and the restored data from the code information processing circuit 156 to restore the second image 94; And a eighth buffer memory 160 for temporarily holding the second image 94.

第2復号化回路152は、図15に示すように、第7バッファメモリ150からのコード情報114と部分画像の符号化データを可変長復号化する第2可変長復号化器162と、可変長復号化されたデータのうち、部分画像の可変長復号化データを逆量子化処理する第2逆量子化器164と、逆量子化処理されたデータに対して逆離散コサイン変換を行う第2逆DCT器166とを有する。さらに、第2復号化回路152は、逆離散コサイン変換されたデータが順方向予測の差分データや双方向予測の差分データである場合に、第4動き補償回路154からの出力データとの加算データを得る第4加算器168を有する。   As shown in FIG. 15, the second decoding circuit 152 includes a second variable length decoder 162 that performs variable length decoding on the code information 114 and the encoded data of the partial image from the seventh buffer memory 150, and a variable length. Among the decoded data, a second inverse quantizer 164 that performs inverse quantization processing on the variable-length decoded data of the partial image, and a second inverse quantization that performs inverse discrete cosine transform on the inversely quantized data. DCT unit 166. Further, the second decoding circuit 152 adds data with the output data from the fourth motion compensation circuit 154 when the data subjected to inverse discrete cosine transform is difference data for forward prediction or difference data for bidirectional prediction. A fourth adder 168 for obtaining

特に、第2可変長復号化器162は、可変長復号化されたデータに動きベクトルが含まれていれば、この動きベクトルを第4動き補償回路154に送信する。また、可変長復号化されたデータにコード情報114が含まれていれば、このコード情報114をコード情報処理回路156に送信する。   In particular, the second variable length decoder 162 transmits the motion vector to the fourth motion compensation circuit 154 if the motion vector is included in the variable length decoded data. If the code information 114 is included in the variable length decoded data, the code information 114 is transmitted to the code information processing circuit 156.

第4動き補償回路154は、第4画像メモリ170と、第4動き補償予測器172とを有する。第4画像メモリ170には、逆離散コサイン変換された部分画像(復元された例えばnフレームの部分画像)が格納される。特に、順方向予測の差分データや双方向予測の差分データを復元する際には、第4画像メモリ170に格納された部分画像の一部が動きベクトルに基づいてシフトされて第4加算器168に供給され、これにより、n+1フレーム目の部分画像が復元されることになる。   The fourth motion compensation circuit 154 includes a fourth image memory 170 and a fourth motion compensation predictor 172. The fourth image memory 170 stores a partial image subjected to inverse discrete cosine transform (a restored partial image of, for example, n frames). In particular, when restoring difference data for forward prediction and difference data for bidirectional prediction, a part of the partial image stored in the fourth image memory 170 is shifted based on the motion vector, and the fourth adder 168 is shifted. Thus, the partial image of the (n + 1) th frame is restored.

そして、第2復号化回路152からの部分画像の復元データと、コード情報処理回路156からの復元データとが合成回路158にて合成されて第2画像94の復元データとして出力されることになる。第2復号化回路152及びコード情報処理回路156での処理が順次行われることによって、第2カメラ14についての符号化データが復元されて第8バッファメモリ160に一時的に保持され、該第8バッファメモリ160から所定の転送レートで読み出されることによって第2カメラ14にて撮影された動画として再生出力されることになる。   Then, the partial image restoration data from the second decoding circuit 152 and the restoration data from the code information processing circuit 156 are synthesized by the synthesis circuit 158 and output as restoration data of the second image 94. . By sequentially performing the processes in the second decoding circuit 152 and the code information processing circuit 156, the encoded data for the second camera 14 is restored and temporarily stored in the eighth buffer memory 160. By reading out from the buffer memory 160 at a predetermined transfer rate, it is reproduced and output as a moving image shot by the second camera 14.

コード情報処理回路156は、第2可変長復号化器162から送信されたコード情報114を一時保持する第9バッファメモリ174と、コード情報114からアドレスコードを順番に読み出すコード読出回路176と、第1復号化処理系126の第6バッファメモリ136に格納された第1画像54のうち、読み出されたアドレスコードに登録されている第1画像54のマクロブロックアドレスに対応するマクロブロックを読み出すマクロブロック読出回路178と、読み出されたマクロブロックを、第10バッファメモリ180(第2画像94が記録される容量を有する)のうち、アドレスコードに登録されている第2画像94のマクロブロックアドレスに対応するアドレスに書き込むマクロブロック書込回路182と、コード読出回路176からの読出終了信号に基づいて、第10バッファメモリ180に格納されているデータを合成回路158に転送するデータ転送回路184とを有する。   The code information processing circuit 156 includes a ninth buffer memory 174 that temporarily holds the code information 114 transmitted from the second variable length decoder 162, a code reading circuit 176 that sequentially reads address codes from the code information 114, A macro that reads a macroblock corresponding to the macroblock address of the first image 54 registered in the read address code from the first image 54 stored in the sixth buffer memory 136 of the one decoding processing system 126. The block readout circuit 178 and the macroblock address of the second image 94 registered in the address code in the tenth buffer memory 180 (having a capacity for recording the second image 94) are used as the read macroblock. Macroblock writing circuit 182 for writing to the address corresponding to Based on the read end signal from the 76, and a data transfer circuit 184 for transferring data stored in the tenth buffer memory 180 to the synthesizing circuit 158.

合成回路158は、第2復号化回路152からの部分画像の復元データと、コード情報処理回路156から転送されるデータを合成して第2画像94に復元する。   The combining circuit 158 combines the restored data of the partial image from the second decoding circuit 152 and the data transferred from the code information processing circuit 156 to restore the second image 94.

このように、第4動き補償回路154の第4動き補償予測器172は、第2画像94の全てについてそれぞれ対応する動きベクトルを反映させて復元するのではなく、第2画像94のうち、圧縮処理テーブル122に配列されたアドレスに対応するマクロブロック群(部分画像)だけを復元する。そのため、第2画像94を復元するための伸長復号化に係る処理時間を大幅に短縮させることができると共に、復号化するためのデータの量も大幅に削減することができる。   As described above, the fourth motion compensation predictor 172 of the fourth motion compensation circuit 154 does not restore all the second images 94 by reflecting the corresponding motion vectors. Only the macroblock group (partial image) corresponding to the addresses arranged in the processing table 122 is restored. Therefore, it is possible to greatly reduce the processing time related to decompression decoding for restoring the second image 94, and it is possible to greatly reduce the amount of data for decoding.

次に、復号化装置124の基本的な処理動作について図16を参照しながら説明する。   Next, a basic processing operation of the decoding device 124 will be described with reference to FIG.

図16に示すように、先ず、ステップS301において、第1復号化処理系126は、第1画像54の伸長復号化を行い、伸長復号化された第1画像54を再生出力する。   As shown in FIG. 16, first, in step S301, the first decoding processing system 126 performs decompression decoding of the first image 54, and reproduces and outputs the first image 54 subjected to decompression decoding.

その後、ステップS302において、第2復号化処理系128は、第2画像94の符号化データに含まれているコード情報114を読み出してコード情報処理回路156に送信する。   Thereafter, in step S302, the second decoding processing system 128 reads out the code information 114 included in the encoded data of the second image 94 and transmits it to the code information processing circuit 156.

その後、ステップS303において、コード情報処理回路156は、コード情報114に含まれるアドレスコードに基づいて、第1復号化回路132にて復元された第1画像54を利用して第2画像94の一部を復元する。   Thereafter, in step S303, the code information processing circuit 156 uses the first image 54 reconstructed by the first decoding circuit 132 based on the address code included in the code information 114, and stores the first image 94. Restore the part.

その後、ステップS304において、第2復号化回路152及び第4動き補償回路154は、第2画像94の部分画像の伸長復号化を行う。   Thereafter, in step S304, the second decoding circuit 152 and the fourth motion compensation circuit 154 perform decompression decoding of the partial image of the second image 94.

その後、ステップS305において、合成回路158は、コード情報114に基づいて復元された第2画像94の一部と、第2復号化回路152及び第4動き補償回路154によって復元された部分画像とを合成することにより、第2画像94に復元し、該第2画像94を再生出力する。   After that, in step S305, the synthesis circuit 158 combines a part of the second image 94 restored based on the code information 114 and the partial image restored by the second decoding circuit 152 and the fourth motion compensation circuit 154. By synthesizing, the second image 94 is restored, and the second image 94 is reproduced and output.

そして、画像データが終了するまで、ステップS301〜S305の処理を繰り返す(ステップS306)。   Then, the processes in steps S301 to S305 are repeated until the image data is completed (step S306).

次に、第2の実施の形態に係る符号化装置(以下、第2符号化装置10Bと記す)について図17及び図18を参照しながら説明する。   Next, an encoding apparatus according to the second embodiment (hereinafter referred to as second encoding apparatus 10B) will be described with reference to FIGS.

この第2符号化装置10Bは、図17に示すように、上述した第1符号化装置10Aとほぼ同様の構成を有するが、第1カメラ12と第2カメラ14との輻輳角や第1カメラ12の光軸と第2カメラ14の光軸の間隔を検出する光学系情報検出回路186と、該光学系情報検出回路186にて検出された間隔や輻輳角の少なくとも一方に基づいて、ずれ情報を設定して記憶部90に記憶する第1ずれ情報設定回路188を有する点で異なる。   As shown in FIG. 17, the second encoding device 10B has substantially the same configuration as the first encoding device 10A described above, but the convergence angle between the first camera 12 and the second camera 14 and the first camera. The optical system information detection circuit 186 that detects the interval between the 12 optical axes and the optical axis of the second camera 14, and the deviation information based on at least one of the interval and the convergence angle detected by the optical system information detection circuit 186 Is different in that it has a first deviation information setting circuit 188 that stores the information in the storage unit 90.

光学系情報検出回路186は、第1カメラ12と第2カメラ14との輻輳角や第1カメラ12の光軸と第2カメラ14の光軸の間隔を検出する各種センサにて構成してもよいし、第1カメラ12及び第2カメラ14の駆動機構への駆動制御信号の属性(電流値や電圧値等)に基づいて演算にて求める演算回路にて構成するようにしてもよい。   The optical system information detection circuit 186 may be configured by various sensors that detect the convergence angle between the first camera 12 and the second camera 14 and the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14. Alternatively, it may be configured by a calculation circuit that is obtained by calculation based on attributes (current value, voltage value, etc.) of drive control signals to the drive mechanisms of the first camera 12 and the second camera 14.

第1ずれ情報設定回路188は、第1カメラ12の光軸と第2カメラ14の光軸との間隔が大きいほど、ずれ量を大きく設定し、第1カメラ12と第2カメラ14との輻輳角が小さいほど、ずれ量を大きく設定する。   The first deviation information setting circuit 188 sets the deviation amount to be larger as the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14 is larger, and congestion between the first camera 12 and the second camera 14 is established. The smaller the angle, the larger the shift amount.

また、第1ずれ情報設定回路188において、第1カメラ12の光軸と第2カメラ14の光軸との間隔と、第1カメラ12と第2カメラ14との輻輳角の両方でずれ量を設定する場合は、これら間隔及び輻輳角とずれ量との対応関係を予め求め、情報テーブルとして、メモリ(ROMやフラッシュメモリ等)に保持しておき、今回検出された間隔と輻輳角に対応するずれ量を情報テーブルから読み出して設定するようにしてもよい。   Further, in the first deviation information setting circuit 188, the deviation amount is determined by both the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14 and the convergence angle between the first camera 12 and the second camera 14. When setting, the correspondence relationship between the interval and the convergence angle and the deviation amount is obtained in advance, and stored as an information table in a memory (ROM, flash memory, etc.), and corresponds to the detected interval and the convergence angle. The deviation amount may be set by reading from the information table.

ここで、第2符号化装置10Bの基本的な処理動作について図18を参照しながら説明する。   Here, a basic processing operation of the second encoding device 10B will be described with reference to FIG.

図18に示すように、先ず、ステップS401において、光学系情報検出回路186は、第1カメラ12の光軸と第2カメラ14の光軸の間隔や、第1カメラ12と第2カメラ14との輻輳角を検出する。   As shown in FIG. 18, first, in step S401, the optical system information detection circuit 186 determines the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14, the first camera 12 and the second camera 14, and so on. Detect the angle of convergence.

その後、ステップS402において、第1ずれ情報設定回路188は、光学系情報検出回路186にて検出された間隔や輻輳角の少なくとも一方に基づいて、ずれ情報を設定して記憶部90に記憶する。   Thereafter, in step S <b> 402, the first deviation information setting circuit 188 sets deviation information based on at least one of the interval and the convergence angle detected by the optical system information detection circuit 186 and stores the deviation information in the storage unit 90.

その後、ステップS403において、第2符号化処理系20の探索範囲変更回路92は、記憶部90からずれ情報を読み出す。   Thereafter, in step S <b> 403, the search range change circuit 92 of the second encoding processing system 20 reads the deviation information from the storage unit 90.

その後、ステップS404において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。   Thereafter, in step S404, the search range changing circuit 92 sets the search range of the motion vector of the second image 94 based on the read deviation information.

一方、ステップS405において、第1符号化処理系18は、第1画像54の圧縮符号化を行い、圧縮符号化された第1画像54を第2バッファメモリ28を介して記録媒体16に保存する。   On the other hand, in step S <b> 405, the first encoding processing system 18 performs compression encoding of the first image 54, and stores the compression-encoded first image 54 in the recording medium 16 via the second buffer memory 28. .

他方、ステップS406において、コード情報作成回路106は、コード情報114を作成する。すなわち、変更された探索範囲のうち、第1画像54と一致又はほぼ一致する部分を抽出し、抽出した部分のアドレス情報等に基づいてコード情報114を作成する。   On the other hand, in step S406, the code information creation circuit 106 creates the code information 114. That is, a portion that matches or substantially matches the first image 54 in the changed search range is extracted, and code information 114 is created based on the address information and the like of the extracted portion.

その後、ステップS407において、第2符号化処理系20は、作成されたコード情報114を符号化し、符号化されたコード情報114を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S407, the second encoding processing system 20 encodes the generated code information 114 and stores the encoded code information 114 in the recording medium 16 via the fourth buffer memory 64.

その後、ステップS408において、第2符号化処理系20は、第2画像94のうち、残りの部分画像の圧縮符号化を行い、圧縮符号化された部分画像を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S408, the second encoding processing system 20 performs compression encoding of the remaining partial images in the second image 94, and records the compression-encoded partial images via the fourth buffer memory 64. Save to medium 16.

そして、撮影が終了するまで、ステップS405〜ステップS408の処理を繰り返す(ステップS409)。   Then, the processing from step S405 to step S408 is repeated until shooting is completed (step S409).

この第2符号化装置10Bにおいては、第1カメラ12の光軸と第2カメラ14の光軸との間隔や輻輳角に基づいてずれ情報を設定するようにしたので、ハードウェアを主体に構成することができ、コンピュータプログラムの複雑化を回避することができる。   In the second encoding device 10B, since the deviation information is set based on the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14 and the convergence angle, the hardware is mainly configured. And the complexity of the computer program can be avoided.

図18の例では、撮影開始の段階で、光学系情報の検出結果に基づく探索範囲の設定を行い(ステップS401〜S404)、その後、撮影終了まで第1符号化処理系18での圧縮符号化処理(ステップS405)と第2符号化処理系20での圧縮符号化処理(ステップS406〜S408)を行うようにしたが、前記探索範囲の設定と、第1符号化処理系18での圧縮符号化処理と、第2符号化処理系20での圧縮符号化処理とをマルチタスク方式にて行うようにしてもよい。この場合、被写体の変化に応じてずれ情報を設定することができ、その分、第2符号化処理系での符号化にかかる時間を短縮させることができると共に、復号化装置での復号化にかかる時間も短縮させることができる。   In the example of FIG. 18, the search range is set based on the detection result of the optical system information at the start of shooting (steps S401 to S404), and then the compression coding in the first encoding processing system 18 is performed until the end of shooting. The process (step S405) and the compression encoding process (steps S406 to S408) in the second encoding processing system 20 are performed. The search range setting and the compression encoding in the first encoding processing system 18 are performed. The encoding process and the compression encoding process in the second encoding processing system 20 may be performed by a multitask method. In this case, the shift information can be set according to the change of the subject, and accordingly, the time required for encoding in the second encoding processing system can be shortened, and the decoding in the decoding apparatus can be performed accordingly. Such time can also be shortened.

次に、第3の実施の形態に係る符号化装置(以下、第3符号化装置10Cと記す)について図19及び図20を参照しながら説明する。   Next, an encoding apparatus according to a third embodiment (hereinafter referred to as a third encoding apparatus 10C) will be described with reference to FIGS.

この第3符号化装置10Cは、図19に示すように、上述した第1符号化装置10Aとほぼ同様の構成を有するが、被写体までの距離(奥行き)を測定する測距回路190と、測距回路190からの距離データに基づいてずれ情報を設定して記憶部90に記憶する第2ずれ情報設定回路192を有する点で異なる。   As shown in FIG. 19, the third encoding device 10C has substantially the same configuration as the first encoding device 10A described above, but includes a distance measuring circuit 190 that measures the distance (depth) to the subject, The difference is that a second deviation information setting circuit 192 that sets deviation information based on distance data from the distance circuit 190 and stores the deviation information in the storage unit 90 is provided.

測距回路190は、赤外線等の光を被写体に照射し、反射して戻ってくるまでの時間を計測する等の方法により、被写体までの距離(奥行き)を測定する回路である。   The distance measuring circuit 190 is a circuit that measures the distance (depth) to the subject by a method of irradiating the subject with light such as infrared rays and measuring the time taken to reflect and return.

第2ずれ情報設定回路192は、奥行きが大きいほど第1画像54と第2画像94のずれ量が小さくなるように設定する。また、第2ずれ情報設定回路192は、奥行きと、第1カメラ12と第2カメラ14の配置や間隔(光軸間の間隔)とに基づいてずれ量を設定するようにしてもよい。この場合、予め情報テーブルを作成して、該情報テーブルに基づいてずれ量を設定してもよいし、ずれ量を演算によって求めるようにしてもよい。   The second shift information setting circuit 192 sets the shift amount between the first image 54 and the second image 94 to be smaller as the depth is larger. Further, the second deviation information setting circuit 192 may set the deviation amount based on the depth and the arrangement and interval (interval between optical axes) of the first camera 12 and the second camera 14. In this case, an information table may be created in advance, and the deviation amount may be set based on the information table, or the deviation amount may be obtained by calculation.

測距回路190による被写体までの距離の検出は、撮影開始と共に1回だけ行うようにしてもよいし、1フレーム期間ごとに行うようにしてもよい。あるいは数フレーム期間ごとに行うようにしてもよい。この場合、第2ずれ情報設定回路192は、測距回路190での距離の検出タイミングに合わせて、撮影開始と共に1回だけずれ情報を設定してもよいし、1フレーム期間ごとに、あるいは数フレーム期間ごとにずれ情報を設定し直してもよい。また、測距回路190からの距離データは、マクロブロックごとの距離データ(マクロブロック単位の距離画像)でもよいし、画素ごとの距離データ(画素単位の距離画像)でもよい。この場合、距離画像の中央部分における距離データの平均値や最も近い距離データに基づいてずれ量を設定するようにしてもよい。   Detection of the distance to the subject by the distance measuring circuit 190 may be performed only once at the start of photographing or may be performed every frame period. Alternatively, it may be performed every several frame periods. In this case, the second deviation information setting circuit 192 may set the deviation information only once at the start of photographing in accordance with the distance detection timing in the distance measuring circuit 190, or every frame period or several times. The shift information may be reset every frame period. The distance data from the distance measuring circuit 190 may be distance data for each macroblock (distance image for each macroblock) or distance data for each pixel (distance image for each pixel). In this case, the shift amount may be set based on the average value of the distance data in the center portion of the distance image or the nearest distance data.

ここで、第3符号化装置10Cの基本的な処理動作について図20を参照しながら説明する。   Here, a basic processing operation of the third encoding device 10C will be described with reference to FIG.

図20に示すように、先ず、ステップS501において、測距回路190は、1フレーム単位あるいは数フレーム単位に、被写体までの距離(奥行き)を測定する。   As shown in FIG. 20, first, in step S501, the distance measuring circuit 190 measures the distance (depth) to the subject in units of one frame or several frames.

その後、ステップS502において、第2ずれ情報設定回路192は、測距回路190からの距離データに基づいてずれ情報を設定して記憶部90に記憶する。   Thereafter, in step S <b> 502, the second deviation information setting circuit 192 sets deviation information based on the distance data from the distance measuring circuit 190 and stores it in the storage unit 90.

その後、ステップS503において、第2符号化処理系20の探索範囲変更回路92は、記憶部90からずれ情報を読み出す。   Thereafter, in step S503, the search range changing circuit 92 of the second encoding processing system 20 reads the shift information from the storage unit 90.

その後、ステップS504において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。   Thereafter, in step S504, the search range changing circuit 92 sets a search range for the motion vector of the second image 94 based on the read shift information.

そして、ステップS505において、第1符号化処理系18は、第1画像54の圧縮符号化を行い、圧縮符号化された第1画像54を第2バッファメモリ28を介して記録媒体16に保存する。   In step S505, the first encoding processing system 18 performs compression encoding of the first image 54, and stores the compression encoded first image 54 in the recording medium 16 via the second buffer memory 28. .

一方、ステップS506において、コード情報作成回路106は、コード情報114を作成する。すなわち、変更された探索範囲のうち、第1画像54と一致又はほぼ一致する部分を抽出し、抽出した部分のアドレス情報等に基づいてコード情報114を作成する。   On the other hand, in step S506, the code information creation circuit 106 creates code information 114. That is, a portion that matches or substantially matches the first image 54 in the changed search range is extracted, and code information 114 is created based on the address information and the like of the extracted portion.

その後、ステップS507において、第2符号化処理系20は、作成されたコード情報114を符号化し、符号化されたコード情報114を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S507, the second encoding processing system 20 encodes the generated code information 114, and stores the encoded code information 114 in the recording medium 16 via the fourth buffer memory 64.

その後、ステップS508において、第2符号化処理系20は、第2画像94のうち、残りの部分画像の圧縮符号化を行い、圧縮符号化された部分画像を第4バッファメモリ64を介して記録媒体16に保存する。   Thereafter, in step S508, the second encoding processing system 20 performs compression encoding of the remaining partial images in the second image 94, and records the compression-encoded partial images via the fourth buffer memory 64. Save to medium 16.

そして、撮影が終了するまで、ステップS501〜ステップS508の処理を繰り返す。   Then, the processing from step S501 to step S508 is repeated until shooting is completed.

この第3符号化装置10Cにおいては、測距回路190からの距離データに基づいて1フレームごと、あるいは数フレームごとにずれ量を設定するようにしたので、被写体の変化に応じてずれ情報を設定することができ、第2符号化処理系での符号化にかかる時間を短縮させることができると共に、復号化装置での復号化にかかる時間も短縮させることができる。   In the third encoding apparatus 10C, the shift amount is set for each frame or every several frames based on the distance data from the distance measuring circuit 190, so that the shift information is set according to the change of the subject. It is possible to reduce the time required for encoding in the second encoding processing system, and it is also possible to reduce the time required for decoding in the decoding apparatus.

図20の例では、被写体までの距離に基づく探索範囲の設定をステップS501〜S504に示し、第1符号化処理系18での圧縮符号化処理をステップS505に示し、第2符号化処理系20での圧縮符号化処理をステップS506〜ステップS508に示したが、被写体までの距離に基づく探索範囲の設定と、第1符号化処理系18での圧縮符号化処理と、第2符号化処理系20での圧縮符号化処理をマルチタスク方式にて行うようにしてもよい。   In the example of FIG. 20, the setting of the search range based on the distance to the subject is shown in steps S501 to S504, the compression encoding process in the first encoding processing system 18 is shown in step S505, and the second encoding processing system 20 In step S506 to step S508, the search range is set based on the distance to the subject, the compression encoding process in the first encoding processing system 18, and the second encoding processing system. The compression encoding process at 20 may be performed by a multitask method.

次に、上述した第2符号化装置10B又は第3符号化装置10Cの機能及び復号化装置124の機能を備えたデジタルカメラ200について図21を参照しながら説明する。   Next, the digital camera 200 provided with the function of the second encoding device 10B or the third encoding device 10C and the function of the decoding device 124 will be described with reference to FIG.

本実施の形態に係るデジタルカメラ200は、図21に示すように、第1カメラ12と、第2カメラ14と、第1測光/測距用CPU202と、第2測光/測距用CPU204と、第1絞り制御回路206と、第2絞り制御回路208と、第1ストロボ/ライト装置210と、第2ストロボ/ライト装置212と、第1充電/発光制御回路214と、第2充電/発光制御回路216と、第1YC処理回路218と、第2YC処理回路220と、EEPROM222と、操作パネル224と、二次元/三次元モードフラグ226と、電源回路228とを有する。   As shown in FIG. 21, the digital camera 200 according to the present embodiment includes a first camera 12, a second camera 14, a first photometry / ranging CPU 202, a second photometry / ranging CPU 204, First aperture control circuit 206, second aperture control circuit 208, first strobe / light device 210, second strobe / light device 212, first charging / light emission control circuit 214, and second charging / light emission control A circuit 216, a first YC processing circuit 218, a second YC processing circuit 220, an EEPROM 222, an operation panel 224, a two-dimensional / three-dimensional mode flag 226, and a power supply circuit 228 are included.

さらに、このデジタルカメラ200は、カメラ間隔/輻輳角処理回路230と、第1記憶回路232と、測距処理回路234と、第2記憶回路236と、画像記録処理回路238と、画像表示処理回路240と、第1圧縮伸長回路242と、第1ワークメモリ244と、第2圧縮伸長回路246と、第2ワークメモリ248とを有する。   Further, the digital camera 200 includes a camera interval / convergence angle processing circuit 230, a first storage circuit 232, a distance measurement processing circuit 234, a second storage circuit 236, an image recording processing circuit 238, and an image display processing circuit. 240, a first compression / decompression circuit 242, a first work memory 244, a second compression / decompression circuit 246, and a second work memory 248.

これら各種回路は、メインCPU250により、システムバス252や各種制御バスを通じて制御されるようになっている。   These various circuits are controlled by the main CPU 250 through the system bus 252 and various control buses.

第1カメラ12は、レンズやフォーカス制御機構、絞り制御機構等を有する第1光学系254と、該第1光学系254を通して入射された被写体の画像を撮像する第1CCD撮像素子256と、該第1CCD撮像素子256に対して撮像のための複数のタイミングパルスを供給する第1タイミング発生器258と、第1CCD撮像素子256からの撮像信号をデジタル変換する第1A/D変換器260と、該第1A/D変換器260からのデジタルデータにホワイトバランスやγ補正をかける第1補正回路262と、該第1補正回路262にて補正された撮像データを例えば1フレーム単位に保持する第11バッファメモリ264とを有する。   The first camera 12 includes a first optical system 254 having a lens, a focus control mechanism, an aperture control mechanism, and the like, a first CCD image sensor 256 that captures an image of a subject incident through the first optical system 254, and the first camera 12. A first timing generator 258 that supplies a plurality of timing pulses for imaging to the 1 CCD image sensor 256; a first A / D converter 260 that digitally converts an image signal from the first CCD image sensor 256; A first correction circuit 262 that applies white balance and γ correction to digital data from the 1A / D converter 260, and an eleventh buffer memory that holds image data corrected by the first correction circuit 262 in units of frames, for example. H.264.

第2カメラ14は、レンズやフォーカス制御機構、絞り制御機構等を有する第2光学系266と、該第2光学系266を通して入射された被写体の画像を撮像する第2CCD撮像素子268と、該第2CCD撮像素子268に対して撮像のための複数のタイミングパルスを供給する第2タイミング発生器270と、第2CCD撮像素子268からの撮像信号をデジタル変換する第2A/D変換器272と、該第2A/D変換器272からのデジタルデータにホワイトバランスやγ補正をかける第2補正回路274と、該第2補正回路274にて補正された撮像データを例えば1フレーム単位に保持する第12バッファメモリ276とを有する。   The second camera 14 includes a second optical system 266 having a lens, a focus control mechanism, an aperture control mechanism, and the like, a second CCD image sensor 268 that captures an image of a subject incident through the second optical system 266, and the second camera A second timing generator 270 that supplies a plurality of timing pulses for imaging to the 2CCD image sensor 268; a second A / D converter 272 that digitally converts an image signal from the second CCD image sensor 268; A second correction circuit 274 that applies white balance and γ correction to the digital data from the 2A / D converter 272, and a twelfth buffer memory that holds the image data corrected by the second correction circuit 274 in units of one frame, for example. 276.

第1測光/測距用CPU202は、メインCPU250からの制御信号に基づいて第1絞り制御回路206、第1光学系254のフォーカシング、第1充電/発光制御回路214を制御し、第2測光/測距用CPU204は、メインCPU250からの制御信号に基づいて第2絞り制御回路208、第2光学系266のフォーカシング、第2充電/発光制御回路216を制御する。   The first photometry / ranging CPU 202 controls the first aperture control circuit 206, the focusing of the first optical system 254, the first charging / light emission control circuit 214 based on the control signal from the main CPU 250, and the second photometry / light emission control circuit 214. The distance measurement CPU 204 controls the second aperture control circuit 208, the focusing of the second optical system 266, and the second charging / light emission control circuit 216 based on the control signal from the main CPU 250.

第1絞り制御回路206は、第1測光/測距用CPU202からの制御信号に基づいて第1光学系254のレンズの絞りを制御し、第2絞り制御回路206は、第2測光/測距用CPU202からの制御信号に基づいて第2光学系266のレンズの絞りを制御する。   The first aperture control circuit 206 controls the lens aperture of the first optical system 254 based on the control signal from the first photometry / ranging CPU 202, and the second aperture control circuit 206 performs the second photometry / range measurement. The lens diaphragm of the second optical system 266 is controlled based on the control signal from the CPU 202.

第1充電/発光制御回路214は、第1測光/測距用CPU202からの制御信号に基づいて第1ストロボ/ライト装置210の充電、発光を制御し、第2充電/発光制御回路216は、第2測光/測距用CPU204からの制御信号に基づいて第2ストロボ/ライト装置212の充電、発光を制御する。   The first charging / light emission control circuit 214 controls charging and light emission of the first strobe / light device 210 based on the control signal from the first photometry / ranging CPU 202, and the second charging / light emission control circuit 216 Based on a control signal from the second photometry / ranging CPU 204, charging and light emission of the second strobe / light device 212 are controlled.

第1YC処理回路218は、第11バッファメモリ264から撮像データを読み出し、YC画像データ(Y:輝度信号、C:色差信号)に変換して再度第11バッファメモリ264に格納するという処理を行い、第2YC処理回路220は、第12バッファメモリ276から撮像データを読み出し、該撮像データをYC画像データ(Y:輝度信号、C:色差信号)に変換して再度第12バッファメモリ276に格納するという処理を行う。   The first YC processing circuit 218 performs processing of reading out the imaging data from the eleventh buffer memory 264, converting it into YC image data (Y: luminance signal, C: color difference signal), and storing it again in the eleventh buffer memory 264, The second YC processing circuit 220 reads the imaging data from the twelfth buffer memory 276, converts the imaging data into YC image data (Y: luminance signal, C: chrominance signal), and stores it again in the twelfth buffer memory 276. Process.

EEPROM222は、起動時に動作するプログラムや各種プログラムの動作において必要なパラメータが記憶されている。   The EEPROM 222 stores programs that operate at startup and parameters necessary for the operation of various programs.

操作パネル224は、少なくとも動画用レリーズ278と、静止画用レリーズ280と、操作ガイダンス用LCD部(液晶表示部282)と、光学系を制御するための操作部284と、モードダイヤルや十字キー、電源スイッチ等の各種スイッチ286と、二次元/三次元切替スイッチ288とを有する。   The operation panel 224 includes at least a moving image release 278, a still image release 280, an operation guidance LCD unit (liquid crystal display unit 282), an operation unit 284 for controlling the optical system, a mode dial, a cross key, Various switches 286 such as a power switch and a two-dimensional / three-dimensional switch 288 are provided.

二次元/三次元モードフラグ226は、二次元画像の撮影が可能か、三次元画像の撮影が可能かを示すフラグであって、二次元/三次元切替スイッチ288に基づいて設定される。   The two-dimensional / three-dimensional mode flag 226 is a flag indicating whether a two-dimensional image can be captured or a three-dimensional image can be captured, and is set based on the two-dimensional / three-dimensional switch 288.

カメラ間隔/輻輳角処理回路230は、第1カメラ検出回路290と、第2カメラ検出回路292と、カメラ制御回路294と、第1カメラ駆動回路296と、第2カメラ駆動回路298とを有する。   The camera interval / convergence angle processing circuit 230 includes a first camera detection circuit 290, a second camera detection circuit 292, a camera control circuit 294, a first camera drive circuit 296, and a second camera drive circuit 298.

第1カメラ検出回路290は、第1カメラ12の設置位置及び第1カメラ12の設置角度を検出し、第2カメラ検出回路292は、第2カメラ14の設置位置及び第2カメラ14の設置角度を検出する。   The first camera detection circuit 290 detects the installation position of the first camera 12 and the installation angle of the first camera 12, and the second camera detection circuit 292 detects the installation position of the second camera 14 and the installation angle of the second camera 14. Is detected.

第1カメラ駆動回路296は、カメラ制御回路294からの制御信号に基づいて第1カメラ12を駆動し、第2カメラ駆動回路298は、カメラ制御回路294からの制御信号に基づいて第2カメラ14を駆動する。   The first camera drive circuit 296 drives the first camera 12 based on the control signal from the camera control circuit 294, and the second camera drive circuit 298 is based on the control signal from the camera control circuit 294. Drive.

カメラ制御回路294は、第1カメラ検出回路290からの検出情報とメインCPU250からの位置情報(第1カメラ12の光軸と第2カメラ14の光軸との間隔と、第1カメラ12と第2カメラ14の輻輳角)とに基づいて第1カメラ駆動回路296を駆動制御することにより、第1カメラ12の設置位置と設置角度をフィードバック制御する。同様に、第2カメラ検出回路292からの検出情報とメインCPU250からの位置情報とに基づいて第2カメラ駆動回路298を駆動制御することにより、第2カメラ14の設置位置と設置角度をフィードバック制御する。メインCPU250からの位置情報は、第1記憶回路232に記憶される。   The camera control circuit 294 detects the detection information from the first camera detection circuit 290 and the position information from the main CPU 250 (the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14, the first camera 12 and the first camera The first camera drive circuit 296 is drive-controlled based on the angle of convergence of the two cameras 14, thereby feedback-controlling the installation position and installation angle of the first camera 12. Similarly, the second camera drive circuit 298 is drive-controlled based on the detection information from the second camera detection circuit 292 and the position information from the main CPU 250, thereby feedback control of the installation position and installation angle of the second camera 14. To do. Position information from the main CPU 250 is stored in the first storage circuit 232.

測距処理回路234は、第1測距用発光素子300と、第2測距用発光素子302と、第1測距用撮像素子304と、第2測距用撮像素子306と、これら各素子を制御するための測距用制御回路308と、第1測距用撮像素子304からの撮像信号をデジタル変換する第3A/D変換器310と、第2測距用撮像素子306からの撮像信号をデジタル変換する第4A/D変換器312と、第3A/D変換器310からの撮像データと第4A/D変換器312からの撮像データに基づいて被写体までの距離情報を演算する距離演算回路314とを有する。距離演算回路314にて得られた距離情報は第2記憶回路236に記憶される。   The ranging processing circuit 234 includes a first ranging light emitting element 300, a second ranging light emitting element 302, a first ranging imaging element 304, a second ranging imaging element 306, and each of these elements. A ranging control circuit 308 for controlling the image, a third A / D converter 310 for digitally converting an imaging signal from the first ranging imaging device 304, and an imaging signal from the second ranging imaging device 306 4A / D converter 312 for digitally converting the image, distance calculation circuit for calculating distance information to the subject based on the image data from the third A / D converter 310 and the image data from the fourth A / D converter 312 314. The distance information obtained by the distance calculation circuit 314 is stored in the second storage circuit 236.

第1測距用発光素子300及び第2測距用発光素子302からそれぞれ赤外線を出射し、被写体で反射した赤外線を第1測距用撮像素子304及び第2測距用撮像素子306にて受光するように構成する。そして、赤外線の出射時点から反射した赤外線の受光時点までの時間を計測することで、被写体の距離を求めることができる。   Infrared rays are emitted from the first distance measuring light emitting element 300 and the second distance measuring light emitting element 302, respectively, and the infrared rays reflected by the subject are received by the first distance measuring image pickup element 304 and the second distance measuring image pickup element 306. To be configured. Then, by measuring the time from when the infrared rays are emitted to when the reflected infrared rays are received, the distance of the subject can be obtained.

画像記録処理回路238は、符号化データを一時保存するための第13バッファメモリ316と、第1コントローラ318と、インターフェース320と、メモリカード322とを有する。   The image recording processing circuit 238 includes a thirteenth buffer memory 316 for temporarily storing encoded data, a first controller 318, an interface 320, and a memory card 322.

第1コントローラ318は、第1圧縮伸長回路242からの符号化データや第2圧縮伸長回路246からの符号化データを第13バッファメモリ316に所定の転送レートで書き込んだり、第13バッファメモリ316に保存されている符号化データを所定の転送レートで読み出してシステムバス252に転送したり、インターフェース320を介してメモリカード322に転送する。   The first controller 318 writes the encoded data from the first compression / decompression circuit 242 and the encoded data from the second compression / decompression circuit 246 to the thirteenth buffer memory 316 at a predetermined transfer rate, The stored encoded data is read at a predetermined transfer rate and transferred to the system bus 252 or transferred to the memory card 322 via the interface 320.

画像表示処理回路240は、復号化データを一時保存するための第14バッファメモリ324と、第2コントローラ326と、画像データ変換回路328と、表示用駆動回路330と、液晶表示装置332とを有する。   The image display processing circuit 240 includes a fourteenth buffer memory 324 for temporarily storing decoded data, a second controller 326, an image data conversion circuit 328, a display drive circuit 330, and a liquid crystal display device 332. .

第2コントローラ326は、第1圧縮伸長回路242や第2圧縮伸長回路246からの各復号化データを第14バッファメモリ324に所定の転送レートで書き込んだり、第14バッファメモリ324に保存されている復号化データを所定の転送レートで読み出して画像データ変換回路328に転送する。   The second controller 326 writes each decoded data from the first compression / decompression circuit 242 and the second compression / decompression circuit 246 to the fourteenth buffer memory 324 at a predetermined transfer rate or is stored in the fourteenth buffer memory 324. The decoded data is read out at a predetermined transfer rate and transferred to the image data conversion circuit 328.

画像データ変換回路328は、第14バッファメモリ324を介して転送された復号化データ(YC画像データ)をRGB画像データに変換する。RGB画像データは、表示用駆動回路330を介して液晶表示装置332に送られ、これにより、液晶表示装置332には、被写体の二次元画像又は三次元画像が表示されることになる。   The image data conversion circuit 328 converts the decoded data (YC image data) transferred via the fourteenth buffer memory 324 into RGB image data. The RGB image data is sent to the liquid crystal display device 332 via the display drive circuit 330, whereby a two-dimensional image or a three-dimensional image of the subject is displayed on the liquid crystal display device 332.

なお、二次元画像と三次元画像の切り替えは、上述した二次元/三次元切替スイッチ288を用いた例を示したが、液晶表示装置332あるいは操作ガイダンス用の液晶表示部282に表示されるメニュー画面への入力によって切り替えるようにしてもよい。   In addition, although the example using the 2D / 3D changeover switch 288 described above is shown for switching between the 2D image and the 3D image, the menu displayed on the liquid crystal display device 332 or the liquid crystal display unit 282 for operation guidance is shown. You may make it switch by the input to a screen.

第1カメラ12の光軸と第2カメラ14の光軸の間隔や輻輳角の調整は、メニュー画面から選択し、操作パネル224の十字キーや専用キーの入力操作によってカメラ制御回路294を制御し、第1カメラ駆動回路296及び第2カメラ駆動回路298を駆動して調整を行うようにしてもよい。もちろん、手動で調整を行うようにしてもよい。   The adjustment of the distance between the optical axis of the first camera 12 and the optical axis of the second camera 14 and the convergence angle is selected from the menu screen, and the camera control circuit 294 is controlled by the input operation of the cross key or the dedicated key on the operation panel 224. The first camera driving circuit 296 and the second camera driving circuit 298 may be driven for adjustment. Of course, the adjustment may be performed manually.

第1カメラ12の光軸と第2カメラ14の光軸の間隔や輻輳角は、専用のセンサで検出するようにしてもよいし、基準位置からの光センサを使ったパルス数や、ステッピングモータに送ったパルス数で検出するようにしてもよい。   The distance between the optical axis of the first camera 12 and the optical axis of the second camera 14 and the convergence angle may be detected by a dedicated sensor, the number of pulses using the optical sensor from the reference position, or a stepping motor. Alternatively, the detection may be performed with the number of pulses sent to.

第1測距用撮像素子304及び第2測距用撮像素子306は、フォトダイオードが二次元配列されたタイプのものでもよいし、ライン状に配列したタイプのもの、単一のフォトダイオードを具備したタイプのものでもよい。   The first ranging image sensor 304 and the second ranging image sensor 306 may be of a type in which photodiodes are two-dimensionally arranged, of a type in which the photodiodes are arranged in a line, or provided with a single photodiode. It may be of the type.

上述の例では、距離検出のための回路を2系統設けるようにしたが、1系統でもよい。   In the above example, two systems for distance detection are provided, but one system may be used.

また、上述の例では、CPUの負荷を軽減するために、メインCPU250と、第1測光/測距用CPU202と、第2測光/測距用CPU204とを設けるようにしたが、メインCPU250だけで制御するようにしてもよい。   In the above example, the main CPU 250, the first photometry / ranging CPU 202, and the second photometry / ranging CPU 204 are provided in order to reduce the load on the CPU. You may make it control.

動画、静止画の切り替え撮影は、動画用レリーズ278と静止画用レリーズ280を選択操作することで実現できるが、レリーズを1個で構成し、動画、静止画のモード選択を専用の切替スイッチや、メニュー画面への入力操作による切り替えでもよい。   Switching between moving images and still images can be realized by selecting and operating the release 278 for moving images and the release 280 for still images. However, a single release is used to select the mode for moving images and still images. Switching by an input operation to the menu screen may be used.

デジタルカメラ200は、被写体の三次元画像の撮影のほかに、被写体の二次元画像の撮影も行うことができる仕様となっている。また、動画、静止画、音声の記録再生も可能な構成となっている。   The digital camera 200 has a specification that can capture a 2D image of a subject in addition to capturing a 3D image of the subject. In addition, the recording / playback of moving images, still images, and audio is possible.

また、液晶表示装置332の代わりに、有機EL(エレクトロ・ルミネッセンス)等を用いてもよい。   Further, instead of the liquid crystal display device 332, an organic EL (electroluminescence) or the like may be used.

次に、本実施の形態に係るデジタルカメラ200の処理動作、特に、第2符号化装置10Bに基づく圧縮符号化処理を含めた第1処理動作について図22を参照しながら説明する。なお、第2符号化装置10Bに基づく圧縮符号化処理は、図17の構成要素も参照しながら説明する。   Next, the processing operation of the digital camera 200 according to the present embodiment, in particular, the first processing operation including the compression encoding processing based on the second encoding device 10B will be described with reference to FIG. The compression encoding process based on the second encoding device 10B will be described with reference to the components in FIG.

先ず、図22のステップS601において、メインCPU250は、三次元モードであるか否かを判別する。この判別は、三次元/二次元モードフラグ226の内容に基づいて行われる。三次元モードであれば次のステップS602に進み、二次元モードであれば、二次元モードの処理へ制御を移す。   First, in step S601 in FIG. 22, the main CPU 250 determines whether or not it is in the three-dimensional mode. This determination is made based on the contents of the three-dimensional / two-dimensional mode flag 226. If it is the three-dimensional mode, the process proceeds to the next step S602, and if it is the two-dimensional mode, the control is transferred to the processing of the two-dimensional mode.

ステップS602において、メインCPU250は、動画モードであるか否かを判別する。この判別は、動画用レリーズ278が操作されたかどうかで行われる。動画モードであれば次のステップS603に進み、静止画モードであれば、静止画モードの処理へ制御を移す。   In step S602, the main CPU 250 determines whether or not the moving image mode is set. This determination is made based on whether or not the movie release 278 has been operated. If it is the moving image mode, the process proceeds to the next step S603, and if it is the still image mode, the control is transferred to the processing of the still image mode.

ステップS603において、メインCPU250は、光学系のための撮影条件を設定する。この設定は、例えばEEPROM222に登録されている撮影条件に関する各種パラメータに基づいて第1カメラ12及び第2カメラ14の絞りや輻輳角等を設定する。   In step S603, the main CPU 250 sets shooting conditions for the optical system. In this setting, for example, the aperture and the convergence angle of the first camera 12 and the second camera 14 are set based on various parameters relating to the shooting conditions registered in the EEPROM 222.

ステップS604において、メインCPU250は、撮影開始の操作入力を待つ。操作入力があった段階で、メインCPU250は、第2符号化装置10Bの圧縮符号化処理に準じた処理を行う。   In step S604, the main CPU 250 waits for an operation input for starting shooting. When there is an operation input, the main CPU 250 performs processing according to the compression encoding processing of the second encoding device 10B.

すなわち、ステップS605において、メインCPU250は、第1記憶回路232から第1カメラ12の光軸と第2カメラ14の光軸の間隔や、第1カメラ12と第2カメラ14との輻輳角を読み出す。   That is, in step S605, the main CPU 250 reads from the first storage circuit 232 the interval between the optical axis of the first camera 12 and the optical axis of the second camera 14, and the convergence angle between the first camera 12 and the second camera 14. .

その後、ステップS606において、メインCPU250は、読み出した間隔や輻輳角の少なくとも一方に基づいて、ずれ情報を設定して第1ワークメモリ244に記録する。   Thereafter, in step S606, the main CPU 250 sets deviation information based on at least one of the read interval and the convergence angle and records it in the first work memory 244.

その後、ステップS607において、第2圧縮伸長回路246における第2符号化処理系20の探索範囲変更回路92は、第1ワークメモリ244からずれ情報を読み出す。   Thereafter, in step S <b> 607, the search range changing circuit 92 of the second encoding processing system 20 in the second compression / decompression circuit 246 reads deviation information from the first work memory 244.

その後、ステップS608において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。   Thereafter, in step S608, the search range changing circuit 92 sets the search range of the motion vector of the second image 94 based on the read deviation information.

一方、ステップS609において、第1圧縮伸長回路242における第1符号化処理系18は、第1画像54の圧縮符号化を行い、圧縮符号化された第1画像54を画像記録処理回路238に転送する。画像記録処理回路238は、第1圧縮伸長回路242から転送された第1画像54の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   On the other hand, in step S609, the first encoding processing system 18 in the first compression / decompression circuit 242 performs compression encoding of the first image 54, and transfers the compressed and encoded first image 54 to the image recording processing circuit 238. To do. The image recording processing circuit 238 stores the compression encoded data of the first image 54 transferred from the first compression / decompression circuit 242 in the memory card 322 via the thirteenth buffer memory 316.

他方、ステップS610において、第2圧縮伸長回路246におけるコード情報作成回路106は、コード情報114を作成する。すなわち、変更された探索範囲のうち、第1画像54と一致又はほぼ一致する部分を抽出し、抽出した部分のアドレス情報等に基づいてコード情報114を作成する。   On the other hand, in step S610, the code information creation circuit 106 in the second compression / decompression circuit 246 creates the code information 114. That is, a portion that matches or substantially matches the first image 54 in the changed search range is extracted, and code information 114 is created based on the address information and the like of the extracted portion.

その後、ステップS611において、第2圧縮伸長回路246における第2符号化処理系20は、作成されたコード情報114を符号化し、符号化されたコード情報114を画像記録処理回路238に転送する。画像記録処理回路238は、第2圧縮伸長回路246から転送されたコード情報114の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   Thereafter, in step S611, the second encoding processing system 20 in the second compression / decompression circuit 246 encodes the generated code information 114 and transfers the encoded code information 114 to the image recording processing circuit 238. The image recording processing circuit 238 stores the compression encoded data of the code information 114 transferred from the second compression / decompression circuit 246 in the memory card 322 via the thirteenth buffer memory 316.

その後、ステップS612において、第2圧縮伸長回路246における第2符号化処理系20は、第2画像94のうち、残りの部分画像の圧縮符号化を行い、圧縮符号化された部分画像を画像記録処理回路238に転送する。画像記録処理回路238は、第2圧縮伸長回路246から転送された部分画像の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   Thereafter, in step S612, the second encoding processing system 20 in the second compression / decompression circuit 246 performs compression encoding of the remaining partial images in the second image 94, and records the compression-encoded partial images. Transfer to the processing circuit 238. The image recording processing circuit 238 stores the compressed encoded data of the partial image transferred from the second compression / decompression circuit 246 in the memory card 322 via the thirteenth buffer memory 316.

そして、次のステップS613において、メインCPU250は、撮影終了か否かを判別する。この判別は、撮影終了を示す操作入力があったかどうかで行われる。   In the next step S613, the main CPU 250 determines whether or not the photographing is finished. This determination is made based on whether or not there is an operation input indicating the end of shooting.

撮影終了でなければ、ステップS609に戻り、該ステップS609以降の処理を繰り返す。   If the photographing is not finished, the process returns to step S609, and the processes after step S609 are repeated.

撮影終了であれば、ステップS614に進み、メインCPU250は、今回の動画の管理データをメモリカード322に保存する。   If the shooting is finished, the process proceeds to step S614, and the main CPU 250 stores the management data of the current moving image in the memory card 322.

ステップS614での処理が終了した段階で、この第1処理動作が終了する。   When the process in step S614 ends, the first processing operation ends.

次に、本実施の形態に係るデジタルカメラ200の処理動作、特に、第3符号化装置10Cに基づく圧縮符号化処理を含めた第2処理動作について図23を参照しながら説明する。なお、第3符号化装置10Cに基づく圧縮符号化処理は、図19の構成要素も参照しながら説明する。   Next, the processing operation of the digital camera 200 according to the present embodiment, particularly the second processing operation including the compression encoding processing based on the third encoding device 10C will be described with reference to FIG. The compression encoding process based on the third encoding apparatus 10C will be described with reference to the components in FIG.

先ず、図23のステップS701において、メインCPU250は、三次元モードであるか否かを判別する。この判別は、三次元/二次元モードフラグ226の内容に基づいて行われる。三次元モードであれば次のステップS702に進み、二次元モードであれば、二次元モードの処理へ制御を移す。   First, in step S701 in FIG. 23, the main CPU 250 determines whether or not it is in the three-dimensional mode. This determination is made based on the contents of the three-dimensional / two-dimensional mode flag 226. If it is the three-dimensional mode, the process proceeds to the next step S702, and if it is the two-dimensional mode, the control is transferred to the processing of the two-dimensional mode.

ステップS702において、メインCPU250は、動画モードであるか否かを判別する。この判別は、動画用レリーズ278が操作されたかどうかで行われる。動画モードであれば次のステップS703に進み、静止画モードであれば、静止画モードの処理へ制御を移す。   In step S702, the main CPU 250 determines whether or not the moving image mode is set. This determination is made based on whether or not the movie release 278 has been operated. If it is the moving image mode, the process proceeds to the next step S703, and if it is the still image mode, the control is transferred to the processing of the still image mode.

ステップS703において、メインCPU250は、光学系のための撮影条件を設定する。この設定は、例えばEEPROM222に登録されている撮影条件に関する各種パラメータに基づいて第1カメラ12及び第2カメラ14の絞りや輻輳角等を設定する。   In step S703, the main CPU 250 sets shooting conditions for the optical system. In this setting, for example, the aperture and the convergence angle of the first camera 12 and the second camera 14 are set based on various parameters relating to the shooting conditions registered in the EEPROM 222.

ステップS704において、メインCPU250は、撮影開始の操作入力を待つ。操作入力があった段階で、メインCPU250は、第3符号化装置10Cの圧縮符号化処理に準じた処理を行う。   In step S704, the main CPU 250 waits for an operation input to start shooting. When there is an operation input, the main CPU 250 performs a process according to the compression encoding process of the third encoding apparatus 10C.

すなわち、ステップS705において、メインCPU250は、第2記憶回路236から被写体までの距離データを読み出す。   That is, in step S705, the main CPU 250 reads out distance data from the second storage circuit 236 to the subject.

その後、ステップS706において、メインCPU250は、読み出した被写体までの距離データに基づいて、ずれ情報を設定して第1ワークメモリ244に記録する。   Thereafter, in step S706, the main CPU 250 sets deviation information based on the read distance data to the subject and records it in the first work memory 244.

その後、ステップS707において、第2圧縮伸長回路246における第2符号化処理系20の探索範囲変更回路92は、記憶部90からずれ情報を読み出す。   Thereafter, in step S <b> 707, the search range changing circuit 92 of the second encoding processing system 20 in the second compression / decompression circuit 246 reads deviation information from the storage unit 90.

その後、ステップS708において、探索範囲変更回路92は、読み出したずれ情報に基づいて、第2画像94の動きベクトルの探索範囲を設定する。   Thereafter, in step S708, the search range changing circuit 92 sets the search range of the motion vector of the second image 94 based on the read deviation information.

一方、ステップS709において、第1圧縮伸長回路242における第1符号化処理系18は、第1画像54の圧縮符号化を行い、圧縮符号化された第1画像54を画像記録処理回路238に転送する。画像記録処理回路238は、第1圧縮伸長回路242から転送された第1画像54の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   On the other hand, in step S 709, the first encoding processing system 18 in the first compression / decompression circuit 242 performs compression encoding of the first image 54 and transfers the compressed and encoded first image 54 to the image recording processing circuit 238. To do. The image recording processing circuit 238 stores the compression encoded data of the first image 54 transferred from the first compression / decompression circuit 242 in the memory card 322 via the thirteenth buffer memory 316.

他方、ステップS710において、第2圧縮伸長回路246におけるコード情報作成回路106は、コード情報114を作成する。すなわち、変更された探索範囲のうち、第1画像54と一致又はほぼ一致する部分を抽出し、抽出した部分のアドレス情報等に基づいてコード情報114を作成する。   On the other hand, in step S710, the code information creation circuit 106 in the second compression / decompression circuit 246 creates the code information 114. That is, a portion that matches or substantially matches the first image 54 in the changed search range is extracted, and code information 114 is created based on the address information and the like of the extracted portion.

その後、ステップS711において、第2圧縮伸長回路246における第2符号化処理系20は、作成されたコード情報114を符号化し、符号化されたコード情報114を画像記録処理回路238に転送する。画像記録処理回路238は、第2圧縮伸長回路246から転送されたコード情報114の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   Thereafter, in step S711, the second encoding processing system 20 in the second compression / decompression circuit 246 encodes the generated code information 114 and transfers the encoded code information 114 to the image recording processing circuit 238. The image recording processing circuit 238 stores the compression encoded data of the code information 114 transferred from the second compression / decompression circuit 246 in the memory card 322 via the thirteenth buffer memory 316.

その後、ステップS712において、第2圧縮伸長回路246における第2符号化処理系20は、第2画像94のうち、残りの部分画像の圧縮符号化を行い、圧縮符号化された部分画像を画像記録処理回路238に転送する。画像記録処理回路238は、第2圧縮伸長回路246から転送された部分画像の圧縮符号化データを第13バッファメモリ316を介してメモリカード322に保存する。   Thereafter, in step S712, the second encoding processing system 20 in the second compression / decompression circuit 246 performs compression encoding of the remaining partial images in the second image 94, and records the compression-encoded partial images. Transfer to the processing circuit 238. The image recording processing circuit 238 stores the compressed encoded data of the partial image transferred from the second compression / decompression circuit 246 in the memory card 322 via the thirteenth buffer memory 316.

そして、次のステップS713において、メインCPU250は、撮影終了か否かを判別する。この判別は、撮影終了を示す操作入力があったかどうかで行われる。   In the next step S713, the main CPU 250 determines whether or not the photographing is finished. This determination is made based on whether or not there is an operation input indicating the end of shooting.

撮影終了でなければ、ステップS705に戻り、該ステップS705以降の処理を繰り返す。   If the photographing is not finished, the process returns to step S705, and the processes after step S705 are repeated.

撮影終了であれば、ステップS714に進み、メインCPU250は、今回の動画の管理データをメモリカード322に保存する。   If the shooting is finished, the process proceeds to step S714, and the main CPU 250 stores the management data of the current moving image in the memory card 322.

ステップS714での処理が終了した段階で、この第2処理動作が終了する。   When the processing in step S714 is completed, the second processing operation ends.

次に、本実施の形態に係るデジタルカメラ200の処理動作、特に、復号化装置124に基づく伸長復号化処理を含めた第3処理動作について図24を参照しながら説明する。なお、復号化装置124に基づく圧縮復号化処理は、図13の構成要素も参照しながら説明する。   Next, the processing operation of the digital camera 200 according to the present embodiment, in particular, the third processing operation including the decompression decoding process based on the decoding device 124 will be described with reference to FIG. The compression decoding process based on the decoding device 124 will be described with reference to the components shown in FIG.

先ず、図24のステップS801において、メインCPU250は、画像の選択完了を待つ。この画像の選択においては、圧縮符号化してメモリカード322に記録した複数の動画のサムネイル画像を液晶表示装置332に表示し、操作者がそのうちの1つの画像を選択する等によって行われる。画像が選択された段階で、ステップS802に進み、メインCPU250は、選択した画像に関する管理情報(記録媒体のIDコードや格納アドレス等)を例えばEEPROM222から読み出す。   First, in step S801 in FIG. 24, the main CPU 250 waits for completion of image selection. This image selection is performed by displaying thumbnail images of a plurality of moving images that have been compression-encoded and recorded on the memory card 322 on the liquid crystal display device 332, and the operator selects one of the images. When the image is selected, the process advances to step S802, and the main CPU 250 reads management information (such as an ID code and storage address of the recording medium) related to the selected image from the EEPROM 222, for example.

その後、ステップS803において、三次元モードであるか否かを判別する。この判別は、三次元/二次元モードフラグ226の内容に基づいて行われる。三次元モードであれば次のステップS804に進み、二次元モードであれば、二次元モードの処理へ制御を移す。   Thereafter, in step S803, it is determined whether or not the mode is the three-dimensional mode. This determination is made based on the contents of the three-dimensional / two-dimensional mode flag 226. If it is the three-dimensional mode, the process proceeds to the next step S804, and if it is the two-dimensional mode, the control is transferred to the processing of the two-dimensional mode.

ステップS804において、メインCPU250は、動画モードであるか否かを判別する。この判別は、動画用レリーズ278が操作されたかどうかで行われる。動画モードであれば次のステップS805に進み、静止画モードであれば、静止画モードの処理へ制御を移す。   In step S804, the main CPU 250 determines whether or not the moving image mode is set. This determination is made based on whether or not the movie release 278 has been operated. If it is the moving image mode, the process proceeds to the next step S805, and if it is the still image mode, the control is transferred to the processing of the still image mode.

ステップS805以降から、メインCPU250は、復号化装置124の伸長復号化処理に準じた処理を行う。   From step S805, the main CPU 250 performs processing according to the decompression decoding processing of the decoding device 124.

すなわち、ステップS805において、第1圧縮伸長回路242における第1復号化処理系126は、第1画像54の伸長復号化を行い、伸長復号化された第1画像54を画像表示処理回路240に転送する。画像表示処理回路240は、第1圧縮伸長回路242から転送された第1画像54の復元データを画像データ変換回路328及び表示用駆動回路330を介して液晶表示装置332に出力することによって、該液晶表示装置332の画面に第1画像54を表示する。   That is, in step S805, the first decoding processing system 126 in the first compression / decompression circuit 242 performs decompression decoding of the first image 54, and transfers the decompressed first image 54 to the image display processing circuit 240. To do. The image display processing circuit 240 outputs the restored data of the first image 54 transferred from the first compression / decompression circuit 242 to the liquid crystal display device 332 via the image data conversion circuit 328 and the display drive circuit 330, thereby The first image 54 is displayed on the screen of the liquid crystal display device 332.

その後、ステップS806において、第2圧縮伸長回路246における第2復号化処理系128は、第2画像94の符号化データに含まれているコード情報114を読み出してコード情報処理回路156に送信する。   Thereafter, in step S806, the second decoding processing system 128 in the second compression / decompression circuit 246 reads out the code information 114 included in the encoded data of the second image 94 and transmits it to the code information processing circuit 156.

その後、ステップS807において、コード情報処理回路156は、コード情報114に含まれるアドレスコードに基づいて、第1復号化回路132にて復元された第1画像54を利用して第2画像94の一部を復元する。   Thereafter, in step S 807, the code information processing circuit 156 uses the first image 54 restored by the first decoding circuit 132 based on the address code included in the code information 114 and uses the first image 54. Restore the part.

その後、ステップS808において、第2圧縮伸長回路246における第2復号化回路152及び第4動き補償回路154は、第2画像94の部分画像の伸長復号化を行う。   Thereafter, in step S808, the second decoding circuit 152 and the fourth motion compensation circuit 154 in the second compression / decompression circuit 246 perform decompression decoding of the partial image of the second image 94.

その後、ステップS809において、第2圧縮伸長回路246における合成回路158は、コード情報114に基づいて復元された第2画像94の一部と、第2復号化回路152及び第4動き補償回路154によって復元された部分画像とを合成することにより、第2画像94に復元し、該第2画像94を画像表示処理回路240に転送する。画像表示処理回路240は、第2圧縮伸長回路246から転送された第2画像94の復元データを画像データ変換回路328及び表示用駆動回路330を介して液晶表示装置332に出力することによって、該液晶表示装置332の画面に第2画像94を表示する。   Thereafter, in step S809, the synthesizing circuit 158 in the second compression / decompression circuit 246 uses a part of the second image 94 restored based on the code information 114, the second decoding circuit 152, and the fourth motion compensation circuit 154. By synthesizing the restored partial image, the second image 94 is restored, and the second image 94 is transferred to the image display processing circuit 240. The image display processing circuit 240 outputs the restored data of the second image 94 transferred from the second compression / decompression circuit 246 to the liquid crystal display device 332 via the image data conversion circuit 328 and the display drive circuit 330, thereby The second image 94 is displayed on the screen of the liquid crystal display device 332.

そして、次のステップS810において、メインCPU250は、再生終了か否かを判別する。この判別は、再生終了を示す操作入力があったかどうかで行われる。   In the next step S810, the main CPU 250 determines whether or not the reproduction is finished. This determination is made based on whether or not there is an operation input indicating the end of reproduction.

再生終了でなければ、ステップS811に進み、メインCPU250は、現在再生中の画像データが終了(EOD:End of Data)であるか否かを判別する。画像データが終了でなければ、ステップS805に戻り、該ステップS805以降の処理を繰り返す。   If the reproduction is not finished, the process proceeds to step S811, and the main CPU 250 determines whether or not the image data currently being reproduced is the end (EOD: End of Data). If the image data is not finished, the process returns to step S805, and the processes after step S805 are repeated.

再生終了あるいは画像データが終了した段階で、次のステップS812に進み、液晶表示装置332へのサムネイル画像の表示等の再生終了処理を行って、この第3処理動作が終了する。   When the reproduction is completed or the image data is completed, the process proceeds to the next step S812, where reproduction completion processing such as displaying a thumbnail image on the liquid crystal display device 332 is performed, and this third processing operation is completed.

本実施の形態に係るデジタルカメラにおいては、符号化処理、復号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる第2符号化装置、第3符号化装置、復号化装置と同様の機能を持たせるようにしたので、デジタルカメラで処理される三次元画像やマルチ画像の符号化処理、復号化処理の高速化、消費電力の低減化、並びに符号化後のデータ量の削減を図ることができる。   In the digital camera according to the present embodiment, the second encoding device and the third encoding device can increase the speed of encoding processing, decoding processing, reduce power consumption, and reduce the amount of data after encoding. Since it has the same function as the encoding device and the decoding device, the encoding process of the three-dimensional image or multi-image processed by the digital camera, the speed of the decoding process, the reduction of power consumption, and The amount of data after encoding can be reduced.

なお、本発明に係る画像符号化装置、画像復号化装置、画像符号化方法、画像復号化方法、撮像装置、撮像装置の制御方法及びプログラムは、上述の実施の形態に限らず、本発明の要旨を逸脱することなく、種々の構成を採り得ることはもちろんである。   Note that the image encoding device, the image decoding device, the image encoding method, the image decoding method, the imaging device, the control method for the imaging device, and the program according to the present invention are not limited to the above-described embodiments, and It goes without saying that various configurations can be adopted without departing from the gist.

第1符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of a 1st encoding apparatus. 第1符号化処理系の構成を示すブロック図である。It is a block diagram which shows the structure of a 1st encoding process system. 第1動き補償回路の動作を示す説明図である。It is explanatory drawing which shows operation | movement of a 1st motion compensation circuit. 第2符号化処理系の構成を示すブロック図である。It is a block diagram which shows the structure of a 2nd encoding process system. 第1カメラと第2カメラとが水平方向に沿って併設された場合の第1画像と第2画像の水平方向のずれを示す説明図である。It is explanatory drawing which shows the shift | offset | difference of the horizontal direction of a 1st image and a 2nd image when a 1st camera and a 2nd camera are provided along with the horizontal direction. 第1カメラと第2カメラとが垂直方向に沿って併設された場合の第1画像と第2画像の垂直方向のずれを示す説明図である。It is explanatory drawing which shows the shift | offset | difference of the perpendicular direction of the 1st image and 2nd image when a 1st camera and a 2nd camera are installed side by side along the perpendicular direction. 4つのカメラをマトリクス状に配設した場合の4つの画像の水平方向のずれと垂直方向のずれを示す説明図である。It is explanatory drawing which shows the shift | offset | difference of the horizontal direction of four images at the time of arrange | positioning four cameras in matrix form, and the shift | offset | difference of a perpendicular direction. コード情報の内訳を示す説明図である。It is explanatory drawing which shows the breakdown of code information. 第1符号化装置の基本的な処理動作を示すフローチャートである。It is a flowchart which shows the basic processing operation of a 1st encoding apparatus. 第1符号化装置における第1符号化処理系の具体的な処理動作を示すフローチャートである。It is a flowchart which shows the specific process operation | movement of the 1st encoding process type | system | group in a 1st encoding apparatus. 第1符号化装置における第2符号化処理系の具体的な処理動作を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the concrete process operation | movement of the 2nd encoding process system in a 1st encoding apparatus. 第1符号化装置における第2符号化処理系の具体的な処理動作を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the concrete process operation | movement of the 2nd encoding process system in a 1st encoding apparatus. 復号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of a decoding apparatus. 第1復号化処理系の構成を示すブロック図である。It is a block diagram which shows the structure of a 1st decoding processing system. 第2復号化処理系の構成を示すブロック図である。It is a block diagram which shows the structure of a 2nd decoding processing system. 復号化装置の基本的な処理動作を示すフローチャートである。It is a flowchart which shows the basic processing operation | movement of a decoding apparatus. 第2符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of a 2nd encoding apparatus. 第2符号化装置の基本的な処理動作を示すフローチャートである。It is a flowchart which shows the basic processing operation of a 2nd encoding apparatus. 第3符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of a 3rd encoding apparatus. 第3符号化装置の基本的な処理動作を示すフローチャートである。It is a flowchart which shows the basic processing operation of a 3rd encoding apparatus. 本実施の形態に係るデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera which concerns on this Embodiment. 本実施の形態に係るデジタルカメラの処理動作、特に、第2符号化装置に基づく圧縮符号化処理を含めた第1処理動作を示すフローチャートである。It is a flowchart which shows the 1st process operation | movement including the process operation | movement of the digital camera which concerns on this Embodiment, especially the compression encoding process based on a 2nd encoding apparatus. 本実施の形態に係るデジタルカメラの処理動作、特に、第3符号化装置に基づく圧縮符号化処理を含めた第2処理動作を示すフローチャートである。It is a flowchart which shows the 2nd processing operation including the processing operation of the digital camera which concerns on this Embodiment, especially the compression encoding process based on a 3rd encoding apparatus. 本実施の形態に係るデジタルカメラの処理動作、特に、復号化装置に基づく伸長復号化処理を含めた第3処理動作を示すフローチャートである。It is a flowchart which shows the 3rd process operation | movement including the process operation | movement of the digital camera which concerns on this Embodiment, especially the expansion | extension decoding process based on a decoding apparatus.

符号の説明Explanation of symbols

10A〜10C…第1符号化装置〜第3符号化装置
12…第1カメラ 14…第2カメラ
16…記録媒体 18…第1符号化処理系
20…第2符号化処理系 24…第1符号化回路
26…第1動き補償回路 52…第1動き補償予測器
54、54a〜54c…第1画像 60…第2符号化回路
62…第2動き補償回路 88…第2動き補償予測器
90…記憶部 92…探索範囲変更回路
94…第2画像 96…ずれ
100…第1抽出回路 102…第2抽出回路
104…比較回路 106…コード情報作成回路
108…コード情報転送回路 110…圧縮処理テーブル作成回路
112…第3抽出回路 114…コード情報
124…復号化装置 126…第1復号化処理系
128…第2復号化処理系 132…第1復号化回路
134…第3動き補償回路 148…第3動き補償予測器
152…第2復号化回路 154…第4動き補償回路
156…コード情報処理回路 158…合成回路
172…第4動き補償予測器 186…光学系情報検出回路
188…第1ずれ情報設定回路 190…測距回路
192…第2ずれ情報設定回路 200…デジタルカメラ
230…カメラ間隔/輻輳角処理回路 234…測距処理回路
238…画像記録処理回路 240…画像表示処理回路
242…第1圧縮伸長回路 246…第2圧縮伸長回路
250…メインCPU 322…メモリカード
332…液晶表示装置
10A to 10C... 1st encoding device to 3rd encoding device 12... 1st camera 14... 2nd camera 16... Recording medium 18 1st encoding processing system 20 2nd encoding processing system 24. 1st motion compensation circuit 52 ... 1st motion compensation predictor 54, 54a-54c ... 1st image 60 ... 2nd encoding circuit 62 ... 2nd motion compensation circuit 88 ... 2nd motion compensation predictor 90 ... Storage unit 92 ... Search range change circuit 94 ... Second image 96 ... Deviation 100 ... First extraction circuit 102 ... Second extraction circuit 104 ... Comparison circuit 106 ... Code information creation circuit 108 ... Code information transfer circuit 110 ... Compression processing table creation Circuit 112 ... Third extraction circuit 114 ... Code information 124 ... Decoding device 126 ... First decoding processing system 128 ... Second decoding processing system 132 ... First decoding circuit 134 ... Third motion compensation circuit 148 ... First Motion compensation predictor 152 ... second decoding circuit 154 ... fourth motion compensation circuit 156 ... code information processing circuit 158 ... synthesis circuit 172 ... fourth motion compensation predictor 186 ... optical system information detection circuit 188 ... first deviation information setting Circuit 190 ... Ranging circuit 192 ... Second deviation information setting circuit 200 ... Digital camera 230 ... Camera interval / convergence angle processing circuit 234 ... Ranging processing circuit 238 ... Image recording processing circuit 240 ... Image display processing circuit 242 ... First compression Decompression circuit 246 ... Second compression / decompression circuit 250 ... Main CPU 322 ... Memory card 332 ... Liquid crystal display device

Claims (22)

視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、
視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする画像符号化装置。
First encoding processing means for encoding a first image which is one of parallax images and outputting the first image as first encoded data;
Second encoding processing means for encoding a second image that is the other of the parallax images and outputting the second image as second encoded data;
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
A storage unit that stores shift information of the second image with respect to the first image;
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
An image coding apparatus comprising: a second motion compensation unit configured to perform motion compensation prediction on a portion of the second image that does not overlap with the first image.
請求項1記載の画像符号化装置において、
被写体を撮像して前記第1画像を得る第1カメラと前記被写体を撮像して前記第2画像を得る第2カメラとの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記ずれ情報を設定して前記記憶部に記憶する手段を有することを特徴とする画像符号化装置。
The image encoding device according to claim 1,
The convergence angle between the first camera that captures the subject and obtains the first image and the second camera that captures the subject and obtains the second image, and the optical axis of the first camera and the light of the second camera An image encoding apparatus comprising: means for setting the deviation information based on at least one of the axis intervals and storing the information in the storage unit.
請求項1又は2記載の画像符号化装置において、
前記探索手段は、
前記探索範囲設定手段にて設定された前記探索範囲に含まれる複数のマクロブロックと、前記第1画像に含まれる複数のマクロブロックとをそれぞれ順番に比較する比較手段を有し
前記コード情報生成手段は、
前記比較手段からの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けた前記コード情報を出力することを特徴とする画像符号化装置。
The image encoding device according to claim 1 or 2,
The search means includes
Comparing means for sequentially comparing a plurality of macroblocks included in the search range set by the search range setting means and a plurality of macroblocks included in the first image,
The code information generating means includes
When the comparison result from the comparison means indicates that the comparison results match or substantially match, a comparison is made between the macroblock that is the target of the comparison result among the plurality of macroblocks of the second image. the image coding apparatus according to claim and Turkey to output the code information associated with the macroblock of the first image.
請求項1記載の画像符号化装置において、
前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段を有し、
前記探索手段は、前記記憶部に記憶された前記マクロブロック単位のずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索することを特徴とする画像符号化装置。
The image encoding device according to claim 1,
Based on the depth information of the macroblock unit related to the first image, there is means for setting the shift information of the macroblock unit and storing it in the storage unit,
The image search apparatus characterized in that the search means searches for a portion of the second image that overlaps the first image based on the deviation information in units of macroblocks stored in the storage unit. .
請求項1又は4記載の画像符号化装置において、
前記探索手段は、
前記探索範囲設定手段にて設定された前記探索範囲に含まれるマクロブロックと、前記第1画像に含まれるマクロブロックとを比較する比較手段を有し、
前記コード情報生成手段は、
前記比較手段からの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けた前記コード情報を出力することを特徴とする画像符号化装置。
The image encoding device according to claim 1 or 4,
The search means includes
Comparing means for comparing macroblocks included in the search range set by the search range setting means with macroblocks included in the first image ;
The code information generating means includes
When the comparison result from the comparison means indicates that the comparison results match or substantially match, a comparison is made between the macroblock that is the target of the comparison result among the plurality of macroblocks of the second image. the image coding apparatus according to claim and Turkey to output the code information associated with the macroblock of the first image.
請求項1記載の画像符号化装置から出力された符号化データを復号化処理する画像復号化装置であって、
前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理手段と、
前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理手段とを有し、
前記第1復号化処理手段は、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償手段を有し、
前記第2復号化処理手段は、
前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元手段と、
前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償手段とを有することを特徴とする画像復号化装置。
An image decoding device for decoding encoded data output from the image encoding device according to claim 1,
First decoding processing means for decoding first encoded data from the image encoding device and restoring the first encoded data;
A second decoding processing unit that decodes the second encoded data including code information that associates the first image with the second image from the image encoding device and restores the second encoded data to the second image; And
The first decoding processing means includes third motion compensation means for performing motion compensation prediction of decoded data of the first encoded data,
The second decoding processing means includes
Based on the code information decoded included in the decoded data of the second encoded data, among the second image, and the overlapping portion restoring means for restoring the parts common to those in the first Ima,
An image decoding apparatus comprising: fourth motion compensation means for performing motion compensation prediction on a portion of the decoded data of the second encoded data that does not overlap with the first image.
請求項6記載の画像復号化装置において、
前記重複部分復元手段は、
前記コード情報において関連付けされた前記第2画像のマクロブロックに対応する第1画像のマクロブロックによって、前記第1画像と重複する部分を復元することを特徴とする画像復号化装置。
The image decoding device according to claim 6, wherein
The overlapping part restoring means includes:
Picture decoding apparatus by the macro block of the associated a first image corresponding to the macro blocks of the second image, characterized in that to restore the parts common to those in the first Ima in the code information.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、
前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶する手段と、
前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、
前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする撮像装置。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
A storage unit that stores shift information of the second image with respect to the first image;
Based on at least one of the convergence angle of the first camera and the second camera and the distance between the optical axis of the first camera and the optical axis of the second camera, the second image relative to the first image Means for setting deviation information and storing it in the storage unit;
First encoding processing means for encoding the first image and outputting it as first encoded data;
A second encoding processing means for encoding the second image and outputting it as second encoded data;
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
An imaging apparatus comprising: a second motion compensation unit configured to perform motion compensation prediction on a portion of the second image that does not overlap with the first image.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部と、
前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段と、
視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段と、
視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段とを有し、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とする撮像装置。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
A storage unit that stores shift information of the second image with respect to the first image;
Means for setting deviation information in units of macroblocks based on depth information in units of macroblocks relating to the first image and storing the information in the storage unit;
First encoding processing means for encoding a first image which is one of parallax images and outputting the first image as first encoded data;
Second encoding processing means for encoding a second image that is the other of the parallax images and outputting the second image as second encoded data;
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
An imaging apparatus comprising: a second motion compensation unit configured to perform motion compensation prediction on a portion of the second image that does not overlap with the first image.
視差画像の一方である第1画像に対する前記視差画像の他方である第2画像のずれ情報が記憶された記憶部を有する画像符号化装置にて使用され、
前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、
前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、
前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、
前記第2符号化処理ステップは、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする画像符号化方法。
Used in an image encoding device having a storage unit in which shift information of a second image that is the other of the parallax images with respect to the first image that is one of the parallax images is stored;
A first encoding processing step of encoding the first image and outputting it as first encoded data;
A second encoding process step of encoding the second image and outputting as second encoded data;
The first encoding processing step includes a first motion compensation step for performing motion compensation prediction of the first image,
The second encoding processing step includes:
A search range setting step for setting a search range for searching for a portion overlapping the first image in the second image based on the shift information stored in the storage unit;
A search step for searching for a portion overlapping the first image with respect to the set search range;
A code information generating step for generating code information in which the first image and the second image are associated with each other for a portion overlapping with the searched first image;
An image coding method comprising: a second motion compensation step of performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
請求項10記載の画像符号化方法において、
さらに、
被写体を撮像して前記第1画像を得る第1カメラと前記被写体を撮像して前記第2画像を得る第2カメラとの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記ずれ情報を設定して前記記憶部に記憶するステップを有することを特徴とする画像符号化方法。
The image encoding method according to claim 10, wherein
further,
The convergence angle between the first camera that captures the subject and obtains the first image and the second camera that captures the subject and obtains the second image, and the optical axis of the first camera and the light of the second camera An image encoding method comprising: setting the deviation information based on at least one of the axis intervals and storing the deviation information in the storage unit.
請求項10又は11記載の画像符号化方法において、
前記探索ステップは、
前記探索範囲設定ステップにて設定された前記探索範囲に含まれる複数のマクロブロックと、前記第1画像に含まれる複数のマクロブロックとをそれぞれ順番に比較する比較ステップを有し、
前記コード情報生成ステップは、
前記比較ステップからの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けたコード情報を出力することを特徴とする画像符号化方法。
The image encoding method according to claim 10 or 11,
The searching step includes
A comparison step of sequentially comparing a plurality of macroblocks included in the search range set in the search range setting step and a plurality of macroblocks included in the first image ;
The code information generation step includes
When the comparison result from the comparison step indicates that the comparison results match or substantially match, a comparison is made with the macroblock that is the target of the comparison result among the plurality of macroblocks of the second image. image coding method characterized by the Turkey to output the code information associated with the macroblock of the first image.
請求項10記載の画像符号化方法において、
さらに、
前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶するステップを有し、
前記探索ステップは、前記記憶部に記憶された前記マクロブロック単位のずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索することを特徴とする画像符号化方法。
The image encoding method according to claim 10, wherein
further,
Based on the depth information in units of macroblocks related to the first image, the step of setting and storing in the storage unit shift information in units of macroblocks,
The searching step searches for a portion of the second image that overlaps the first image based on the macroblock unit shift information stored in the storage unit. .
請求項10又は13記載の画像符号化方法において、
前記探索ステップは、
前記探索範囲設定ステップにて設定された前記探索範囲に含まれるマクロブロックと、前記第1画像に含まれるマクロブロックとを比較する比較ステップを有し
前記コード情報生成ステップは、
前記比較ステップからの比較結果が一致又はほぼ一致することを示す場合に、前記第2画像の複数のマクロブロックのうち、前記比較結果の対象となっているマクロブロックと、該マクロブロックと比較した前記第1画像のマクロブロックとを関連付けたコード情報を出力することを特徴とする画像符号化方法。
The image encoding method according to claim 10 or 13,
The searching step includes
A comparison step of comparing a macroblock included in the search range set in the search range setting step with a macroblock included in the first image;
The code information generation step includes
When the comparison result from the comparison step indicates that the comparison results match or substantially match, a comparison is made with the macroblock that is the target of the comparison result among the plurality of macroblocks of the second image. image coding method characterized by the Turkey to output the code information associated with the macroblock of the first image.
請求項10記載の画像符号化方法を使用した画像符号化装置から出力された符号化データを復号化処理する画像復号化装置にて使用され、
前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理ステップと、
前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理ステップとを有し、
前記第1復号化処理ステップは、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償ステップを有し、
前記第2復号化処理ステップは、
前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元ステップと、
前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償ステップとを有することを特徴とする画像復号化方法。
It is used in an image decoding apparatus that decodes encoded data output from an image encoding apparatus using the image encoding method according to claim 10,
A first decoding processing step of decoding the first encoded data from the image encoding device to restore the first image;
And a second decoding processing step of decoding the second encoded data including code information in which the first image and the second image from the image encoding device are associated with each other and restoring the second image. And
The first decoding processing step includes a third motion compensation step for performing motion compensation prediction of decoded data of the first encoded data,
The second decoding processing step includes
On the basis of said code information decoded included in the decoded data of the second encoded data, among the second image, and the overlapping portion restoration step of restoring a portion that overlaps with the first Ima,
An image decoding method comprising: a fourth motion compensation step of performing motion compensation prediction on a portion of the decoded data of the second encoded data that does not overlap with the first image.
請求項15記載の画像復号化方法において、
前記重複部分復元ステップは、
前記コード情報において関連付けされた前記第2画像のマクロブロックに対応する第1画像のマクロブロックによって、前記第1画像と重複する部分を復元することを特徴とする画像復号化方法。
The image decoding method according to claim 15, wherein
The overlapping part restoration step includes:
First by the macro block of the picture, the image decoding method characterized by restoring the parts common to those in the first stroke image corresponding to the macro block of the associated said second image in said code information.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置の制御方法において、
前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶するステップと、
前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、
前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、
前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、
前記第2符号化処理ステップは、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする撮像装置の制御方法。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
In a control method for an imaging apparatus, comprising: a storage unit in which shift information of the second image with respect to the first image is stored.
Based on at least one of the convergence angle of the first camera and the second camera and the distance between the optical axis of the first camera and the optical axis of the second camera, the second image relative to the first image Setting deviation information and storing it in the storage unit;
A first encoding processing step of encoding the first image and outputting it as first encoded data;
A second encoding process step of encoding the second image and outputting as second encoded data;
The first encoding processing step includes a first motion compensation step for performing motion compensation prediction of the first image,
The second encoding processing step includes:
A search range setting step for setting a search range for searching for a portion overlapping the first image in the second image based on the shift information stored in the storage unit;
A search step for searching for a portion overlapping the first image with respect to the set search range;
A code information generating step for generating code information in which the first image and the second image are associated with each other for a portion overlapping with the searched first image;
A control method for an imaging apparatus, comprising: a second motion compensation step of performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置の制御方法において、
前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶するステップと、
前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理ステップと、
視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理ステップとを有し、
前記第1符号化処理ステップは、前記第1画像の動き補償予測を行う第1動き補償ステップを有し、
前記第2符号化処理ステップは、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定ステップと、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索ステップと、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成ステップと、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償ステップとを有することを特徴とする撮像装置の制御方法。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
In a control method for an imaging apparatus, comprising: a storage unit in which shift information of the second image with respect to the first image is stored.
Based on the macroblock unit depth information related to the first image, setting macroblock unit shift information and storing it in the storage unit;
A first encoding processing step of encoding the first image and outputting it as first encoded data;
A second encoding processing step that encodes the second image that is the other of the parallax images and outputs the second image as second encoded data;
The first encoding processing step includes a first motion compensation step for performing motion compensation prediction of the first image,
The second encoding processing step includes:
A search range setting step for setting a search range for searching for a portion overlapping the first image in the second image based on the shift information stored in the storage unit;
A search step for searching for a portion overlapping the first image with respect to the set search range;
A code information generating step for generating code information in which the first image and the second image are associated with each other for a portion overlapping with the searched first image;
A control method for an imaging apparatus, comprising: a second motion compensation step of performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
視差画像の一方である第1画像に対する前記視差画像の他方である第2画像のずれ情報が記憶された記憶部を有するコンピュータを具備した画像符号化装置を、
視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、
視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、
として機能させるためのプログラムであって、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とするプログラム。
An image encoding device including a computer having a storage unit in which shift information of a second image that is the other of the parallax images with respect to the first image that is one of the parallax images is stored
A first encoding processing unit that encodes a first image that is one of parallax images and outputs the first image as first encoded data;
A second encoding processing unit that encodes a second image that is the other of the parallax images and outputs the second image as second encoded data;
Is a program for functioning as
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
A program comprising: second motion compensation means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
請求項19記載の画像符号化装置から出力された符号化データを復号化処理するコンピュータを具備した画像復号化装置を、
前記画像符号化装置からの第1符号化データを復号して前記第1画像に復元する第1復号化処理手段、
前記画像符号化装置からの前記第1画像と前記第2画像とを関連付けしたコード情報を含む前記第2符号化データを復号して前記第2画像に復元する第2復号化処理手段、
として機能させるためのプログラムであって、
前記第1復号化処理手段は、前記第1符号化データの復号化データの動き補償予測を行う第3動き補償手段を有し、
前記第2復号化処理手段は、
前記第2符号化データの復号データに含まれる復号された前記コード情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を復元する重複部分復元手段と、
前記第2符号化データの復号データのうち、前記第1画像と重複しない部分に対して動き補償予測を行う第4動き補償手段とを有することを特徴とするプログラム。
An image decoding device comprising a computer for decoding encoded data output from the image encoding device according to claim 19.
First decoding processing means for decoding the first encoded data from the image encoding device to restore the first image;
Second decoding processing means for decoding the second encoded data including code information relating the first image and the second image from the image encoding device and restoring the second encoded data to the second image;
Is a program for functioning as
The first decoding processing means includes third motion compensation means for performing motion compensation prediction of decoded data of the first encoded data,
The second decoding processing means includes
Based on the code information decoded included in the decoded data of the second encoded data, among the second image, and the overlapping portion restoring means for restoring the parts common to those in the first Ima,
A program comprising: fourth motion compensation means for performing motion compensation prediction on a portion of the decoded data of the second encoded data that does not overlap with the first image.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置を、
前記第1カメラと前記第2カメラの輻輳角、並びに前記第1カメラの光軸と前記第2カメラの光軸の間隔のうち、少なくとも一方に基づいて、前記第1画像に対する前記第2画像のずれ情報を設定して前記記憶部に記憶する手段、
前記第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、
前記第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、
として機能させるためのプログラムであって、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とするプログラム。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
An image pickup apparatus having a storage unit in which shift information of the second image with respect to the first image is stored;
Based on at least one of the convergence angle of the first camera and the second camera and the distance between the optical axis of the first camera and the optical axis of the second camera, the second image relative to the first image Means for setting deviation information and storing it in the storage unit;
First encoding processing means for encoding the first image and outputting it as first encoded data;
Second encoding processing means for encoding the second image and outputting it as second encoded data;
Is a program for functioning as
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
A program comprising: second motion compensation means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
被写体を撮像して視差画像の一方である第1画像を得る第1カメラと、
前記被写体を撮像して前記視差画像の他方である第2画像を得る第2カメラと、
前記第1画像に対する前記第2画像のずれ情報が記憶された記憶部とを有する撮像装置を、
前記第1画像に関するマクロブロック単位の奥行き情報に基づいて、マクロブロック単位のずれ情報を設定して前記記憶部に記憶する手段、
視差画像の一方である第1画像を符号化処理して第1符号化データとして出力する第1符号化処理手段、
視差画像の他方である第2画像を符号化処理して第2符号化データとして出力する第2符号化処理手段、
として機能させるためのプログラムであって、
前記第1符号化処理手段は、前記第1画像の動き補償予測を行う第1動き補償手段を有し、
前記第2符号化処理手段は、
前記記憶部に記憶された前記ずれ情報に基づいて、前記第2画像のうち、前記第1画像と重複する部分を探索するための探索範囲を設定する探索範囲設定手段と、
設定された前記探索範囲について前記第1画像と重複する部分を探索する探索手段と、
探索された前記第1画像と重複する部分について、前記第1画像と前記第2画像とを関連付けしたコード情報を生成するコード情報生成手段と、
前記第2画像のうち、前記第1画像と重複しない部分について動き補償予測を行う第2動き補償手段とを有することを特徴とするプログラム。
A first camera that captures a subject and obtains a first image that is one of parallax images;
A second camera that images the subject and obtains a second image that is the other of the parallax images;
An image pickup apparatus having a storage unit in which shift information of the second image with respect to the first image is stored;
Means for setting macroblock unit shift information based on the macroblock unit depth information relating to the first image and storing the information in the storage unit;
A first encoding processing unit that encodes a first image that is one of parallax images and outputs the first image as first encoded data;
A second encoding processing unit that encodes a second image that is the other of the parallax images and outputs the second image as second encoded data;
Is a program for functioning as
The first encoding processing means includes first motion compensation means for performing motion compensation prediction of the first image,
The second encoding processing means includes
Search range setting means for setting a search range for searching for a portion of the second image that overlaps the first image based on the shift information stored in the storage unit;
Search means for searching for a portion overlapping the first image for the set search range;
Code information generating means for generating code information associating the first image and the second image with respect to a portion overlapping the searched first image;
A program comprising: second motion compensation means for performing motion compensation prediction on a portion of the second image that does not overlap with the first image.
JP2007045961A 2007-02-26 2007-02-26 Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program Expired - Fee Related JP4810465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007045961A JP4810465B2 (en) 2007-02-26 2007-02-26 Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007045961A JP4810465B2 (en) 2007-02-26 2007-02-26 Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program

Publications (2)

Publication Number Publication Date
JP2008211502A JP2008211502A (en) 2008-09-11
JP4810465B2 true JP4810465B2 (en) 2011-11-09

Family

ID=39787435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007045961A Expired - Fee Related JP4810465B2 (en) 2007-02-26 2007-02-26 Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program

Country Status (1)

Country Link
JP (1) JP4810465B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013183200A (en) * 2012-02-29 2013-09-12 Oki Electric Ind Co Ltd Motion compensation control apparatus, motion compensation control program, and encoder
JP2014120917A (en) * 2012-12-17 2014-06-30 Fujitsu Ltd Moving image encoder, moving image encoding method and moving image encoding program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715748A (en) * 1993-06-24 1995-01-17 Canon Inc Image recording / reproducing device
JP3157384B2 (en) * 1994-06-20 2001-04-16 三洋電機株式会社 3D image device
JP2000165909A (en) * 1998-11-26 2000-06-16 Sanyo Electric Co Ltd Method and device for image compressing processing

Also Published As

Publication number Publication date
JP2008211502A (en) 2008-09-11

Similar Documents

Publication Publication Date Title
JP3863510B2 (en) Motion vector encoding / decoding method and apparatus
US7697036B2 (en) Digital camera for capturing both still images and moving pictures
KR101027353B1 (en) Electronic video image stabilization
JP5830548B2 (en) Multi-view video encoding method and apparatus, and decoding method and apparatus thereof
RU2444856C2 (en) Method of encoding video signal and method of decoding, apparatus for realising said methods and data media storing programmes for realising said methods
JP4095664B2 (en) Video encoding device
JP2012257198A (en) Stereoscopic image encoding apparatus, method therefor, and image pickup apparatus having stereoscopic image encoding apparatus
US7075985B2 (en) Methods and systems for efficient video compression by recording various state signals of video cameras
WO2014010224A1 (en) Video compression device, video decoding device, image compression device, image decoding device, imaging device, and program
US20070025443A1 (en) Moving picture coding apparatus, method and program
JP4810465B2 (en) Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, imaging apparatus, imaging apparatus control method, and program
JP6021153B2 (en) Method and apparatus for decoding video images
US10356419B2 (en) Encoding device and encoding method
JP2009164865A (en) Video encoding method, decoding method, encoding device, decoding device, program thereof, and computer-readable recording medium
JP5974691B2 (en) MOVING IMAGE COMPRESSION DEVICE, IMAGING DEVICE, AND PROGRAM
JP4670663B2 (en) Image generating apparatus and image generating program
JP2004180345A (en) Captured image recording device
JPH09261530A (en) Video recorder
JP7759260B2 (en) Encoding device and method
JP2002300600A (en) Stereoscopic image encoding device and stereoscopic image decoding device
JP2000165909A (en) Method and device for image compressing processing
JP2008011079A (en) Moving picture encoding apparatus, moving picture decoding apparatus, and moving picture transmission system
JP5974692B2 (en) Moving picture decoding apparatus and program
JP5053944B2 (en) Imaging device
JP4834535B2 (en) Imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090908

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110107

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110118

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110412

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110613

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

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

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

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees