JP2011125041A - Image processing apparatus, method, and program - Google Patents

Image processing apparatus, method, and program Download PDF

Info

Publication number
JP2011125041A
JP2011125041A JP2011003607A JP2011003607A JP2011125041A JP 2011125041 A JP2011125041 A JP 2011125041A JP 2011003607 A JP2011003607 A JP 2011003607A JP 2011003607 A JP2011003607 A JP 2011003607A JP 2011125041 A JP2011125041 A JP 2011125041A
Authority
JP
Japan
Prior art keywords
image
original
images
interpolated
original images
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011003607A
Other languages
Japanese (ja)
Other versions
JP5243562B2 (en
Inventor
Mikio Watanabe
幹夫 渡辺
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 JP2011003607A priority Critical patent/JP5243562B2/en
Publication of JP2011125041A publication Critical patent/JP2011125041A/en
Application granted granted Critical
Publication of JP5243562B2 publication Critical patent/JP5243562B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stereoscopic And Panoramic Photography (AREA)
  • Television Signal Processing For Recording (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To easily manage an original image and an interpolation image when generating the interpolation image from the original image. <P>SOLUTION: An interpolation image generating section 5 generates the interpolation image from the original images L1 and R1 obtained by photographing a subject from different viewpoints. A file generating section 6 describes a viewpoint order of the original images L1, R1 and the interpolation image, and an identification code showing the type of the images to a header of each image, to generate one image file including the original images L1, R1 and the interpolation image. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、被写体を異なる視点から見た複数の原画像の視点を補間するための補間画像を生成する画像処理装置および方法並びに画像処理方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to an image processing apparatus and method for generating an interpolated image for interpolating the viewpoints of a plurality of original images when a subject is viewed from different viewpoints, and a program for causing a computer to execute the image processing method.

異なる位置に配置された少なくとも一対の撮影手段を用いて画像を取得するステレオカメラ等の複眼撮影装置にて撮影を行うことにより、視差を用いて立体視を行うことが可能な立体画像を取得することができる。このような複眼撮影装置においては、一対の撮影手段の光軸に輻輳角を与えて同一被写体を異なる視点から撮影することにより左右2つの画像を取得し、この2つの画像から視差を利用して立体視可能な立体画像を作成している。   A stereoscopic image that can be stereoscopically viewed using parallax is acquired by shooting with a compound-eye imaging device such as a stereo camera that acquires an image using at least a pair of imaging units arranged at different positions. be able to. In such a compound eye photographing apparatus, a convergence angle is given to the optical axes of a pair of photographing means, and the same subject is photographed from different viewpoints to obtain two left and right images, and parallax is used from these two images. A stereoscopic image that can be viewed stereoscopically is created.

ここで、このような複眼撮影装置において取得された複数の画像を1つの画像ファイルとして保存する手法が提案されている(特許文献1参照)。特許文献1に記載された手法によれば、複数の画像を1つの画像ファイルにより管理できるため、画像ファイル数が増加してしまうことを防止できる。   Here, a method of saving a plurality of images acquired in such a compound eye photographing apparatus as one image file has been proposed (see Patent Document 1). According to the technique described in Patent Document 1, since a plurality of images can be managed by one image file, it is possible to prevent the number of image files from increasing.

特開2005−252754号公報JP 2005-252754 A

ところで、上述したように立体画像を取得するための撮影手段の輻輳角が大きいと、取得された画像間の視差が大きくなる。画像間の視差が大きくなると、立体表示面上での左右それぞれの画像の水平方向のずれ量が大きくなり違和感を生じる。この場合、撮影手段間の視点位置を予測して、2つの画像を補間する補間画像を作成することにより、隣接する画像間の視差を小さくすることができるため、立体視を良好に行うことが可能となる。なお、補間画像は複数の画像の間のみならず、その外側においても予測して作成することが可能である。   By the way, as described above, when the angle of convergence of the photographing unit for acquiring the stereoscopic image is large, the parallax between the acquired images increases. When the parallax between images increases, the amount of horizontal displacement between the left and right images on the stereoscopic display surface increases, resulting in an uncomfortable feeling. In this case, by predicting the viewpoint position between the photographing means and creating an interpolated image that interpolates two images, the parallax between adjacent images can be reduced, so that stereoscopic viewing can be performed well. It becomes possible. The interpolated image can be predicted and created not only between a plurality of images but also outside the plurality of images.

しかしながら、このように補間画像を作成した場合、撮影により取得された画像である原画像と補間画像とは別個のファイルとして管理される。このため、原画像と補間画像とが混同されやすく、補間画像を原画像から再度作成したり、ファイル容量を低減するために補間画像のみを削除する際に、誤って原画像が削除されてしまうおそれがある。   However, when an interpolation image is created in this way, the original image and the interpolation image, which are images acquired by shooting, are managed as separate files. For this reason, the original image and the interpolated image are easily confused, and when the interpolated image is created again from the original image or only the interpolated image is deleted to reduce the file capacity, the original image is erroneously deleted. There is a fear.

本発明は上記事情に鑑みなされたものであり、原画像および補間画像の管理を容易に行うことを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to easily manage an original image and an interpolation image.

本発明による画像処理装置は、被写体を異なる視点から見た複数の原画像を取得する画像取得手段と、
前記複数の原画像から、該複数の原画像間または該複数の原画像の外側の視点を補間する少なくとも1つの補間画像を生成する補間画像生成手段と、
前記複数の原画像および前記補間画像に、前記原画像および前記補間画像の種別を表す識別情報、および視点順序を表す視点情報を付与し、該識別情報および該視点情報が付与された前記複数の原画像および前記補間画像を関連づけて保存する保存手段とを備えたことを特徴とするものである。
An image processing apparatus according to the present invention includes an image acquisition unit that acquires a plurality of original images obtained by viewing a subject from different viewpoints;
Interpolated image generating means for generating at least one interpolated image for interpolating a viewpoint between the plurality of original images or outside the plurality of original images from the plurality of original images;
The plurality of original images and the interpolated images are provided with identification information indicating the types of the original images and the interpolated images, and viewpoint information indicating the viewpoint order, and the plurality of the identification information and the plurality of viewpoint information provided with the viewpoint information The image processing apparatus includes a storage unit that stores the original image and the interpolation image in association with each other.

「複数の原画像および補間画像を関連づけて保存する」とは、複数の原画像および補間画像が管理上一体不可分の関係となることを意味し、具体的には複数の原画像および補間画像を同一のフォルダに保存する、複数の原画像および補間画像に共通のファイル名を付与する、複数の原画像および補間画像を1つのファイルに保存する、および複数の原画像および補間画像の少なくとも1つのヘッダ領域に他の画像のファイル名を記録する等の手法により、複数の原画像および補間画像を関連づけて保存することができる。なお、複数の原画像および補間画像を関連づけて保存した場合においても、原画像単体または補間画像単体へのアクセス等の操作は許容されるものである。   “Saving a plurality of original images and interpolated images in association with each other” means that the plurality of original images and the interpolated images are inseparable from each other for management purposes. Save in the same folder, give a common file name to a plurality of original images and interpolation images, save a plurality of original images and interpolation images in one file, and at least one of the plurality of original images and interpolation images A plurality of original images and interpolated images can be stored in association with each other by a method such as recording a file name of another image in the header area. Even when a plurality of original images and interpolated images are stored in association with each other, operations such as access to the original image or the interpolated image alone are permitted.

なお、本発明による画像処理装置においては、前記保存手段を、前記複数の原画像および前記補間画像を1つの画像ファイルとして保存する手段としてもよい。   In the image processing apparatus according to the present invention, the storage means may be means for storing the plurality of original images and the interpolated image as one image file.

また、本発明による画像処理装置においては、前記保存手段を、前記画像ファイルにおいて、前記補間画像を前記原画像よりも後の領域に保存する手段としてもよい。   In the image processing apparatus according to the present invention, the storage unit may be a unit that stores the interpolated image in a region after the original image in the image file.

「後の領域に保存する」とは、例えば、原画像および補間画像が記録媒体上の連続するアドレス空間に一体的に記録されているときに、補間画像が配置される領域が原画像の領域よりも下位の領域にあるようにするものであってもよい。   “Save in the subsequent area” means that, for example, when the original image and the interpolated image are integrally recorded in a continuous address space on the recording medium, the area where the interpolated image is arranged is the area of the original image. It may be arranged to be in a lower area.

また、本発明による画像処理装置においては、前記保存手段を、ファイル容量を低減する指示がなされた場合、前記補間画像のみを削除する手段としてもよい。   In the image processing apparatus according to the present invention, the storage unit may be a unit that deletes only the interpolation image when an instruction to reduce the file capacity is given.

「ファイル容量を低減する指示」とは、例えば、原画像および補間画像の画像ファイルを記録する記録メディアの空き容量を増やす指示、画像ファイルを削除する指示、およびファイル容量が小さい方が処理を容易に行うことができる、例え画像ファイルを転送する指示等が挙げられる。   “Instructions to reduce the file capacity” include, for example, instructions to increase the free capacity of the recording medium that records the image files of the original image and the interpolated image, instructions to delete the image file, and processing with a smaller file capacity is easier For example, an instruction to transfer an image file can be given.

また、「ファイル容量を低減する指示」は、関連付けられた原画像および補間画像の画像ファイル単位で行われてもよい。例えば、削除によりファイル容量を低減する場合において、削除メニューとして、選択された画像についての原画像および補間画像のすべての削除を指示するものと、選択された画像についての容量低減を指示するものとを用意しておき、後者が指示された場合には、補間画像のみを削除する処理を行うようにしてもよい。また、例えば、ユーザが原画像および補間画像のうちの一部の画像(例えば、1つの補間画像)の削除を指示したような場合には、その画像に関連する画像が存在することをユーザに通知するとともに、上述した削除メニュー(または、削除メニューのうちの少なくとも容量低減指示)が用意されていることをユーザに提示するようにしてもよい。   Further, the “instruction to reduce the file capacity” may be performed in units of image files of the associated original image and interpolated image. For example, in the case of reducing the file capacity by deleting, as the deletion menu, an instruction to delete all of the original image and the interpolated image for the selected image, and an instruction to reduce the capacity of the selected image If the latter is instructed, the process of deleting only the interpolated image may be performed. Further, for example, when the user instructs deletion of a part of the original image and the interpolated image (for example, one interpolated image), the user is informed that there is an image related to the image. In addition to notifying, the user may be notified that the above-described deletion menu (or at least a capacity reduction instruction from the deletion menu) is prepared.

また、本発明による画像処理装置においては、前記原画像を撮影により取得した場合において、前記補間画像生成手段を、前記原画像を取得した撮影手段の位置関係に基づいて、前記補間画像の数を決定する手段としてもよい。   In the image processing apparatus according to the present invention, when the original image is acquired by photographing, the interpolated image generating means determines the number of the interpolated images based on the positional relationship of the photographing means that acquired the original image. It is good also as a means to determine.

原画像を取得する撮影手段の位置関係としては、例えば複数の撮影手段における輻輳角および基線長の少なくとも一方を用いることができる。   For example, at least one of a convergence angle and a baseline length in a plurality of imaging units can be used as the positional relationship of the imaging units that acquire the original image.

また、本発明による撮影装置は、前記原画像を取得するために互いに異なる位置に配設された複数の撮影手段と、
本発明による画像処理装置とを備えたことを特徴とするものである。
In addition, the imaging device according to the present invention includes a plurality of imaging units arranged at different positions to acquire the original image,
The image processing apparatus according to the present invention is provided.

なお、本発明による画像処理方法をコンピュータに実行させるためのプログラムとして提供してもよい。   The image processing method according to the present invention may be provided as a program for causing a computer to execute the image processing method.

本発明によれば、複数の原画像および補間画像に、原画像および補間画像の種別を表す識別情報および視点順序を表す視点情報を付与し、識別情報および視点情報が付与された複数の原画像および補間画像を関連づけて保存するようにしたものである。このため、原画像および補間画像の管理が容易となる。とくに、原画像および補間画像の種別を表す識別情報を付与しているため、削除時に誤って原画像を削除してしまうことを防止できる。また、視点順序を表す視点情報も付与しているため、立体画像の生成および補間画像の再生成も容易に行うことができる。   According to the present invention, identification information indicating the type of the original image and the interpolation image and viewpoint information indicating the viewpoint order are assigned to the plurality of original images and interpolation images, and the plurality of original images to which the identification information and viewpoint information are assigned. In addition, the interpolation image is stored in association with each other. For this reason, management of an original image and an interpolation image becomes easy. In particular, since the identification information indicating the type of the original image and the interpolation image is given, it is possible to prevent the original image from being accidentally deleted at the time of deletion. In addition, since viewpoint information representing the viewpoint order is also given, it is possible to easily generate a stereoscopic image and regenerate an interpolated image.

また、複数の原画像および補間画像を1つの画像ファイルとして保存することにより、ファイル数を増加させることがなくなり、その結果、複数の原画像および補間画像の管理をより容易なものとすることができる。   Further, by storing a plurality of original images and interpolation images as one image file, the number of files is not increased, and as a result, management of the plurality of original images and interpolation images can be made easier. it can.

この場合、補間画像を原画像よりも後の領域に保存することにより、補間画像を削除した際の画像ファイルの再生成が不要となるため、補間画像の削除が容易となる。   In this case, by storing the interpolation image in a region after the original image, it is not necessary to regenerate the image file when the interpolation image is deleted, so that the interpolation image can be easily deleted.

また、ファイル容量を低減する指示がなされたときに補間画像のみを削除することにより、容易にファイル容量を低減することができる。   Further, by deleting only the interpolated image when an instruction to reduce the file capacity is given, the file capacity can be easily reduced.

また、原画像を撮影により取得した場合において、原画像を取得した撮影手段の位置関係に基づいて補間画像の数を決定することにより、適切な視点数となるように補間画像を作成することができる。   In addition, when the original image is acquired by photographing, it is possible to create the interpolated image so as to obtain an appropriate number of viewpoints by determining the number of the interpolated images based on the positional relationship of the photographing unit that acquired the original image. it can.

本発明の実施形態による画像処理装置を適用した複眼撮影装置の構成を示す概略ブロック図1 is a schematic block diagram showing a configuration of a compound eye photographing apparatus to which an image processing apparatus according to an embodiment of the present invention is applied. 撮影部の構成を示す図Diagram showing the configuration of the shooting unit 撮影部の配置を説明するための図The figure for demonstrating arrangement | positioning of an imaging | photography part 原画像を示す図Figure showing the original image 補間画像の生成を説明するための図Diagram for explaining generation of interpolation image 立体形状モデルと原画像を得た画像投影面との関係を示す図The figure which shows the relationship between a solid shape model and the image projection surface which acquired the original image 本実施形態における原画像ファイルのファイル構成を示す図The figure which shows the file structure of the original image file in this embodiment 本実施形態における補間画像を含む画像ファイルのファイル構成を示す図The figure which shows the file structure of the image file containing the interpolation image in this embodiment 本実施形態において行われる補間時に行われる処理を示すフローチャートThe flowchart which shows the process performed at the time of the interpolation performed in this embodiment ファイル容量を低減する処理が指示された場合に行われる処理を示すフローチャートThe flowchart which shows the process performed when the process to reduce the file capacity is instructed

以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態による画像処理装置を適用した複眼撮影装置の構成を示す概略ブロック図である。図1に示すように本実施形態による複眼撮影装置1は、2つの撮影部2A,2B、撮影制御部3、画像処理部4、補間画像生成部5、ファイル生成部6、立体画像生成部7、フレームバッファ8、メディア制御部9、各種入力を行う操作ボタン等からなる入力部10、各種表示を行う液晶モニタ等の表示部11、並びに制御部12を備え、各部がバス13により接続されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration of a compound eye photographing apparatus to which an image processing apparatus according to an embodiment of the present invention is applied. As shown in FIG. 1, the compound eye photographing apparatus 1 according to the present embodiment includes two photographing units 2A and 2B, a photographing control unit 3, an image processing unit 4, an interpolated image generating unit 5, a file generating unit 6, and a stereoscopic image generating unit 7. , A frame buffer 8, a media control unit 9, an input unit 10 including operation buttons for performing various inputs, a display unit 11 such as a liquid crystal monitor for performing various displays, and a control unit 12. Yes.

図2は撮影部2A,2Bの構成を示す図である。図2に示すように、撮影部2A,2Bは、レンズ20A,20B、絞り21A,21B、シャッタ22A,22B、CCD23A,23B、アナログフロントエンド(AFE)24A,24BおよびA/D変換部25A,25Bをそれぞれ備える。なお、撮影部2A,2Bは、図3に示すように、被写体を見込む輻輳角αを持って、あらかじめ定められた基線長Kとなるように配置されている。なお、輻輳角αおよび基線長Kの情報は後述するROM12Cに記憶されている。   FIG. 2 is a diagram illustrating the configuration of the imaging units 2A and 2B. As shown in FIG. 2, the photographing units 2A and 2B include lenses 20A and 20B, diaphragms 21A and 21B, shutters 22A and 22B, CCDs 23A and 23B, analog front ends (AFE) 24A and 24B, and A / D conversion units 25A, 25B is provided. As shown in FIG. 3, the photographing units 2A and 2B are arranged so as to have a predetermined baseline length K with a convergence angle α that allows the subject to be seen. Information about the convergence angle α and the baseline length K is stored in the ROM 12C described later.

レンズ20A,20Bは、被写体に焦点を合わせるためのフォーカスレンズ、ズーム機能を実現するためのズームレンズ等の複数の機能別レンズにより構成され、撮影制御部3が行うAF処理により得られる合焦データおよび不図示のズームレバーを操作することにより得られるズームデータに基づいて、不図示のレンズ駆動部によりその位置が調整される。   The lenses 20A and 20B are composed of a plurality of functional lenses such as a focus lens for focusing on a subject and a zoom lens for realizing a zoom function, and focus data obtained by AF processing performed by the imaging control unit 3. Based on zoom data obtained by operating a zoom lever (not shown), the position is adjusted by a lens driving unit (not shown).

絞り21A,21Bは、撮影制御部3が行うAE処理により得られる絞り値データに基づいて、不図示の絞り駆動部により絞り径の調整が行われる。   The apertures 21A and 21B are adjusted in aperture diameter by an aperture drive unit (not shown) based on aperture value data obtained by AE processing performed by the imaging control unit 3.

シャッタ22A,22Bはメカニカルシャッタであり、不図示のシャッタ駆動部により、AE処理により得られるシャッタスピードに応じて駆動される。   The shutters 22A and 22B are mechanical shutters and are driven by a shutter driving unit (not shown) according to the shutter speed obtained by the AE process.

CCD23A,23Bは、多数の受光素子を2次元的に配列した光電面を有しており、被写体光がこの光電面に結像して光電変換されてアナログ撮像信号が取得される。また、CCD23A,23Bの前面にはR,G,B各色のフィルタが規則的に配列されたカラーフィルタが配設されている。   The CCDs 23A and 23B have a photoelectric surface in which a large number of light receiving elements are two-dimensionally arranged, and subject light is imaged on the photoelectric surface and subjected to photoelectric conversion to acquire an analog imaging signal. In addition, color filters in which R, G, and B color filters are regularly arranged are arranged on the front surfaces of the CCDs 23A and 23B.

AFE24A,24Bは、CCD23A,23Bから出力されるアナログ撮像信号に対して、アナログ撮像信号のノイズを除去する処理、およびアナログ撮像信号のゲインを調節する処理(以下アナログ処理とする)を施す。   The AFEs 24A and 24B perform processing for removing noise of the analog imaging signal and processing for adjusting the gain of the analog imaging signal (hereinafter referred to as analog processing) for the analog imaging signals output from the CCDs 23A and 23B.

A/D変換部25A,25Bは、AFE24A,24Bによりアナログ処理が施されたアナログ撮像信号をデジタル信号に変換する。なお、撮影部2A,2Bのそれぞれにより取得されるデジタルの画像データにより表される画像を画像L1,R1とする。   The A / D converters 25A and 25B convert the analog imaging signals subjected to analog processing by the AFEs 24A and 24B into digital signals. Note that images L1 and R1 are images represented by digital image data acquired by the photographing units 2A and 2B, respectively.

撮影制御部3は、不図示のAF処理部およびAE処理部からなる。AF処理部は入力部10に含まれるレリーズボタンの半押し操作により撮影部2A,2Bが取得したプレ画像に基づいてレンズ20A,20Bの焦点距離を決定し、撮影部2A,2Bに出力する。AE処理部は、プレ画像に基づいて絞り値とシャッタ速度とを決定し、撮影部2A,2Bに出力する。なお、AF処理およびAE処理を行うことなく、あらかじめ定められたフォーカス位置、絞り値およびシャッタ速度を用いて撮影を行うことも可能である。   The imaging control unit 3 includes an AF processing unit and an AE processing unit (not shown). The AF processing unit determines the focal lengths of the lenses 20A and 20B based on the pre-images acquired by the imaging units 2A and 2B by half-pressing the release button included in the input unit 10, and outputs the focal lengths to the imaging units 2A and 2B. The AE processing unit determines the aperture value and the shutter speed based on the pre-image, and outputs them to the photographing units 2A and 2B. Note that it is also possible to perform shooting using a predetermined focus position, aperture value, and shutter speed without performing AF processing and AE processing.

また、撮影制御部3は、レリーズボタンの全押し操作により、撮影部2A,2Bに対して立体画像生成用の画像L1,R1の本画像を取得させる指示を行う。なお、レリーズボタンが操作される前は、撮影制御部3は、撮影部2A,2Bに対して撮影範囲を確認させるための本画像よりも画素数が少ないスルー画像を取得させる指示を行う。   The photographing control unit 3 instructs the photographing units 2A and 2B to acquire the main images of the stereoscopic image generation images L1 and R1 by pressing the release button fully. Note that before the release button is operated, the photographing control unit 3 instructs the photographing units 2A and 2B to acquire a through image having a smaller number of pixels than the main image for confirming the photographing range.

ここで、画像L1,R1は、図3に示すように被写体を異なる2つの撮影位置において撮影を行うことにより取得されるものであり、図4に示すように、画像L1,R1に含まれる被写体が撮影位置の違いに応じた視差を有するものとなっている。なお、画像L1,R1は撮影部2A,2Bの撮影位置、すなわち被写体に向かって左側および右側の撮影位置において取得され、画像L1,R1を基準として立体画像を生成するものであるため、以降の説明においては、画像L1,R1を原画像L1,R1と称するものとする。なお、立体画像生成時に左側に表示される画像を画像L1、右側に表示される画像を画像R1とする。   Here, the images L1 and R1 are obtained by photographing the subject at two different photographing positions as shown in FIG. 3, and the subjects included in the images L1 and R1 as shown in FIG. Has a parallax corresponding to a difference in photographing position. The images L1 and R1 are acquired at the photographing positions of the photographing units 2A and 2B, that is, the left and right photographing positions toward the subject, and generate a stereoscopic image with the images L1 and R1 as a reference. In the description, the images L1 and R1 are referred to as original images L1 and R1. Note that an image displayed on the left side when generating a stereoscopic image is an image L1, and an image displayed on the right side is an image R1.

また、本実施形態においては、2つの原画像L1,R1から立体画像を生成するものであるが、3以上の撮影部を備え、3以上の異なる撮影位置において撮影を行うことにより取得した3以上の原画像から複数の画像を生成するものであってもよい。   In the present embodiment, a stereoscopic image is generated from the two original images L1 and R1, but three or more acquired by performing photographing at three or more different photographing positions with three or more photographing units. A plurality of images may be generated from the original image.

画像処理部4は、撮影部2A,2Bが取得した原画像L1,R1のデジタルの画像データに対して、撮影部2A,2Bの画角のずれ、ズーム倍率の相違、CCDの回転による画像のずれ、撮影部2A,2Bが輻輳角αを持って被写体を撮影することにより生じる台形歪み等を補正する補正処理、並びにホワイトバランスを調整する処理、階調補正、シャープネス補正、および色補正等の画質補正処理を施す。なお、画像処理部4における処理後の原画像L1,R1についても処理前の参照符号L1,R1を用いるものとする。   The image processing unit 4 uses the digital image data of the original images L1 and R1 acquired by the imaging units 2A and 2B to shift the angle of view of the imaging units 2A and 2B, the difference in zoom magnification, and the image generated by the rotation of the CCD. Misalignment, correction processing for correcting trapezoidal distortion and the like caused by shooting the subject with the convergence angle α, and processing for adjusting white balance, gradation correction, sharpness correction, color correction, etc. Apply image quality correction processing. Note that the reference symbols L1 and R1 before processing are also used for the original images L1 and R1 after processing in the image processing unit 4.

補間画像生成部5は、撮影により取得された原画像L1,R1またはあらかじめ撮影により取得されてメディア9Aに記録された原画像L1,R1から少なくとも1つの補間画像を生成する。なお、本実施形態においては、撮影部2A,2Bの輻輳角αの大きさに応じた数の補間画像を作成する。   The interpolated image generation unit 5 generates at least one interpolated image from the original images L1 and R1 acquired by shooting or the original images L1 and R1 acquired in advance and recorded on the medium 9A. In the present embodiment, the number of interpolated images corresponding to the size of the convergence angle α of the photographing units 2A and 2B is created.

ここで、立体画像を作成して立体視を行う場合において、撮影部2A,2Bの輻輳角が例えば1度以上のように大きくとなると、原画像L1,R1間の視差が大きくなることから、立体表示面上での左右それぞれの画像の水平方向のずれ量が大きくなり違和感を生じる。このため、補間画像生成部5は、ROM12Cに記述されたまたは後述する画像ファイルのヘッダ情報として記述された撮影部2A,2Bの輻輳角αが1度未満であるか否かを判定し、1度未満でない場合には輻輳角αをN+1により除した値が1未満となるような最大のNの値を補間数として設定する。すなわち下記の式(1)の関係を満たす最大のNを求めることにより、補間数Nを設定する。そして、設定した補間数Nの補間画像を生成する。
1度<α/(N+1) (1)
なお、本実施形態による複眼撮影装置1の撮影部2A,2Bとは輻輳角が異なる撮影装置により取得された画像から、本実施形態による複眼撮影装置1において補間画像を生成する場合がある。この場合、その画像の画像ファイルのヘッダに輻輳角が記述されていればよいが、輻輳角が記述されていない場合がある。この場合、補間画像生成部5は、原画像間の互いに対応する対応点を求め、対応点に基づいて輻輳角を算出する。
Here, when a stereoscopic image is created and stereoscopically viewed, if the convergence angle of the imaging units 2A and 2B is increased to, for example, 1 degree or more, the parallax between the original images L1 and R1 increases. The amount of horizontal displacement between the left and right images on the stereoscopic display surface increases, resulting in a feeling of strangeness. Therefore, the interpolated image generation unit 5 determines whether or not the convergence angle α of the imaging units 2A and 2B described in the ROM 12C or described as header information of the image file described later is less than 1 degree. If not, the maximum N value is set as the number of interpolations so that the value obtained by dividing the convergence angle α by N + 1 is less than 1. That is, the interpolation number N is set by obtaining the maximum N that satisfies the relationship of the following equation (1). Then, an interpolation image of the set interpolation number N is generated.
1 degree <α / (N + 1) (1)
Note that an interpolated image may be generated in the compound eye photographing apparatus 1 according to the present embodiment from an image acquired by a photographing apparatus having a different convergence angle from the photographing units 2A and 2B of the compound eye photographing apparatus 1 according to the present embodiment. In this case, the convergence angle only needs to be described in the header of the image file of the image, but the convergence angle may not be described. In this case, the interpolated image generation unit 5 obtains corresponding points corresponding to each other between the original images, and calculates a convergence angle based on the corresponding points.

図5は補間画像の生成を説明するための図である。なお、ここでは補間数は2とする。図5に示すように、補間画像生成部5は、原画像L1,R1から2つの補間画像H1,H2を生成する。なお、隣接する原画像L1と補間画像H1、補間画像H1と補間画像H2、および補間画像H2と原画像R1における輻輳角が等しくなるように補間画像H1,H2を生成する。   FIG. 5 is a diagram for explaining generation of an interpolation image. Here, the number of interpolations is 2. As shown in FIG. 5, the interpolated image generation unit 5 generates two interpolated images H1 and H2 from the original images L1 and R1. Interpolated images H1 and H2 are generated so that the convergence angles in adjacent original image L1 and interpolated image H1, interpolated image H1 and interpolated image H2, and interpolated image H2 and original image R1 are equal.

ここで、補間画像生成部5は、原画像L1,R1に含まれる対応する画素間の視差が徐々に小さくなるように、原画像L1,R1をモーフィングによって加工することにより補間画像H1,H2を生成する。具体的には、左右の画像において互いに対応する対応点を検出し、対応点を直線または曲線で結び、直線または曲線を分割して疑似対応点を算出し、原画像L1,R1を疑似対応点に対応させるように変形することにより、補間画像H1,H2を生成する。また、例えば特開2002−190020号公報等に記載された公知の任意の手法を用いることも可能である。   Here, the interpolated image generation unit 5 processes the original images L1 and R1 by morphing so that the parallax between corresponding pixels included in the original images L1 and R1 is gradually reduced. Generate. Specifically, corresponding points corresponding to each other in the left and right images are detected, the corresponding points are connected by a straight line or a curve, a pseudo corresponding point is calculated by dividing the straight line or the curve, and the original images L1 and R1 are converted into pseudo corresponding points. The interpolation images H1 and H2 are generated by deforming to correspond to. Also, any known method described in, for example, Japanese Patent Laid-Open No. 2002-190020 can be used.

なお、ここでは原画像L1,R1を見る視点の間に補間画像を生成しているが、図5に示す補間画像H3のように、原画像L1の外側の視点を予測して補間画像H3を生成するようにしてもよい。   Here, the interpolation image is generated between the viewpoints of viewing the original images L1 and R1, but the interpolation image H3 is predicted by predicting the viewpoint outside the original image L1 as in the interpolation image H3 shown in FIG. You may make it produce | generate.

また、モーフィングに代えて、原画像L1,R1に含まれる被写体の立体形状モデルを作成し、立体形状モデルから補間画像を生成するようにしてもよい。なお、立体形状モデルは、原画像L1,R1間の対応点を求め、対応点間の視差に基づいて三角測量の原理により撮影位置から被写体上の対応点までの距離を算出することにより作成することができる。ここで、撮影時においては、被写体上の各点と撮影部2A,2Bの焦点とを結ぶ直線が、画像が投影される画像投影面(撮影部2A,2BのCCD23A,23Bの撮像面に相当する面)と交差する点の集合が、投影画像すなわち原画像L1,R1となる。図6は立体形状モデルと原画像L1,R1を得た画像投影面との関係を示す図である。なお、ここでは説明のための立体形状モデルを立方体としている。したがって、図6に示すように、原画像L1,R1の画像投影面間において、補間数に相当する仮想的な画像投影面Tを設定し(図6においては補間数は1)、仮想的な画像投影面Tへの投影画像を求めることにより、補間画像を生成するようにしてもよい。   Further, instead of morphing, a solid shape model of a subject included in the original images L1 and R1 may be created, and an interpolation image may be generated from the solid shape model. The three-dimensional shape model is created by obtaining corresponding points between the original images L1 and R1 and calculating the distance from the shooting position to the corresponding point on the subject based on the principle of triangulation based on the parallax between the corresponding points. be able to. Here, at the time of shooting, a straight line connecting each point on the subject and the focal points of the shooting units 2A and 2B corresponds to an image projection plane on which an image is projected (the imaging planes of the CCDs 23A and 23B of the shooting units 2A and 2B). A set of points intersecting with the plane to be the projection image, that is, the original images L1 and R1. FIG. 6 is a diagram showing the relationship between the three-dimensional shape model and the image projection plane from which the original images L1 and R1 are obtained. Here, the three-dimensional model for explanation is a cube. Therefore, as shown in FIG. 6, a virtual image projection plane T corresponding to the number of interpolations is set between the image projection planes of the original images L1 and R1 (the number of interpolations is 1 in FIG. 6). An interpolation image may be generated by obtaining a projection image on the image projection plane T.

ファイル生成部6は、原画像L1,R1の画像データに対して、例えばJPEG等の圧縮形式で圧縮処理を行い、原画像ファイルF0を生成する。また、補間画像H1,H2が生成された場合には、原画像L1,R1および補間画像H1,H2の画像データから画像ファイルF1を生成する。この画像ファイルには、Exifフォーマット等に基づいて、撮影日時等の付帯情報が格納されたヘッダが付加される。   The file generation unit 6 performs a compression process on the image data of the original images L1 and R1 in a compression format such as JPEG to generate an original image file F0. When the interpolated images H1 and H2 are generated, the image file F1 is generated from the image data of the original images L1 and R1 and the interpolated images H1 and H2. Based on the Exif format or the like, a header storing additional information such as the shooting date and time is added to the image file.

図7は本実施形態における原画像ファイルのファイル構成を示す図である。図7に示すように画像ファイルF0は、原画像L1のヘッダ領域(ヘッダ1)40、原画像L1の画像データ領域41、原画像R1のヘッダ領域(ヘッダ2)42、および原画像R1の画像データ領域43がこの順序にて並べられることにより構成される。   FIG. 7 is a diagram showing the file structure of the original image file in the present embodiment. As shown in FIG. 7, the image file F0 includes the header area (header 1) 40 of the original image L1, the image data area 41 of the original image L1, the header area (header 2) 42 of the original image R1, and the image of the original image R1. The data area 43 is configured by arranging in this order.

原画像L1のヘッダ領域40にはアドレス開始位置、属性情報および付帯情報がヘッダ情報として記述される。アドレス開始位置は、原画像R1のヘッダ領域42のアドレスの開始位置であり、リストとして記述される。属性情報は、視点順序、画像の識別コードおよび撮影条件情報が記述される。ここで、視点順序は原画像L1,R1を左から見たときの視点順序であり、原画像L1および原画像R1のそれぞれについて、視点順序は1,2となる。また、画像の識別コードはヘッダ領域に対応する画像データ領域に格納される画像が原画像か補間画像かを示す情報であり、原画像の場合は1、補間画像の場合は2となる。また、撮影条件情報は、撮影部2A,2Bの輻輳角αおよび基線長Kの情報であり、ROM12Cに記憶されたものが用いられる。なお、原画像L1の視点順序は1、画像の識別コードは原画像を表す1となる。また、付帯情報は、撮影日時等の情報である。   In the header area 40 of the original image L1, an address start position, attribute information, and incidental information are described as header information. The address start position is the start position of the address of the header area 42 of the original image R1, and is described as a list. The attribute information includes a viewpoint order, an image identification code, and shooting condition information. Here, the viewpoint order is the viewpoint order when the original images L1 and R1 are viewed from the left, and the viewpoint order is 1 and 2 for each of the original image L1 and the original image R1. The image identification code is information indicating whether the image stored in the image data area corresponding to the header area is an original image or an interpolated image, and is 1 for an original image and 2 for an interpolated image. Further, the imaging condition information is information on the convergence angle α and the baseline length K of the imaging units 2A and 2B, and information stored in the ROM 12C is used. Note that the viewpoint order of the original image L1 is 1, and the identification code of the image is 1 representing the original image. Further, the incidental information is information such as the shooting date and time.

原画像R1のヘッダ領域42には、原画像R1の属性情報、すなわち視点順序(=2)および画像の識別コード(=1)がヘッダ情報として記述される。   In the header area 42 of the original image R1, the attribute information of the original image R1, that is, the viewpoint order (= 2) and the image identification code (= 1) are described as header information.

図8は本実施形態における補間画像を含む画像ファイルのファイル構成を示す図である。図8に示すように画像ファイルF1は、原画像L1のヘッダ領域(ヘッダ1)50、原画像L1の画像データ領域51、原画像R1のヘッダ領域(ヘッダ2)52、原画像R1の画像データ領域53、補間画像H1のヘッダ領域(ヘッダ3)54、補間画像H1の画像データ領域55、補間画像H2のヘッダ領域(ヘッダ4)56および補間画像H2の画像データ領域57がこの順序にて並べられることにより構成される。   FIG. 8 is a diagram showing a file structure of an image file including an interpolation image in the present embodiment. As shown in FIG. 8, the image file F1 includes a header area (header 1) 50 of the original image L1, an image data area 51 of the original image L1, a header area (header 2) 52 of the original image R1, and image data of the original image R1. The area 53, the header area (header 3) 54 of the interpolation image H1, the image data area 55 of the interpolation image H1, the header area (header 4) 56 of the interpolation image H2, and the image data area 57 of the interpolation image H2 are arranged in this order. It is constituted by being done.

原画像L1のヘッダ領域50には、アドレス開始位置、属性情報および付帯情報がヘッダ情報として記述される。アドレス開始位置は、原画像R1および補間画像H1,H2のヘッダ領域52,54,56(すなわちヘッダ2,3,4)のアドレスの開始位置であり、リストとして記述される。属性情報は、視点順序、画像の識別コードおよび撮影条件情報が記述される。ここで、視点順序は原画像L1,R1および補間画像H1,H2を左から見たときの視点順序であり、原画像L1、補間画像H1、補間画像H2および原画像R1のそれぞれについて、視点順序は1,2,3,4となる。また、画像の識別コードは、ヘッダ領域に対応する画像データ領域に格納される画像が原画像か補間画像かを示す情報であり、原画像の場合は1、補間画像の場合は2となる。また、撮影条件情報は、撮影部2A,2Bの輻輳角αおよび基線長Kの情報である。なお、原画像L1の視点順序は1、画像の識別コードは原画像を表す1となる。また、付帯情報は、撮影日時等の情報である。   In the header area 50 of the original image L1, an address start position, attribute information, and incidental information are described as header information. The address start position is the address start position of the header areas 52, 54, and 56 (that is, the headers 2, 3, and 4) of the original image R1 and the interpolation images H1 and H2, and is described as a list. The attribute information includes a viewpoint order, an image identification code, and shooting condition information. Here, the viewpoint order is the viewpoint order when the original images L1, R1 and the interpolated images H1, H2 are viewed from the left, and the viewpoint order is determined for each of the original image L1, the interpolated image H1, the interpolated image H2, and the original image R1. Are 1, 2, 3, and 4. The image identification code is information indicating whether the image stored in the image data area corresponding to the header area is an original image or an interpolated image, and is 1 for an original image and 2 for an interpolated image. The imaging condition information is information on the convergence angle α and the baseline length K of the imaging units 2A and 2B. The viewpoint order of the original image L1 is 1, and the image identification code is 1 representing the original image. Further, the incidental information is information such as the shooting date and time.

原画像R1のヘッダ領域52には、原画像R1の属性情報、すなわち視点順序(=4)および画像の識別コード(=1)がヘッダ情報として記述される。   In the header area 52 of the original image R1, attribute information of the original image R1, that is, the viewpoint order (= 4) and the image identification code (= 1) are described as header information.

補間画像H1のヘッダ領域54には、補間画像H1の属性情報、すなわち視点順序(=2)、画像の識別コード(=2)および補間方式の情報がヘッダ情報として記述される。なお、補間方式とは補間画像を作成した手法であり、補間画像生成部5が補間画像H1,H2を生成する際に使用した手法の情報が記述される。   In the header area 54 of the interpolated image H1, attribute information of the interpolated image H1, that is, viewpoint order (= 2), image identification code (= 2), and interpolation method information are described as header information. The interpolation method is a method for creating an interpolation image, and describes information on a method used when the interpolation image generation unit 5 generates the interpolation images H1 and H2.

補間画像H2のヘッダ領域56には、補間画像H2の属性情報、すなわち視点順序(=3)、画像の識別コード(=2)および補間方式の情報がヘッダ情報として記述される。   In the header area 56 of the interpolation image H2, attribute information of the interpolation image H2, that is, viewpoint order (= 3), image identification code (= 2), and interpolation method information are described as header information.

立体画像生成部7は、原画像L1,R1および補間画像H1,H2を、表示部11において立体視が可能なように立体表示処理し、立体画像を生成する。なお、立体表示変換は、立体視の仕方および表示部11が3D液晶であるか否かによるが、ペアとなる画像同士(すなわち視点順序が隣接する画像同士)の色を例えば赤と青のように異ならせて重ね合わせたり(アナグリフ方式)、ペアとなる画像同士の偏光方向を異ならせて重ね合わせたり(偏光フィルタ方式)、ペアとなる画像を1ライン毎に交互に組み合わせることにより行うことができる(パララックスバリア方式およびレンチキュラー方式)。   The stereoscopic image generating unit 7 performs a stereoscopic display process on the original images L1 and R1 and the interpolated images H1 and H2 so that stereoscopic display is possible on the display unit 11, and generates a stereoscopic image. Note that the stereoscopic display conversion depends on the way of stereoscopic viewing and whether or not the display unit 11 is a 3D liquid crystal, but the colors of the paired images (that is, the images in which the viewpoint order is adjacent) are, for example, red and blue. Can be superimposed (anaglyph method), and the polarization directions of the paired images can be superimposed (polarized filter method), or the paired images can be alternately combined for each line. Yes (Parallax barrier method and lenticular method).

フレームバッファ8は、表示部11に表示する画像を一時的に保管しておく記憶部である。   The frame buffer 8 is a storage unit that temporarily stores an image to be displayed on the display unit 11.

メディア制御部9は、記録メディア9Aにアクセスして画像ファイルF0の書き込みと読み込みの制御を行う。   The media control unit 9 controls the writing and reading of the image file F0 by accessing the recording medium 9A.

制御部12は、CPU12A、後述するように補間画像を生成する場合、立体画像を生成する場合、画像ファイルを生成する場合および立体画像表示する場合等の装置1が各種処理を行う際の作業領域となるRAM12B、並びに装置1の動作プログラムおよび各種定数等を記憶したROM12Cを備えてなり、装置1の各部の動作を制御する。   The control unit 12 is a work area when the apparatus 1 performs various processes such as a CPU 12A, when generating an interpolation image as described later, when generating a stereoscopic image, when generating an image file, and when displaying a stereoscopic image. And a ROM 12C that stores the operation program of the apparatus 1 and various constants, etc., and controls the operation of each part of the apparatus 1.

次いで、本実施形態において行われる処理について説明する。図9は本実施形態において補間時に行われる処理を示すフローチャートである。なお、ここでは、原画像L1,R1は撮影により取得されてメディア9Aに記録されているものとする。補間画像生成の指示が入力部10から行われることにより制御部12が処理を開始し、メディア制御部9がメディア9Aから原画像ファイルF0を読み出す(ステップST1)。原画像ファイルF0はRAM12Bに解凍され、補間画像生成部5が、原画像ファイルF0のヘッダ情報の撮影条件情報として輻輳角αが記述されているか否かを判定する(ステップST2)。ステップST2が否定されると、原画像L1,R1間の対応点の分布から輻輳角αを算出する(ステップST3)。なお、原画像ファイルF0に輻輳角αが常時記述されている場合には、ステップST2の判定を行わないようにしてもよい。   Next, processing performed in the present embodiment will be described. FIG. 9 is a flowchart showing processing performed at the time of interpolation in the present embodiment. Here, it is assumed that the original images L1 and R1 are acquired by photographing and recorded on the medium 9A. When an instruction for generating an interpolated image is issued from the input unit 10, the control unit 12 starts processing, and the media control unit 9 reads the original image file F0 from the media 9A (step ST1). The original image file F0 is decompressed to the RAM 12B, and the interpolated image generation unit 5 determines whether or not the convergence angle α is described as the shooting condition information of the header information of the original image file F0 (step ST2). If step ST2 is negative, a convergence angle α is calculated from the distribution of corresponding points between the original images L1 and R1 (step ST3). If the convergence angle α is always described in the original image file F0, the determination in step ST2 may not be performed.

ステップST2が肯定された場合およびステップST3に続いて、輻輳角αが1度未満であるか否かを判定する(ステップST4)。ステップST4が肯定されると、補間画像の生成は必要ないため、処理を終了する。その際、表示部12に、補間画像の生成が必要ないことを示す警告表示を行うようにしてもよい。ステップST4が否定されると、補間画像生成部5が補間数を設定する(ステップST5)。補間数の設定は上記の式(1)を満たすNの最大値を算出することにより行う。   When step ST2 is affirmed and following step ST3, it is determined whether or not the convergence angle α is less than 1 degree (step ST4). If step ST4 is affirmed, the generation of an interpolated image is not necessary, and the process ends. At that time, a warning may be displayed on the display unit 12 indicating that the generation of the interpolation image is not necessary. If step ST4 is negative, the interpolated image generation unit 5 sets the number of interpolations (step ST5). The number of interpolations is set by calculating the maximum value of N that satisfies the above equation (1).

そして、補間画像生成部5は、補間数Nの補間画像を原画像L1,R1から生成する(ステップST6)。次いで、ファイル生成部6が、原画像L1,R1および補間画像の視点順序を設定し(ステップST7)、生成する画像ファイルにおける原画像L1,R1および補間画像のデータ領域のアドレスを生成する(ステップST8)。そして、補間画像についてのヘッダ情報を生成し(ステップST9)、さらに原画像L1,R1についてはヘッダ情報を更新し(ステップST10)、これに続いて原画像L1,R1および補間画像から画像ファイルF1を生成する(ステップST11)。そして、メディア制御部9が画像ファイルF1をメディア9Aに記録し(ステップST12)、処理を終了する。   Then, the interpolation image generation unit 5 generates an interpolation image with the number of interpolations N from the original images L1 and R1 (step ST6). Next, the file generation unit 6 sets the viewpoint order of the original images L1 and R1 and the interpolation image (step ST7), and generates addresses of the data areas of the original images L1 and R1 and the interpolation image in the image file to be generated (step ST7). ST8). Then, header information for the interpolated image is generated (step ST9), and the header information is updated for the original images L1 and R1 (step ST10). Subsequently, the image file F1 is obtained from the original images L1 and R1 and the interpolated image. Is generated (step ST11). Then, the media control unit 9 records the image file F1 on the media 9A (step ST12), and the process ends.

次いで、生成された画像ファイルF1に対して、ファイル容量を低減する処理が指示された場合の処理について説明する。図10はファイル容量を低減する処理が指示された場合に行われる処理を示すフローチャートである。なお、「ファイル容量を低減する指示」とは、例えば、画像ファイルを記録する記録メディアの空き容量を増やす指示、ファイル容量が小さい方が処理を容易に行うことが可能な、例えばデータを転送する指示等が挙げられる。   Next, a process when a process for reducing the file capacity is instructed with respect to the generated image file F1 will be described. FIG. 10 is a flowchart showing a process performed when a process for reducing the file capacity is instructed. The “instruction to reduce the file capacity” is, for example, an instruction to increase the free capacity of the recording medium for recording the image file, and the processing can be performed more easily when the file capacity is smaller. Instructions are included.

ファイル容量を低減する処理の指示が入力部10から行われることにより制御部12が処理を開始し、画像ファイルF1に含まれるヘッダ情報から識別コードを読み出す(ステップST21)。そして読み出した識別コードが補間画像であるヘッダ領域および画像データ領域を画像ファイルF1から削除する(補間画像削除、ステップST22)。さらに、残った原画像L1,R1についてはヘッダ情報を更新する(ステップST23)。ここで、原画像L1,R1のヘッダ情報においては、視点順序が変更される。すなわち、原画像L1,R1および2つの補間画像H1,H2が画像ファイルF1に含まれていた場合、原画像L1,R1の視点順序はそれぞれ1,4であったものが、1,2に変更される。また、原画像L1のヘッダ情報に含まれていたオフセットのリストからは、補間画像についての情報が削除される。そして、メディア制御部9が原画像ファイルF0をメディア9Aに記録し(ステップST24)、処理を終了する。   The control unit 12 starts processing when an instruction for processing to reduce the file capacity is issued from the input unit 10, and reads the identification code from the header information included in the image file F1 (step ST21). Then, the header area and the image data area in which the read identification code is an interpolation image are deleted from the image file F1 (interpolation image deletion, step ST22). Further, the header information is updated for the remaining original images L1 and R1 (step ST23). Here, the viewpoint order is changed in the header information of the original images L1 and R1. That is, when the original images L1 and R1 and the two interpolated images H1 and H2 are included in the image file F1, the viewpoint order of the original images L1 and R1 is changed from 1 to 4 to 1 and 2, respectively. Is done. In addition, information about the interpolation image is deleted from the offset list included in the header information of the original image L1. Then, the media control unit 9 records the original image file F0 on the media 9A (step ST24) and ends the process.

このように、第1の実施形態においては、原画像L1,R1および補間画像のヘッダ情報として、原画像および補間画像の種別を表す識別コード、および視点位置を表す視点情報を記述し、識別コードおよび視点情報が記述されたヘッダが付与された原画像L1,R1および補間画像を1つの画像ファイルF1に格納して保存するようにしたものである。このため、原画像L1,R1および補間画像の管理が容易となる。とくに、原画像L1,R1および補間画像の種別を表す識別コードを付与しているため、削除時に誤って原画像を削除してしまうことを防止できる。また、視点位置を表す視点情報も付与しているため、立体画像の生成および補間画像の再生成も容易に行うことができる。   As described above, in the first embodiment, as the header information of the original images L1 and R1 and the interpolation image, the identification code indicating the type of the original image and the interpolation image and the viewpoint information indicating the viewpoint position are described, and the identification code The original images L1, R1 and the interpolated image to which the header describing the viewpoint information is added are stored and saved in one image file F1. This facilitates management of the original images L1 and R1 and the interpolation image. In particular, since the identification codes representing the types of the original images L1 and R1 and the interpolation image are given, it is possible to prevent the original image from being accidentally deleted at the time of deletion. Further, since viewpoint information representing the viewpoint position is also given, it is possible to easily generate a stereoscopic image and regenerate an interpolated image.

また、原画像L1,R1および補間画像を1つの画像ファイルF1として保存することにより、ファイル数を増加させることがなくなり、その結果、原画像L1,R1および補間画像の管理をより容易なものとすることができる。   Further, by saving the original images L1, R1 and the interpolation image as one image file F1, the number of files is not increased, and as a result, the management of the original images L1, R1 and the interpolation image is made easier. can do.

また、画像ファイルF1において、補間画像を原画像L1,R1よりも後の領域に保存しているため、補間画像を削除した際のファイルの再生成が不要となり、その結果、補間画像の削除が容易となる。   Further, in the image file F1, since the interpolation image is stored in a region after the original images L1 and R1, it is not necessary to regenerate the file when the interpolation image is deleted. As a result, the interpolation image is deleted. It becomes easy.

また、ファイル容量を低減する指示がなされたときに補間画像のみを削除することにより、容易にファイル容量を低減することができる。   Further, by deleting only the interpolated image when an instruction to reduce the file capacity is given, the file capacity can be easily reduced.

なお、上記実施形態においては、補間画像作成の指示により補間画像を作成しているが、撮影による原画像L1,R1の取得に引き続き、補間画像を作成するようにしてもよい。   In the above embodiment, an interpolation image is created by an instruction to create an interpolation image. However, an interpolation image may be created following acquisition of the original images L1 and R1 by shooting.

また、上記実施形態においては、ファイル容量を低減する処理が指示された場合においては、補間画像の領域を削除するが、後で原画像L1,R1からの再合成を容易なものとするために、補間数の情報をヘッダ情報として残しておくことが好ましい。   In the above embodiment, when processing for reducing the file capacity is instructed, the area of the interpolated image is deleted, but in order to facilitate recombination from the original images L1 and R1 later. It is preferable to leave information on the number of interpolations as header information.

また、上記実施形態においては、本発明による画像処理装置を撮影部2A,2Bを備えた複眼撮影装置に適用しているが、本発明による画像処理装置を単独で提供するようにしてもよい。この場合、同一の被写体を異なる複数の位置において撮影することにより取得した複数の画像が画像処理装置に入力され、上記実施形態と同様に画像ファイルF1が作成される。この場合、撮影により取得された原画像L1,R1のみならず、例えばコンピュータグラフィクスにより作成された原画像を用いて補間画像を生成する場合にも、上記実施形態と同様に、画像ファイルF1を生成することができる。   In the above embodiment, the image processing apparatus according to the present invention is applied to the compound eye photographing apparatus including the photographing units 2A and 2B. However, the image processing apparatus according to the present invention may be provided alone. In this case, a plurality of images acquired by photographing the same subject at a plurality of different positions are input to the image processing apparatus, and an image file F1 is created as in the above embodiment. In this case, the image file F1 is generated not only in the original images L1 and R1 acquired by shooting, but also in the case of generating an interpolated image using an original image created by computer graphics, for example, as in the above embodiment. can do.

また、上記実施形態においては、原画像L1,R1および補間画像を1つのファイルに保存することにより、原画像L1,R1および補間画像を関連づけているが、原画像L1,R1および補間画像が一体不可分の関係となればよく、原画像L1,R1および補間画像を同一のフォルダに保存したり、原画像L1,R1および補間画像に共通のファイル名を付与したり、原画像L1,R1および補間画像の少なくとも1つのヘッダに他の画像のファイル名を記録する等の手法により、複数の原画像および補間画像を関連づけるようにしてもよい。   In the above embodiment, the original images L1, R1 and the interpolated image are associated with each other by storing the original images L1, R1 and the interpolated image in one file. However, the original images L1, R1 and the interpolated image are integrated. The original image L1, R1 and the interpolated image may be stored in the same folder, a common file name may be assigned to the original image L1, R1, and the interpolated image, or the original image L1, R1 and the interpolated image may be inseparable. A plurality of original images and interpolated images may be associated by a method such as recording the file name of another image in at least one header of the image.

以上、本発明の実施形態に係る装置1について説明したが、コンピュータを、上記の補間画像生成部5およびファイル生成部6に対応する手段として機能させ、図9および図10に示すような処理を行わせるプログラムも、本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も、本発明の実施形態の1つである。   Although the apparatus 1 according to the embodiment of the present invention has been described above, the computer is caused to function as a unit corresponding to the interpolation image generation unit 5 and the file generation unit 6 described above, and processing as illustrated in FIGS. 9 and 10 is performed. The program to be executed is also one embodiment of the present invention. A computer-readable recording medium in which such a program is recorded is also one embodiment of the present invention.

1 複眼撮影装置
2A,2B 撮影部
3 撮影制御部
4 画像処理部
5 補間画像生成部
6 ファイル生成部
7 立体画像生成部
8 フレームバッファ
9 メディア制御部
10 入力部
11 表示部
12 制御部
DESCRIPTION OF SYMBOLS 1 Compound eye imaging device 2A, 2B Image pick-up part 3 Image pick-up control part 4 Image processing part 5 Interpolation image generation part 6 File generation part 7 Stereo image generation part 8 Frame buffer 9 Media control part 10 Input part 11 Display part 12 Control part

Claims (8)

複数の撮影手段により取得した、被写体を異なる視点から見た複数の原画像を取得する画像取得手段と、
前記複数の撮影手段の位置関係に基づいて前記複数の原画像間の視点を補間する補間画像の数を決定し、前記複数の原画像から、前記決定された数の補間画像を生成する補間画像生成手段と、
前記複数の原画像および前記補間画像に、前記原画像および前記補間画像の種別を表す識別情報、および視点順序を表す視点情報を付与し、該識別情報および該視点情報が付与された前記複数の原画像および前記補間画像を関連づけて保存する保存手段とを備えたことを特徴とする画像処理装置。
Image acquisition means for acquiring a plurality of original images obtained by viewing a subject from different viewpoints, acquired by a plurality of imaging means;
An interpolated image that determines the number of interpolated images for interpolating viewpoints between the plurality of original images based on the positional relationship of the plurality of photographing means, and generates the determined number of interpolated images from the plurality of original images Generating means;
The identification information indicating the type of the original image and the interpolation image and the viewpoint information indicating the viewpoint order are assigned to the plurality of original images and the interpolation image, and the plurality of the identification information and the viewpoint information are added to the plurality of original images and the interpolation image. An image processing apparatus comprising: a storage unit that stores an original image and the interpolated image in association with each other.
前記保存手段は、前記複数の原画像および前記補間画像を1つの画像ファイルとして保存する手段であることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the storage unit is a unit that stores the plurality of original images and the interpolated image as one image file. 前記保存手段は、前記画像ファイルにおいて、前記補間画像を前記原画像よりも後の領域に保存する手段であることを特徴とする請求項2記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the storage unit is a unit that stores the interpolated image in a region after the original image in the image file. 前記保存手段は、ファイル容量を低減する指示がなされた場合、前記補間画像のみを削除する手段であることを特徴とする請求項1から3のいずれか1項記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the storage unit is a unit that deletes only the interpolated image when an instruction to reduce a file capacity is given. 前記補間画像生成手段は、前記複数の原画像の外側の視点を予測し、該予測された視点の補間画像をさらに生成する手段であることを特徴とする請求項1から4のいずれか1項記載の画像処理装置。   5. The interpolated image generating means is means for predicting a viewpoint outside the plurality of original images, and further generating an interpolated image of the predicted viewpoint. The image processing apparatus described. 前記原画像を取得するために互いに異なる位置に配設された複数の撮影手段と、
請求項1から5のいずれか1項記載の画像処理装置とを備えたことを特徴とする撮影装置。
A plurality of photographing means disposed at different positions to obtain the original image;
An imaging apparatus comprising: the image processing apparatus according to claim 1.
複数の撮影手段により取得した、被写体を異なる視点から見た複数の原画像を取得し、
前記複数の撮影手段の位置関係に基づいて前記複数の原画像間の視点を補間する補間画像の数を決定し、
前記複数の原画像から、前記決定された数の補間画像を生成し、
前記複数の原画像および前記補間画像に、前記原画像および前記補間画像の種別を表す識別情報、および視点順序を表す視点情報を付与し、該識別情報および該視点情報が付与された前記複数の原画像および前記補間画像を関連づけて保存することを特徴とする画像処理方法。
Acquire a plurality of original images obtained by a plurality of photographing means and viewed from different viewpoints,
Determining the number of interpolated images for interpolating viewpoints between the plurality of original images based on the positional relationship of the plurality of imaging means;
Generating the determined number of interpolated images from the plurality of original images;
The identification information indicating the type of the original image and the interpolation image and the viewpoint information indicating the viewpoint order are assigned to the plurality of original images and the interpolation image, and the plurality of the identification information and the viewpoint information are added to the plurality of original images and the interpolation image. An image processing method comprising: storing an original image and the interpolated image in association with each other.
複数の撮影手段により取得した、被写体を異なる視点から見た複数の原画像を取得する手順と、
前記複数の撮影手段の位置関係に基づいて前記複数の原画像間の視点を補間する補間画像の数を決定する手順と、
前記複数の原画像から、前記決定された数の補間画像を生成する手順と、
前記複数の原画像および前記補間画像に、前記原画像および前記補間画像の種別を表す識別情報、および視点順序を表す視点情報を付与し、該識別情報および該視点情報が付与された前記複数の原画像および前記補間画像を関連づけて保存する手順とを有することを特徴とする画像処理方法をコンピュータに実行させるためのプログラム。
A procedure for acquiring a plurality of original images obtained by a plurality of photographing means and viewing a subject from different viewpoints;
A procedure for determining the number of interpolated images for interpolating viewpoints between the plurality of original images based on the positional relationship of the plurality of photographing means;
Generating the determined number of interpolated images from the plurality of original images;
The plurality of original images and the interpolated images are provided with identification information indicating the types of the original images and the interpolated images, and viewpoint information indicating the viewpoint order, and the plurality of the identification information and the plurality of viewpoint information provided with the viewpoint information A program for causing a computer to execute an image processing method, comprising: storing an original image and the interpolated image in association with each other.
JP2011003607A 2011-01-12 2011-01-12 Image processing apparatus and method, and program Active JP5243562B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011003607A JP5243562B2 (en) 2011-01-12 2011-01-12 Image processing apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011003607A JP5243562B2 (en) 2011-01-12 2011-01-12 Image processing apparatus and method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008229542A Division JP4669032B2 (en) 2008-09-08 2008-09-08 Image processing apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2011125041A true JP2011125041A (en) 2011-06-23
JP5243562B2 JP5243562B2 (en) 2013-07-24

Family

ID=44288391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011003607A Active JP5243562B2 (en) 2011-01-12 2011-01-12 Image processing apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP5243562B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0635352A (en) * 1992-07-17 1994-02-10 Mita Ind Co Ltd Fixing device
JPH08101359A (en) * 1994-09-29 1996-04-16 Canon Inc Production of stereoscopic vision display matter and producing device using the same
JPH1013860A (en) * 1996-04-26 1998-01-16 Victor Co Of Japan Ltd Stereoscopic picture interpolating device and its method
JPH11202746A (en) * 1998-01-09 1999-07-30 Sony Corp Image data generation method
JP2005252754A (en) * 2004-03-05 2005-09-15 Fuji Photo Film Co Ltd Apparatus and method for creating and reproducing image file
JP2008167064A (en) * 2006-12-27 2008-07-17 Fujifilm Corp Image generating device, and image reproducing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0635352A (en) * 1992-07-17 1994-02-10 Mita Ind Co Ltd Fixing device
JPH08101359A (en) * 1994-09-29 1996-04-16 Canon Inc Production of stereoscopic vision display matter and producing device using the same
JPH1013860A (en) * 1996-04-26 1998-01-16 Victor Co Of Japan Ltd Stereoscopic picture interpolating device and its method
JPH11202746A (en) * 1998-01-09 1999-07-30 Sony Corp Image data generation method
JP2005252754A (en) * 2004-03-05 2005-09-15 Fuji Photo Film Co Ltd Apparatus and method for creating and reproducing image file
JP2008167064A (en) * 2006-12-27 2008-07-17 Fujifilm Corp Image generating device, and image reproducing device

Also Published As

Publication number Publication date
JP5243562B2 (en) 2013-07-24

Similar Documents

Publication Publication Date Title
JP4669032B2 (en) Image processing apparatus and method, and program
JP4625515B2 (en) Three-dimensional imaging apparatus, method, and program
US10587860B2 (en) Imaging apparatus and method for controlling same
JP5295426B2 (en) Compound eye imaging apparatus, parallax adjustment method and program thereof
JP5420076B2 (en) Reproduction apparatus, compound eye imaging apparatus, reproduction method, and program
JP2010068182A (en) Three-dimensional imaging device, method, and program
KR101615152B1 (en) Image processing apparatus and method, and image reproducing apparatus, method and program
JP2013247543A (en) Imaging device, display device, image processing method and program
JP5191864B2 (en) Three-dimensional display device, method and program
JP5049231B2 (en) Three-dimensional display device, method and program
JP5243562B2 (en) Image processing apparatus and method, and program
JP2010102137A (en) Three-dimensional photographing device, method and program
JP2012124650A (en) Imaging apparatus, and imaging method
JPWO2012001958A1 (en) Image processing apparatus and method, and program
JP5165742B2 (en) Three-dimensional imaging apparatus, method, and program
JP2014090252A (en) Image processing device and control method for the same, image pickup device and control method for the same and image processing program
JP2011259405A (en) Imaging device and imaging method
JP2012215980A (en) Image processing device, image processing method, and program
JP2011223175A (en) Imaging apparatus, image processing method thereof, program thereof, and imaging system using the imaging apparatus

Legal Events

Date Code Title Description
RD15 Notification of revocation of power of sub attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7435

Effective date: 20110421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121002

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121017

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130404

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

Free format text: PAYMENT UNTIL: 20160412

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5243562

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250