JP5181832B2 - Photographed image composition method and digital camera - Google Patents

Photographed image composition method and digital camera Download PDF

Info

Publication number
JP5181832B2
JP5181832B2 JP2008136595A JP2008136595A JP5181832B2 JP 5181832 B2 JP5181832 B2 JP 5181832B2 JP 2008136595 A JP2008136595 A JP 2008136595A JP 2008136595 A JP2008136595 A JP 2008136595A JP 5181832 B2 JP5181832 B2 JP 5181832B2
Authority
JP
Japan
Prior art keywords
subject
image
area
region
photographed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008136595A
Other languages
Japanese (ja)
Other versions
JP2009284404A (en
Inventor
達也 竹川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2008136595A priority Critical patent/JP5181832B2/en
Publication of JP2009284404A publication Critical patent/JP2009284404A/en
Application granted granted Critical
Publication of JP5181832B2 publication Critical patent/JP5181832B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、カメラ付携帯電話機等の十分な絞り機構が搭載されていないデジタルカメラによって、被写体を鮮明に、かつ背景をボカした画像等を撮影する技術に関する。   The present invention relates to a technique for capturing an image of a subject with a clear background and a blurred background using a digital camera not equipped with a sufficient aperture mechanism such as a camera-equipped mobile phone.

被写体にピントを合わせて写真撮影を行うと、被写体はシャープに写し出されるが、被写体の前後に位置している前景および背景は、被写体よりボケた画像となる。このとき撮影レンズからみてシャープに写し出される距離範囲を被写界深度といい、焦点距離と撮影距離を同じ条件にした場合、レンズの絞り(F値)を絞り込むほど被写界深度は深くなり、開放にするほど被写界深度は浅くなる。   When a photograph is taken with the subject in focus, the subject appears sharp, but the foreground and background located before and after the subject are blurred images. At this time, the distance range that is sharply viewed from the photographic lens is called the depth of field. If the focal length and the shooting distance are the same, the depth of field becomes deeper as the lens aperture (F value) is reduced. The more you open, the shallower the depth of field.

例えばポートレート撮影等、特定の対象物の撮影を行う場合に、レンズを開放状態に設定して被写界深度を浅くした状態で被写体にピントを合わせて撮影することにより、主要被写体のみを鮮明に描写し、被写体の前後に位置している前景および背景を意識的にボカした写真を撮影する手法があるが、その場合、レンズとしてF値の明るい大口径レンズを用いて撮影しないと十分なボケ効果のある写真は得られない。   For example, when shooting a specific object, such as portrait shooting, only the main subject is sharpened by setting the lens to the open state and focusing on the subject with a shallow depth of field. In this case, it is sufficient to take a photograph using a large-aperture lens with a bright F-number as a lens. Pictures with a blur effect cannot be obtained.

一方、最近はデジカメやカメラ付携帯電話機が普及しているが、F値の明るい大口径レンズは、レンズ自体が大型化するとともに高価であって、カメラ付携帯電話機等に搭載されたカメラ用のレンズとして採用することは殆ど不可能である。そのため、カメラ付携帯電話機等に搭載されたカメラのレンズ自体の特性によって、被写体を鮮明にして背景をボカした写真撮影を行うことは一般的には困難である。   On the other hand, although digital cameras and camera-equipped mobile phones have recently become widespread, large-aperture lenses with a bright F value have a large lens size and are expensive, and are used for cameras mounted on camera-equipped cellular phones and the like. It is almost impossible to adopt as a lens. For this reason, it is generally difficult to take a picture with a clear subject and blurred background due to the characteristics of the lens of the camera mounted on the camera-equipped mobile phone or the like.

このような問題を解決する手段として、特許文献1には、撮影レンズによって撮像素子上に結像させた光学像をデジタルデータとして記録媒体に記録するデジタルカメラにおいて、前記光学像を前記撮像素子からの距離に応じて主要被写体を含むエリアと、該主要被写体の前景及び/又は背景となるエリアとを含む複数のエリアに区分けする区分け手段と、主要被写体に対して合焦位置で撮像を行うとともに、該合焦位置に対して焦点位置をずらした複数コマの撮像を行う撮像制御手段と、撮像画像を表示する表示手段と、前記表示手段で表示された複数コマの撮像画像の中から前記各エリアを構成する画像を選択する画像選択手段と、前記画像選択手段で選択された前記各エリアの画像を前記複数コマの撮像画像の中から抽出し、これらのエリアの画像を1つに合成する画像合成手段と、を備えることにより、F値の明るい大口径レンズを使用しなくても、同等のボケ描写効果を有する画像の撮影を可能にする技術が記載されている。   As means for solving such a problem, Patent Document 1 discloses that in a digital camera that records an optical image formed on a imaging element by a photographic lens on a recording medium as digital data, the optical image is read from the imaging element. According to the distance between the main subject and a foreground and / or background area of the main subject. An imaging control unit that captures a plurality of frames with a focal position shifted from the in-focus position, a display unit that displays a captured image, and each of the captured images of the plurality of frames displayed on the display unit. An image selecting means for selecting an image constituting the area, and images of each area selected by the image selecting means are extracted from the captured images of the plurality of frames, and A technique for enabling photographing of an image having equivalent blurring effect without using a large-aperture lens having a bright F value is provided by including an image composition means for composing a rear image into one. Has been.

特開2003−209727号公報JP 2003-209727 A

特許文献1に記載のデジタルカメラによれば、主要被写体に対して合焦位置で撮像を行うとともに、該合焦位置に対して焦点位置をずらした複数コマの撮像を行い、これら複数の撮影画像を合成することによって、主要被写体の前景又は背景となる画像を好みのボケ描写画像とすることができるので、F値の明るい大口径レンズを使用しなくても、同等のボケ描写効果を有する撮影画像を取得することができる。   According to the digital camera described in Patent Document 1, the main subject is imaged at the in-focus position, and a plurality of frames are imaged with the focal position shifted from the in-focus position. By synthesizing the image, the foreground or background image of the main subject can be set as a desired defocused image. Therefore, even if a large aperture lens with a bright F value is not used, shooting with the same defocusing effect can be performed. Images can be acquired.

しかし、特許文献1に記載の発明では、撮影レンズによって撮像素子上に結像させた光学像を、先ず区分け手段によって、撮像素子からの距離に応じて主要被写体を含むエリアと、該主要被写体の前景及び/又は背景となるエリアとを含む複数のエリアに区分けし、その後、主要被写体に対して合焦位置で撮像を行うとともに、該合焦位置に対して焦点位置を前あるいは後にずらして複数コマの撮像を行い、この複数コマの撮像画像の中からユーザによって選択された各エリアの画像データを合成して1つの合成画像を生成する構成であるため、その構成が複雑であるとともに、操作も面倒である。   However, in the invention described in Patent Document 1, an optical image formed on the image sensor by the photographic lens is first classified by the sectioning unit according to the distance from the image sensor and the area including the main object. The image is divided into a plurality of areas including the foreground and / or background area, and then the main subject is imaged at the in-focus position, and the focus position is shifted forward or backward with respect to the in-focus position. Since this is a configuration in which frames are captured and image data of each area selected by the user from among the captured images of the plurality of frames is combined to generate one combined image, the configuration is complicated and operation Is also troublesome.

本発明の目的は、比較的簡単な方法で画像合成によるボケ描写効果を有する撮影画像を取得可能にする手段を提供することにある。   An object of the present invention is to provide a means that makes it possible to acquire a photographed image having a blur rendering effect by image synthesis in a relatively simple manner.

本発明の撮影画像合成方法は、被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置及び前記被写体の合焦位置においてそれぞれ前記被写体を撮影し、該撮影した各画像のコントラスト値から、前記被写体領域と該被写体の背景領域をそれぞれ抽出するとともに、該抽出した被写体領域に対して、前記被写体の合焦位置で撮影した該当領域の画像を当て嵌め、前記抽出した背景領域に対して、前記最短撮影距離位置で撮影した該当領域の画像を当て嵌めて一つの画像に合成することを特徴とする。   The captured image composition method of the present invention moves the photographic lens from the shortest shooting distance position (macro edge) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction when shooting the subject, The subject is photographed at each in-focus position, and the subject region and the background region of the subject are extracted from the contrast value of each photographed image, and the subject is focused on the extracted subject region. An image of a corresponding area photographed at a position is fitted, and an image of the corresponding area photographed at the shortest photographing distance position is fitted to the extracted background area to be combined into one image.

また本発明の撮影画像合成方法は、被写体撮影時に撮影レンズの焦点を最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影し、該撮影した各画像のコントラスト値から、前記被写体領域と該被写体の背景領域をそれぞれ抽出するとともに、合成方法選択指示に従って、前記抽出した被写体領域および背景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域および背景領域を組み合わせて一つの画像に合成することを特徴とする。   In addition, the method of synthesizing a captured image according to the present invention is configured to move the focus of the photographing lens from the shortest photographing distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest photographing distance position direction when photographing a subject, The subject is photographed at the in-focus position and the infinite position of the subject, respectively, the subject area and the background area of the subject are extracted from the contrast value of each photographed image, and in accordance with a synthesis method selection instruction, The extracted subject area and background area are combined into one image by combining the subject area and background area selected from the images taken at the shortest shooting distance position, the in-focus position of the subject, and the ∞ position. It is characterized by doing.

また本発明の撮影画像合成方法は、被写体撮影時に撮影レンズの焦点を最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影し、該撮影した各画像のコントラスト値から、前記被写体領域と該被写体の背景領域および前景領域をそれぞれ抽出するとともに、合成方法選択指示に従って、前記抽出した被写体領域と背景領域および前景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域と背景領域および前景領域を組み合わせて一つの画像に合成することを特徴とする。   In addition, the method of synthesizing a captured image according to the present invention is configured to move the focus of the photographing lens from the shortest photographing distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest photographing distance position direction when photographing a subject, The subject is photographed at the in-focus position and the infinite position of the subject, and the subject area, the background area and the foreground area of the subject are extracted from the contrast value of each photographed image, and a synthesis method selection instruction In accordance with the extracted subject area, background area and foreground area, the subject area, background area and foreground selected from the images taken at the shortest shooting distance position, the focus position of the subject and the ∞ position It is characterized by combining regions into one image.

本発明のデジタルカメラは、被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置及び前記被写体の合焦位置においてそれぞれ前記被写体を撮影する被写体撮影手段と、前記撮影された各画像のコントラスト値から、前記被写体領域および該被写体の背景領域をそれぞれ抽出する被写体/周囲景抽出手段と、前記抽出された被写体領域に対して、前記被写体の合焦位置で撮影された該当領域の画像を当て嵌め、前記抽出された背景領域に対して、前記最短撮影距離位置で撮影された該当領域の画像を当て嵌めて一つの画像に合成する画像合成手段と、を備えていることを特徴とする。   The digital camera of the present invention moves the photographic lens from the shortest shooting distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction during subject shooting, while focusing on the shortest shooting distance position and the subject. Subject photographing means for photographing the subject at each position; subject / ambient scene extracting means for extracting the subject region and the background region of the subject from the contrast value of each photographed image; and the extracted subject Fit the image of the corresponding area photographed at the in-focus position of the subject to the area, and fit the image of the corresponding area photographed at the shortest shooting distance position to the extracted background area. And image combining means for combining the images into one image.

また本発明のデジタルカメラは、被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影する被写体撮影手段と、前記撮影された各画像のコントラスト値から、前記被写体領域および該被写体の背景領域をそれぞれ抽出する被写体/周囲景抽出手段と、合成方法選択指示に従って、前記抽出された被写体領域および背景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域および背景領域を組み合わせて一つの画像に合成する撮影画像合成手段と、を備えていることを特徴とする。   In addition, the digital camera of the present invention moves the photographic lens from the shortest shooting distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction when shooting the subject, Subject photographing means for photographing the subject at the focal position and the infinite position; and a subject / ambient scene extracting means for extracting the subject area and the background area of the subject from the contrast value of each photographed image; The subject area and background area selected from the images taken at the shortest shooting distance position, the in-focus position of the subject, and the ∞ position with respect to the extracted subject area and background area in accordance with a synthesis method selection instruction And a photographed image synthesizing means for synthesizing them into one image.

また本発明のデジタルカメラは、被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影する被写体撮影手段と、前記撮影された各画像のコントラスト値から、前記被写体領域と該被写体の背景領域および前景領域をそれぞれ抽出する被写体/周囲景抽出手段と、合成方法選択指示に従って、前記抽出された被写体領域と背景領域および前景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域と背景領域および前景領域を組み合わせて一つの画像に合成する撮影画像合成手段と、を備えていることを特徴とする。   In addition, the digital camera of the present invention moves the photographic lens from the shortest shooting distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction when shooting the subject, Subject photographing means for photographing the subject at the focal position and the ∞ position, and subject / ambient scene extraction for extracting the subject region, the background region of the subject, and the foreground region from the contrast value of each photographed image, respectively. And the selected subject area, the background area, and the foreground area are selected from the images taken at the shortest shooting distance position, the in-focus position of the subject, and the ∞ position in accordance with the means and the synthesis method selection instruction. Photographed image combining means for combining the subject area, the background area, and the foreground area into a single image. It is characterized in.

本発明によれば、カメラ付携帯電話など十分な絞り機構が搭載されていないデジタルカメラに対して、レンズを∞位置からマクロ位置まであるいはマクロ位置から∞位置まで、一方向に移動制御している間に、マクロ位置及び被写体合焦位置において、又はマクロ位置、被写体合焦位置及び∞位置においてそれぞれ前記被写体の撮影を完了することができるので、撮影時間が短縮され、撮影中における被写体の位置ずれ等を最小限に抑えることができる。   According to the present invention, the lens is controlled to move in one direction from the ∞ position to the macro position or from the macro position to the ∞ position with respect to a digital camera not equipped with a sufficient aperture mechanism such as a camera-equipped mobile phone. In the meantime, the photographing of the subject can be completed at the macro position and the subject in-focus position, or at the macro position, the subject in-focus position and the ∞ position, respectively. Etc. can be minimized.

また、合成画像として、マクロ位置と∞位置での撮影画像を用いているので、比較的簡単な構成および操作でボケ効果の大きい撮影画像を得ることができる。   In addition, since the captured images at the macro position and the ∞ position are used as the composite image, it is possible to obtain a captured image with a large blur effect with a relatively simple configuration and operation.

また、合成処理の方法により、フルフォーカス(近/遠共に合焦)、フルピンボケ(全てがピントボケ)等の画像も容易に撮影することができる。   In addition, images such as full focus (both near and far) and full out-of-focus (all out of focus) can be easily captured by the composition processing method.

図1は、本発明が適用されるデジタルカメラの要部構成を示す機能ブロック図であり、図に示す機能ブロックを備えた単体のデジタルカメラ、あるいはこのデジタルカメラを搭載した携帯電話機等のカメラ機能付携帯通信端末として実現可能である。   FIG. 1 is a functional block diagram showing the main configuration of a digital camera to which the present invention is applied. The camera function of a single digital camera having the functional block shown in the figure or a mobile phone equipped with the digital camera is shown. It can be realized as an attached mobile communication terminal.

本実施形態のデジタルカメラは、レンズ制御部11、イメージセンサ部12、制御部13、メモリ部14、画像処理部15、表示部16、保存部17、操作部18から構成される。なお、本実施形態のデジタルカメラを搭載した携帯通信端末として実現する場合には、制御部13、メモリ部14、画像処理部15、表示部16、保存部17、操作部18は、該携帯通信端末がこれらに対応して備えている機能ブロックと兼用させることができる。   The digital camera of this embodiment includes a lens control unit 11, an image sensor unit 12, a control unit 13, a memory unit 14, an image processing unit 15, a display unit 16, a storage unit 17, and an operation unit 18. When implemented as a portable communication terminal equipped with the digital camera of the present embodiment, the control unit 13, the memory unit 14, the image processing unit 15, the display unit 16, the storage unit 17, and the operation unit 18 are connected to the portable communication terminal. The terminal can also be used as a functional block corresponding to these.

レンズ制御部11は、制御部13の命令に従いレンズ移動を行い、制御部13に指定位置への移動結果を返り値として返す。イメージセンサ部12は、制御部13の命令に従い、撮影画像を制御部13へ出力する。制御部13ではイメージセンサ部から出力された画像データをメモリ部14に出力する。画像処理部15ではメモリ部の画像データを用いて合成処理を行う。   The lens control unit 11 moves the lens in accordance with an instruction from the control unit 13, and returns the result of movement to the designated position to the control unit 13 as a return value. The image sensor unit 12 outputs a captured image to the control unit 13 in accordance with an instruction from the control unit 13. The control unit 13 outputs the image data output from the image sensor unit to the memory unit 14. The image processing unit 15 performs composition processing using the image data in the memory unit.

表示部16には画像処理部15で合成処理された画像が表示され、操作部18の操作により表示された画像が保存部17に保存される。また、操作部18の操作により本手法の使用可否が制御部13に命令され、本手法を使用しない場合には通常のAF(オートフォーカス)機能による1回の被写体撮影が行われ、画像処理部15での合成処理は行わないものとする。   The display unit 16 displays the image synthesized by the image processing unit 15, and the image displayed by the operation of the operation unit 18 is stored in the storage unit 17. Further, whether or not to use the present method is instructed to the control unit 13 by the operation of the operation unit 18, and when the present method is not used, the subject is photographed once by a normal AF (autofocus) function, and the image processing unit 15 is not performed.

図2は、本発明の第1の実施形態を示すフローチャートであり、図3〜図4は、本実施形態の動作説明図である。以下、図1〜図4を参照して、本実施形態の動作について説明する。   FIG. 2 is a flowchart showing the first embodiment of the present invention, and FIGS. 3 to 4 are operation explanatory views of this embodiment. Hereinafter, the operation of the present embodiment will be described with reference to FIGS.

カメラ起動中に操作部18の操作に従って制御部13は、本実施形態の被写体強調モードを使用するかどうかを決定する(S1)。被写体強調モードを使用しない場合は、通常の撮影モードに移行する。通常撮影モードではAF機能によりレンズ位置を被写体合焦状態に設定して1回撮影する(S8)。撮影した合焦画像をそのまま表示部に出力して表示後(S9)、操作部18からの保存指示(S10)に従って、撮影画像を保存する(S11)。   The control unit 13 determines whether or not to use the subject enhancement mode of the present embodiment in accordance with the operation of the operation unit 18 while the camera is activated (S1). When the subject emphasis mode is not used, the process shifts to the normal shooting mode. In the normal photographing mode, the lens position is set to the subject in-focus state by the AF function and photographing is performed once (S8). After the captured focused image is output to the display unit as it is and displayed (S9), the captured image is stored in accordance with a storage instruction (S10) from the operation unit 18 (S11).

被写体強調モードが選択された場合は、レンズ制御部11により撮影レンズ位置を∞位置(∞端)から最短撮影距離位置(マクロ端)方向に移動させながら、レンズ位置が被写体合焦位置となったとき及びマクロ位置となったときの2箇所において同一被写体を撮影する自動連続撮影が行われる(S2)、(S3)。次に、(S2)と(S3)で撮影した画像を合成する(S4)。   When the subject emphasis mode is selected, the lens control unit 11 moves the photographing lens position from the ∞ position (∞ end) toward the shortest shooting distance position (macro end), and the lens position becomes the subject in-focus position. Automatic continuous shooting is performed in which the same subject is shot at two locations at the time and when the macro position is reached (S2) and (S3). Next, the images photographed in (S2) and (S3) are combined (S4).

図3に示すように、コントラスト値は、被写体に合焦している場合(レンズ位置B)は大きいが、非合焦時(レンズ位置A)では小さくなる。また、マクロモードのレンズ位置Aで撮影した遠方の背景画像は被写体に合焦しているレンズ位置Bで撮影した遠方の背景画像よりもコントラスト値が小さく、ピンボケの度合いも大きい。(S2)と(S3)で撮影した2枚の画像のコントラスト値の差分をとると、被写体に合焦している領域の差分は、合焦していない背景領域の差分よりも大きくなる。そこで、2枚の画像のコントラスト値の差分より被写体と背景の判断を行うことで合成箇所を抽出する。   As shown in FIG. 3, the contrast value is large when the subject is in focus (lens position B), but is small when the subject is out of focus (lens position A). Further, a distant background image captured at the lens position A in the macro mode has a smaller contrast value and a greater degree of out-of-focus than a distant background image captured at the lens position B focused on the subject. When the difference between the contrast values of the two images taken in (S2) and (S3) is taken, the difference between the areas focused on the subject is larger than the difference between the background areas not focused. Therefore, the composite part is extracted by determining the subject and the background from the difference between the contrast values of the two images.

なお、図3に示すように、被写体合焦状態(レンズ位置B)に設定して撮影した画像において、被写体のコントラスト値は、背景のコントラスト値よりも大きくなるので、被写体合焦状態(レンズ位置B)に設定して撮影した画像から、コントラスト値が大きい領域を被写体と判定して抽出し、コントラスト値が小さい領域を背景と判定してそれぞれの合成箇所を抽出することもできる。   Note that, as shown in FIG. 3, in an image captured in the subject in-focus state (lens position B), the subject contrast value is larger than the background contrast value. It is also possible to extract a region having a high contrast value by determining it as a subject and extracting a region having a low contrast value as a background from an image captured with setting B).

(S4)の画像合成は、図4に示すように、抽出された被写体部分には、レンズ位置を被写体合焦状態で撮影したコントラスト値の大きい部分を当て嵌め、抽出された背景部分には、マクロモード撮影状態で撮影したコントラスト値の小さい部分を当て嵌めて合成処理を行う(S5)。従って、合成された画像は、AF機能によりレンズ位置を被写体合焦状態に設定して撮影した画像(画像B)と比較して、背景のボケがより強調された画像となる。合成した画像は表示部16に出力されて表示され(S5)、操作部18からの保存指示(S6)に従って保存される(S7)。   In the image composition of (S4), as shown in FIG. 4, the extracted subject portion is fitted with a portion having a large contrast value obtained by photographing the lens position in the subject in-focus state, and the extracted background portion is A composition process is performed by fitting a portion having a small contrast value captured in the macro mode imaging state (S5). Therefore, the synthesized image is an image in which the blur of the background is more emphasized compared to an image (image B) that was shot with the lens position set to the subject in-focus state by the AF function. The synthesized image is output and displayed on the display unit 16 (S5), and is stored according to a storage instruction (S6) from the operation unit 18 (S7).

図5は、本発明の第2の実施形態を示すフローチャートであり、図6〜図7は、本実施形態の動作説明図である。   FIG. 5 is a flowchart showing a second embodiment of the present invention, and FIGS. 6 to 7 are operation explanatory views of the present embodiment.

本実施形態では、レンズ位置を、最短撮影距離位置(マクロ端)/被写体合焦位置/∞位置の3箇所に設定して自動連続撮影を行うモード(以下、多段AFモードという)により、同一被写体を、レンズを∞合焦位置、被写体合焦位置、およびマクロ合焦位置でそれぞれ撮影し、これら3枚の撮影画像を適宜合成することにより、被写体強調画像の他に、フルフォーカス画像やフルピンボケ画像等、ユーザが好みの合成画像を得ることを可能にしている。以下、図1、図5〜図7を参照して、本実施形態の動作について説明する。   In the present embodiment, the same subject is used in a mode in which automatic continuous shooting is performed by setting the lens position to three positions of the shortest shooting distance position (macro edge) / subject focus position / ∞ position (hereinafter referred to as multi-stage AF mode). The lens is photographed at the ∞ focus position, the subject focus position, and the macro focus position, and by combining these three shot images as appropriate, in addition to the subject-enhanced image, The user can obtain a favorite composite image such as an image. Hereinafter, the operation of the present embodiment will be described with reference to FIGS. 1 and 5 to 7.

カメラ起動中に操作部18の操作に従って、多段AFモードを使用するかどうかを決定する(S21)。多段AFモードを使用しない場合は通常の撮影モードに移行する。通常撮影モードでは被写体に合焦したAFモードで被写体を1回撮影する(S29)。撮影画像はそのまま表示部に出力されて表示後(S30)、操作部18からの保存指示(S31)に従って保存される(S32)。   Whether or not to use the multi-stage AF mode is determined according to the operation of the operation unit 18 while the camera is activated (S21). When the multi-stage AF mode is not used, the normal shooting mode is shifted. In the normal shooting mode, the subject is shot once in the AF mode focused on the subject (S29). The captured image is output to the display unit as it is, displayed (S30), and stored in accordance with a storage instruction (S31) from the operation unit 18 (S32).

操作部18の操作によって多段AFモードが選択された場合は多段AFモードに移行する。多段AFモードの撮影では、レンズ制御部11により撮影レンズ位置を∞位置(∞端)から最短撮影距離位置(マクロ端)方向に移動させながら、レンズ位置が∞位置/被写体合焦位置/マクロ位置となったときの3箇所において同一被写体を撮影する自動連続撮影が行われる(S21)。   When the multi-stage AF mode is selected by operating the operation unit 18, the multi-stage AF mode is entered. In multi-stage AF mode shooting, the lens position is moved from the ∞ position (∞ end) to the shortest shooting distance position (macro end) by the lens control unit 11 while the lens position is ∞ position / subject focus position / macro position. Then, automatic continuous shooting is performed in which the same subject is shot at three locations (S21).

この場合のレンズ移動は図6に示すように、レンズが∞側から移動開始し、∞の位置(C)で撮影後、被写体合焦位置(B)で撮影し、最後にマクロの位置(A)で撮影を行う。撮影結果はメモリ部14に保存され後の合成処理で使用される。なお実施例では、レンズ移動を∞側から動作を開始するようにしているが、この限りではなくマクロ側から動作を開始しても良い。   In this case, as shown in FIG. 6, the lens starts moving from the ∞ side, shoots at the ∞ position (C), shoots at the subject in-focus position (B), and finally the macro position (A ) The photographing result is stored in the memory unit 14 and used in the subsequent composition processing. In the embodiment, the lens movement is started from the ∞ side. However, the present invention is not limited to this, and the operation may be started from the macro side.

本実施形態では、合成方法の選択結果(S23)により合成処理が異なる。被写体強調フォーカスを行う場合の合成処理は図6の(A)と(B)で撮影した画像を合成する(S24)。フルフォーカスを行う場合の合成処理は図6の(B)と(C)で撮影した画像を合成する(S25)。フルピンボケを行う場合の合成処理は図6の(A)と(C)で撮影した画像を合成する(S26)。   In the present embodiment, the synthesis process differs depending on the synthesis method selection result (S23). In the composition processing when subject emphasis focus is performed, the images photographed in FIGS. 6A and 6B are composed (S24). In the synthesis process in the case of performing full focus, the images photographed in FIGS. 6B and 6C are synthesized (S25). In the synthesis process in the case of performing full blurring, the images photographed in FIGS. 6A and 6C are synthesized (S26).

図7に示すように、(A)の位置で撮影した画像は遠方がピンボケしており、(C)の位置で撮影した画像は近距離がピンボケしている画像が常に得られる。また、(B)の位置では被写体にピントが合っている画像が得られる。この3パターンの画像を組み合わせることにより各々の場合の画像合成を実現する。画像内の合成箇所は撮影した各画像でコントラスト値を比較し、合成処理方法に応じて決定する。   As shown in FIG. 7, an image taken at the position (A) is out of focus, and an image taken at the position (C) is always obtained as an image with a close range being out of focus. Further, an image in which the subject is in focus is obtained at the position (B). By combining these three patterns of images, image synthesis in each case is realized. The composition location in the image is determined according to the composition processing method by comparing the contrast values of the captured images.

コントラスト値による画像合成処理方法は図3で説明した第1の実施形態の場合と同様である。なお、図3では例として被写体強調フォーカス時の合成処理方法を述べているが、フルフォーカス時は2枚の画像のコントラスト値の大きい部分の重ね合わせであり、フルピンボケ時はコントラスト値の小さい部分を重ね合わせる。合成後は画像を表示部16に表示し(S27)、操作部18からの保存指示(S28)に従って保存する(S29)。   The image composition processing method using the contrast value is the same as that in the first embodiment described with reference to FIG. In FIG. 3, the composition processing method at the time of subject emphasis focus is described as an example. However, at the time of full focus, a portion where the contrast value of two images is large is superimposed, and at the time of full blur, a portion where the contrast value is small Are superimposed. After the composition, the image is displayed on the display unit 16 (S27), and is stored according to a storage instruction (S28) from the operation unit 18 (S29).

本実施形態によれば、被写体強調フォーカスの他に、フルフォーカスやフルピンボケの合成画像を得ることができる。また本実施形態で説明した以外の態様として、背景のみ鮮明で被写体がピンボケした画像の合成を選択して実施させることも可能である。   According to this embodiment, in addition to the subject emphasis focus, it is possible to obtain a composite image of full focus or full focus. Further, as a mode other than that described in the present embodiment, it is also possible to select and perform synthesis of an image in which only the background is clear and the subject is out of focus.

また上記実施形態では、2枚の画像を合成したが、(A)、(B)、(C)の各レンズ位置で撮影した3枚の画像を合成することも可能である。   In the above embodiment, two images are combined, but it is also possible to combine three images taken at the lens positions (A), (B), and (C).

例えば被写体とカメラの間に前景がある場合、(A)と(B)の各レンズ位置で撮影した撮影画像を比較することによって(A)の撮影画像のコントラスト値が(B)の撮影画像のコントラスト値よりも大きい領域を前景として抽出する。そして、画像合成時には、該抽出した前景領域に対して、(C)のレンズ位置で撮影した撮影画像の該当領域を嵌め込む。このようにすれば、前景及び背景を含む被写体の周囲景を効率よくボカすことができ、より被写体を強調した画像を合成することができる。   For example, when there is a foreground between the subject and the camera, the contrast value of the captured image of (A) is compared with the captured image of (B) by comparing the captured images captured at the lens positions of (A) and (B). An area larger than the contrast value is extracted as the foreground. At the time of image composition, the corresponding area of the photographed image photographed at the lens position (C) is inserted into the extracted foreground area. In this way, it is possible to efficiently blur the surrounding scene of the subject including the foreground and the background, and it is possible to synthesize an image in which the subject is more emphasized.

また、フルフォーカス合成が選択された場合には、前記抽出した前景領域に対して、(A)のレンズ位置で撮影した撮影画像の該当領域を嵌め込むことによって、前景、被写体および背景に亘って、よりピントの合った画像の合成が可能となる。   When full focus composition is selected, the foreground, subject, and background are covered by fitting the corresponding area of the photographed image taken at the lens position (A) into the extracted foreground area. This makes it possible to synthesize a more focused image.

本発明が適用されるデジタルカメラの要部構成を示す機能ブロック図である。It is a functional block diagram which shows the principal part structure of the digital camera to which this invention is applied. 本発明の第1の実施形態を示すフローチャートである。It is a flowchart which shows the 1st Embodiment of this invention. 第1の実施形態の動作説明図である。It is operation | movement explanatory drawing of 1st Embodiment. 第1の実施形態の動作説明図である。It is operation | movement explanatory drawing of 1st Embodiment. 本発明の第2の実施形態を示すフローチャートである。It is a flowchart which shows the 2nd Embodiment of this invention. 第2の実施形態の動作説明図である。It is operation | movement explanatory drawing of 2nd Embodiment. 第2の実施形態の動作説明図である。It is operation | movement explanatory drawing of 2nd Embodiment.

符号の説明Explanation of symbols

11 レンズ制御部
12 イメージセンサ部
13 制御部
14 メモリ部
15 画像処理部
16 表示部
17 保存部
18 操作部
DESCRIPTION OF SYMBOLS 11 Lens control part 12 Image sensor part 13 Control part 14 Memory part 15 Image processing part 16 Display part 17 Storage part 18 Operation part

Claims (9)

被写体撮影時に撮影レンズの焦点を最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影し、該撮影した各画像のコントラスト値から、被写体領域と該被写体の背景領域をそれぞれ抽出するとともに、合成方法選択指示に従って、前記抽出した被写体領域および背景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域および背景領域を組み合わせて一つの画像に合成することを特徴とする撮影画像合成方法。   While shooting the subject, the focus of the taking lens is moved from the shortest shooting distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction, while the shortest shooting distance position, the in-focus position of the subject, and the ∞ position. Each of the subject is photographed, the subject region and the background region of the subject are extracted from the contrast value of each photographed image, and the extracted subject region and the background region according to the synthesis method selection instruction, A photographed image composition method comprising combining the subject area and the background area selected from the images photographed at the shortest photographing distance position, the in-focus position of the subject and the ∞ position into one image. 被写体撮影時に撮影レンズの焦点を最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影し、該撮影した各画像のコントラスト値から、被写体領域と該被写体の背景領域および前景領域をそれぞれ抽出するとともに、合成方法選択指示に従って、前記抽出した被写体領域と背景領域および前景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域と背景領域および前景領域を組み合わせて一つの画像に合成することを特徴とする撮影画像合成方法。   While shooting the subject, the focus of the taking lens is moved from the shortest shooting distance position (macro end) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction, while the shortest shooting distance position, the in-focus position of the subject, and the ∞ position. Each of the subject is photographed, and the subject region, the background region and the foreground region of the subject are respectively extracted from the contrast value of each photographed image, and the extracted subject region and background region and For the foreground area, combining the subject area, the background area, and the foreground area selected from the images captured at the shortest shooting distance position, the in-focus position of the subject and the ∞ position, and combining them into one image. A method for synthesizing a photographed image. 前記最短撮影距離位置で撮影された画像と前記被写体の合焦位置で撮影された画像の間で、コントラスト値の差分が大きい領域を前記被写体領域として抽出することを特徴とする請求項1または2に記載の撮影画像合成方法。 3. An area having a large contrast difference between an image photographed at the shortest photographing distance position and an image photographed at an in-focus position of the subject is extracted as the subject region. 3. A method for synthesizing a captured image described in 1. 前記被写体の合焦位置で撮影された画像の中から、コントラスト値の大きい領域を前記被写体として抽出することを特徴とする請求項1または2に記載の撮影画像合成方法。 3. The captured image composition method according to claim 1, wherein a region having a large contrast value is extracted as the subject from an image photographed at the in-focus position of the subject. 被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影する被写体撮影手段と、
前記撮影された各画像のコントラスト値から、被写体領域および該被写体の背景領域をそれぞれ抽出する被写体/周囲景抽出手段と、
合成方法選択指示に従って、前記抽出された被写体領域および背景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域および背景領域を組み合わせて一つの画像に合成する撮影画像合成手段と、
を備えていることを特徴とするデジタルカメラ。
While shooting the subject, the photographic lens is moved from the shortest shooting distance position (macro edge) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction. Subject photographing means for photographing the subject;
Subject / ambient scene extraction means for extracting a subject region and a background region of the subject from the contrast value of each photographed image;
The subject area and background area selected from the images taken at the shortest shooting distance position, the in-focus position of the subject, and the ∞ position with respect to the extracted subject area and background area in accordance with a synthesis method selection instruction Photographic image composition means for combining the images into one image;
A digital camera characterized by comprising:
被写体撮影時に撮影レンズを最短撮影距離位置(マクロ端)から∞位置方向又は∞位置から最短撮影距離位置方向に移動させながら、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置においてそれぞれ前記被写体を撮影する被写体撮影手段と、
前記撮影された各画像のコントラスト値から、被写体領域と該被写体の背景領域および前景領域をそれぞれ抽出する被写体/周囲景抽出手段と、
合成方法選択指示に従って、前記抽出された被写体領域と背景領域および前景領域に対して、前記最短撮影距離位置、前記被写体の合焦位置及び前記∞位置で撮影した各画像から選択された前記被写体領域と背景領域および前景領域を組み合わせて一つの画像に合成する撮影画像合成手段と、
を備えていることを特徴とするデジタルカメラ。
While shooting the subject, the photographic lens is moved from the shortest shooting distance position (macro edge) to the ∞ position direction or from the ∞ position to the shortest shooting distance position direction. Subject photographing means for photographing the subject;
Subject / ambient scene extraction means for extracting a subject area, a background area of the subject, and a foreground area from the contrast value of each captured image;
The subject area selected from the images taken at the shortest shooting distance position, the in-focus position of the subject, and the ∞ position with respect to the extracted subject area, background area, and foreground area in accordance with a synthesis method selection instruction And a photographed image composition means for combining the background region and the foreground region into one image,
A digital camera characterized by comprising:
前記被写体/周囲景抽出手段は、前記最短撮影距離位置で撮影された画像と前記被写体の合焦位置で撮影された画像の間で、コントラスト値の差分が大きい領域を前記被写体領域として抽出する機能を有していることを特徴とする請求項5または6に記載のデジタルカメラ。 The subject / ambient scene extracting means extracts a region having a large difference in contrast value as the subject region between an image photographed at the shortest photographing distance position and an image photographed at the in-focus position of the subject. The digital camera according to claim 5 or 6 , characterized by comprising: 前記被写体/周囲景抽出手段は、前記被写体の合焦位置で撮影された画像の中から、コントラスト値の大きい領域を前記被写体として抽出する機能を有していることを特徴とする請求項5または6に記載のデジタルカメラ。 The object / ambient scene extraction unit, from the image captured by the focus position of the subject, according to claim 5 or, characterized in that it has a function of extracting a larger area of the contrast value as the subject 6. The digital camera according to 6 . 請求項の何れか1項に記載のデジタルカメラを搭載していることを特徴とするカメラ機能付携帯通信端末。 A mobile communication terminal with a camera function, wherein the digital camera according to any one of claims 5 to 8 is mounted.
JP2008136595A 2008-05-26 2008-05-26 Photographed image composition method and digital camera Expired - Fee Related JP5181832B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008136595A JP5181832B2 (en) 2008-05-26 2008-05-26 Photographed image composition method and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008136595A JP5181832B2 (en) 2008-05-26 2008-05-26 Photographed image composition method and digital camera

Publications (2)

Publication Number Publication Date
JP2009284404A JP2009284404A (en) 2009-12-03
JP5181832B2 true JP5181832B2 (en) 2013-04-10

Family

ID=41454351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008136595A Expired - Fee Related JP5181832B2 (en) 2008-05-26 2008-05-26 Photographed image composition method and digital camera

Country Status (1)

Country Link
JP (1) JP5181832B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5482589B2 (en) * 2010-09-10 2014-05-07 富士通株式会社 Image processing apparatus, image processing method, and image processing program
CN112866555B (en) * 2019-11-27 2022-08-05 北京小米移动软件有限公司 Shooting method, shooting device, shooting equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4652998B2 (en) * 2006-03-23 2011-03-16 富士フイルム株式会社 Imaging device
JP4891647B2 (en) * 2006-04-27 2012-03-07 オリンパスイメージング株式会社 camera

Also Published As

Publication number Publication date
JP2009284404A (en) 2009-12-03

Similar Documents

Publication Publication Date Title
JP4674471B2 (en) Digital camera
JP5395678B2 (en) Distance map generation type multi-lens camera
JP4497211B2 (en) Imaging apparatus, imaging method, and program
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
JP5664626B2 (en) Image processing apparatus, image processing method, and program
JP2007215091A (en) Imaging apparatus and program therefor
JP2015216485A (en) Imaging device, control method of imaging device, program, and storage medium
JP4645413B2 (en) Imaging device
JP4606486B2 (en) Image processing apparatus and photographing apparatus
JP3859131B2 (en) Digital camera
US10412321B2 (en) Imaging apparatus and image synthesis method
JP2006091915A (en) Imaging apparatus
JP2010279054A (en) Image pickup device, image processing device, image pickup method, and image processing method
JP2010016695A (en) Electronic camera and image processing program
JP6706167B2 (en) Imaging device, image synthesizing method, and program
JP5181832B2 (en) Photographed image composition method and digital camera
JP2006349744A (en) Imaging apparatus
JP2007249000A (en) Imaging apparatus, imaging method, and imaging program
JP5257969B2 (en) Focus position control device, focus position control method, focus position control program
JP4807623B2 (en) Imaging apparatus, imaging method, and imaging program
JP2019083580A (en) Image processing apparatus, image processing method, and program
JP5278483B2 (en) Imaging apparatus, imaging method, and imaging program
JP4298752B2 (en) Image processing apparatus, image processing method, and image processing program
JP5144469B2 (en) Imaging apparatus and control method thereof
JP2007316471A (en) Imaging apparatus and program therefore

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110411

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110706

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120823

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121231

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160125

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees