JP2015130646A - Image processing apparatus, image processing method, program, and storage medium - Google Patents

Image processing apparatus, image processing method, program, and storage medium Download PDF

Info

Publication number
JP2015130646A
JP2015130646A JP2014185700A JP2014185700A JP2015130646A JP 2015130646 A JP2015130646 A JP 2015130646A JP 2014185700 A JP2014185700 A JP 2014185700A JP 2014185700 A JP2014185700 A JP 2014185700A JP 2015130646 A JP2015130646 A JP 2015130646A
Authority
JP
Japan
Prior art keywords
subject
information
image processing
image
processing apparatus
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
JP2014185700A
Other languages
Japanese (ja)
Other versions
JP2015130646A5 (en
JP6470530B2 (en
Inventor
村田 健一
Kenichi Murata
健一 村田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014185700A priority Critical patent/JP6470530B2/en
Priority to US14/488,927 priority patent/US9420168B2/en
Publication of JP2015130646A publication Critical patent/JP2015130646A/en
Publication of JP2015130646A5 publication Critical patent/JP2015130646A5/ja
Application granted granted Critical
Publication of JP6470530B2 publication Critical patent/JP6470530B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To set a generation condition of a suitable reconstituted image with respect to an image signal capable of generating a reconstituted image obtained by focusing at plural subject distances.SOLUTION: An image processing apparatus obtains light field data, identifies the geographical position of an imaging apparatus having photographed the light field data, and selects a subject on the basis of information associated with positional information of the geographical position received from an external device. The apparatus outputs restriction information which is information for preventing the selected subject from being focused on, and is information relating to reconstructed image generated by reconstituting the light field data.

Description

本発明は、画像処理装置、画像処理方法、プログラム及び記録媒体に関し、特に撮影後に出力データから再構成画像を生成する技術に関する。   The present invention relates to an image processing apparatus, an image processing method, a program, and a recording medium, and more particularly to a technique for generating a reconstructed image from output data after shooting.

近年、デジタルカメラ等の撮像装置において、撮影時に光の強度分布と光の入射方向の情報とを出力データとして記録することで、記録後に例えば該出力データから任意の被写体距離に合焦した再構成画像を生成する技術が提案されている。   In recent years, in an imaging device such as a digital camera, reconstruction is performed by recording light intensity distribution and light incident direction information as output data at the time of shooting, for example, focusing on an arbitrary subject distance from the output data after recording. Techniques for generating images have been proposed.

非特許文献1では、撮影レンズと撮像素子との間にマイクロレンズアレイを配置し、マイクロレンズアレイを介して撮像素子の各画素(光電変換素子)に撮像レンズの異なる分割瞳領域を通過した光束を結像させることにより、様々な方向から入射した光を分離して記録する方法が開示されている。このようにして得られた出力データ(Light Field Data。以下、LFデータ)は、隣り合う画素が異なる方向から入射した光束を記録している。   In Non-Patent Document 1, a microlens array is arranged between a photographic lens and an image sensor, and the light flux that has passed through different divided pupil regions of the image sensor to each pixel (photoelectric conversion element) of the image sensor via the microlens array. A method is disclosed in which light incident from various directions is separated and recorded by forming an image. The output data (Light Field Data, hereinafter referred to as LF data) obtained in this way records the light flux that is incident on the adjacent pixels from different directions.

LFデータからは、各マイクロレンズに対応付けられた画素から、同一の方向の光束を抽出することで、該方向から撮影した画像を生成することができる。また、「Light Field Photography」と呼ばれる手法を適用することで、任意の被写体距離を設定し、該被写体距離からの光束が収束する焦点面における各点を通過した光束を記録している画素の出力を加算することで、撮影後に特定の被写体距離に合焦した画像のピクセルを擬似的に生成(再構成)することができる。   From the LF data, by extracting the light flux in the same direction from the pixels associated with each microlens, it is possible to generate an image taken from that direction. In addition, by applying a technique called “Light Field Photography”, an arbitrary subject distance is set, and the output of the pixel that records the light flux that has passed through each point on the focal plane where the light flux from the subject distance converges Is added, it is possible to artificially generate (reconstruct) a pixel of an image focused on a specific subject distance after shooting.

Ren.Ng、外7名、「Light Field Photography with a Hand-Held Plenoptic Camera」、Stanford University Computer Science Tech Report CTSR 2005-02Ren.Ng, 7 others, “Light Field Photography with a Hand-Held Plenoptic Camera”, Stanford University Computer Science Tech Report CTSR 2005-02

しかしながら、上述したようなLFデータからは様々な被写体距離に合焦した再構成画像や、深度の深い様々な視点の再構成画像を生成することができるため、撮影範囲に含まれるプライバシー情報が適切に保護されない可能性がある。   However, since the reconstructed image focused on various subject distances and the reconstructed images of various viewpoints with deep depth can be generated from the LF data as described above, the privacy information included in the shooting range is appropriate. May not be protected.

本発明は、上述の問題点に鑑みてなされたものであり、複数の被写体距離に合焦させた再構成画像を生成可能な画像信号について好適な再構成画像の生成条件を設定する画像処理装置、画像処理方法、プログラム及び記録媒体を提供することを目的とする。   The present invention has been made in view of the above-described problems, and is an image processing apparatus that sets a suitable reconstructed image generation condition for an image signal that can generate a reconstructed image focused on a plurality of subject distances. An object is to provide an image processing method, a program, and a recording medium.

前述の目的を達成するために、本発明の画像処理装置は、ライトフィールドデータを取得するデータ取得手段と、被写体を選択する選択手段と、選択手段により選択された被写体に合焦させないための情報であり、ライトフィールドデータを再構成して生成される再構成画像に係る情報である制限情報を出力する出力手段と、を有し、選択手段は、ライトフィールドデータを撮影した撮像装置の地理的位置を特定し、外部装置から受信される地理的位置の位置情報に関連付けられた情報に基づいて、被写体を選択することを特徴とする。   In order to achieve the above-described object, the image processing apparatus of the present invention includes a data acquisition unit that acquires light field data, a selection unit that selects a subject, and information that does not focus on the subject selected by the selection unit. Output means for outputting restriction information, which is information relating to a reconstructed image generated by reconstructing light field data, and the selecting means is a geographical area of the imaging device that has photographed the light field data. The position is specified, and the subject is selected based on the information associated with the position information of the geographical position received from the external device.

このような構成により本発明によれば、複数の被写体距離に合焦させた再構成画像を生成可能な画像信号について好適な再構成画像の生成条件を設定することが可能となる。   With such a configuration, according to the present invention, it is possible to set a suitable reconstructed image generation condition for an image signal that can generate a reconstructed image focused on a plurality of subject distances.

本発明の実施形態に係るデジタルカメラ100の機能構成を示したブロック図1 is a block diagram showing a functional configuration of a digital camera 100 according to an embodiment of the present invention. 本発明の実施形態に係るマイクロレンズアレイ105と撮像部106の関係を説明するための図The figure for demonstrating the relationship between the microlens array 105 which concerns on embodiment of this invention, and the imaging part 106. FIG. 本発明の実施形態に係る射出瞳301の各領域を通過した光束と、該光束を光電変換する光電変換素子の関係を説明するための図The figure for demonstrating the relationship between the light beam which passed each area | region of the exit pupil 301 which concerns on embodiment of this invention, and the photoelectric conversion element which photoelectrically converts this light beam. 本発明の実施形態に係る射出瞳301の各領域と、各マイクロレンズに対応付けられた光電変換素子との対応を示した図The figure which showed the response | compatibility with each area | region of the exit pupil 301 which concerns on embodiment of this invention, and the photoelectric conversion element matched with each micro lens 本発明の実施形態に係る再構成面における特定位置を通過する光束の、撮像面における通過位置との関係を説明するための図The figure for demonstrating the relationship with the passage position in the imaging surface of the light beam which passes the specific position in the reconstruction surface which concerns on embodiment of this invention 本発明の実施形態1に係るデジタルカメラ100で実行される制限情報付加処理を例示したフローチャートThe flowchart which illustrated the restriction information addition processing performed with digital camera 100 concerning Embodiment 1 of the present invention. 被写体と被写体距離情報を説明する図The figure explaining subject and subject distance information 検出された被写体と撮像装置の位置情報に基づく被写体の地理的位置を説明する図The figure explaining the geographical position of the subject based on the detected subject and the positional information of the imaging device 被写体の相対位置と地理的位置の算出方法を説明する図The figure explaining the calculation method of the relative position of the subject and the geographical position リフォーカス制限情報を保持するテーブルの一例Example of table that holds refocus limit information 本発明の実施形態1に係るデジタルカメラ100で実行される再生処理を例示したフローチャート6 is a flowchart illustrating a playback process executed by the digital camera 100 according to the first embodiment of the invention. 各リフォーカス面における再構成画像を示す図The figure which shows the reconstruction image in each refocus plane 本発明の変形例に係る射出瞳301の各領域を通過した光束と、該光束を光電変換する光電変換素子の関係を説明するための図The figure for demonstrating the relationship between the light beam which passed through each area | region of the exit pupil 301 which concerns on the modification of this invention, and the photoelectric conversion element which photoelectrically converts this light beam. 本発明の変形例に係るデジタルカメラ100の機能構成を示したブロック図示したフローチャートThe flowchart which showed the block diagram which showed the function structure of the digital camera 100 concerning the modification of this invention 本発明の実施形態2に係るデジタルカメラ100で実行される再生処理を例示したフローチャートThe flowchart which illustrated the reproduction | regeneration processing performed with the digital camera 100 which concerns on Embodiment 2 of this invention.

[実施形態]
以下、本発明の例示的な実施形態について、図面を参照して詳細に説明する。なお、以下に説明する一実施形態は、画像処理装置の一例としての、撮影後にLFデータから任意の被写体距離に合焦した画像を生成可能なデジタルカメラに、本発明を適用した例を説明する。しかし本発明は、LFデータから任意の被写体距離に合焦した画像を生成することが可能な任意の機器に適用可能である。
[Embodiment]
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings. In the following embodiment, an example in which the present invention is applied to a digital camera that can generate an image focused on an arbitrary subject distance from LF data after shooting as an example of an image processing apparatus will be described. . However, the present invention can be applied to any device capable of generating an image focused on an arbitrary subject distance from LF data.

また、本明細書において、以下の用語を定義して説明する。   In this specification, the following terms are defined and described.

・「ライトフィールド(LF:Light Field)データ」
本実施形態のデジタルカメラ100が有する撮像部106から出力される画像信号のように、3次元の被写体空間を記述した光線空間情報のことを示す。本実施形態では、画像信号の画素(画素信号)の各々は、通過した撮像光学系104の瞳領域及び入射方向の組み合わせが異なる光束に対応した信号強度を示している。
・ "Light Field (LF) data"
This indicates light space information describing a three-dimensional subject space like an image signal output from the imaging unit 106 included in the digital camera 100 of the present embodiment. In the present embodiment, each pixel of the image signal (pixel signal) indicates a signal intensity corresponding to a light beam having a different combination of the pupil region and the incident direction of the imaging optical system 104 that has passed.

・「再構成画像」
LFデータを構成する画素を所望の組み合わせで合成するなどして新たに生成する画像であり、本実施形態では、LFデータから生成される、任意の被写体距離に合焦した画像を含む。具体的には生成する被写体距離に対応する焦点j面(再構成面、リフォーカス面)での画素配置に従ってLFデータの画素を並び替え、再構成画像の1画素(単位画素)に対応するLFデータの複数の画素(副画素)の画素値を合算することで該画素の画素値を得る。再構成面における画素配置は、再構成面に撮像素子が存在した場合に入射する光束の入射方向(入射角度)に基づいて決定される。該画素配置において1つのマイクロレンズに対応する複数の画素の画素値を足し合わせることで、再構成画像の1画素を生成することができる。再構成画像としては他にも、マイクロレンズごとに存在する、マイクロレンズからの入射方向が同じ副画素(同じ視点の副画素)から生成される各視点の画像なども含む。この視点画像の生成の際には、他の視点(マイクロレンズからの入射方向)からの画像を視差分の移動量を踏まえて位置合わせをして加算するなどしてもよい。
・ "Reconstructed image"
This is an image that is newly generated by, for example, synthesizing the pixels constituting the LF data in a desired combination. In this embodiment, an image that is generated from the LF data and focused on an arbitrary subject distance is included. Specifically, the LF data pixels are rearranged according to the pixel arrangement on the focal j plane (reconstruction plane, refocus plane) corresponding to the object distance to be generated, and LF corresponding to one pixel (unit pixel) of the reconstructed image. The pixel value of the pixel is obtained by adding the pixel values of a plurality of pixels (sub-pixels) of the data. The pixel arrangement on the reconstruction plane is determined based on the incident direction (incident angle) of the light beam incident when the image sensor is present on the reconstruction plane. One pixel of a reconstructed image can be generated by adding pixel values of a plurality of pixels corresponding to one microlens in the pixel arrangement. In addition, the reconstructed image includes an image of each viewpoint generated from subpixels (subpixels of the same viewpoint) having the same incident direction from the microlens, which exist for each microlens. When generating this viewpoint image, the images from other viewpoints (incident direction from the microlens) may be aligned and added based on the amount of movement of the parallax.

《デジタルカメラ100の構成》
図1は、本発明の実施形態に係るデジタルカメラ100の機能構成を示すブロック図である。
<< Configuration of Digital Camera 100 >>
FIG. 1 is a block diagram showing a functional configuration of a digital camera 100 according to an embodiment of the present invention.

制御部101は、例えばCPUであり、デジタルカメラ100が有する各ブロックの動作を制御する。具体的には制御部101は、ROM102に記憶されている、後述する撮影処理あるいはリフォーカス動画生成処理の動作プログラムを読み出し、RAM103に展開して実行することにより、各ブロックの動作を制御する。   The control unit 101 is a CPU, for example, and controls the operation of each block included in the digital camera 100. Specifically, the control unit 101 controls an operation of each block by reading an operation program for a shooting process or a refocus moving image generation process, which will be described later, stored in the ROM 102, and developing and executing the program on the RAM 103.

ROM102は、例えば書き換え可能な不揮発性メモリであり、デジタルカメラ100が有する各ブロックの動作プログラムに加え、各ブロックの動作に必要なパラメータ等を記憶する。   The ROM 102 is, for example, a rewritable nonvolatile memory, and stores parameters necessary for the operation of each block in addition to the operation program for each block of the digital camera 100.

RAM103は、揮発性メモリである。RAM103は、デジタルカメラ100が有する各ブロックの動作プログラムの展開領域としてだけでなく、各ブロックの動作において出力された中間データ等を記憶する格納領域としても用いられる。   The RAM 103 is a volatile memory. The RAM 103 is used not only as a development area for the operation program of each block included in the digital camera 100 but also as a storage area for storing intermediate data output in the operation of each block.

撮像部106は、例えばCCDやCMOSセンサ等の撮像素子である。撮像部106は、制御部101の指示により不図示のタイミングジェネレータ(TG)から出力されるタイミング信号を受けて、撮像光学系104により撮像素子の光電変換素子面に結像された光学像を光電変換し、アナログ画像信号を出力する。なお、撮像光学系104は例えば対物レンズ、フォーカスレンズ、絞り等を含む。また、本実施形態のデジタルカメラ100は、撮像素子の各光電変換素子に設けられているマイクロレンズとは別に、光軸上の撮像光学系104と撮像素子との間にマイクロレンズアレイ105を有する。   The imaging unit 106 is an imaging element such as a CCD or a CMOS sensor. The imaging unit 106 receives a timing signal output from a timing generator (TG) (not shown) according to an instruction from the control unit 101, and photoelectrically converts an optical image formed on the photoelectric conversion element surface of the imaging element by the imaging optical system 104. Convert and output analog image signal. Note that the imaging optical system 104 includes, for example, an objective lens, a focus lens, a diaphragm, and the like. In addition, the digital camera 100 according to the present embodiment includes a microlens array 105 between the imaging optical system 104 on the optical axis and the imaging element separately from the microlens provided in each photoelectric conversion element of the imaging element. .

〈マイクロレンズと光電変換素子との関係〉
ここで、本実施形態のデジタルカメラ100において、光軸上の撮像光学系104と撮像素子との間に設けられたマイクロレンズアレイ105について、図を用いて説明する。
<Relationship between microlens and photoelectric conversion element>
Here, the microlens array 105 provided between the imaging optical system 104 on the optical axis and the imaging element in the digital camera 100 of the present embodiment will be described with reference to the drawings.

図2に示すように、本実施形態のマイクロレンズアレイ105は複数のマイクロレンズ201で構成される。図2では、撮像光学系104の光軸をz軸とし、デジタルカメラ100の横位置における水平方向をx軸、鉛直方向をy軸としている。なお、図2の例では簡単のため、マイクロレンズアレイ105は5行5列に並んだマイクロレンズ201で構成されるものとして説明するが、マイクロレンズアレイ105の構成はこれに限られるものではない。   As shown in FIG. 2, the microlens array 105 of the present embodiment includes a plurality of microlenses 201. In FIG. 2, the optical axis of the imaging optical system 104 is the z axis, the horizontal direction of the digital camera 100 is the x axis, and the vertical direction is the y axis. In the example of FIG. 2, for the sake of simplicity, the microlens array 105 will be described as being configured by microlenses 201 arranged in 5 rows and 5 columns, but the configuration of the microlens array 105 is not limited thereto. .

また図2では、撮像部106を構成する撮像素子の光電変換素子202が格子で示されている。各マイクロレンズ201には、所定数の光電変換素子202が対応づけられており、図2の例では1つのマイクロレンズ201に対して5×5=25画素の光電変換素子202が対応づけられている。1つのマイクロレンズ201を通過した光束は、入射した方向に応じて分離され、対応する光電変換素子202に結像される。   In FIG. 2, the photoelectric conversion element 202 of the image pickup element that forms the image pickup unit 106 is shown by a lattice. A predetermined number of photoelectric conversion elements 202 are associated with each microlens 201, and in the example of FIG. 2, a photoelectric conversion element 202 of 5 × 5 = 25 pixels is associated with one microlens 201. Yes. The light beam that has passed through one microlens 201 is separated according to the incident direction, and is imaged on the corresponding photoelectric conversion element 202.

図3は、1つのマイクロレンズ201に対応する光電変換素子202p乃至pに入射する光束を図示している。図3において、上方向は鉛直上向き方向に対応している。図では、デジタルカメラ100が横位置にある状態における、横方向から見た、各光電変換素子202に入射する光束の光路を例示している。図示されるように、水平方向に並んだ光電変換素子202p乃至pには、1つのマイクロレンズ201を介して、撮像光学系104の射出瞳301を垂直方向に5分割した領域a乃至aを通過した光束がそれぞれ入射する。なお、各領域に付された数字は、通過した光束が入射する光電変換素子202との対応関係を示している。 FIG. 3 illustrates light beams incident on the photoelectric conversion elements 202 p 1 to p 5 corresponding to one microlens 201. In FIG. 3, the upward direction corresponds to the vertically upward direction. In the figure, an optical path of a light beam incident on each photoelectric conversion element 202 viewed from the horizontal direction in a state where the digital camera 100 is in the horizontal position is illustrated. As shown in the drawing, the photoelectric conversion elements 202p 1 to p 5 arranged in the horizontal direction have regions a 1 to a which are obtained by dividing the exit pupil 301 of the imaging optical system 104 into five in the vertical direction via one micro lens 201. light beam passing through the a 5 enters respectively. In addition, the number attached | subjected to each area | region has shown the correspondence with the photoelectric conversion element 202 in which the light beam which passed through enters.

なお、図3の例では横方向から見た、各光電変換素子202に入射する光束の光路を示したが、光束の分離は垂直方向に限らず、水平方向においても同様に行われる。即ち、撮像光学系104の射出瞳301を撮像素子側から見て図4(a)のような領域に分類した場合、各領域を通過した光束は、図4(b)に示されるような光電変換素子202のうち、同一の識別数字が付された光電変換素子に入射する。なお、ここでは、撮像光学系104とマイクロレンズアレイ105の各マイクロレンズのFナンバー(F値)は略一致しているものとする。   In the example of FIG. 3, the optical path of the light beam incident on each photoelectric conversion element 202 viewed from the horizontal direction is shown, but the light beam separation is not limited to the vertical direction, and is similarly performed in the horizontal direction. That is, when the exit pupil 301 of the image pickup optical system 104 is classified into the regions as shown in FIG. 4A when viewed from the image pickup device side, the light beam that has passed through each region has a photoelectric as shown in FIG. Of the conversion elements 202, the light enters the photoelectric conversion elements with the same identification numbers. Here, it is assumed that the F numbers (F values) of the microlenses of the imaging optical system 104 and the microlens array 105 are substantially the same.

AFE(アナログフロントエンド)107及びDFE(デジタルフロントエンド)108は、撮像部106により生成された画像信号に対する補正処理等を行う。具体的にはAFE107は、撮像部106から出力されたアナログ画像信号に対して、基準レベルの調整(クランプ処理)やA/D変換処理を行い、LFデータをDFE108に出力する。DFE108は、入力されたLFデータに対して微少な基準レベルのずれ等を補正する。   An AFE (analog front end) 107 and a DFE (digital front end) 108 perform correction processing and the like on the image signal generated by the imaging unit 106. Specifically, the AFE 107 performs reference level adjustment (clamp processing) and A / D conversion processing on the analog image signal output from the imaging unit 106, and outputs LF data to the DFE 108. The DFE 108 corrects a slight reference level shift or the like with respect to the input LF data.

画像処理部109は、DFE108による補正処理が適用されたLFデータに対して、ホワイトバランス、色変換処理等の各種画像処理、形成後の画像を圧縮する圧縮処理、複数の画像を合成する合成処理等を行う。また本実施形態では画像処理部109は、LFデータから任意の被写体距離に合焦する画像(再構成画像)の生成する処理も行う。再構成画像の生成は、例えば上述した非特許文献1に示されるような「Light Field Photography」の手法を用いればよい。   The image processing unit 109 performs various types of image processing such as white balance and color conversion processing on the LF data to which correction processing by the DFE 108 is applied, compression processing for compressing a formed image, and synthesis processing for combining a plurality of images. Etc. In the present embodiment, the image processing unit 109 also performs processing for generating an image (reconstructed image) that focuses on an arbitrary subject distance from the LF data. For example, the method of “Light Field Photography” as shown in Non-Patent Document 1 described above may be used to generate the reconstructed image.

〈再構成画像の生成方法〉
ここで、特定の被写体距離に合焦した再構成画像の生成方法の概要について、図を用いて説明する。
<Reconstructed image generation method>
Here, an outline of a method for generating a reconstructed image focused on a specific subject distance will be described with reference to the drawings.

まず、撮影範囲に含まれる特定の被写体に合焦する被写体距離については、以下の方法で取得可能である。まず画像処理部109は、LFデータから異なる分割瞳領域を通過した2つの光束に対応する画像を生成し、該画像間における特定の被写体の像の差異(デフォーカス量)を検出する。このように検出されたデフォーカス量に基づき、制御部101は特定の被写体までの被写体距離を算出可能である。   First, the subject distance focused on a specific subject included in the shooting range can be obtained by the following method. First, the image processing unit 109 generates an image corresponding to two light beams that have passed through different divided pupil regions from the LF data, and detects a difference (defocus amount) of a specific subject image between the images. Based on the defocus amount detected in this way, the control unit 101 can calculate the subject distance to a specific subject.

図4(b)の例では各マイクロレンズについて、対応する画素のうち第1列及び第2列の画素の画素値を加算することにより生成される、射出瞳301の左半分の分割瞳領域に対応するA像を生成することができる。また対応する画素のうち第4列及び第5列の画素の画素値を加算することにより生成される、射出瞳301の右半分の分割瞳領域に対応するB像を生成することができる。即ち、これを式で表すと
のようになる。このように得られた2種類の再構成画像は、それぞれ対応する分割瞳領域の重心位置を擬似的に光軸とした画像である。
In the example of FIG. 4B, for each microlens, the divided pupil region in the left half of the exit pupil 301 is generated by adding the pixel values of the pixels in the first column and the second column among the corresponding pixels. A corresponding A image can be generated. Further, a B image corresponding to the divided pupil region on the right half of the exit pupil 301, which is generated by adding the pixel values of the pixels in the fourth column and the fifth column among the corresponding pixels, can be generated. That is, when this is expressed by an expression
become that way. The two types of reconstructed images obtained in this way are images having the centroid position of each corresponding divided pupil region as a pseudo optical axis.

つまり、2種類の再構成画像は光軸のずれによる像のずれを有しているため、2つの画像について相関演算を行うことで、各被写体について像のずれ量(瞳分割位相差)を検出することができる。このように得られた像のずれ量に対して撮像光学系104の焦点位置と光学系から決まる変換係数を乗じることで、LFデータの撮影範囲に含まれる各被写体についての被写体距離を解析することができ、得られた被写体距離に基づき例えば特定の被写体に合焦する再構成画像を付加画像として生成することができる。   In other words, since the two types of reconstructed images have image shifts due to optical axis shifts, the amount of image shift (pupil division phase difference) is detected for each subject by performing a correlation operation on the two images. can do. By multiplying the image shift amount obtained in this way by the focal position of the imaging optical system 104 and a conversion coefficient determined by the optical system, the subject distance for each subject included in the photographing range of the LF data is analyzed. Based on the obtained subject distance, for example, a reconstructed image that focuses on a specific subject can be generated as an additional image.

次に、特定の被写体距離に合焦する再構成画像の生成について説明する。本実施形態のデジタルカメラ100では、上述したように1つのマイクロレンズに割り当てられた複数の画素の各々は、撮像レンズの射出瞳の異なる分割瞳領域を通過した光束を受光する。これは、マイクロレンズアレイ105の全マイクロレンズについて同様である。また各マイクロレンズには異なる方向から撮像レンズを通過した光束が入射するため、撮像素子の全ての画素は、各々異なる方向から入射した光束を受光することになる。   Next, generation of a reconstructed image that focuses on a specific subject distance will be described. In the digital camera 100 of the present embodiment, as described above, each of the plurality of pixels assigned to one microlens receives the light flux that has passed through the divided pupil regions having different exit pupils of the imaging lens. This is the same for all the microlenses of the microlens array 105. In addition, since light beams that have passed through the imaging lens from different directions are incident on each microlens, all the pixels of the imaging element receive light beams that are incident from different directions.

このため以下では、撮影により得られたLFデータの各画素に入射した光束の光路を、射出瞳内の通過した瞳領域の座標(u,v)と、マイクロレンズアレイ上の対応するマイクロレンズの位置座標(x’,y’)として各光束を規定して説明する。再構成画像の生成においては、再構成画像を生成する被写体距離から入射した光束が収束する再構成面上の画素(x,y)について、該点を通過する光路を有する光束を積分することで画素値を得ることができる。   For this reason, in the following, the optical path of the light beam incident on each pixel of the LF data obtained by photographing is represented by the coordinates (u, v) of the pupil region that has passed through the exit pupil and the corresponding microlens on the microlens array. Each light flux is defined and explained as position coordinates (x ′, y ′). In the generation of a reconstructed image, by integrating a light beam having an optical path passing through the point for a pixel (x, y) on a reconstruction surface where a light beam incident from a subject distance for generating the reconstructed image converges. Pixel values can be obtained.

図5ではデジタルカメラ100の横位置における鉛直方向から見た水平面(xz平面)における光束の光路が示されている。以下ではxz平面における、再構成面の各画素を通過する光束の光路について説明するが、yz平面についても同様である。   In FIG. 5, the optical path of the light beam on the horizontal plane (xz plane) viewed from the vertical direction at the lateral position of the digital camera 100 is shown. Hereinafter, the optical path of the light beam passing through each pixel on the reconstruction plane in the xz plane will be described, but the same applies to the yz plane.

瞳領域の座標(u,v)、再構成面上の画素座標を(x,y)とすると、この瞳分割領域と再構成面上の画素を通過する光束が入射するマイクロレンズアレイ105上のマイクロレンズの位置座標(x’,y’)は、
で表される。なお、Fは撮像レンズからマイクロレンズアレイまでの距離、αFは撮影レンズから再構成面までの距離(αはリフォーカス係数:再構成面までの距離を決定するための可変係数)である。
If the coordinates (u, v) of the pupil area and the pixel coordinates on the reconstruction plane are (x, y), the light beam passing through the pupil division area and the pixels on the reconstruction plane is incident on the microlens array 105. The position coordinates (x ′, y ′) of the microlens are
It is represented by Note that F is a distance from the imaging lens to the microlens array, and αF is a distance from the photographing lens to the reconstruction surface (α is a refocus coefficient: a variable coefficient for determining the distance to the reconstruction surface).

また該光束が受光される光電変換素子の出力をL(x’,y’,u,v)とすると、再構成面上に形成される画像の座標(x,y)の画素出力E(x,y)は、L(x’,y’,u,v)を撮影レンズの瞳領域に関して積分したものであり、
で表される。なお、(u,v)を瞳領域の代表座標とすることで、該式は単純加算により計算できる。
If the output of the photoelectric conversion element that receives the luminous flux is L (x ′, y ′, u, v), the pixel output E (x) of the coordinates (x, y) of the image formed on the reconstruction plane , Y) is obtained by integrating L (x ′, y ′, u, v) with respect to the pupil region of the photographing lens,
It is represented by By using (u, v) as the representative coordinates of the pupil region, the equation can be calculated by simple addition.

表示部110は、例えば小型LCD等のデジタルカメラ100が有する表示装置である。表示部110は、デジタルカメラ100のユーザインタフェース画面の表示や、電子ビューファインダとしての使用、あるいは撮影した画像の表示に用いられる。また表示部110は、画像処理部109により生成され出力された、任意の被写体距離に合焦した再構成画像を表示する。上述したように、本実施形態の撮像部106から出力されるアナログ画像信号をA/D変換して得られるLFデータは、隣り合う画素において像が連結しない。このため表示部110には、LFデータではなく画像処理部109により生成された画像データが表示される。   The display unit 110 is a display device included in the digital camera 100 such as a small LCD. The display unit 110 is used to display a user interface screen of the digital camera 100, use as an electronic viewfinder, or display a photographed image. The display unit 110 displays a reconstructed image focused on an arbitrary subject distance that is generated and output by the image processing unit 109. As described above, the LF data obtained by A / D converting the analog image signal output from the imaging unit 106 according to the present embodiment does not connect the images in adjacent pixels. Therefore, not the LF data but the image data generated by the image processing unit 109 is displayed on the display unit 110.

記録媒体111は、例えばデジタルカメラ100が有する内蔵メモリや、メモリカードやHDD等のデジタルカメラ100に着脱可能に接続される記録装置である。記録媒体111には、LFデータ、及びこれらのLFデータから生成された任意の被写体距離に合焦する再構成画像が記録される。あるいは生成された画像等は、通信部116を介して、パーソナルコンピュータ等の外部装置(図示せず)に送信(出力)される。   The recording medium 111 is a recording device that is detachably connected to the digital camera 100 such as a built-in memory of the digital camera 100, a memory card, or an HDD. The recording medium 111 records LF data and a reconstructed image focused on an arbitrary subject distance generated from these LF data. Alternatively, the generated image or the like is transmitted (output) to an external device (not shown) such as a personal computer via the communication unit 116.

操作入力部112は、例えば電源ボタンやシャッタボタン等の、デジタルカメラ100が有するユーザインタフェースである。操作入力部112は、ユーザによりユーザインタフェースが操作されたことを検出すると、該操作に対応する制御信号を制御部101に出力する。例えば操作入力部112は、撮影モードの設定など、撮影に関わる様々な情報を制御部101へ出力する。またレリーズスイッチが出力する信号は、AEやAFの動作開始トリガや、撮影の開始トリガとして利用される。制御部101はこれらの開始トリガを受けて、撮像部106、表示部110をはじめとする、撮像装置の各部の制御を行う。   The operation input unit 112 is a user interface that the digital camera 100 has, such as a power button and a shutter button. When the operation input unit 112 detects that the user interface has been operated by the user, the operation input unit 112 outputs a control signal corresponding to the operation to the control unit 101. For example, the operation input unit 112 outputs various information related to shooting, such as setting of the shooting mode, to the control unit 101. A signal output from the release switch is used as an AE or AF operation start trigger or a shooting start trigger. Upon receiving these start triggers, the control unit 101 controls each unit of the imaging apparatus including the imaging unit 106 and the display unit 110.

なお、本実施形態では撮影処理によりLFデータを取得して再構成画像を生成する処理をおこなうものとして説明するが、生成に使用するLFデータは、記録媒体111から、あるいは通信部116を介して取得されるものであってもよい。   In the present embodiment, it is assumed that LF data is acquired by photographing processing and processing for generating a reconstructed image is performed. However, the LF data used for generation is from the recording medium 111 or via the communication unit 116. It may be acquired.

GPS118は、GPS衛星から連続的に送られてくる情報を受信し、現在地の経緯度を割り出す。電子コンパス119は、地磁気を検出して、撮影時にデジタルカメラ100の向いている方向を算出する。   The GPS 118 receives information continuously sent from GPS satellites, and determines the longitude and latitude of the current location. The electronic compass 119 detects geomagnetism and calculates the direction in which the digital camera 100 is facing at the time of shooting.

《制限情報付加処理》
ここで、本実施形態の特徴的な処理であるリフォーカスの制限に関する処理について説明する。上述したようなLFデータからは様々な被写体距離に合焦した再構成画像を生成することができるため、撮影範囲に含まれるプライバシー情報が適切に保護されない可能性がある。即ち、例えば通常は撮影やコピーを許可していない文書等が撮影範囲に含まれていた場合、該文書を読み取り可能な再構成画像が生成される可能性があった。また、近年では撮影により得られた画像がオンラインの画像共有サービス等に公開されることも多くなっており、LFデータが任意に再構成可能な状態で公開されることも考えられる。例えば背景の建物内部等、意図せず撮影範囲に写り込んでしまった人物はLFデータからの再構成画像の生成条件によっては、該人物の意思に反して肖像権が侵害される可能性がある。そこで、本実施形態では、斯様な保護対象となる被写体が存在すること、該被写体が合焦されてしまうリフォーカス範囲を判定し、そのリフォーカス範囲へのリフォーカスを制限する為の情報をLFデータ等に付加する。また、リフォーカスのための再構成画像に限らず、視点変更やパース変更など、何らかの目的で再構成画像が生成される場合に、保護対象に合焦させない、あるいは視認しにくくするための制限情報をLFデータに付加する。
《Restriction information addition processing》
Here, processing relating to refocus restriction, which is characteristic processing of the present embodiment, will be described. Since reconstructed images focused on various subject distances can be generated from the LF data as described above, there is a possibility that privacy information included in the shooting range is not properly protected. That is, for example, when a document that normally does not permit photographing or copying is included in the photographing range, a reconstructed image that can read the document may be generated. Further, in recent years, images obtained by shooting are often released to online image sharing services and the like, and it is conceivable that LF data is released in a state that can be arbitrarily reconstructed. For example, a person who has unintentionally reflected in the shooting range, such as the interior of a background building, may be infringed on his / her portrait rights against the intention of the person depending on the conditions for generating a reconstructed image from LF data. . Therefore, in this embodiment, it is determined that there is a subject to be protected, a refocus range where the subject is focused, and information for limiting refocus to the refocus range is provided. It is added to LF data. Moreover, not only the reconstructed image for refocusing but also restriction information for making it difficult to focus on the object to be protected or making it difficult to view when a reconstructed image is generated for some purpose such as a viewpoint change or a perspective change. Is added to the LF data.

このような構成をもつ本実施形態のデジタルカメラ100で実行される制限情報付加処理について、図6のフローチャートを用いて具体的な処理を説明する。該フローチャートに対応する処理は、制御部101が、例えばROM102に記憶されている対応する処理プログラムを読み出し、RAM103に展開して実行することにより実現することができる。なお、本制限情報付加処理は、例えばデジタルカメラ100を用いて撮影が行われた際に開始されるものとして説明する。ステップS2201において、操作入力部112の操作により撮像指示が出されると、撮像処理を行い、撮像データを取得する。   A specific process of the restriction information adding process executed by the digital camera 100 of the present embodiment having such a configuration will be described with reference to the flowchart of FIG. The processing corresponding to the flowchart can be realized by the control unit 101 reading out a corresponding processing program stored in, for example, the ROM 102, developing it in the RAM 103, and executing it. Note that the restriction information adding process will be described as being started when shooting is performed using the digital camera 100, for example. In step S2201, when an imaging instruction is issued by operating the operation input unit 112, imaging processing is performed and imaging data is acquired.

S2202で、制御部101は、撮像により生成されたLFデータについて、被写体までの距離の情報を各々取得する距離情報取得エリア(以下、Dエリア)を設定する。Dエリアは、マイクロレンズ201に割り当てられた画素群(光電変換素子202)を単位として規定される、対象LFデータを構成する画素配列における2次元の領域を示す。即ち、Dエリアの大きさは、LFデータから生成可能な再構成画像の最小分解能に応じて規定される。例えば図2の例では、1つのマイクロレンズ201に割り当てられた5×5の画素が再構成画像の最小分解能にあたるため、Dエリアは、水平方向に5の倍数の画素、垂直方向に5の倍数の画素を有する領域として規定される。   In step S2202, the control unit 101 sets a distance information acquisition area (hereinafter referred to as a D area) for acquiring information on the distance to the subject for the LF data generated by imaging. The D area indicates a two-dimensional area in the pixel array constituting the target LF data, which is defined in units of pixel groups (photoelectric conversion elements 202) assigned to the microlens 201. That is, the size of the D area is defined according to the minimum resolution of the reconstructed image that can be generated from the LF data. For example, in the example of FIG. 2, since 5 × 5 pixels assigned to one microlens 201 correspond to the minimum resolution of the reconstructed image, the D area is a multiple of 5 in the horizontal direction and a multiple of 5 in the vertical direction. Is defined as a region having a number of pixels.

なお、Dエリアは、対象LFデータから生成可能な最小分解能にあたる画素群を単位として、被写体までの距離について要求する精度や、機器の演算能力、計算量、要求フレームレート等の制限に応じて適切な大きさに設定されてよい。   The D area is appropriate for the accuracy required for the distance to the subject, the calculation capability of the device, the amount of calculation, the required frame rate, etc., with the pixel group corresponding to the minimum resolution that can be generated from the target LF data as a unit. May be set to any size.

S2203で、制御部101は、S2202において設定されたDエリアの各々について、エリア内に含まれる被写体までの代表距離の情報を算出する。具体的には制御部101は、対象LFデータの各Dエリアについて、異なる2つの分割瞳領域を通過した光束に対応する、デフォーカス量検出用の2種類の再構成画像(検出用画像)を画像処理部109に生成させる。本ステップで生成される検出用画像は、上述したように射出瞳301の領域を左半分と右半分の分割瞳領域に分け、各分割瞳領域を通過した光束に対応するものであってよい。しかしながら、本発明の実施はこれに限らず、検出用画像は射出瞳301を通過したうち、光軸が異なる2種類の分割瞳領域を通過した光束に対応する画像であればよく、分割瞳領域の選択方法はこれに限られるものではない。ここで、複数のマイクロレンズに対応する画素群を含めて1つのDエリアを構成した場合は、中心のマイクロレンズに対応する画素群のみの結果で代用してもよいし、各マイクロレンズに対応する画素群について得られた距離の平均値を用いてもよい。また、このようにして得られたDエリアごとの被写体距離情報を距離情報マップとする。   In step S2203, the control unit 101 calculates, for each of the D areas set in step S2202, information on the representative distance to the subject included in the area. Specifically, for each D area of the target LF data, the control unit 101 generates two types of reconstructed images (detection images) for defocus amount detection corresponding to the light beams that have passed through two different divided pupil regions. The image processing unit 109 generates the image. As described above, the detection image generated in this step may be one that divides the area of the exit pupil 301 into divided pupil areas of the left half and the right half, and corresponds to the light flux that has passed through each divided pupil area. However, the embodiment of the present invention is not limited to this, and the detection image may be an image corresponding to the light flux that has passed through the exit pupil 301 and has passed through two types of divided pupil regions having different optical axes. However, the selection method is not limited to this. Here, when one D area is configured including pixel groups corresponding to a plurality of microlenses, the result of only the pixel group corresponding to the central microlens may be substituted, or each microlens is supported. You may use the average value of the distance obtained about the pixel group to perform. Further, the subject distance information for each D area obtained in this manner is used as a distance information map.

そして制御部101は、得られたデフォーカス量の解析結果に従って、各Dエリアの代表距離を算出する。なお、代表距離は、例えば各Dエリアの中央に位置する被写体についての距離であってもよいし、エリア内の被写体について得られた距離の平均値であってもよい。   Then, the control unit 101 calculates the representative distance of each D area according to the obtained defocus amount analysis result. The representative distance may be, for example, a distance for a subject located at the center of each D area, or may be an average value of distances obtained for subjects in the area.

そして本実施形態では制御部101は、このようにして得られたDエリアごとの代表距離の情報を用いて、LFデータの撮影範囲に対応する距離情報マップを生成する。ここでは、図7(a)に示す画像が撮像され、図7(b)に示す距離情報マップが得られたとする。距離情報マップは、被写体距離の違いを、コントラストで表現している。   In the present embodiment, the control unit 101 generates a distance information map corresponding to the shooting range of the LF data using the representative distance information for each D area obtained in this way. Here, it is assumed that the image shown in FIG. 7A is captured and the distance information map shown in FIG. 7B is obtained. The distance information map expresses differences in subject distance with contrast.

次に、ステップS2204では、図7(a)の画像から被写体検出を行う。具体的には、図7(b)の距離情報マップから、被写体距離の急変している境界線を抽出することで、被写体を検出する。このとき、境界付近のエッジ情報や色情報等も参照して境界線を設定してもよい。被写体が検出できた場合は、図8(a)のように、被写体をナンバリングして記録しておく。   Next, in step S2204, subject detection is performed from the image of FIG. Specifically, the subject is detected by extracting a boundary line in which the subject distance changes suddenly from the distance information map of FIG. 7B. At this time, the boundary line may be set with reference to edge information and color information near the boundary. If the subject can be detected, the subject is numbered and recorded as shown in FIG.

次に、ステップS42205では、ステップS2204で被写体が1つ以上検出できたかどうかを判定する。1つ以上の被写体が検出できた場合は、ステップS2206へ進む。被写体が1つも検出できなかった場合は、ステップS2212へ進み、画像を保存して処理を終了する。   Next, in step S42205, it is determined whether one or more subjects have been detected in step S2204. If one or more subjects can be detected, the process advances to step S2206. If no subject has been detected, the process advances to step S2212, the image is stored, and the process ends.

次に、ステップS2206では、ステップS2205で検出した各被写体までの距離と角度を算出する。具体的には、まず各被写体の代表点を決定する。ここで、代表点は、各被写体の中心付近でもいいし、各被写体の範囲の中で最も距離が近い点でもよく、限定されない。被写体の代表点までの距離に関しては、ステップS2203で被写体距離を算出しており、代表点が含まれるDエリアの距離を参照する。各被写体の角度に関しては、図9(a)を参照して説明する。図9(a)は、デジタルカメラ100の水平画角を表しており、光軸方向を0度とし、右側を正、左側を負の角度で表す。詳細な算出方法は後述するが、この場合、角度θは正の値を取ることになる。ここで、算出された代表点までの距離dと角度θは、図8(b)に示す被写体の相対位置テーブルで、ナンバリングした被写体情報と関連付けて記録する。   Next, in step S2206, the distance and angle to each subject detected in step S2205 are calculated. Specifically, first, representative points of each subject are determined. Here, the representative point may be near the center of each subject, or may be the closest point in the range of each subject, and is not limited. Regarding the distance to the representative point of the subject, the subject distance is calculated in step S2203, and the distance of the D area including the representative point is referred to. The angle of each subject will be described with reference to FIG. FIG. 9A shows the horizontal angle of view of the digital camera 100, where the optical axis direction is 0 degree, the right side is positive and the left side is negative. Although a detailed calculation method will be described later, in this case, the angle θ takes a positive value. Here, the calculated distance d to the representative point and the angle θ are recorded in association with the numbered subject information in the subject relative position table shown in FIG.

次に、ステップS2207では、各被写体の地理的位置である経緯度を計算する。具体的には、まず、GPS118から撮影場所の経緯度を取得する。ここでは、図8(c)に示す経度、緯度が得られたとする。次に、デジタルカメラ100が向いている方向を電子コンパス119から取得する。その結果、図9(b)の角度θ’が取得される。ここで、ステップS2206において、デジタルカメラ100の光軸方向から角度θの方角に被写体が存在することが分かっているため、デジタルカメラ100から方位角(θ’+θ)の方角で、距離dの位置に被写体が存在することが分かる。以上の情報から、被写体の経緯度は計算で求めることができる。具体的な算出方法に関しては、平面直角座標系に変換して算出するなど、様々な方法が提案されているため、ここでは既知の技術として、説明は省略する。ここで、算出された被写体の経緯度は、図8(d)に示す被写体の経緯度テーブルで、ナンバリングされた被写体情報と関連付けて記録する。この経緯度情報は一時的に保存され、本フローが終わると破棄されても良いし、撮像データと共に被写体情報と関連付けてそのまま記録されても良い。   Next, in step S2207, the longitude and latitude, which is the geographical position of each subject, is calculated. Specifically, first, the longitude and latitude of the shooting location are acquired from the GPS 118. Here, it is assumed that the longitude and latitude shown in FIG. Next, the direction in which the digital camera 100 is facing is acquired from the electronic compass 119. As a result, the angle θ ′ in FIG. 9B is acquired. Here, in step S2206, since it is known that the subject exists in the direction of the angle θ from the optical axis direction of the digital camera 100, the position of the distance d in the direction of the azimuth angle (θ ′ + θ) from the digital camera 100. It can be seen that there is a subject. From the above information, the longitude and latitude of the subject can be calculated. As for a specific calculation method, various methods such as conversion to a planar rectangular coordinate system have been proposed, and thus description thereof is omitted here as a known technique. Here, the calculated longitude and latitude of the subject are recorded in association with the numbered subject information in the longitude and latitude table of the subject shown in FIG. The longitude / latitude information may be temporarily stored and discarded when the present flow is completed, or may be recorded as it is associated with the subject information together with the imaging data.

次に、ステップS2208では、通信部116を介してインターネット上の地図データベースに、被写体の経緯度テーブルに記録されている緯度・経度を、〈1〉から順番に送信する。なお、地図データベースとは、建物などの被写体情報とその経緯度を表す位置情報を関連付けて保持しているデータベースを表している。昨今のカーナビゲーションシステム等は、どこにどのような種類の建物が建っているかを保持しているため、地図を3D表示することも可能である。このような地図データベースを利用することで、前記経緯度に建物が存在するか判定することができる。デジタルカメラ100は、通信部116を介して、地図データベースから、前記経緯度に建物が存在するかどうかを受信する。   Next, in step S2208, the latitude / longitude recorded in the longitude / latitude table of the subject is sequentially transmitted from <1> to the map database on the Internet via the communication unit 116. Note that the map database represents a database that holds subject information such as buildings and position information that represents the longitude and latitude of the object. Since recent car navigation systems and the like hold where and what kind of buildings are built, it is also possible to display a map in 3D. By using such a map database, it can be determined whether a building exists at the longitude and latitude. The digital camera 100 receives whether a building exists at the longitude and latitude from the map database via the communication unit 116.

次に、ステップS2209では、前記経緯度に建物が存在した場合は、S2210へ進む。建物が存在しなかった場合は、S2211へ進む。   Next, in step S2209, if a building exists at the longitude and latitude, the process proceeds to S2210. If no building exists, the process proceeds to S2211.

ステップS2210では、制御部101が撮像データにリフォーカス制限情報を付加する。具体的には、図8(a)の〈1〉が建物であると判定された場合、図8(a)の〈1〉が被写界深度に含まれない設定値を算出し付加する。詳細な算出方法は後述するが、図10(a)及び26(b)に示すリフォーカス制限領域とリフォーカス制限テーブルが撮像データに付加される。例えば、リフォーカス制限領域には、図8(a)の〈1〉の代表点の座標(x、y)を記録する。図10(b)のリフォーカス制限テーブルでは、絞り値毎に設定できる被写体距離を記録する。例えば、絞り値2の場合は、被写界深度が浅くなり、被写体距離が8mより大きくなると、〈1〉が被写界深度に含まれてしまうため、その被写体距離を超えて再構成できないように制限をかける。一方、絞り値5.6の場合は、被写界深度が深くなり、被写体距離が3.5mより大きくなると、〈1〉が被写界深度に含まれてしまうため、その被写体距離を超えて再構成できないように制限をかける。   In step S2210, the control unit 101 adds refocus restriction information to the imaging data. Specifically, when it is determined that <1> in FIG. 8A is a building, <1> in FIG. 8A calculates and adds a setting value that is not included in the depth of field. Although a detailed calculation method will be described later, the refocus restriction area and the refocus restriction table shown in FIGS. 10A and 26B are added to the imaging data. For example, the coordinates (x, y) of <1> in FIG. 8A are recorded in the refocus restriction area. In the refocus restriction table of FIG. 10B, the subject distance that can be set for each aperture value is recorded. For example, when the aperture value is 2, if <1> is included in the depth of field when the depth of field becomes shallower and the subject distance is greater than 8 m, reconstruction cannot be performed beyond that subject distance. To limit. On the other hand, when the aperture value is 5.6, <1> is included in the depth of field when the depth of field becomes deep and the subject distance is greater than 3.5 m. Limits to prevent reconfiguration.

次に、ステップS2211では、図8(d)の被写体の経緯度テーブルで管理されている被写体が、全て建物判定されたかどうかを判断する。まだ建物判定されていない被写体があればステップS2208に戻り処理を繰り返す。すべての被写体が建物判定されている場合はステップS2212に進む。   Next, in step S2211, it is determined whether all the objects managed in the longitude / latitude table of the object in FIG. If there is a subject whose building has not yet been determined, the process returns to step S2208 to repeat the process. If all the objects have been determined to be buildings, the process proceeds to step S2212.

最後に、ステップS2212において、撮像データと図10(a)及び26(b)のリフォーカス制限領域とリフォーカス制限テーブルを撮像データに関連付けて記録媒体111に記録する。   Finally, in step S2212, the imaging data, the refocus restriction area and the refocus restriction table shown in FIGS. 10A and 26B are recorded on the recording medium 111 in association with the imaging data.

以上で、一連のリフォーカス制限情報付加手順の説明を終了する。   This is the end of the description of the series of refocus restriction information addition procedures.

次に、ステップS2206で述べた、被写体までの角度の算出方法について、図9(a)を参照して説明する。   Next, the method for calculating the angle to the subject described in step S2206 will be described with reference to FIG.

デジタルカメラ100の水平画角をψとし、撮像データ内での被写体の位置を示す代表点の画素位置の座標を(p,q)とする。画素位置の座標とは、生成される再構成画像の最小位置分解能にあたるマイクロレンズアレイ105上のマイクロレンズ201の位置を定義するものである。デジタルカメラ100の水平画角ψは撮像時に決まる。ここで、撮像装置の画素配列20の総数を(P,Q)とすると、被写体の角度θは、以下の式(5)で求めることができる。
θ=−ψ/2+(ψ/P)・p (5)
Let the horizontal field angle of the digital camera 100 be ψ, and the coordinates of the pixel position of the representative point indicating the position of the subject in the imaging data be (p, q). The coordinates of the pixel position define the position of the microlens 201 on the microlens array 105 corresponding to the minimum position resolution of the generated reconstructed image. The horizontal field angle ψ of the digital camera 100 is determined at the time of imaging. Here, assuming that the total number of the pixel array 20 of the imaging device is (P, Q), the angle θ of the subject can be obtained by the following equation (5).
θ = −ψ / 2 + (ψ / P) · p (5)

以上の結果を被写体毎にまとめたテーブルが、図8(b)の被写体の相対位置テーブルとなる。   A table in which the above results are collected for each subject is the relative position table of the subject in FIG.

なお上記算出方法は、デジタルカメラ100を所謂横位置に構えて撮影を行った場合の説明であり、デジタルカメラ100を所謂縦位置に構えて撮影を行う場合は、デジタルカメラ100の垂直画角と、座標q、画素配列の総数Qを用いて、計算を行うことは容易に想像できる。   Note that the above calculation method is an explanation when the digital camera 100 is taken in a so-called horizontal position, and when the digital camera 100 is taken in a so-called vertical position, the vertical angle of view of the digital camera 100 is determined. It is easy to imagine using the coordinates q and the total number Q of pixel arrangements.

次に、ステップS2210で述べた、図8(a)の建物〈1〉を被写界深度に含まない設定値の算出方法について、詳細に説明する。   Next, the method for calculating the set value described in step S2210 and not including the building <1> in FIG. 8A in the depth of field will be described in detail.

被写界深度は一般的に以下の式(6)、式(7)で算出できる。
D1=(δ・F1・a2)/(f2−δ・F1・a) (6)
D2=(δ・F2・a2)/(f2+δ・F2・a) (7)
The depth of field can be generally calculated by the following formulas (6) and (7).
D1 = (δ · F1 · a2) / (f2−δ · F1 · a) (6)
D2 = (δ · F2 · a2) / (f2 + δ · F2 · a) (7)

なお、式中の記号は「D1」は後方被写界深度、「D2」は前方被写界深度、「δ」は光学像の広がりが許される範囲を示す許容錯乱円の直径、「F1」「F2」は絞り値、「f」はレンズの焦点距離、「a」は被写体距離を示している。   The symbols in the equation are “D1” is the depth of back field, “D2” is the depth of front field, “δ” is the diameter of an allowable circle of confusion that indicates the range in which the optical image is allowed to spread, and “F1”. “F2” indicates the aperture value, “f” indicates the focal length of the lens, and “a” indicates the subject distance.

前記のように被写界深度には、前方被写界深度と後方被写界深度があることは既知であり、被写界深度から外れた被写体は合焦しないため、ボケて見える。本アイデアでは、意図せずに写り込んでしまったプライバシー情報に、合焦させないことが目的であるが、意図していない情報は、後方に写っていることが多い。そのため、後方被写界深度を浅くし、プライバシー情報に合焦させないことが自然である。よって、後方被写界深度に関して説明を行う。   As described above, it is known that there is a front depth of field and a rear depth of field in the depth of field, and a subject outside the depth of field is not in focus and thus appears out of focus. The idea of this idea is not to focus on the privacy information that was unintentionally reflected, but unintended information is often reflected in the back. For this reason, it is natural to reduce the depth of field behind and not focus on privacy information. Therefore, the rear depth of field will be described.

後方被写界深度は式(6)で表されるが、レンズの焦点距離fは撮像時に決まる。また、許容錯乱円の直径δは設計者が決める値で、一般的に撮像部106の対角線長の1/1000程度の値が用いられる。ここで、図8(a)の建物〈1〉までの距離をAとすると、建物〈1〉が後方被写界深度に含まれないようにするためには、以下の式(8)を満たせばよい(本実施形態中では、被写体の相対位置テーブルからA=20となる)。   Although the rear depth of field is expressed by Equation (6), the focal length f of the lens is determined at the time of imaging. Further, the diameter δ of the permissible circle of confusion is a value determined by the designer, and generally a value of about 1/1000 of the diagonal length of the imaging unit 106 is used. Here, when the distance to the building <1> in FIG. 8A is A, in order to prevent the building <1> from being included in the rear depth of field, the following equation (8) must be satisfied. (In this embodiment, A = 20 from the relative position table of the subject).

D1+a<A (8)
以上から、式(6)と式(8)を解くことで、絞り値F1毎の、建物〈1〉を被写界深度に含まない被写体距離aを算出することができる。この結果をまとめたものが、図10A及び26(b)のリフォーカス制限テーブルとなる。
D1 + a <A (8)
From the above, by solving Equation (6) and Equation (8), it is possible to calculate the subject distance a that does not include the building <1> in the depth of field for each aperture value F1. A summary of these results is the refocus limit table shown in FIGS. 10A and 26 (b).

<再生処理>
次に、リフォーカス制限情報を利用して、画像再生時にリフォーカス範囲を制限して再構成する手順について、図11のフローチャートを参照して説明する。なお、ここでは、制限情報付加処理で説明した、図10(a)のリフォーカス制限領域と図10(b)のリフォーカス制限テーブルが付加されている撮像データ(LFデータ)を、再生する手順を例に、説明を行う。該フローチャートに対応する処理は、制御部101が、例えばROM102に記憶されている対応する処理プログラムを読み出し、RAM103に展開して実行することにより実現することができる。なお、本再生処理は、例えばユーザによりLFデータ(対象LFデータ)の閲覧指示がなされた際に開始されるものとして説明する。
<Reproduction processing>
Next, a procedure for restricting and reconstructing the refocus range during image reproduction using the refocus restriction information will be described with reference to the flowchart of FIG. Here, the procedure for reproducing the imaging data (LF data) to which the refocus restriction area shown in FIG. 10A and the refocus restriction table shown in FIG. An example will be described. The processing corresponding to the flowchart can be realized by the control unit 101 reading out a corresponding processing program stored in, for example, the ROM 102, developing it in the RAM 103, and executing it. In addition, this reproduction | regeneration process demonstrates as what is started when the browsing instruction | indication of LF data (target LF data) is made by the user, for example.

まず、ステップS2701において、操作入力部112の操作により画像再生指示が出されると、LFデータを記録媒体111から読み込み、RAM103へ一時的に記録する。   First, in step S2701, when an image reproduction instruction is issued by operating the operation input unit 112, LF data is read from the recording medium 111 and temporarily recorded in the RAM 103.

次に、ステップS2702において、LFデータと関連付けられた、LFデータの被写体距離と疑似的な絞り値の初期設定値と制限情報をRAM103から読み込む。本実施形態では、画像再生時にユーザが制限情報を付与することも可能であり、この場合、例えば、表示された再構成画像などを用いて、ユーザから操作入力部112を介して被写体を指定することで設定される。すなわち、再生時に設定される制限情報があれば、ステップS2702にて取得する。LFデータは、通常そのままでは表示用のデータの形態になっておらず、再構成して表示用の画像の形態にすることが必要である。ここでは所定の被写体距離に合焦する再構成画像を生成するため、被写体距離と絞り値の初期値を設定する必要がある。初期値がRAM103に記憶されていない場合、代表的な被写体を検出して、前記被写体が存在する位置に被写体距離を設定してもよいし、撮影時のフォーカスレンズの位置に対応する被写体距離に設定してもよいが、本実施例においては限定されない。また初期画像として記録時にLFデータと関連付けて既に再構成されている画像があればそちらを用いてもよい。   Next, in step S2702, the subject distance of the LF data, the initial setting value of the pseudo aperture value, and the restriction information associated with the LF data are read from the RAM 103. In this embodiment, it is also possible for the user to give restriction information during image reproduction. In this case, for example, a subject is designated from the user via the operation input unit 112 using a displayed reconstructed image or the like. Is set. That is, if there is restriction information set at the time of reproduction, it is acquired in step S2702. The LF data is not usually in the form of display data as it is, but needs to be reconfigured to be in the form of a display image. Here, in order to generate a reconstructed image that focuses on a predetermined subject distance, it is necessary to set initial values of the subject distance and the aperture value. When the initial value is not stored in the RAM 103, a representative subject may be detected, and the subject distance may be set at a position where the subject exists, or the subject distance corresponding to the position of the focus lens at the time of shooting may be set. Although it may be set, it is not limited in the present embodiment. Further, if there is an image already reconstructed in association with the LF data at the time of recording as an initial image, it may be used.

次に、ステップS2703において、ステップS2702で読み込んだ初期設定値が絞り情報、被写体距離の情報を含むリフォーカス制限情報に抵触するかどうかを判定する。リフォーカス制限情報に抵触しない場合は、ステップS2704へ進み、画像処理部109が初期設定値による再構成画像を生成し、表示部110に表示させる。ここで生成される再構成画像を図12(a)とする。リフォーカス制限テーブルの範囲内の場合は、ステップS2705へ進む。本実施例では、図10(c)の初期設定値が、図10(b)のリフォーカス制限テーブルが定める「絞り値5.6、被写体距離3.5mまで」の範囲内であるため、ステップS2705へ進む。   Next, in step S2703, it is determined whether or not the initial setting value read in step S2702 conflicts with refocus restriction information including aperture information and subject distance information. If there is no conflict with the refocus restriction information, the process advances to step S2704, and the image processing unit 109 generates a reconstructed image based on the initial setting value and causes the display unit 110 to display the reconstructed image. The reconstructed image generated here is shown in FIG. If it is within the range of the refocus limit table, the process advances to step S2705. In this embodiment, the initial setting value in FIG. 10C is within the range of “aperture value 5.6, subject distance 3.5 m” defined by the refocus restriction table in FIG. The process proceeds to S2705.

次に、ステップS2705では、初期設定値の被写体距離と、図10(b)のリフォーカス制限テーブルの開放端の被写体距離を比較する。もし初期設定値の被写体距離の方が大きければ、疑似的な絞り値を開放端にしても、リフォーカス制限テーブルの範囲内から外れないことを意味しているため、ステップS2706へ進み、被写体距離と絞り値の調整を行う。初期設定値の被写体距離の方が小さければ、絞り値を小さくすれば、リフォーカス制限テーブルの範囲内から外れることを意味しているため、ステップS2707へ進み、疑似的な絞り値の調整を行う。例えば、図10(c)の初期設定値は、図10(b)のリフォーカス制限テーブル「絞り値2.8、被写体距離6mまで」と比べて、被写体距離の値が小さいため、ステップS2707へ進む。   In step S2705, the subject distance of the initial setting value is compared with the subject distance at the open end of the refocus restriction table in FIG. If the subject distance of the initial setting value is larger, it means that even if the pseudo aperture value is at the open end, it means that it does not fall out of the range of the refocus limit table. And adjust the aperture value. If the subject distance of the initial setting value is smaller, it means that if the aperture value is decreased, it is out of the range of the refocus limit table, so the process proceeds to step S2707, and the pseudo aperture value is adjusted. . For example, since the initial setting value in FIG. 10C is smaller than the refocus restriction table “to aperture value 2.8, subject distance to 6 m” in FIG. 10B, the process proceeds to step S2707. move on.

ステップS2706では、画像処理回路7が、被写体距離と絞り値をリフォーカス制限情報の制限するリフォーカス範囲内の設定可能な被写体距離と絞り値に変更し、再構成画像の作成を行う。例えば、図10(b)のリフォーカス制限テーブルに記録されている、「絞り値2、被写体距離8m」の設定にして再構成画像を作成する。   In step S2706, the image processing circuit 7 changes the subject distance and aperture value to a settable subject distance and aperture value within the refocus range restricted by the refocus restriction information, and creates a reconstructed image. For example, a reconstructed image is created with the setting of “aperture value 2, subject distance 8 m” recorded in the refocus restriction table in FIG.

ステップS2707では、絞り値を変更し、再構成画像の作成を行う。例えば、図10(c)の初期設定値の被写体距離は、絞り値を2.8に設定すれば、リフォーカス制限テーブルの範囲内ではなくなる。そのため、「絞り値2.8、被写体距離5m」にして再構成画像の作成を行う。ここでは、図12(b)に示す再構成画像が作成されたとする。なお、図12(b)において、実線は合焦している被写体、破線は合焦していない被写体を示している。   In step S2707, the aperture value is changed and a reconstructed image is created. For example, the subject distance of the initial setting value in FIG. 10C is not within the range of the refocus limit table if the aperture value is set to 2.8. Therefore, a reconstructed image is created with “aperture value 2.8, subject distance 5 m”. Here, it is assumed that the reconstructed image shown in FIG. In FIG. 12B, a solid line indicates a subject that is in focus, and a broken line indicates a subject that is not in focus.

次に、ステップS2708では、画像合成処理を行う。具体的には、まず距離情報マップから図10(c)のリフォーカス制限領域(x、y)が含まれる被写体を検出する。そして、図12(b)の再構成画像から、前記検出した被写体の領域を抽出し、図12(a)の再構成画像に合成する。以上の処理を行うことで、図12(c)に示す、リフォーカス制限領域のみを被写界深度に含まない画像を作成することができる。   In step S2708, image composition processing is performed. Specifically, first, a subject including the refocus limited area (x, y) in FIG. 10C is detected from the distance information map. Then, the detected region of the subject is extracted from the reconstructed image of FIG. 12B and synthesized with the reconstructed image of FIG. By performing the above processing, it is possible to create an image that does not include only the refocus limited area in the depth of field, as shown in FIG.

そして、ステップS2709において、再構成画像を表示部110に表示する。   In step S2709, the reconstructed image is displayed on the display unit 110.

最後に、ステップS2710では、再生モード継続の有無が判断され、継続の場合は、ステップS2711においてリフォーカス指示を待ち、終了の場合は、画像再生モードの動作が終了する。   Finally, in step S2710, it is determined whether or not the reproduction mode is continued. If the reproduction mode is continued, the refocus instruction is waited in step S2711.

以上で、一連の再生手順の説明を終了する。   This is the end of the description of the series of playback procedures.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

例えば、ステップS2204の被写体検出において、前述の方法に限定されず、画像の色が急変している境界を抽出することで被写体を検出してもよいし、組み合わせることで精度を高めてもよい。また、顔検出部を有し、人物の顔を認識したら、建物かどうかの検索対象から外すことで効率化するなど、様々な変形が可能であり、限定されない。   For example, the subject detection in step S2204 is not limited to the method described above, and the subject may be detected by extracting a boundary where the color of the image changes suddenly, or the accuracy may be improved by combining them. In addition, when a face detection unit is included and a person's face is recognized, various modifications are possible, such as improving efficiency by removing it from a search target of whether it is a building, and is not limited.

また、ステップS2706、ステップS2707の再構成画像作成処理に関しては、処理工数を減らすために、合成に使われる領域のみを再構成するなど、種々の工夫が考えられ、上記に限定されるものではない。   In addition, with regard to the reconstructed image creation processing in step S2706 and step S2707, various ideas such as reconstructing only the area used for composition can be considered in order to reduce the number of processing steps, and the present invention is not limited to the above. .

また、ステップS2210において、リフォーカス制限情報を付加した際に、警告を発し、ユーザに知らせるといった機能も考えられ、様々な変形が可能である。   In step S2210, when refocus restriction information is added, a function of issuing a warning and notifying the user can be considered, and various modifications are possible.

また、実施例では建物について説明したが、建物に限定されず、インターネット上に文字や人物の顔を含む合焦禁止物データベース等を作り、そこに登録されている物にはリフォーカス制限情報を付加するといった実施系も考えられ、様々な変形が可能である。   In the embodiment, the building has been described. However, the present invention is not limited to the building, but a focus-inhibited object database including characters and human faces is created on the Internet, and refocus restriction information is added to the object registered there. An implementation system such as addition is also conceivable, and various modifications are possible.

また、実施例では、プライバシー情報が被写界深度に含まれないようにリフォーカス制限情報を付加したが、被写界深度に含まれないようにするだけでは、視認でき、読み取れられる可能性もある。そこで、式(8)を修正して、被写界深度の2倍の範囲に含まれないようにすることで画像からプライバシー情報である被写体を視認しにくくするなどの工夫も考えられる。すなわち、制限情報は対象となる被写体を生成条件にかかわらず視認しにくくするための情報として撮像データに関連付けられ、リフォーカスを初めとする再構成を制限する。さらに、建物によって、被写界深度の何倍の範囲に含まれないようにするかを可変にすることも考えられ、様々な変形が可能である。   In addition, in the embodiment, refocus restriction information is added so that privacy information is not included in the depth of field, but if it is not included in the depth of field, it may be visually recognized and read. is there. In view of this, it is conceivable to modify the formula (8) so that it is not included in the range twice the depth of field so that it is difficult to visually recognize the subject as privacy information from the image. In other words, the restriction information is associated with the imaging data as information for making it difficult to visually recognize the target subject regardless of the generation conditions, and restricts reconfiguration including refocusing. Furthermore, it may be possible to vary how many times the depth of field is excluded depending on the building, and various modifications are possible.

また、GPS118の情報から、被写体の種類に応じてリフォーカス制限情報を付加しない判断を行ってもよい。例えば、建物内部で撮影されていたり、観光名所、ランドマーク等で撮影されていたりすると判断したら、リフォーカス制限情報は付加しなくてもよい。   Further, it may be determined from the information of the GPS 118 that the refocus restriction information is not added according to the type of the subject. For example, if it is determined that the image is taken inside a building, or is taken at a tourist attraction or a landmark, the refocus restriction information may not be added.

また、主要被写体以外の範囲にリフォーカス制限情報を付加することで、主要被写体のみを目立たせることができるということは容易に想像でき、その要旨の範囲内で種々の変形及び変更が可能である。   Also, it can be easily imagined that by adding refocus restriction information to a range other than the main subject, only the main subject can be conspicuous, and various modifications and changes can be made within the scope of the gist. .

[実施形態2]
本発明の実施形態2について説明する。
[Embodiment 2]
A second embodiment of the present invention will be described.

本発明の実施形態2では、リフォーカス制限情報が付加されていない撮像データに対して、画像再生時にリフォーカス制限範囲を算出して画像表示を行う手順について、図15を参照して説明する。   In the second embodiment of the present invention, a procedure for displaying an image by calculating a refocus limit range at the time of reproducing an image with respect to imaging data to which refocus limit information is not added will be described with reference to FIG.

まず、ステップS2901において、記録媒体111に記録されている撮像データを読み込む。ここで、通信部116を用いて、ライトフィールド画像を外部デバイスから取得してもよく、限定されない。なお、撮像データには、撮影場所と撮影方向の情報が関連付けて記録されているものとする。   First, in step S2901, the imaging data recorded on the recording medium 111 is read. Here, the light field image may be acquired from the external device using the communication unit 116, and the present invention is not limited to this. In the imaging data, information on the shooting location and shooting direction is recorded in association with each other.

次に、ステップS2902〜ステップS2903までは、実施形態1のステップS2702〜ステップS2703と同様の処理のため説明を省略する。   Next, steps S2902 to S2903 are the same as steps S2702 to S2703 of the first embodiment, and thus description thereof is omitted.

次に、ステップS2904〜ステップS2906までの、距離情報マップを作成して被写体検出を行う処理は、実施形態1のステップS2202〜ステップS2204と同様なため説明を省略する。   Next, since the process of creating a distance information map and performing subject detection from step S2904 to step S2906 is the same as step S2202 to step S2204 of the first embodiment, description thereof will be omitted.

次に、ステップS2907において、ステップS2906で被写体が1つ以上検出できたかどうかを判定する。1つ以上の被写体が検出できた場合は、ステップS2908へ進む。被写体が1つも検出できなかった場合は、ステップS2918へ進み、再構成画像を表示部110に表示する。   Next, in step S2907, it is determined whether one or more subjects have been detected in step S2906. If one or more subjects can be detected, the process advances to step S2908. If no subject has been detected, the process advances to step S2918 to display a reconstructed image on the display unit 110.

次に、ステップS2908〜ステップS2910までは、実施形態1のステップS2206〜ステップS2208と同様の処理のため説明を省略する。なお、第2の実施形態では、ステップS2910において、検出できたすべての被写体の建物判定を行っている。   Next, steps S2908 to S2910 are the same as steps S2206 to S2208 of the first embodiment, and a description thereof will be omitted. In the second embodiment, in step S2910, building determination is performed for all detected subjects.

次に、ステップS2911において、撮像画像中に建物が1つ以上存在していた場合は、ステップS2912に進む。建物が存在していなかった場合は、ステップS2918に進み、再構成画像を表示部110に表示する。   Next, in step S2911, when one or more buildings exist in the captured image, the process proceeds to step S2912. If no building exists, the process advances to step S2918 to display a reconstructed image on the display unit 110.

次に、ステップS2912において、前記建物が1つ以上被写界深度に含まれるかどうかを判定する。前記建物が被写界深度に含まれている場合は、ステップS2913へ進み、被写界深度に含まれていない場合は、ステップS2918で再構成画像を表示部110に表示する。被写界深度の算出方法は、実施形態1で説明しているため省略する。   Next, in step S2912, it is determined whether one or more buildings are included in the depth of field. If the building is included in the depth of field, the process proceeds to step S2913. If the building is not included in the depth of field, the reconstructed image is displayed on the display unit 110 in step S2918. The method for calculating the depth of field has been described in the first embodiment, and is therefore omitted.

次に、ステップS2913において、疑似的な絞り値を開放端に設定する。ここで、絞り値の開放端は撮像装置毎に決まっているため、設定できうる開放端の絞り値に変更する。   Next, in step S2913, a pseudo aperture value is set to the open end. Here, since the open end of the aperture value is determined for each imaging apparatus, the aperture value is changed to an open end aperture value that can be set.

次に、ステップS2914において、疑似的な絞り値開放端の設定値で被写界深度を計算し、前記建物が1つ以上被写界深度に含まれるかどうかを判定する。前記建物が被写界深度に含まれる場合、ステップS2915に進み、被写界深度に含まれない場合は、ステップS2916に進む。   Next, in step S2914, the depth of field is calculated using the setting value of the pseudo aperture value open end, and it is determined whether one or more buildings are included in the depth of field. If the building is included in the depth of field, the process proceeds to step S2915. If the building is not included in the depth of field, the process proceeds to step S2916.

ステップS2915では、絞り値開放端の設定で、再構成画像の作成を行う。   In step S2915, a reconstructed image is created with the aperture value open end set.

ステップS2916では、絞り値開放端の設定で、被写体距離を変更して、再構成画像の作成を行う。例えば、図10(c)を初期設定値とすると、絞り値は開放端の設定に変更し、被写体距離も4mに変更し、被写界深度を計算する。まだ、建物が被写界深度に含まれている場合は、被写体距離を3mに変更し、被写界深度を計算するなど、建物が被写界深度に含まれなくなるまで、被写体距離を変更する。そして、算出された設定値を使って、再構成画像を作成する。   In step S2916, a reconstructed image is created by changing the subject distance by setting the aperture value at the open end. For example, if FIG. 10C is an initial set value, the aperture value is changed to the open end setting, the subject distance is also changed to 4 m, and the depth of field is calculated. If the building is still included in the depth of field, change the subject distance until the building is no longer included in the depth of field, such as changing the subject distance to 3 m and calculating the depth of field. . Then, a reconstructed image is created using the calculated setting value.

次に、ステップS2917では、画像合成処理を行う。画像合成処理に関しては、第1の実施形態のステップS2708と同様の処理なため、説明は省略する。   Next, in step S2917, image composition processing is performed. The image composition process is the same as that in step S2708 of the first embodiment, and a description thereof will be omitted.

そして、ステップS2918において、再構成画像を表示部110に表示する。   In step S2918, the reconstructed image is displayed on the display unit 110.

最後に、ステップS2919では、再生モード継続の有無が判断され、継続の場合は、ステップS2920においてリフォーカス指示を待ち、終了の場合は、画像再生モードの動作が終了する。リフォーカス指示がなされた場合は、ステップS2921において、指示された設定値で再構成画像を作成し、ステップS2912に進み、処理を繰り返す。   Finally, in step S2919, it is determined whether or not the reproduction mode is continued. If the reproduction mode is continued, a refocus instruction is waited in step S2920. If a refocus instruction has been given, a reconstructed image is created with the instructed set value in step S2921, and the process proceeds to step S2912, where the processing is repeated.

以上で、画像再生時にリフォーカス制限範囲を算出して画像表示を行う手順の説明を終了する。   This is the end of the description of the procedure for calculating the refocus limit range during image reproduction and displaying the image.

[変形例]
上述した実施形態では、図3に示した撮像光学系104、マイクロレンズアレイ105、及び撮像部106の構成により取得されたLFデータを対象としたが、本発明は図13に示すような構成により得られたLFデータが使用されてもよい。図13の構成は、文献「Todor Georgiev and Andrew Lumsdaine, "Superresolution with Plenoptic 2.0 Camera", Signal Recovery and Synthesis, Optical Society of America, 2009"に記載されるプレノプティックカメラに対応する。図13の構成では、撮像光学系104の焦点がマイクロレンズアレイ105の面上ではなく、より撮像光学系104の射出瞳に近い位置に設けられている点が異なる。
[Modification]
In the above-described embodiment, the LF data acquired by the configuration of the imaging optical system 104, the microlens array 105, and the imaging unit 106 illustrated in FIG. 3 is targeted, but the present invention has the configuration illustrated in FIG. The obtained LF data may be used. The configuration of FIG. 13 corresponds to a plenoptic camera described in the literature “Todor Georgiev and Andrew Lumsdaine,“ Superresolution with Plenoptic 2.0 Camera ”, Signal Recovery and Synthesis, Optical Society of America, 2009”. The configuration of FIG. 13 is different in that the focal point of the imaging optical system 104 is provided not at the surface of the microlens array 105 but at a position closer to the exit pupil of the imaging optical system 104.

また、上述した実施形態では1つの撮像光学系104を通過した光束を、各マイクロレンズ201により分割し、分割瞳領域の各々に対応する画素出力を得るものとして説明した。しかしながら、本発明の実施は図14に示されるように複数の光学系を有する、所謂多眼カメラにより得られた複数の撮像データを本実施形態におけるLFデータと同等に取り扱うことにより実現されてもよい。つまり、複数の光学系の各々により光学像結像される複数の撮像素子の出力が、異なる分割瞳領域を通過した光束に対応する画像、即ち異なる方向から被写体を撮影した画像となるため、多眼カメラの出力は本実施形態におけるLFデータと等価である。なお、このような多眼カメラから再構成画像を生成する方法については、特開2011−022796号公報等に記載されている方法を用いればよい。   In the above-described embodiment, the light beam that has passed through one imaging optical system 104 is divided by each microlens 201 to obtain pixel outputs corresponding to each divided pupil region. However, the embodiment of the present invention may be realized by handling a plurality of imaging data obtained by a so-called multi-lens camera having a plurality of optical systems as shown in FIG. 14 in the same manner as the LF data in this embodiment. Good. In other words, the output of the plurality of imaging elements that are optically imaged by each of the plurality of optical systems is an image corresponding to the light flux that has passed through different divided pupil regions, that is, an image of the subject taken from different directions. The output of the eye camera is equivalent to the LF data in this embodiment. As a method for generating a reconstructed image from such a multi-lens camera, a method described in JP 2011-022796 A may be used.

[その他の実施形態]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Embodiments]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

100:デジタルカメラ、101:制御部、102:ROM、103:RAM、104:撮像光学系、105:マイクロレンズアレイ、106:撮像部、107:AFE、108:DFE、109:画像処理部、110:表示部、111:記録媒体、112:操作入力部、116:通信部、118:GPS、119:電子コンパス、201:マイクロレンズ、202:光電変換素子、301:射出瞳   100: Digital camera, 101: Control unit, 102: ROM, 103: RAM, 104: Imaging optical system, 105: Micro lens array, 106: Imaging unit, 107: AFE, 108: DFE, 109: Image processing unit, 110 : Display unit, 111: recording medium, 112: operation input unit, 116: communication unit, 118: GPS, 119: electronic compass, 201: microlens, 202: photoelectric conversion element, 301: exit pupil

Claims (16)

ライトフィールドデータを取得するデータ取得手段と、
被写体を選択する選択手段と、
前記選択手段により選択された被写体に合焦させないための情報であり、前記ライトフィールドデータの再構成を制限する情報である制限情報を出力する出力手段と、を有し、
前記選択手段は、前記ライトフィールドデータを撮影した撮像装置の地理的位置を特定し、外部装置から受信される地理的位置の位置情報に関連付けられた情報に基づいて、被写体を選択する
ことを特徴とする画像処理装置。
Data acquisition means for acquiring light field data;
A selection means for selecting a subject;
Output means for outputting restriction information, which is information for not focusing on the subject selected by the selection means, and information for restricting reconstruction of the light field data;
The selection unit specifies a geographical position of an imaging device that has captured the light field data, and selects a subject based on information associated with positional information of the geographical position received from an external device. An image processing apparatus.
前記出力手段により出力された前記制限情報を前記ライトフィールドデータに関連付けて記録する記録手段をさらに有する請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a recording unit that records the restriction information output by the output unit in association with the light field data. 前記ライトフィールドデータを再構成して再構成画像を生成する再構成手段と、
前記制限情報に基づいて前記特定の被写体に合焦した再構成画像を生成させないように、前記再構成手段を制御する制御手段と、
をさらに有することを特徴とする請求項1または2に記載の画像処理装置。
Reconstructing means for reconstructing the light field data to generate a reconstructed image;
Control means for controlling the reconstruction means so as not to generate a reconstructed image focused on the specific subject based on the restriction information;
The image processing apparatus according to claim 1, further comprising:
前記制御手段は、前記制限情報に基づいて前記選択手段により選択された被写体に合焦する被写体距離あるいは該被写体が被写界深度に含まれる生成条件が設定されないように前記再構成手段を制御することを特徴とする請求項3に記載の画像処理装置。   The control means controls the reconstruction means so that a subject distance for focusing on the subject selected by the selection means based on the restriction information or a generation condition in which the subject is included in the depth of field is not set. The image processing apparatus according to claim 3. 前記制御手段は、生成される再構成画像の各領域のうち、合焦した再構成画像の生成が制限される被写体に対応する領域については前記制限情報に基づいて再構成画像を生成し、それ以外の領域については任意の被写体距離の再構成画像を生成するように前記再構成手段を制御することを特徴とする請求項3または4に記載の画像処理装置。   The control unit generates a reconstructed image based on the restriction information for a region corresponding to a subject for which generation of a focused reconstructed image is restricted among the regions of the reconstructed image to be generated, 5. The image processing apparatus according to claim 3, wherein the reconstruction unit is controlled to generate a reconstructed image having an arbitrary subject distance for a region other than the region. 前記出力手段は、再構成画像の被写体距離及び絞り値に応じて決定される被写界深度の情報に基づき、前記制限情報を決定することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。   The said output means determines the said limitation information based on the information of the depth of field determined according to the to-be-photographed object distance and aperture value of a reconstructed image, The any one of Claim 1 thru | or 5 characterized by the above-mentioned. An image processing apparatus according to 1. 前記選択手段は、前記ライトフィールドデータを撮影した撮像装置の位置、方向、及び被写体との距離の情報に基づいて、被写体を選択することを特徴とする請求項1乃至6のいずれか1項に記載の画像処理装置。   7. The apparatus according to claim 1, wherein the selection unit selects a subject based on information on a position, a direction, and a distance from the subject of the imaging device that has captured the light field data. The image processing apparatus described. 前記制限情報は、生成される再構成画像における前記選択手段により選択された被写体の位置、該再構成画像の絞り状態、及び該再構成画像において合焦する被写体距離の少なくともいずれかを含む情報であることを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。   The restriction information is information including at least one of the position of the subject selected by the selection unit in the generated reconstructed image, the aperture state of the reconstructed image, and the subject distance focused on the reconstructed image. The image processing apparatus according to claim 1, wherein the image processing apparatus is provided. 前記位置情報に関連付けられた情報は、建物、ランドマーク、観光名所の少なくともいずれかであることを示す情報を含む、被写体の種類を特定する情報であることを特徴とする請求項1乃至8のいずれか1項に記載の画像処理装置。   The information associated with the position information is information for specifying a type of a subject including information indicating that the position information is at least one of a building, a landmark, and a tourist attraction. The image processing apparatus according to any one of the above. 前記位置情報に関連付けられた情報は、合焦を禁止する被写体であるか否かを示す情報を含むことを特徴とする請求項1乃至9のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the information associated with the position information includes information indicating whether or not the subject is a subject for which focusing is prohibited. 前記出力手段は、前記選択手段により選択された被写体毎に、前記制限情報を異ならせて構成することが可能であることを特徴とする請求項1乃至10のいずれか1項に記載の画像処理装置。   The image processing according to any one of claims 1 to 10, wherein the output means can be configured by making the restriction information different for each subject selected by the selection means. apparatus. 前記ライトフィールドデータは、画素信号の各々が、前記ライトフィールドデータを撮像した際の撮像光学系の瞳領域及び入射方向の組み合わせが異なる光束に対応した信号強度を有することを特徴とする請求項1乃至11のいずれか1項に記載の画像処理装置。   2. The light field data according to claim 1, wherein each of the pixel signals has a signal intensity corresponding to a light beam having a different combination of a pupil region and an incident direction of an imaging optical system when the light field data is imaged. 12. The image processing device according to any one of 11 to 11. 前記ライトフィールドデータは、被写体の3次元空間を記述する光線空間情報であり、データを再構成することにより、任意の被写体距離に合焦する再構成画像を生成可能であることを特徴とする請求項1乃至12のいずれか1項に記載の画像処理装置。   The light field data is ray space information describing a three-dimensional space of a subject, and a reconstructed image that focuses on an arbitrary subject distance can be generated by reconstructing the data. Item 13. The image processing apparatus according to any one of Items 1 to 12. ライトフィールドデータを取得するデータ取得工程と、
被写体を選択する選択工程と、
前記選択工程において選択された被写体に合焦させないための情報であり、前記ライトフィールドデータの再構成を制限する情報である制限情報を出力する出力工程と、を有し、
前記選択工程において、前記ライトフィールドデータを撮影した撮像装置の地理的位置を特定され、外部装置から受信される地理的位置の位置情報に関連付けられた情報に基づいて、被写体が選択される
ことを特徴とする画像処理方法。
A data acquisition process for acquiring light field data;
A selection process for selecting a subject;
An output step for outputting restriction information, which is information for not focusing on the subject selected in the selection step, and information for restricting reconstruction of the light field data,
In the selecting step, the geographical position of the imaging device that captured the light field data is specified, and the subject is selected based on information associated with the positional information of the geographical position received from the external device. A featured image processing method.
コンピュータに請求項1乃至13のいずれか1項に記載の画像処理装置の各手段として機能させるためのプログラム。   A program for causing a computer to function as each unit of the image processing apparatus according to any one of claims 1 to 13. 請求項15に記載のプログラムを記録したコンピュータが読み取り可能な記録媒体。   The computer-readable recording medium which recorded the program of Claim 15.
JP2014185700A 2013-09-20 2014-09-11 Image processing apparatus, image processing method, program, and recording medium Active JP6470530B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2014185700A JP6470530B2 (en) 2013-12-06 2014-09-11 Image processing apparatus, image processing method, program, and recording medium
US14/488,927 US9420168B2 (en) 2013-09-20 2014-09-17 Image processing apparatus, image processing method, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013253638 2013-12-06
JP2013253638 2013-12-06
JP2014185700A JP6470530B2 (en) 2013-12-06 2014-09-11 Image processing apparatus, image processing method, program, and recording medium

Publications (3)

Publication Number Publication Date
JP2015130646A true JP2015130646A (en) 2015-07-16
JP2015130646A5 JP2015130646A5 (en) 2017-08-10
JP6470530B2 JP6470530B2 (en) 2019-02-13

Family

ID=53761069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014185700A Active JP6470530B2 (en) 2013-09-20 2014-09-11 Image processing apparatus, image processing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP6470530B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017118341A (en) * 2015-12-24 2017-06-29 株式会社ニコン Image processing device, imaging device, electronic apparatus, and image processing program
CN113556529A (en) * 2021-07-30 2021-10-26 中山大学 High-resolution light field image display method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007266928A (en) * 2006-03-28 2007-10-11 Casio Comput Co Ltd Mobile apparatus and program
JP2010525667A (en) * 2007-04-20 2010-07-22 ジェネラル・インスツルメント・コーポレーション Simulating shallow depth of field to maximize privacy in videophones
WO2012001947A1 (en) * 2010-06-28 2012-01-05 株式会社ニコン Imaging device, image processing device, image processing program recording medium
JP2013145980A (en) * 2012-01-13 2013-07-25 Canon Inc Imaging device, control method thereof, image processing apparatus, image generation method, program
JP2013165475A (en) * 2011-08-19 2013-08-22 Canon Inc Imaging apparatus for generating auxiliary information on photographed image, image processor and image processing method
JP2013536610A (en) * 2010-07-06 2013-09-19 デジタルオプティックス・コーポレイション・ヨーロッパ・リミテッド Scene background blur with distance measurement
JP2013222335A (en) * 2012-04-17 2013-10-28 Hitachi Ltd Object identification system, object identification server and object identification terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007266928A (en) * 2006-03-28 2007-10-11 Casio Comput Co Ltd Mobile apparatus and program
JP2010525667A (en) * 2007-04-20 2010-07-22 ジェネラル・インスツルメント・コーポレーション Simulating shallow depth of field to maximize privacy in videophones
WO2012001947A1 (en) * 2010-06-28 2012-01-05 株式会社ニコン Imaging device, image processing device, image processing program recording medium
JP2013536610A (en) * 2010-07-06 2013-09-19 デジタルオプティックス・コーポレイション・ヨーロッパ・リミテッド Scene background blur with distance measurement
JP2013165475A (en) * 2011-08-19 2013-08-22 Canon Inc Imaging apparatus for generating auxiliary information on photographed image, image processor and image processing method
JP2013145980A (en) * 2012-01-13 2013-07-25 Canon Inc Imaging device, control method thereof, image processing apparatus, image generation method, program
JP2013222335A (en) * 2012-04-17 2013-10-28 Hitachi Ltd Object identification system, object identification server and object identification terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017118341A (en) * 2015-12-24 2017-06-29 株式会社ニコン Image processing device, imaging device, electronic apparatus, and image processing program
CN113556529A (en) * 2021-07-30 2021-10-26 中山大学 High-resolution light field image display method, device, equipment and medium

Also Published As

Publication number Publication date
JP6470530B2 (en) 2019-02-13

Similar Documents

Publication Publication Date Title
JP6029380B2 (en) Image processing apparatus, imaging apparatus including image processing apparatus, image processing method, and program
JP6305053B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
US9674408B2 (en) Image pickup apparatus that utilizes a refocusable range, image processing method, and recording medium
JP5898501B2 (en) Image processing apparatus, imaging apparatus, control method, program, and recording medium
JP6159097B2 (en) Image processing apparatus, imaging apparatus, control method, and program
US9420168B2 (en) Image processing apparatus, image processing method, and storage medium
JP2010039448A (en) Image photographing device, and distance calculating method and focused image acquiring method therefor
US9924155B2 (en) Imaging apparatus and method for controlling same
US9357205B2 (en) Stereoscopic image control apparatus to adjust parallax, and method and program for controlling operation of same
JP6003578B2 (en) Image generation method and apparatus
JP7104296B2 (en) Rangefinder camera
JP2013026844A (en) Image generation method and device, program, recording medium, and electronic camera
JP2014153890A5 (en)
CN111108742A (en) Information processing device, information processing method, program, and interchangeable lens
JP6095266B2 (en) Image processing apparatus and control method thereof
JP2016225811A (en) Image processing apparatus, image processing method, and program
JP6234401B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP6470530B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2014036362A (en) Imaging device, control method therefor, and control program
JP6168220B2 (en) Image generation apparatus, image processing apparatus, image generation method, and image processing program
JP6491442B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP6608194B2 (en) Image processing apparatus, control method therefor, and program
JP6502640B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, AND RECORDING MEDIUM
JP7373297B2 (en) Image processing device, image processing method and program
JP6569769B2 (en) Arbitrary viewpoint image composition method and image processing apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170630

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180705

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190118

R151 Written notification of patent or utility model registration

Ref document number: 6470530

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151