JP2008098836A - Imaging apparatus and imaging method - Google Patents

Imaging apparatus and imaging method Download PDF

Info

Publication number
JP2008098836A
JP2008098836A JP2006276550A JP2006276550A JP2008098836A JP 2008098836 A JP2008098836 A JP 2008098836A JP 2006276550 A JP2006276550 A JP 2006276550A JP 2006276550 A JP2006276550 A JP 2006276550A JP 2008098836 A JP2008098836 A JP 2008098836A
Authority
JP
Japan
Prior art keywords
image
focus
imaging
focus position
images
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006276550A
Other languages
Japanese (ja)
Other versions
JP4878978B2 (en
Inventor
Toshiyuki Tanaka
俊幸 田中
Toshihiro Hamamura
俊宏 濱村
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.)
Hanwha Techwin Co Ltd
Original Assignee
Samsung Techwin Co Ltd
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 Samsung Techwin Co Ltd filed Critical Samsung Techwin Co Ltd
Priority to JP2006276550A priority Critical patent/JP4878978B2/en
Priority to KR1020070044716A priority patent/KR101336242B1/en
Publication of JP2008098836A publication Critical patent/JP2008098836A/en
Application granted granted Critical
Publication of JP4878978B2 publication Critical patent/JP4878978B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2622Signal amplitude transition in the zone between image portions, e.g. soft edges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)
  • Television Signal Processing For Recording (AREA)
  • Focusing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of obtaining an effect equal to that of soft focus photographing by photographing a focused image and non-focused image, performing positioning and combining them, and an imaging method. <P>SOLUTION: The imaging apparatus comprises: an imaging part for detecting the focus position of an object on the basis of the images of the object successively formed on the image forming surface of an imaging element through an imaging optical system; a memory 134 for storing the images of the object successively outputted from the imaging element when detecting the focus position; an effect setting part 158 for setting the prescribed number of desired non-focus degrees to the focus position beforehand; and an image composition part 118 for reading the image of the focus position and the images corresponding to the respective non-focus degrees set in the effect setting part 158 from the memory 134 and positioning and combining the plurality of images including the image of the focus position. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、撮像装置および撮像方法に関する。   The present invention relates to an imaging apparatus and an imaging method.

写真の撮影技法の一つにソフトフォーカス撮影がある。ソフトフォーカス撮影は、通常に撮影した場合よりも、写真全体を明るく、また輪郭をやわらかく撮影するものである。従来においては、ソフトフォーカス撮影を実施するために、レンズにソフトフィルタを装着したり、レンズの表面にワセリンを塗ったりする方法があった。   One of the photography techniques is soft focus photography. In soft focus shooting, the entire photo is shot brighter and with a softer outline than when shooting normally. Conventionally, in order to perform soft focus photographing, there have been methods of attaching a soft filter to a lens or applying petrolatum on the surface of the lens.

しかし、レンズにフィルタを装着する方法では、レンズの交換ができない撮像装置においてはフィルタの装着が出来ず、レンズにワセリンを塗る方法では、レンズの口径が小さい小型の撮像装置の場合には、良好なソフトフォーカス効果が得られない問題があった。   However, in the method of attaching a filter to a lens, a filter cannot be attached in an imaging device in which the lens cannot be replaced. In the method of applying petrolatum to a lens, it is good for a small imaging device having a small lens aperture. There is a problem that a soft focus effect cannot be obtained.

そこで、この問題を解決するために、撮影した画像を加工したり合成したりすることで、ソフトフォーカス撮影と同等の効果を得られるようにする技術が開示されている(特許文献1〜3参照)。   Therefore, in order to solve this problem, a technique is disclosed in which an effect equivalent to soft focus imaging can be obtained by processing or synthesizing captured images (see Patent Documents 1 to 3). ).

特開2003−198922号公報JP 2003-198922 A 特開2003−008966号公報JP 2003-008966 A 特開2004−102903号公報JP 2004-102903 A

特許文献1に示した方法は、撮影した画像を意図的にぼかしてソフトフォーカス撮影と同等の効果を得られるようにしている。しかし、特許文献1に示した方法では、画像を意図的にぼかして効果的なソフトフォーカスを得るには大規模なデジタルフィルタ回路が必要となる問題があった。   The method disclosed in Patent Document 1 intentionally blurs a photographed image so as to obtain the same effect as soft focus photography. However, the method disclosed in Patent Document 1 has a problem that a large-scale digital filter circuit is required to intentionally blur an image to obtain an effective soft focus.

また、特許文献2に示した方法は、フォーカス位置を変更して合焦画像と非合焦画像を撮影して両者を合成することでソフトフォーカス撮影と同等の効果を得られるようにしているが、特許文献2に示した方法では、両者の位置のずれは考慮されておらず、撮影時にカメラや被写体がぶれてしまった場合には画像にぶれが出る問題があった。   Further, the method disclosed in Patent Document 2 can obtain the same effect as soft focus shooting by changing the focus position, shooting a focused image and a non-focused image, and synthesizing both. The method disclosed in Patent Document 2 does not take into account the misalignment between the two, and there is a problem that the image is blurred when the camera or subject is blurred during shooting.

また、特許文献3に示した方法は、撮影した画像を輝度信号と色信号に分けて、輝度信号に対して画像処理を行うことでソフトフォーカス撮影と同等の効果を得られるようにしているが、特許文献3に示した方法では、処理が複雑となり、専用の処理経路を設計する必要があるために、撮像装置の開発には非効率である問題があった。   In addition, the method disclosed in Patent Document 3 is configured to divide a captured image into a luminance signal and a color signal and perform image processing on the luminance signal so that an effect equivalent to that of soft focus imaging can be obtained. In the method disclosed in Patent Document 3, processing is complicated, and it is necessary to design a dedicated processing path, so that there is a problem that the development of the imaging apparatus is inefficient.

そこで、本発明は、上記問題に鑑みてなされたものであり、本発明の目的とするところは、合焦画像と非合焦画像を撮影し、位置合わせを行って両者を合成することで、ソフトフォーカス撮影と同等の効果を得られることが可能な、新規かつ改良された撮像装置および撮像方法を提供することにある。   Therefore, the present invention has been made in view of the above problems, and an object of the present invention is to shoot a focused image and a non-focused image, perform alignment, and synthesize both. It is an object of the present invention to provide a new and improved imaging apparatus and imaging method capable of obtaining the same effect as soft focus imaging.

上記課題を解決するために、本発明のある観点によれば、撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、被写体の合焦位置を検出する撮像部と、合焦位置の検出時に撮像素子から順次出力される被写体の画像を記憶する画像記憶部と、合焦位置に対する所望の非焦点度を予め所定数設定しておく効果設定部と、合焦位置の画像と効果設定部で設定された各非焦点度に対応する画像とを画像記憶部から読み出した後、合焦位置の画像を含む複数の画像を位置合わせして合成する画像合成部と、を含むことを特徴とする、撮像装置が提供される。   In order to solve the above problems, according to an aspect of the present invention, the focus lens included in the imaging optical system is driven in the focus adjustment direction, and is sequentially connected to the imaging surface of the imaging element via the imaging optical system. An imaging unit that detects a focus position of the subject based on the image of the subject to be imaged, an image storage unit that stores images of the subject that are sequentially output from the imaging device when the focus position is detected, and an in-focus position After reading out from the image storage unit an effect setting unit that sets a predetermined number of desired non-focus degrees in advance, an image at the focus position, and an image corresponding to each non-focus level set by the effect setting unit. An image synthesizing unit is provided that includes a plurality of images including an image at a focal position, and an image synthesizing unit configured to align and synthesize the images.

かかる構成によれば、撮像部は撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、被写体の合焦位置を検出し、画像記憶部は合焦位置の検出時に撮像素子から順次出力される被写体の画像を記憶し、効果設定部は合焦位置に対する所望の非焦点度を予め所定数設定しておき、画像合成部は合焦位置の画像と効果設定部で設定された各非焦点度に対応する画像とを画像記憶部から読み出した後、合焦位置の画像を含む複数の画像を位置合わせして合成する。その結果、ソフトフォーカス撮影と同等の効果を有する画像を撮影することができる。   According to this configuration, the imaging unit is based on the image of the subject that is sequentially imaged on the imaging surface of the imaging element via the imaging optical system while driving the focus lens included in the imaging optical system in the focus adjustment direction. The in-focus position of the subject is detected, the image storage unit stores the image of the subject that is sequentially output from the image sensor when the in-focus position is detected, and the effect setting unit previously sets a desired non-focal degree for the in-focus position. A predetermined number is set, and the image composition unit reads out an image at the in-focus position and an image corresponding to each defocus degree set by the effect setting unit from the image storage unit, and then includes a plurality of images including the image at the in-focus position. Align and combine the images. As a result, an image having an effect equivalent to that of soft focus shooting can be taken.

画像記憶部は、合焦位置の検出時に撮像素子から順次出力される被写体の画像を全画素分の画像データとして記憶しておいてもよい。その結果、像素子から順次出力される被写体の画像を全画素分の画像データとして記憶した場合において、ソフトフォーカス撮影と同等の効果を有する画像を撮影することができる。   The image storage unit may store the image of the subject sequentially output from the image sensor when the in-focus position is detected as image data for all pixels. As a result, when an image of a subject sequentially output from the image element is stored as image data for all pixels, an image having the same effect as soft focus shooting can be captured.

画像記憶部は、合焦位置の検出時に撮像素子から順次出力される被写体の画像のうち、合焦位置の画像のみ全画素分の画像データとして記憶しておく一方、合焦位置の画像以外の画像を所定の画素間引きした画像データとして記憶しておいてもよい。その結果、全画素分の画像データと所定の画像間引きした画像データとを合成することで、画像全体がソフトフォーカス効果を有する画像を撮影することができる。   The image storage unit stores only the image at the in-focus position as image data for all pixels among the images of the subject sequentially output from the image sensor when the in-focus position is detected. The image may be stored as image data obtained by thinning out predetermined pixels. As a result, by synthesizing the image data for all the pixels and the image data obtained by thinning out a predetermined image, it is possible to capture an image in which the entire image has a soft focus effect.

撮像部は、撮像素子の結像面上で複数の合焦検知位置を設定しておき、合焦位置の検出時に各合焦検知位置から得られる合焦レベルを分析し、画像合成部は、撮像部による合焦レベルの分析結果に基づいて、合焦位置に対する遠近方向を選択し、選択した方向で撮影された被写体の画像のうち効果設定部により設定された各非焦点度に対応する画像を、画像記憶部から読み出してもよい。その結果、合焦画像を撮影する際に主被写体に対して合焦することができる。   The imaging unit sets a plurality of focus detection positions on the imaging surface of the image sensor, analyzes the focus level obtained from each focus detection position at the time of detection of the focus position, Based on the analysis result of the in-focus level by the imaging unit, the perspective direction with respect to the in-focus position is selected, and the image corresponding to each non-focal degree set by the effect setting unit among the images of the subject photographed in the selected direction May be read from the image storage unit. As a result, it is possible to focus on the main subject when taking a focused image.

また、上記課題を解決するために、本発明の別の観点によれば、撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、被写体の合焦位置を検出する撮像ステップと、合焦位置の検出時に撮像素子から順次出力される被写体の画像を記憶する画像記憶ステップと、合焦位置に対する所望の非焦点度を予め所定数設定しておき、合焦位置の画像と当該設定された各非焦点度に対応する画像とを画像記憶ステップで記憶しておいた複数の画像の中から読み出した後、合焦位置の画像を含む複数の画像を位置合わせして合成する画像合成ステップと、を含むことを特徴とする、撮像方法が提供される。   In order to solve the above-described problem, according to another aspect of the present invention, the focus lens included in the imaging optical system is driven in the focus adjustment direction while the imaging lens is connected to the imaging surface via the imaging optical system. An imaging step for detecting the in-focus position of the subject based on the images of the subject imaged sequentially, an image storage step for storing the image of the subject sequentially output from the image sensor when the in-focus position is detected, A predetermined number of desired defocus degrees with respect to the focal position are set in advance, and an image at the focal position and an image corresponding to each set defocus degree are stored in the image storage step. An image synthesizing step is provided, comprising: an image synthesizing step of aligning and synthesizing a plurality of images including the image at the in-focus position after reading from the inside.

かかる方法によれば、撮像ステップは撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、被写体の合焦位置を検出し、画像記憶ステップは合焦位置の検出時に撮像素子から順次出力される被写体の画像を記憶し、画像合成ステップは合焦位置に対する所望の非焦点度を予め所定数設定しておき、合焦位置の画像と当該設定された各非焦点度に対応する画像とを画像記憶ステップで記憶しておいた複数の画像の中から読み出した後、合焦位置の画像を含む複数の画像を位置合わせして合成する。その結果、ソフトフォーカス撮影と同等の効果を有する画像を撮影することができる。   According to this method, the imaging step is based on the image of the subject that is sequentially imaged on the imaging surface of the imaging element via the imaging optical system while driving the focus lens included in the imaging optical system in the focus adjustment direction. The in-focus position of the subject is detected, the image storing step stores the images of the subject sequentially output from the image sensor at the time of detecting the in-focus position, and the image compositing step preliminarily determines a desired non-focus level for the in-focus position. A predetermined number is set, and after reading out the image at the in-focus position and the image corresponding to each set non-focal degree from the plurality of images stored in the image storing step, the in-focus position A plurality of images including images are aligned and combined. As a result, an image having an effect equivalent to that of soft focus shooting can be taken.

画像記憶ステップでは、合焦位置の検出時に撮像素子から順次出力される被写体の画像を全画素分の画像データとして記憶してもよい。その結果、像素子から順次出力される被写体の画像を全画素分の画像データとして記憶した場合において、ソフトフォーカス撮影と同等の効果を有する画像を撮影することができる。   In the image storing step, the image of the subject that is sequentially output from the image sensor when the in-focus position is detected may be stored as image data for all pixels. As a result, when an image of a subject sequentially output from the image element is stored as image data for all pixels, an image having the same effect as soft focus shooting can be captured.

画像記憶ステップでは、合焦位置の検出時に撮像素子から順次出力される被写体の画像のうち、合焦位置の画像のみ全画素分の画像データとして記憶しておく一方、合焦位置の画像以外の画像を所定の画素間引きした画像データとして記憶してもよい。その結果、全画素分の画像データと所定の画像間引きした画像データとを合成することで、画像全体がソフトフォーカス効果を有する画像を撮影することができる。   In the image storing step, among the images of the subject sequentially output from the image sensor at the time of detecting the focus position, only the image at the focus position is stored as image data for all pixels, while the image other than the image at the focus position is stored. The image may be stored as image data obtained by thinning out predetermined pixels. As a result, by synthesizing the image data for all the pixels and the image data obtained by thinning out a predetermined image, it is possible to capture an image in which the entire image has a soft focus effect.

撮像ステップでは、撮像素子の結像面上で複数の合焦検知位置を設定しておき、合焦位置の検出時に各合焦検知位置から得られる合焦レベルを分析し、画像合成ステップでは、撮像ステップによる合焦レベルの分析結果に基づいて、合焦位置に対する遠近方向を選択し、選択した方向で撮影された被写体の画像のうち効果設定部により設定された各非焦点度に対応する画像を、画像記憶ステップで記憶しておいた複数の画像の中から読み出してもよい。その結果、合焦画像を撮影する際に主被写体に対して合焦することができる。   In the imaging step, a plurality of focus detection positions are set on the imaging surface of the image sensor, and the focus level obtained from each focus detection position at the time of detection of the focus position is analyzed. Based on the analysis result of the focus level in the imaging step, the perspective direction with respect to the focus position is selected, and the image corresponding to each non-focal degree set by the effect setting unit among the images of the subject photographed in the selected direction May be read out from a plurality of images stored in the image storing step. As a result, it is possible to focus on the main subject when taking a focused image.

以上説明したように本発明によれば、合焦画像と非合焦画像を撮影し、位置合わせを行って両者を合成することで、ソフトフォーカス撮影と同等の効果を得られることが可能な、新規かつ改良された撮像装置および撮像方法を提供することができる。   As described above, according to the present invention, by taking a focused image and a non-focused image, aligning and synthesizing both, it is possible to obtain the same effect as soft focus shooting. A new and improved imaging apparatus and imaging method can be provided.

以下に添付図面を参照しながら、本発明の好適な実施の形態について詳細に説明する。なお、本明細書及び図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。   Exemplary embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In addition, in this specification and drawing, about the component which has the substantially same function structure, duplication description is abbreviate | omitted by attaching | subjecting the same code | symbol.

(第1の実施形態)
まず、本発明の第1の実施形態にかかる撮像装置および撮像方法について説明する。
図1は、本発明の第1の実施形態にかかる撮像装置の構成について説明する説明図である。以下、図1を用いて本発明の第1の実施形態にかかる撮像装置の構成について説明する。
(First embodiment)
First, an imaging apparatus and an imaging method according to the first embodiment of the present invention will be described.
FIG. 1 is an explanatory diagram illustrating the configuration of the imaging apparatus according to the first embodiment of the present invention. Hereinafter, the configuration of the imaging apparatus according to the first embodiment of the present invention will be described with reference to FIG.

図1に示したように、本発明の第1の実施形態にかかる撮像装置は、図1に示したように、本発明の第1の実施形態に係る撮像装置100は、ズームレンズ102と、絞り104と、フォーカスレンズ106と、駆動装置102a、104a、106aと、CMOS(Complementary Metal Oxide Semiconductor)素子108と、アンプ一体型のCDS(Correlated Double Sampling)回路110と、A/D変換器112と、画像入力コントローラ114と、画像信号処理部116と、画像合成部118と、圧縮処理部120と、OSD(On Screen Display)121と、LCD(Liquid Crystal Display)ドライバ122と、LCD124と、タイミングジェネレータ126と、CPU(Central Processing Unit)128と、操作部132と、シャッタボタン133と、メモリ134と、VRAM(Video Random Access Memory)136と、メディアコントローラ138と、記録メディア140と、モータドライバ142a、142b、142cと、フラッシュ144と、を含んで構成される。   As shown in FIG. 1, the imaging apparatus according to the first embodiment of the present invention includes, as shown in FIG. 1, the imaging apparatus 100 according to the first embodiment of the present invention includes a zoom lens 102, A diaphragm 104, a focus lens 106, driving devices 102 a, 104 a, 106 a, a CMOS (Complementary Metal Oxide Semiconductor) element 108, an amplifier integrated CDS (Correlated Double Sampling) circuit 110, and an A / D converter 112 , An image input controller 114, an image signal processing unit 116, an image synthesis unit 118, a compression processing unit 120, an OSD (On Screen Display) 121, an LCD (Liquid Crystal Display) driver 122, an LCD 24, a timing generator 126, a CPU (Central Processing Unit) 128, an operation unit 132, a shutter button 133, a memory 134, a VRAM (Video Random Access Memory) 136, a media controller 138, a recording medium 140, and the like. , Motor drivers 142a, 142b, 142c, and a flash 144.

ズームレンズ102は、駆動装置102aによって光軸方向に前後して移動させることで焦点距離が連続的に変化するレンズであり、被写体の大きさを変化して撮影する。絞り104は、画像を撮影する際に、駆動装置104aによって、CMOS素子108に入ってくる光量の調節を行う。フォーカスレンズ106は、駆動装置106aによって光軸方向に前後して移動させることで被写体のピントを調節するものである。   The zoom lens 102 is a lens in which the focal length is continuously changed by being moved back and forth in the optical axis direction by the driving device 102a. The zoom lens 102 changes the size of the subject and shoots. The diaphragm 104 adjusts the amount of light entering the CMOS element 108 by the driving device 104a when taking an image. The focus lens 106 adjusts the focus of the subject by being moved back and forth in the optical axis direction by the driving device 106a.

本実施形態においては、ズームレンズ102およびフォーカスレンズ106は1枚のみ示しているが、ズームレンズ102の枚数は2枚以上であってもよく、フォーカスレンズ106の枚数も2枚以上であってもよい。   In this embodiment, only one zoom lens 102 and focus lens 106 are shown, but the number of zoom lenses 102 may be two or more, and the number of focus lenses 106 may be two or more. Good.

CMOS素子108は、ズームレンズ102、絞り104およびフォーカスレンズ106から入射された光を電気信号に変換するための素子である。本実施形態においては電子シャッタによって入射光を制御して、電気信号を取り出す時間を調節しているが、メカシャッタを用いて入射光を制御して、電気信号を取り出す時間を調節してもよい。本実施形態においては、ズームレンズ102、絞り104、フォーカスレンズ106およびCCD素子110で撮像部を構成する。なお、撮像部の組はこれに限られず、ズームレンズ102や絞り104を含まない構成であってもよい。   The CMOS element 108 is an element for converting light incident from the zoom lens 102, the diaphragm 104, and the focus lens 106 into an electric signal. In this embodiment, the incident light is controlled by the electronic shutter to adjust the time for extracting the electric signal. However, the time for extracting the electric signal may be adjusted by controlling the incident light using the mechanical shutter. In the present embodiment, the zoom lens 102, the diaphragm 104, the focus lens 106, and the CCD element 110 constitute an imaging unit. Note that the set of imaging units is not limited to this, and the zoom lens 102 and the diaphragm 104 may not be included.

本実施形態ではCMOS素子108を用いているが、本発明は係る例に限定されず、CMOS素子108の代わりにCCD(Charge Coupled Devices)素子を用いてもよく、またその他のイメージセンサを用いてもよい。   Although the CMOS element 108 is used in the present embodiment, the present invention is not limited to such an example, and a CCD (Charge Coupled Devices) element may be used instead of the CMOS element 108, and other image sensors are used. Also good.

CDS回路110は、CMOS素子108から出力された電気信号の雑音を除去する、サンプリング回路の一種であるCDS回路と、雑音を除去した後に電気信号を増幅するアンプとが一体となった回路である。本実施形態ではCDS回路とアンプとが一体となった回路を用いて撮像装置100を構成しているが、CDS回路とアンプとを別々の回路で構成してもよい。   The CDS circuit 110 is a circuit in which a CDS circuit that is a kind of sampling circuit that removes noise from the electrical signal output from the CMOS element 108 and an amplifier that amplifies the electrical signal after removing the noise are integrated. . In the present embodiment, the imaging apparatus 100 is configured using a circuit in which a CDS circuit and an amplifier are integrated. However, the CDS circuit and the amplifier may be configured as separate circuits.

A/D変換器112は、CMOS素子108で生成された電気信号をデジタル信号に変換して、画像の生データを生成するものである。   The A / D converter 112 converts the electrical signal generated by the CMOS element 108 into a digital signal, and generates raw image data.

画像入力コントローラ114は、A/D変換器で生成された画像の生データのメモリ134への入力を制御するものである。   The image input controller 114 controls input of raw image data generated by the A / D converter to the memory 134.

画像信号処理部116は、CMOS素子108から出力された電気信号や、画像合成部118で合成した画像に対して、光量のゲイン補正やホワイトバランスの調整を行うものである。画像信号処理部116は撮影した画像の露光データを取得する。露光データには合焦評価値(AF評価値)やAE(Auto Exposure;自動露光)評価値を含んでおり、画像信号処理部116において合焦評価値やAE評価値の算出を行う。   The image signal processing unit 116 performs light amount gain correction and white balance adjustment on the electrical signal output from the CMOS element 108 and the image synthesized by the image synthesis unit 118. The image signal processing unit 116 acquires exposure data of the captured image. The exposure data includes a focus evaluation value (AF evaluation value) and an AE (Auto Exposure; automatic exposure) evaluation value, and the image signal processing unit 116 calculates the focus evaluation value and the AE evaluation value.

画像合成部118は、撮影した複数の画像データの合成を行うものである。画像合成部の形態として、画像の合成を行う回路であってもよく、画像の合成を行うためのコンピュータプログラムであってもよい。   The image combining unit 118 combines a plurality of captured image data. The form of the image composition unit may be a circuit that performs image composition, or a computer program for performing image composition.

圧縮処理部120は、画像合成部118で合成した画像を、適切な形式の画像データに圧縮する圧縮処理を行う。画像の圧縮形式は可逆形式であっても非可逆形式であってもよい。適切な形式の例として、JPEG(Joint Photographic Experts Group)形式やJPEG2000形式に変換してもよい。   The compression processing unit 120 performs compression processing for compressing the image combined by the image combining unit 118 into image data of an appropriate format. The image compression format may be a reversible format or an irreversible format. As an example of a suitable format, you may convert into a JPEG (Joint Photographic Experts Group) format and a JPEG2000 format.

OSD121は、撮像装置100の設定画面をLCD124に表示させる機能である。LCD124は、撮影操作を行う前のライブビュー表示や、撮像装置100の各種設定画面や、撮影した画像の表示等を行う。画像データや撮像装置100の各種情報のLCD124への表示は、LCDドライバ122を介して行われる。   The OSD 121 is a function for displaying a setting screen of the imaging apparatus 100 on the LCD 124. The LCD 124 performs live view display before performing a shooting operation, various setting screens of the imaging apparatus 100, display of captured images, and the like. Display of image data and various information of the imaging apparatus 100 on the LCD 124 is performed via the LCD driver 122.

タイミングジェネレータ126は、CMOS素子108にタイミング信号を入力する。タイミングジェネレータ126からのタイミング信号によりシャッタ速度が決定される。つまり、タイミングジェネレータ126からのタイミング信号によりCMOS素子108の駆動が制御され、CMOS素子108が駆動する時間内に被写体からの映像光を入射することで、画像データの基となる電気信号が生成される。   The timing generator 126 inputs a timing signal to the CMOS element 108. The shutter speed is determined by the timing signal from the timing generator 126. That is, the drive of the CMOS element 108 is controlled by the timing signal from the timing generator 126, and the image signal from the subject is incident within the time that the CMOS element 108 is driven, thereby generating an electrical signal that is the basis of the image data. The

CPU128は、CMOS素子108やCDS回路110などに対して信号系の命令を行ったり、操作部132の操作に対する操作系の命令を行ったりする。本実施形態においては、CPUを1つだけ含んでいるが、信号系の命令と操作系の命令とを別々のCPUで行うようにしてもよい。   The CPU 128 issues a signal-related command to the CMOS element 108, the CDS circuit 110, or the like, or issues an operation-related command for the operation of the operation unit 132. In the present embodiment, only one CPU is included, but a signal-related command and an operation-related command may be executed by separate CPUs.

操作部132は、撮像装置100の操作を行ったり、撮影時の各種の設定を行ったりするための部材が配置されている。操作部132に配置される部材には、電源ボタン、撮影モードや撮影ドライブモードの選択およびソフトフォーカス効果の設定を行う十字キーおよび選択ボタン等が配置される。シャッタボタン133は、撮影操作を行うためのものであり、半押し状態で被写体を合焦し、全押し状態で被写体の撮像を行う。   The operation unit 132 is provided with members for operating the imaging apparatus 100 and performing various settings at the time of shooting. The members arranged on the operation unit 132 are arranged with a power button, a cross key for selecting a photographing mode and a photographing drive mode, and setting a soft focus effect, a selection button, and the like. The shutter button 133 is used to perform a photographing operation, and focuses the subject in a half-pressed state and images the subject in a fully-pressed state.

メモリ134は、画像記憶部の一例であり、撮影した画像や画像合成部118で合成した画像を一時的に記憶するものである。メモリ134は、複数の画像を記憶できるだけの記憶容量を有している。メモリ134への画像の読み書きは画像入力コントローラ114によって制御される。   The memory 134 is an example of an image storage unit, and temporarily stores captured images and images synthesized by the image synthesis unit 118. The memory 134 has a storage capacity sufficient to store a plurality of images. Reading and writing of images to and from the memory 134 is controlled by the image input controller 114.

VRAM136は、LCD124に表示する内容を保持するものであり、LCD124の解像度や最大発色数はVRAM136の容量に依存する。   The VRAM 136 holds contents displayed on the LCD 124, and the resolution and the maximum number of colors of the LCD 124 depend on the capacity of the VRAM 136.

記録メディア140は、画像記録部の一例であり、撮影した画像や画像合成部118で合成した画像を記録するものである。記録メディア140への入出力は、メディアコントローラ138によって制御される。記録メディア140には、フラッシュメモリにデータを記録するカード型の記憶装置であるメモリカードを用いることができる。   The recording medium 140 is an example of an image recording unit, and records captured images and images synthesized by the image synthesis unit 118. Input / output to / from the recording medium 140 is controlled by the media controller 138. As the recording medium 140, a memory card that is a card-type storage device that records data in a flash memory can be used.

モータドライバ142a、142b、142cはズームレンズ102、絞り104およびフォーカスレンズ106を動作させる駆動装置102a、104a、106aの制御を行う。モータドライバ142a、142b、142cを介してズームレンズ102、絞り104およびフォーカスレンズ106を動作させることで、被写体の大きさや光の量、ピントの調節を行う。   The motor drivers 142a, 142b, and 142c control the driving devices 102a, 104a, and 106a that operate the zoom lens 102, the diaphragm 104, and the focus lens 106. By operating the zoom lens 102, the diaphragm 104, and the focus lens 106 via the motor drivers 142a, 142b, and 142c, the size of the subject, the amount of light, and the focus are adjusted.

フラッシュ144は、夜間の屋外や暗い場所での撮影時に被写体を明るく照らすためのものである。フラッシュ撮影を行う際に、CPU128から発光命令がフラッシュ装置144に行われ、CPU128からの発光命令によってフラッシュ144を発光させて、フラッシュ144が発光した光によって被写体が明るく照らされる。   The flash 144 is for illuminating the subject brightly at the time of photographing outdoors at night or in a dark place. When flash photography is performed, a flash command is issued from the CPU 128 to the flash device 144, the flash 144 is emitted by the flash command from the CPU 128, and the subject is brightly illuminated by the light emitted by the flash 144.

以上、図1を用いて本発明の第1の実施形態にかかる撮像装置について説明した。次に、本発明の第1の実施形態にかかる撮像装置のCPUの構成について説明する。   The imaging apparatus according to the first embodiment of the present invention has been described above with reference to FIG. Next, the configuration of the CPU of the imaging apparatus according to the first embodiment of the present invention will be described.

図2は、本発明の第1の実施形態にかかるCPUの構成について説明する説明図である。以下、図2を用いて本発明の第1の実施形態にかかるCPUの構成について説明する。   FIG. 2 is an explanatory diagram illustrating the configuration of the CPU according to the first embodiment of the present invention. Hereinafter, the configuration of the CPU according to the first embodiment of the present invention will be described with reference to FIG.

図2に示したように、本発明の第1の実施形態にかかるCPU128は、合焦位置検出部152と、適正AE算出部154と、拡大縮小処理部156と、効果設定部158と、合成比率設定部160と、を含んで構成される。   As shown in FIG. 2, the CPU 128 according to the first embodiment of the present invention includes an in-focus position detection unit 152, an appropriate AE calculation unit 154, an enlargement / reduction processing unit 156, an effect setting unit 158, and a composition. And a ratio setting unit 160.

合焦位置検出部152は、被写体の撮影を行う際に、被写体に合焦するためのフォーカスレンズ106の位置を検出するものである。   The focus position detection unit 152 detects the position of the focus lens 106 for focusing on the subject when shooting the subject.

適正AE算出部154は、被写体の撮影を行う際に、撮像装置100で自動露光を行い、EV(Exposure Value)値を取得する。取得したEV値に基づいて、適正な露光時間およびシャッタ速度の組が決まる。EV値は、絞り値がF1、シャッタ速度が1秒の時に適切な露出が得られる光量をEV=0とし、絞り値やシャッタ速度を変化させることでEV値が変化する。EV値は、Fを絞り値、Tをシャッタ速度として、EV=log(F/T)で求めることができる。従って、同じ絞り値ではシャッタ速度が高速になればなる程、EV値が上昇し、同じシャッタ速度では絞り値を大きくすればする程、EV値が上昇する。 The appropriate AE calculation unit 154 performs automatic exposure with the imaging apparatus 100 when photographing a subject, and acquires an EV (Exposure Value) value. Based on the acquired EV value, a proper combination of exposure time and shutter speed is determined. The EV value is changed by changing the aperture value and the shutter speed by setting EV = 0 as the amount of light with which an appropriate exposure can be obtained when the aperture value is F1 and the shutter speed is 1 second. The EV value can be obtained by EV = log 2 (F 2 / T) where F is the aperture value and T is the shutter speed. Therefore, the EV value increases as the shutter speed increases at the same aperture value, and the EV value increases as the aperture value increases at the same shutter speed.

拡大縮小処理部156は、被写体の撮影を行って取得した画像データの拡大や縮小を行うものである。   The enlargement / reduction processing unit 156 enlarges or reduces the image data acquired by photographing the subject.

効果設定部158は、ソフトフォーカス効果の効果度の設定を行うものである。効果度は、本発明の非焦点度の一例であり、ソフトフォーカス効果の効果度は、操作部132で入力された効果度に応じて設定されてもよい。   The effect setting unit 158 sets the effect level of the soft focus effect. The effect level is an example of the non-focus level of the present invention, and the effect level of the soft focus effect may be set according to the effect level input by the operation unit 132.

合成比率設定部160は、合焦画像と、合焦画像に合成する画像との合成比率の設定を行うものである。合成比率設定部160で設定されたソフトフォーカス効果の効果度に応じて、合焦画像と合成する画像の合成比率やフォーカスレンズ106の移動量の設定が行われる。   The composition ratio setting unit 160 sets the composition ratio between the focused image and the image to be combined with the focused image. The composition ratio of the image to be synthesized with the focused image and the amount of movement of the focus lens 106 are set according to the effectiveness of the soft focus effect set by the composition ratio setting unit 160.

以上、図2を用いて本発明の第1の実施形態にかかるCPUの構成について説明した。次に、本発明の第1の実施形態にかかる撮影方法について説明する。   The configuration of the CPU according to the first embodiment of the present invention has been described above with reference to FIG. Next, a photographing method according to the first embodiment of the present invention will be described.

ここで、本発明の第1の実施形態においては、非合焦画像として、被写体の合焦位置を検出するオートフォーカス処理中に取得した画像を用いることとする。   Here, in the first embodiment of the present invention, an image acquired during autofocus processing for detecting the in-focus position of the subject is used as the out-of-focus image.

図3は、本発明の第1の実施形態にかかるオートフォーカス処理について説明する説明図である。本実施形態においては、近距離で合焦する位置から遠距離で合焦する位置へ向けてフォーカスレンズ106を移動させる。そして、フォーカスレンズ106を移動させている間、複数回に渡って画像データを取得(サンプリング)し、それぞれの画像データのコントラスト情報を算出する。サンプリングは、等間隔で行われることが望ましい。コントラスト情報は、例えばラプラシアンフィルタの2次微分を用いて得ることができる。本発明の第1の実施形態においては、コントラスト情報を等間隔で15回取得している。取得した画像データは、メモリ134に順次保存する。   FIG. 3 is an explanatory diagram illustrating autofocus processing according to the first embodiment of the present invention. In the present embodiment, the focus lens 106 is moved from a position focused at a short distance to a position focused at a long distance. Then, while moving the focus lens 106, image data is acquired (sampled) a plurality of times, and contrast information of each image data is calculated. Sampling is desirably performed at equal intervals. The contrast information can be obtained by using, for example, the second derivative of a Laplacian filter. In the first embodiment of the present invention, contrast information is acquired 15 times at regular intervals. The acquired image data is sequentially stored in the memory 134.

フォーカスレンズ106を移動させてコントラスト情報を取得すると、合焦位置検出部152は、取得したコントラスト情報のピーク位置を検出する。そして、合焦位置検出部152は、検出したコントラスト情報のピーク位置を合焦位置と判断し、そのコントラスト情報のピーク位置にフォーカスレンズ106を移動させる。そして、その状態で撮影処理を実行することで、被写体に合焦した合焦画像を得ることができる。図3に示した本発明の第1の実施形態にかかるオートフォーカス処理においては、コントラスト情報のピークが12番目にサンプリングした位置に存在するため、12番目にサンプリングした場所にフォーカスレンズ106を移動させることで、被写体に合焦した画像を撮影することができる。   When the focus lens 106 is moved to acquire contrast information, the focus position detection unit 152 detects the peak position of the acquired contrast information. Then, the focus position detection unit 152 determines the detected peak position of the contrast information as the focus position, and moves the focus lens 106 to the peak position of the contrast information. Then, by executing the shooting process in that state, a focused image focused on the subject can be obtained. In the autofocus process according to the first embodiment of the present invention shown in FIG. 3, the focus lens 106 is moved to the twelfth sampled position because the peak of the contrast information exists at the twelfth sampled position. Thus, an image focused on the subject can be taken.

一方、被写体に合焦していない非合焦画像は、合焦位置を検出する際に取得した画像データを使用する。合焦位置を検出する際に取得した画像データは、コントラスト情報がピークの位置で取得したデータ以外は被写体に合焦していない非合焦画像となっている。従って、合焦位置を検出する際に取得した画像データを使用することで、合焦画像の撮影時に非合焦画像も同時に得ることができる。   On the other hand, the non-focused image that is not focused on the subject uses the image data acquired when the focus position is detected. The image data acquired when the focus position is detected is a non-focus image that is not focused on the subject other than the data acquired at the position where the contrast information is at the peak. Therefore, by using the image data acquired when the in-focus position is detected, a non-in-focus image can be obtained at the same time when the in-focus image is captured.

非合焦画像は、コントラスト情報がピークの位置から近距離側の位置で取得した画像データを用いてもよく、コントラスト情報がピークの位置から遠距離側の位置で取得した画像データを用いてもよい。近距離側と遠距離側のどちらの画像データを使用するかは、予め定めていてもよく、取得したコントラスト情報の結果によって決定してもよい。   The out-of-focus image may use image data acquired at a position closer to the distance from the peak position of the contrast information, or may use image data acquired at a position closer to the distance from the peak position of the contrast information. Good. Whether to use the image data on the short-distance side or the long-distance side may be determined in advance, or may be determined according to the result of the acquired contrast information.

また、非合焦画像として使用する画像データは、ソフトフォーカス撮影の効果度(以下「ソフト効果」とも称する)のレベルに応じて決定してもよい。例えば、図3に示した例において、ソフト効果を「大」「中」「小」の3種類に定め、非合焦として近距離側の画像データを使用した場合には、ソフト効果が「小」の場合は、非合焦画像として11番目の画像データを用い、ソフト効果が「中」の場合は、非合焦画像として10番目の画像データを用い、ソフト効果が「大」の場合は、非合焦画像として9番目の画像データを用いることができる。一方、ソフト効果を「大」「中」「小」の3種類に定め、非合焦として遠距離側の画像データを使用した場合には、ソフト効果が「小」の場合は、非合焦画像として13番目の画像データを用い、ソフト効果が「中」の場合は、非合焦画像として14番目の画像データを用い、ソフト効果が「大」の場合は、非合焦画像として15番目の画像データを用いることができる。なお、ソフト効果のレベルと非合焦画像として使用する画像データの組み合わせはこれに限られない。   The image data used as the out-of-focus image may be determined according to the level of the effect of soft focus shooting (hereinafter also referred to as “soft effect”). For example, in the example shown in FIG. 3, when the soft effect is defined as three types of “large”, “medium”, and “small” and the image data on the short distance side is used as out of focus, the soft effect is “small”. ”Is the 11th image data as a non-focus image, the soft effect is“ medium ”, the 10th image data is used as a non-focus image, and the soft effect is“ large ”. The ninth image data can be used as the out-of-focus image. On the other hand, when the soft effect is set to three types of “large”, “medium”, and “small” and image data on the long distance side is used as the out-of-focus state, the in-focus state is set when the soft effect is “small”. When the 13th image data is used as the image and the soft effect is “medium”, the 14th image data is used as the out-of-focus image, and when the soft effect is “large”, the 15th as the out-of-focus image. The image data can be used. The combination of the soft effect level and the image data used as the out-of-focus image is not limited to this.

なお、画像を合成する際には、そのまま合成すると画像の明度がオーバーしてしまうため、所定の割合で明度を落として合成することが望ましい。   Note that when combining images, the brightness of the image will be exceeded if it is combined as it is, so it is desirable to decrease the brightness at a predetermined rate.

以下、本発明の第1の実施形態にかかる撮像方法についてより詳細に説明する。   Hereinafter, the imaging method according to the first embodiment of the present invention will be described in more detail.

図4は、本発明の第1の実施形態にかかる撮像方法について説明する流れ図である。以下、図4を用いて本発明の第1の実施形態にかかる撮像方法について説明する。   FIG. 4 is a flowchart illustrating the imaging method according to the first embodiment of the present invention. Hereinafter, the imaging method according to the first embodiment of the present invention will be described with reference to FIG.

本発明の第1の実施形態にかかる撮像方法では、最初に、撮像装置100の操作部133を操作して、ソフトフォーカス撮影におけるソフト効果レベルを設定する(ステップS110)。第1の実施形態にかかる撮像方法においては、ソフト効果レベルを「弱」「弱め」「強め」「強」の4種類の中から選択することができる。操作部133の操作で決定されたソフト効果レベルは、効果設定部158によって設定される。   In the imaging method according to the first embodiment of the present invention, first, the operation unit 133 of the imaging apparatus 100 is operated to set the soft effect level in the soft focus shooting (step S110). In the imaging method according to the first embodiment, the soft effect level can be selected from four types of “weak”, “weak”, “strong”, and “strong”. The soft effect level determined by the operation of the operation unit 133 is set by the effect setting unit 158.

ソフト効果レベルを入力すると、次に非合焦画像を得るためのデフォーカスコントロール手段を決定する(ステップS112)。本発明の第1の実施形態においては、デフォーカスコントロール手段は、(イ)ソフト効果レベルに応じて合焦画像を得られるフォーカスレンズ106の位置からの距離を変更するデフォーカス量コントロールと、(ロ)ソフト効果レベルに応じて合焦画像と非合焦画像の合成比率を変更するデフォーカス比率コントロールの2種類を選択することができる。デフォーカス量コントロールとデフォーカス比率コントロールのどちらを選択するかは、あらかじめ定めていてもよく、撮影動作を行う度に設定してもよい。   When the soft effect level is input, defocus control means for obtaining a non-focused image is next determined (step S112). In the first embodiment of the present invention, the defocus control means includes (a) a defocus amount control for changing a distance from the position of the focus lens 106 that can obtain a focused image according to the soft effect level; B) Two types of defocus ratio control for changing the composition ratio of the focused image and the unfocused image according to the soft effect level can be selected. Whether to select the defocus amount control or the defocus ratio control may be determined in advance or may be set every time a photographing operation is performed.

まず、デフォーカス量コントロールを選択した場合の流れについて説明する。ステップS112において、デフォーカスコントロール手段としてデフォーカス量コントロールを選択すると、ステップS110で設定したソフト効果レベルに基づく非合焦画像選択位置を合成比率設定部160で設定する(ステップS114)。   First, the flow when the defocus amount control is selected will be described. In step S112, when defocus amount control is selected as the defocus control means, the unfocused image selection position based on the soft effect level set in step S110 is set by the composition ratio setting unit 160 (step S114).

表1は、本発明の第1の実施形態にかかる、ソフト効果レベルと非合焦画像選択位置との関係を示す表である。非合焦画像選択位置は、合焦画像の取得位置からどの程度離れた位置の画像を選択するかを示している。なお、効果レベルと非合焦画像選択位置との関係は、表1の例に限られない。
Table 1 is a table showing the relationship between the soft effect level and the out-of-focus image selection position according to the first embodiment of the present invention. The out-of-focus image selection position indicates how far the image at a position away from the acquisition position of the focused image is selected. The relationship between the effect level and the out-of-focus image selection position is not limited to the example in Table 1.

非合焦画像選択位置を決定すると、次にシャッタボタン133が押されているかどうかの判断を行う(ステップS116)。シャッタボタン133が押されていなければ、シャッタボタン133が押されているかどうかの判断処理を繰り返し行い、シャッタボタン133が押されていれば次の処理に移る。   When the out-of-focus image selection position is determined, it is next determined whether or not the shutter button 133 is pressed (step S116). If the shutter button 133 is not pressed, the process of determining whether or not the shutter button 133 is pressed is repeated, and if the shutter button 133 is pressed, the process proceeds to the next process.

シャッタボタン133が押されていると判断すれば、次に被写体に合焦するためのフォーカシング処理を行う(ステップS118)。フォーカシング処理は、上述したようなオートフォーカス処理によって行う。すなわち、フォーカシング処理はフォーカスレンズ106を近距離で合焦する位置から遠距離で合焦する位置へ向けて移動させて、コントラスト情報のピーク位置を求めることによって行う。そして、フォーカスレンズ106を移動させながら、所定の位置で合焦状態を検出するために画像データを取得(サンプリング)する。取得した画像データは、メモリ134に一時的に保存(バッファリング)する(ステップS120)。   If it is determined that the shutter button 133 has been pressed, then a focusing process for focusing on the subject is performed (step S118). The focusing process is performed by the autofocus process as described above. In other words, the focusing process is performed by moving the focus lens 106 from a position focused at a short distance to a position focused at a long distance to obtain a peak position of contrast information. Then, image data is acquired (sampled) in order to detect the in-focus state at a predetermined position while moving the focus lens 106. The acquired image data is temporarily stored (buffered) in the memory 134 (step S120).

フォーカスレンズ106を移動させてサンプリングを行うと、取得した画像データを用いてコントラスト情報のピークの位置を合焦位置として検出する(ステップS122)。本実施形態においては、コントラスト情報のピークの位置は合焦位置検出部152が行う。コントラスト情報のピークの位置を算出すると、ピークの位置に対応する画像データを取得した場所にフォーカスレンズ106を移動させて、CMOS素子108に光を入射することによって、被写体に合焦した合焦画像を撮影する(ステップS124)。この際の露光量は、適正な露光量の半分の量とする。撮影した合焦画像はメモリ134に一時的に記憶する。   When sampling is performed by moving the focus lens 106, the peak position of the contrast information is detected as the focus position using the acquired image data (step S122). In the present embodiment, the focus position detection unit 152 performs the peak position of the contrast information. When the peak position of the contrast information is calculated, the focus lens 106 is moved to the place where the image data corresponding to the peak position is acquired, and light is incident on the CMOS element 108, so that the focused image is focused on the subject. Is photographed (step S124). The exposure amount at this time is half of the appropriate exposure amount. The photographed focused image is temporarily stored in the memory 134.

合焦画像の撮影が完了すると、続いて非合焦画像を取得する。非合焦画像は、合焦位置を算出する際にサンプリングを行ってメモリ134に一時的に保存した画像データを使用する。本発明の第1の実施形態においては、まずメモリ134に一時的に保存した画像データの中から、合焦位置から遠近どちら側の画像データを使用するかを決定し、メモリ134に一時的に保存した画像データから、上記ステップS110で決定した効果レベルに対応するものを選択する(ステップS126)。   When the shooting of the focused image is completed, a non-focused image is subsequently acquired. The in-focus image uses image data that has been sampled and temporarily stored in the memory 134 when calculating the in-focus position. In the first embodiment of the present invention, it is first determined from the image data temporarily stored in the memory 134 which image data on the far side or near side from the in-focus position is to be used, and the memory 134 is temporarily stored. From the stored image data, one corresponding to the effect level determined in step S110 is selected (step S126).

ここで、合焦位置から遠近どちら側の画像データを使用するかの決定は、例えば、画像全体がよりぼけて表示される方向を選択することによって行ってもよい。具体的には、合焦位置を検出する際に、複数のコントラスト情報の中から1つを選択して主被写体の合焦位置を検出する場合において、その他のコントラスト情報のピークから遠ざかる方向の画像データを使用してもよい。   Here, the determination of which side of the image data to use from the in-focus position may be performed, for example, by selecting a direction in which the entire image is displayed more blurred. Specifically, when detecting the in-focus position, when one of the plurality of pieces of contrast information is selected to detect the in-focus position of the main subject, the image is in a direction away from the other contrast information peak. Data may be used.

画像データの選択が終わると、選択した画像データの露光量を1/2倍する(ステップS128)。画像データをそのまま合成すると画像の明度がオーバーしてしまうからである。   When the selection of the image data is finished, the exposure amount of the selected image data is halved (step S128). This is because if the image data are synthesized as they are, the brightness of the image will be exceeded.

以上、図4に示した本発明の第1の実施形態にかかる撮像方法について説明する流れ図において、ステップS112でデフォーカス量コントロールを選択した場合の処理の流れについて説明した。次に、図4に示した本発明の第1の実施形態にかかる撮像方法について説明する流れ図において、ステップS112でデフォーカス比率コントロールを選択した場合の処理の流れについて説明する。   As described above, in the flowchart describing the imaging method according to the first embodiment of the present invention illustrated in FIG. 4, the processing flow when the defocus amount control is selected in step S <b> 112 has been described. Next, in the flowchart for explaining the imaging method according to the first embodiment of the present invention shown in FIG. 4, the flow of processing when the defocus ratio control is selected in step S112 will be explained.

上記ステップS112でデフォーカス比率コントロールを選択した場合は、最初にステップS110で決定した効果レベルに対応する、合焦画像と非合焦画像の選択比率を、合成比率設定部160で設定する(ステップS132)。表2は、デフォーカス比率コントロールの場合の、効果レベルと画像の選択比率の一例を示す説明図である。なお、効果レベルと画像の選択比率は表2の例に限られない。
When the defocus ratio control is selected in step S112, the composition ratio setting unit 160 sets the selection ratio of the focused image and the out-of-focus image corresponding to the effect level first determined in step S110 (step S110). S132). Table 2 is an explanatory diagram showing an example of the effect level and the image selection ratio in the case of defocus ratio control. The effect level and the image selection ratio are not limited to those shown in Table 2.

合焦画像と非合焦画像の選択比率を決定すると、CPU128でシャッタボタン133が押されているかどうかの判断を行う(ステップS134)。シャッタボタン133が押されていなければ、シャッタボタン133が押されているかどうかの判断処理を繰り返し行い、シャッタボタン133が押されていれば次の処理に移る。   When the selection ratio of the focused image and the unfocused image is determined, the CPU 128 determines whether or not the shutter button 133 is pressed (step S134). If the shutter button 133 is not pressed, the process of determining whether or not the shutter button 133 is pressed is repeated, and if the shutter button 133 is pressed, the process proceeds to the next process.

シャッタボタン133が押されたら、次に被写体に合焦するためのフォーカシング処理を行う(ステップS136)。フォーカシング処理は、ステップS112でデフォーカス量コントロールを選択した場合のフォーカシング処理(ステップS118)と同様であるため、詳細な説明は割愛する。フォーカシング処理によって取得した画像データは、メモリ134に一時的に保存する(ステップS138)。   When the shutter button 133 is pressed, a focusing process for focusing on the subject is performed next (step S136). Since the focusing process is the same as the focusing process (step S118) when the defocus amount control is selected in step S112, the detailed description is omitted. The image data acquired by the focusing process is temporarily stored in the memory 134 (step S138).

フォーカスレンズ106を移動させてサンプリングを行うと、デフォーカス量コントロールを選択した場合と同様に、取得した画像データを用いてコントラスト情報のピークの位置を合焦位置として検出し(ステップS140)、フォーカスレンズ106を移動させて、CMOS素子108に光を入射することによって、被写体に合焦した合焦画像を撮影する(ステップS142)。そして、撮影した合焦画像の露光量をm/8倍の量にする(ステップS144)。撮影した合焦画像はメモリ134に一時的に記憶する。   When sampling is performed by moving the focus lens 106, the peak position of the contrast information is detected as the in-focus position using the acquired image data as in the case where the defocus amount control is selected (step S140), and the focus is adjusted. By moving the lens 106 and making light incident on the CMOS element 108, a focused image focused on the subject is photographed (step S142). Then, the exposure amount of the captured focused image is set to m / 8 times (step S144). The photographed focused image is temporarily stored in the memory 134.

合焦画像の撮影が完了すると、続いて非合焦画像を取得する。本発明の第1の実施形態においては、非合焦画像は、デフォーカス量コントロールを選択した場合と同様に、合焦位置から遠近どちら側の画像データを使用するかを決定し、メモリ134に保存した画像データから、上記ステップS110で決定した効果レベルに対応するものを選択する(ステップS146)。   When the shooting of the focused image is completed, a non-focused image is subsequently acquired. In the first embodiment of the present invention, as in the case where the defocus amount control is selected, it is determined which image data on the far side or the far side from the in-focus position is used for the unfocused image, and the memory 134 stores the unfocused image data. From the stored image data, one corresponding to the effect level determined in step S110 is selected (step S146).

画像データの選択が終わると、選択した画像データの露光量をn/8倍する(ステップS148)。画像データをそのまま合成すると画像の明度がオーバーしてしまうからである。   When the selection of the image data is completed, the exposure amount of the selected image data is multiplied by n / 8 (step S148). This is because if the image data are synthesized as they are, the brightness of the image will be exceeded.

以上、ステップS112でデフォーカス比率コントロールを選択した場合の処理の流れについて説明した。   The process flow when the defocus ratio control is selected in step S112 has been described above.

このように、合焦画像と非合焦画像を撮影および取得すると、合焦画像と非合焦画像を合成して、ソフトフォーカス効果を有する画像を得る(ステップS150)。画像を合成する際には、画像合成部118において、2枚の画像間の位置ずれを補正し、2枚の画像が一致するように合成を行う。2枚の画像間の位置ずれを補正して合成する方法として、例えば画像のエッジや特徴点を抽出して、それらの座標が一致するように合成する方法がある。   Thus, when a focused image and a non-focused image are captured and acquired, the focused image and the non-focused image are combined to obtain an image having a soft focus effect (step S150). When compositing images, the image compositing unit 118 corrects misalignment between the two images and performs compositing so that the two images match. As a method of correcting and synthesizing a positional deviation between two images, for example, there is a method of extracting edges and feature points of an image and combining them so that their coordinates coincide.

図5は、本発明の第1の実施形態にかかる合成画像の例を示す説明図である。図5の(a)は合焦画像のみの例を示し、図5の(b)は合焦画像と非合焦画像を1:1で合成した場合の例を示し、図5の(c)は合焦画像と非合焦画像をm:n(m>n)の比率で合成した場合の例を示す。図5の(c)は、図5の(b)より合焦画像の割合が多いため、図5の(b)に比べてはっきりとした画像となる。このように、合焦画像と非合焦画像の合成比率を変化させることで、ソフトフォーカス効果の度合いを変えることができる。   FIG. 5 is an explanatory diagram illustrating an example of a composite image according to the first embodiment of the present invention. 5A shows an example of only a focused image, FIG. 5B shows an example of a case where a focused image and a non-focused image are synthesized 1: 1, and FIG. 5C. Indicates an example in which a focused image and a non-focused image are combined at a ratio of m: n (m> n). FIG. 5C is a clearer image than FIG. 5B because the ratio of the focused image is larger than that in FIG. 5B. Thus, the degree of the soft focus effect can be changed by changing the composition ratio of the focused image and the non-focused image.

なお、本実施形態においては、ステップS112でデフォーカス比率コントロールを選択した際に、最初に合焦画像と非合焦画像の選択比率を決定していたが、本発明はかかる例に限定されないことは言うまでもない。   In this embodiment, when the defocus ratio control is selected in step S112, the selection ratio of the focused image and the unfocused image is first determined. However, the present invention is not limited to such an example. Needless to say.

また、本実施形態においては撮像素子としてCMOS素子108を用いているが、CMOS素子の替わりにCCD素子を用いてもよく、CMOS素子の替わりにCCD素子を用いた場合に、非合焦画像として合焦位置で取得した画像データを拡大したものを用いてもよい。CCD素子は画像データの読み出しに時間がかかるため、画素を間引いて画像データを取得することが多い。この際に、画素を間引いて取得した画像データを拡大縮小処理部156で拡大することで、非合焦画像のようなぼけた状態の画像を得ることができる。このように取得した画像データを非合焦画像として合焦画像と合成することで、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる。   In the present embodiment, the CMOS element 108 is used as the image pickup element. However, a CCD element may be used instead of the CMOS element, and when a CCD element is used instead of the CMOS element, an in-focus image is obtained. You may use what expanded the image data acquired in the focusing position. Since it takes time to read out image data, CCD elements often acquire image data by thinning out pixels. At this time, by enlarging the image data obtained by thinning out the pixels by the enlargement / reduction processing unit 156, an image in a blurred state such as a non-focused image can be obtained. By synthesizing the acquired image data as a non-focused image with the focused image, a captured image having the same effect as when soft focus shooting is performed can be obtained.

図6は、本発明の第1の実施形態にかかる合成画像の別の例を示す説明図である。図6の(a)は、撮像素子中の全画素のデータを読み出す全画素読み出しモードでの合焦画像の例を示し、図6の(b)は撮像素子中のデータを、画素を間引いて読み出す間引きモードでの合焦画像を拡大した例を示す。図6の(b)に示したように、間引きモードで読み出した画像データを拡大すると、合焦画像であっても、非合焦画像のように全体がぼんやりした画像となる。そして、図6の(a)の画像と図6の(b)の画像とを、位置合わせを行って合成することで、図6の(c)の画像に示したように、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる。   FIG. 6 is an explanatory diagram illustrating another example of the composite image according to the first embodiment of the present invention. FIG. 6A shows an example of a focused image in the all-pixel reading mode for reading out data of all pixels in the image sensor, and FIG. 6B shows the data in the image sensor thinned out from the pixels. The example which expanded the focused image in the thinning-out mode to read is shown. As shown in FIG. 6B, when the image data read out in the thinning mode is enlarged, even if it is a focused image, the entire image becomes blurred like a non-focused image. Then, the image of FIG. 6 (a) and the image of FIG. 6 (b) are synthesized by performing alignment so that soft focus shooting is performed as shown in the image of FIG. 6 (c). A captured image having the same effect as that obtained can be obtained.

合成して得られた画像は、圧縮処理部120で適切な形式の画像データに圧縮する圧縮処理が行われ、LCDドライバ122を通じてLCD124に表示されるようにしてもよい。また、圧縮処理が施された画像は、メディアコントローラ138を通じて記録メディア140に保存されるようにしてもよい。   The image obtained by the synthesis may be compressed by the compression processing unit 120 into image data of an appropriate format and displayed on the LCD 124 through the LCD driver 122. Further, the compressed image may be stored in the recording medium 140 through the media controller 138.

なお、上記の撮像方法はコンピュータプログラムによって実行されてもよい。CPU128が、撮像装置100の内部に記録されたコンピュータプログラムを呼び出すことによって、上記の撮像方法を実行してもよい。   Note that the above imaging method may be executed by a computer program. The CPU 128 may execute the above imaging method by calling a computer program recorded inside the imaging apparatus 100.

以上説明したように、本発明の第1の実施形態によれば、合焦画像と非合焦画像を、位置合わせを行って合成することにより、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる。そして、非合焦画像はオートフォーカス処理を行う際に取得する画像データを使用することで、ソフト効果レベルに対応した任意の非合焦画像を得ることができ、また合焦画像の撮影を行った後に非合焦画像の撮影を行った場合に比べ、合成画像を得るまでの時間を短縮することができる。   As described above, according to the first embodiment of the present invention, the in-focus image and the out-of-focus image are combined by performing alignment, thereby achieving an effect equivalent to that in the case of performing soft focus shooting. A captured image can be obtained. The out-of-focus image can be obtained by using the image data acquired when the autofocus process is performed, and an arbitrary out-of-focus image corresponding to the soft effect level can be obtained. Compared to the case where a non-focused image is taken after that, the time until a composite image is obtained can be shortened.

(第2の実施形態)
本発明の第1の実施形態においては、オートフォーカス処理中の画像を非合焦画像として使用して、合焦画像と非合焦画像とを位置合わせを行って合成することで、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる撮像装置および撮像方法について説明した。本発明の第2の実施形態においては、1回のシャッタボタンの操作で、合焦画像を撮影した後にフォーカスレンズを移動させて非合焦画像を撮影し、合焦画像と非合焦画像とを位置合わせを行って合成することで、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる撮像装置および撮像方法について説明する。
(Second Embodiment)
In the first embodiment of the present invention, soft focus shooting is performed by aligning and synthesizing the focused image and the unfocused image using the image during the autofocus process as the unfocused image. An imaging apparatus and an imaging method that can obtain a captured image having the same effect as when performing the above have been described. In the second embodiment of the present invention, with one operation of the shutter button, after the focused image is captured, the focus lens is moved to capture the unfocused image, and the focused image, the unfocused image, An image pickup apparatus and an image pickup method capable of obtaining a shot image having the same effect as that obtained by performing soft focus shooting by combining and aligning images will be described.

なお、本発明の第2の実施形態にかかる撮像装置は、本発明の第1の実施形態にかかる撮像装置と同一の構成を有するため、詳細な説明は割愛する。ここでは、本発明の第2の実施形態にかかる撮像方法について詳細に説明する。   Note that since the imaging apparatus according to the second embodiment of the present invention has the same configuration as the imaging apparatus according to the first embodiment of the present invention, detailed description thereof is omitted. Here, the imaging method according to the second embodiment of the present invention will be described in detail.

本発明の第2の実施形態においては、画面上の複数の箇所に合焦位置を検出するための合焦状態検知部を有する、マルチAFを使用する場合について説明する。そして、本発明の第2の実施形態においては、画面上の4箇所に合焦状態検知部(AF領域)を設けて、合焦位置を検出するマルチAFを使用する場合について説明する。図7は、本発明の第2の実施形態にかかるマルチAFによる撮影距離とコントラストの関係の一例を示す説明図である。   In the second embodiment of the present invention, a case will be described in which multi-AF is used, which has in-focus state detection units for detecting in-focus positions at a plurality of locations on the screen. In the second embodiment of the present invention, a case will be described in which a multi-AF that detects in-focus positions by providing in-focus state detection units (AF areas) at four locations on the screen will be described. FIG. 7 is an explanatory diagram showing an example of the relationship between the shooting distance and contrast by multi-AF according to the second embodiment of the present invention.

図7に示したように、画面上の4箇所で合焦状態検知部を用いて合焦位置を検出する合焦状態検知部をマルチAFを使用するため、撮影距離とコントラストとの関係は符号202a、202b、202cおよび202dで示したように4種類得られる。この4種類の撮影距離とコントラストとの関係を用いて合焦位置を算出する。   As shown in FIG. 7, since the in-focus state detection unit that detects the in-focus position using the in-focus state detection unit at four locations on the screen uses multi-AF, the relationship between the shooting distance and the contrast is a sign. Four types are obtained as shown by 202a, 202b, 202c and 202d. The in-focus position is calculated using the relationship between the four types of shooting distances and contrast.

マルチAFの場合には、最も近距離側でコントラストのピークを検出したAF領域に含まれる被写体を主被写体とするのが一般的である(近距離優先)。図7に示した関係では、符号202dに示したコントラストはピークを検出することができず、符号202cに示したコントラストが撮像装置に最も近い位置でピークを示しているため、符号202cに示したコントラストを有するAF領域に含まれる被写体を主被写体として認定する。   In the case of multi-AF, the subject included in the AF area where the contrast peak is detected on the shortest distance side is generally the main subject (short distance priority). In the relationship shown in FIG. 7, the contrast shown by the reference numeral 202d cannot detect a peak, and the contrast shown by the reference numeral 202c shows a peak at a position closest to the imaging apparatus. A subject included in an AF area having contrast is recognized as a main subject.

ソフトフォーカス効果を有する画像は、全体が均一にぼけて写っている必要がある。本発明の第2の実施形態においては、フォーカスレンズを移動させて非合焦画像を撮影するが、フォーカスレンズを移動させた結果、主被写体以外の被写体にピントが合ってしまうと、ソフトフォーカス効果を有する画像としては適切ではない。そのため、ソフトフォーカス効果を有する画像を得るために、画像全体が均一にぼける方向にフォーカスレンズを移動させたほうが望ましい。   An image having a soft focus effect needs to be uniformly blurred. In the second embodiment of the present invention, the focus lens is moved to shoot a non-focused image. However, if the focus lens is moved as a result of moving the focus lens, the soft focus effect is obtained. It is not suitable as an image having Therefore, in order to obtain an image having a soft focus effect, it is desirable to move the focus lens in a direction in which the entire image is uniformly blurred.

図7に示した撮影距離とコントラストとの関係においては、コントラストのピークの位置を挟んだ前後の所定の距離が、主被写体として判定できる距離である。所定の距離LとLは、例えば以下の数式1および数式2で求めることができる。
In the relationship between the shooting distance and the contrast shown in FIG. 7, a predetermined distance before and after the contrast peak position is a distance that can be determined as the main subject. The predetermined distances L 1 and L 2 can be obtained by, for example, the following formulas 1 and 2.

ここで、δは許容錯乱半径を、Dは撮像装置100の撮像面から合焦被写体までの撮影距離を、fはフォーカスレンズの焦点距離を、Fは絞り値(Fナンバー)をそれぞれ示す。そして、Lを前方被写界深度、Lは後方被写界深度という。また、本実施形態においては、撮像素子(本実施形態においてはCMOS素子)の画素間ピッチをdとした場合に、δの値はδ=2dとする。つまり、ピントが合って見える範囲はD−L〜D+Lの間である。 Here, δ is an allowable confusion radius, D is an imaging distance from the imaging surface of the imaging apparatus 100 to the focused subject, f is a focal length of the focus lens, and F is an aperture value (F number). L 1 is referred to as the front depth of field, and L 2 is referred to as the rear depth of field. In this embodiment, when the inter-pixel pitch of the image sensor (CMOS element in this embodiment) is d, the value of δ is δ = 2d. That is, the range in which the subject is in focus is between D−L 1 and D + L 2 .

フォーカスレンズを移動させすぎても、合焦画像と非合焦画像との合成時に支障が生じる。フォーカスレンズを移動させすぎて撮影したぼけ量の大きい画像はエッジも不鮮明になるため、合焦画像との位置合わせが困難になるからである。従って、フォーカスレンズの移動量には予め制限を持たせておくことが望ましい。本発明の第2の実施形態においては、この制限量を15Fδとする。もちろん制限量はかかる例に限られない。   Even if the focus lens is moved too much, a problem occurs when the focused image and the unfocused image are combined. This is because an image with a large amount of blur shot by moving the focus lens too much has an unclear edge, making it difficult to align the focused image. Therefore, it is desirable to limit the amount of movement of the focus lens in advance. In the second embodiment of the present invention, this limit amount is 15 Fδ. Of course, the limit amount is not limited to this example.

次に、本発明の第2の実施形態にかかる撮像方法について、より詳細に説明する。   Next, the imaging method according to the second embodiment of the present invention will be described in more detail.

図8は、本発明の第2の実施形態にかかる撮像方法について説明する流れ図である。以下、図8を用いて本発明の第2の実施形態にかかる撮像方法について、より詳細に説明する。   FIG. 8 is a flowchart illustrating an imaging method according to the second embodiment of the present invention. Hereinafter, the imaging method according to the second embodiment of the present invention will be described in more detail with reference to FIG.

本発明の第2の実施形態にかかる撮像方法では、最初に、本発明の第2の実施形態にかかる撮像方法と同様に、撮像装置100の操作部133を操作して、ソフトフォーカス撮影におけるソフト効果レベルを設定する(ステップS210)。第2の実施形態にかかる撮像方法においては、例えば、ソフト効果レベルを「弱」「弱め」「強め」「強」の4種類の中から選択することができる。もちろん、ソフト効果レベルの組み合わせはこの例に限られない。操作部133の操作で決定されたソフト効果レベルは、効果設定部158によって設定される。   In the imaging method according to the second embodiment of the present invention, first, similarly to the imaging method according to the second embodiment of the present invention, the operation unit 133 of the imaging apparatus 100 is operated to perform software in soft focus shooting. An effect level is set (step S210). In the imaging method according to the second embodiment, for example, the soft effect level can be selected from four types of “weak”, “weak”, “strong”, and “strong”. Of course, the combination of the soft effect levels is not limited to this example. The soft effect level determined by the operation of the operation unit 133 is set by the effect setting unit 158.

ソフト効果レベルを入力すると、次に非合焦画像を得るためのデフォーカスコントロール手段を決定する(ステップS212)。本発明の第2の実施形態においては、デフォーカスコントロール手段は、(イ)ソフト効果レベルに応じて合焦画像を得られるフォーカスレンズ106の位置からの距離を変更するデフォーカス量コントロールと、(ロ)ソフト効果レベルに応じて合焦画像と非合焦画像の合成比率を変更するデフォーカス比率コントロールの2種類を選択することができる。デフォーカス量コントロールとデフォーカス比率コントロールのどちらを選択するかは、撮影動作の前にあらかじめ定めていてもよく、撮影動作を行う度に設定してもよい。   When the soft effect level is input, a defocus control means for obtaining a non-focused image is next determined (step S212). In the second embodiment of the present invention, the defocus control means includes (a) a defocus amount control for changing a distance from the position of the focus lens 106 from which a focused image can be obtained according to the soft effect level; B) Two types of defocus ratio control for changing the composition ratio of the focused image and the unfocused image according to the soft effect level can be selected. Whether to select the defocus amount control or the defocus ratio control may be determined in advance before the photographing operation or may be set every time the photographing operation is performed.

まず、(イ)のデフォーカス量コントロールを選択した場合の流れについて説明する。ステップS212において、デフォーカスコントロール手段としてデフォーカス量コントロールを選択すると、ステップS210で設定したソフト効果レベルに基づくフォーカスレンズ106の移動量を合成比率設定部160で設定する(ステップS214)。   First, the flow when the defocus amount control (A) is selected will be described. When defocus amount control is selected as the defocus control means in step S212, the moving amount of the focus lens 106 based on the soft effect level set in step S210 is set by the composition ratio setting unit 160 (step S214).

表3は、本発明の第2の実施形態にかかる、ソフト効果レベルとフォーカスレンズ106の移動量との関係を示す表である。ステップ210で設定したソフト効果レベルに基づいて、表3の条件に合致するようにフォーカスレンズ106を移動させる。
Table 3 is a table showing the relationship between the soft effect level and the movement amount of the focus lens 106 according to the second embodiment of the present invention. Based on the soft effect level set in step 210, the focus lens 106 is moved so as to meet the conditions in Table 3.

フォーカスレンズ106の移動量を設定すると、次にCPU128でシャッタボタン133が押されているかどうかの判断を行う(ステップS216)。シャッタボタン133が押されていなければ、シャッタボタン133が押されているかどうかの判断処理を繰り返し行い、シャッタボタン133が押されていれば次の処理に移る。   Once the movement amount of the focus lens 106 is set, the CPU 128 next determines whether or not the shutter button 133 has been pressed (step S216). If the shutter button 133 is not pressed, the process of determining whether or not the shutter button 133 is pressed is repeated, and if the shutter button 133 is pressed, the process proceeds to the next process.

シャッタボタン133が押されていると判断すれば、次に被写体に合焦するためのフォーカシング処理を行う(ステップS218)。フォーカシング処理は、第1の実施形態と同様に、フォーカスレンズ106を近距離で合焦する位置から遠距離で合焦する位置へ向けて移動させながらサンプリングすることによって行う。そして、フォーカシング処理によってサンプリングした画像のコントラストの、最も撮像装置100に近い位置に存在するピークを検出することによって、被写体の合焦位置を検出する(ステップS220)。本発明の第2の実施形態においても、第1の実施形態同様に、コントラスト情報のピーク位置の検出は合焦位置検出部152が行う。   If it is determined that the shutter button 133 is pressed, then a focusing process for focusing on the subject is performed (step S218). As in the first embodiment, the focusing process is performed by sampling while moving the focus lens 106 from a focus position at a short distance to a focus position at a long distance. Then, the in-focus position of the subject is detected by detecting the peak of the contrast of the image sampled by the focusing process that exists at the position closest to the imaging device 100 (step S220). Also in the second embodiment of the present invention, as in the first embodiment, the focus position detection unit 152 detects the peak position of the contrast information.

コントラスト情報のピークの位置を検出すると、ピークの位置に対応する画像データを取得した場所にフォーカスレンズ106を移動させて、CMOS素子108に光を入射することによって、被写体に合焦した合焦画像を撮影する(ステップS222)。この際の露光量は、適正な露光量の半分の量とする。撮影した合焦画像はメモリ134に一時的に記憶する。   When the peak position of the contrast information is detected, the focus lens 106 is moved to the place where the image data corresponding to the peak position is acquired, and light is incident on the CMOS element 108, so that the focused image is focused on the subject. Is photographed (step S222). The exposure amount at this time is half of the appropriate exposure amount. The photographed focused image is temporarily stored in the memory 134.

合焦画像の撮影が完了すると、続いて非合焦画像の撮影を行う。非合焦画像の撮影の際には、まず、フォーカスレンズ106を被写体に近い側と遠い側のどちらに移動させればソフトフォーカス効果を得られる画像となるかどうかを判断し、フォーカスレンズ106の移動方向を決定する(ステップS224)。フォーカスレンズ106の移動方向を決定すると、ステップS214で決定したフォーカスレンズ106の移動量に従ってフォーカスレンズを移動させる(ステップS226)。   When shooting of the in-focus image is completed, the non-focus image is subsequently shot. When shooting an out-of-focus image, first, it is determined whether the focus lens 106 is moved to a side closer to or far from the subject to determine whether an image can be obtained with a soft focus effect. A moving direction is determined (step S224). When the movement direction of the focus lens 106 is determined, the focus lens is moved according to the movement amount of the focus lens 106 determined in step S214 (step S226).

フォーカスレンズ106の移動が終わると、非合焦画像の撮影を行う(ステップS228)。非合焦画像は、メモリ134に一時的に保存する。この際の露光量は、適正な露光量の半分の量とすることが望ましい。通常の露光量で撮影を行って合焦画像と合成すると画像の明度がオーバーしてしまうからである。   When the movement of the focus lens 106 is finished, a non-focused image is taken (step S228). The out-of-focus image is temporarily stored in the memory 134. The exposure amount at this time is desirably half of the appropriate exposure amount. This is because if the image is taken with a normal exposure amount and combined with the focused image, the brightness of the image will be over.

以上、ステップS212で(イ)のデフォーカス量コントロールを選択した場合の処理の流れについて説明した。次に、ステップS212で(ロ)のデフォーカス比率コントロールを選択した場合の処理の流れについて説明する。   The process flow when the (B) defocus amount control is selected in step S212 has been described above. Next, the flow of processing when the (b) defocus ratio control is selected in step S212 will be described.

ステップS212で(ロ)のデフォーカス比率コントロールを選択した場合は、最初にステップS210で決定した効果レベルに対応する、合焦画像と非合焦画像の合成比率を、合成比率設定部160で設定する(ステップS232)。表4は、デフォーカス比率コントロールの場合の、効果レベルと画像の合成比率の一例を示す説明図である。なお、効果レベルと画像の合成比率は表4の例に限られない。
When the (b) defocus ratio control is selected in step S212, the composition ratio setting unit 160 sets the composition ratio of the focused image and the out-of-focus image corresponding to the effect level first determined in step S210. (Step S232). Table 4 is an explanatory diagram showing an example of the effect level and the image synthesis ratio in the case of defocus ratio control. The effect level and the image synthesis ratio are not limited to those in Table 4.

合焦画像と非合焦画像の合成比率を設定すると、CPU128でシャッタボタン133が押されているかどうかの判断を行う(ステップS234)。シャッタボタン133が押されていなければ、シャッタボタン133が押されているかどうかの判断処理を繰り返し行い、シャッタボタン133が押されていれば次の処理に移る。   When the composition ratio of the focused image and the unfocused image is set, the CPU 128 determines whether or not the shutter button 133 is pressed (step S234). If the shutter button 133 is not pressed, the process of determining whether or not the shutter button 133 is pressed is repeated, and if the shutter button 133 is pressed, the process proceeds to the next process.

シャッタボタン133が押されたら、次に被写体に合焦するためのフォーカシング処理を行う(ステップS236)。フォーカシング処理は、ステップS212でデフォーカス量コントロールを選択した場合のフォーカシング処理(ステップS218)と同様であるため、詳細な説明は割愛する。そして、フォーカシング処理によってサンプリングした画像のコントラストの、最も撮像装置100に近い位置に存在するピークを検出することによって、被写体の合焦位置を算出する(ステップS238)。本発明の第2の実施形態においては、コントラスト情報のピークの検出は合焦位置検出部152が行う。   When the shutter button 133 is pressed, a focusing process for focusing on the subject is performed next (step S236). Since the focusing process is the same as the focusing process (step S218) when the defocus amount control is selected in step S212, the detailed description is omitted. Then, the in-focus position of the subject is calculated by detecting the peak of the contrast of the image sampled by the focusing process that exists at the position closest to the imaging device 100 (step S238). In the second embodiment of the present invention, the focus position detection unit 152 detects the peak of the contrast information.

コントラスト情報のピークの位置を算出すると、ピークの位置に対応する画像データを取得した場所にフォーカスレンズ106を移動させて、被写体に合焦した合焦画像を撮影する(ステップS240)。撮影した合焦画像は、画像の露光量をm/8倍し(ステップS242)、メモリ134に一時的に記憶する。画像の露光量をm/8倍するのは、画像の合成を行った際に画像の明度がオーバーしないようにするためである。   When the peak position of the contrast information is calculated, the focus lens 106 is moved to the place where the image data corresponding to the peak position is acquired, and a focused image focused on the subject is photographed (step S240). The captured focused image is temporarily stored in the memory 134 by multiplying the exposure amount of the image by m / 8 (step S242). The reason why the exposure amount of the image is multiplied by m / 8 is to prevent the brightness of the image from exceeding when the images are combined.

合焦画像の撮影が完了すると、続いて非合焦画像を撮影する。本発明の第2の実施形態においても、非合焦画像は、デフォーカス量コントロールを選択した場合と同様に、まずフォーカスレンズ106を被写体に近い側と遠い側のどちらに移動させればソフトフォーカス効果を得られる画像となるかどうかを判断し、フォーカスレンズ106の移動方向を決定する(ステップS244)。フォーカスレンズ106の移動方向を決定すると、決定した方向にフォーカスレンズを移動させて、非合焦画像の撮影を行う(ステップS246)。撮影した非合焦画像は、画像の露光量をn/8倍し(ステップS248)、メモリ134に一時的に記憶する。画像の露光量をn/8倍するのは、画像の合成を行った際に画像の明度がオーバーしないようにするためである。   When shooting of the focused image is completed, a non-focused image is subsequently shot. Also in the second embodiment of the present invention, as in the case where the defocus amount control is selected, the out-of-focus image is soft-focused by first moving the focus lens 106 to the side closer to or far from the subject. It is determined whether or not an image can be obtained, and the moving direction of the focus lens 106 is determined (step S244). When the moving direction of the focus lens 106 is determined, the focus lens is moved in the determined direction, and an in-focus image is captured (step S246). The photographed out-of-focus image is multiplied by n / 8 the exposure amount of the image (step S248) and temporarily stored in the memory 134. The reason why the exposure amount of the image is multiplied by n / 8 is to prevent the brightness of the image from exceeding when the images are combined.

以上、ステップS112でデフォーカス比率コントロールを選択した場合の処理の流れについて説明した。   The process flow when the defocus ratio control is selected in step S112 has been described above.

このように、合焦画像と非合焦画像との撮影が完了すると、メモリ134に一時的に記憶した合焦画像と非合焦画像を合成して、ソフトフォーカス効果を有する画像を得る(ステップS250)。画像を合成する際には、画像合成部118において、2枚の画像間の位置ずれを補正し、2枚の画像が一致するように合成を行う。2枚の画像間の位置ずれを補正して合成する方法として、例えば画像のエッジや特徴点を抽出して、それらの座標が一致するように合成する方法がある。   As described above, when the photographing of the focused image and the non-focused image is completed, the focused image and the non-focused image temporarily stored in the memory 134 are combined to obtain an image having a soft focus effect (step). S250). When compositing images, the image compositing unit 118 corrects misalignment between the two images and performs compositing so that the two images match. As a method of correcting and synthesizing a positional deviation between two images, for example, there is a method of extracting edges and feature points of an image and combining them so that their coordinates coincide.

なお、本実施形態においては、合焦画像の露光量をm/8倍し、さらに非合焦画像の露光量をn/8倍することで、合焦画像と非合焦画像とを合成した際に画像の明度がオーバーしないようにしているが、本発明はかかる例に限られない。例えば、自動露光を行って算出されたシャッタ速度よりも短い時間で複数枚の画像の撮影を行い、複数枚の画像を被写体が一致するように合成するようにしてもよい。   In the present embodiment, the focused image and the unfocused image are synthesized by multiplying the exposure amount of the focused image by m / 8, and further by multiplying the exposure amount of the unfocused image by n / 8. In this case, the brightness of the image is not exceeded, but the present invention is not limited to such an example. For example, a plurality of images may be taken in a time shorter than the shutter speed calculated by performing automatic exposure, and the plurality of images may be combined so that the subject matches.

撮像装置を用いて撮影した画像のぶれを抑える方法として、手ぶれを起こしにくい高速のシャッタ速度で複数枚撮影し、撮影した画像を被写体が一致するように合成する電子的補正方法がある。電子的補正方法では、例えば自動露光によって得られたシャッタ速度よりも短いシャッタ速度で画像を複数枚撮影し、その画像を被写体が一致するように合成することで、ぶれを抑えた画像を得ることができる。   As a method of suppressing blurring of an image captured using an imaging device, there is an electronic correction method in which a plurality of images are captured at a high shutter speed that is unlikely to cause camera shake, and the captured images are combined so that the subjects match. In the electronic correction method, for example, a plurality of images are shot at a shutter speed shorter than the shutter speed obtained by automatic exposure, and the images are combined so that the subjects match, thereby obtaining an image with reduced blur. Can do.

以下に電子的補正方法の一例を示す。自動露光を行い、適正AE算出部154での算出の結果、絞り値がF2.8、シャッタ速度が1/8秒に設定された場合、シャッタ速度が1/8秒では、三脚を用いずに手持ちで撮影を行うと、撮影画像の手ぶれを抑えるのは困難である。従って、例えばシャッタ速度を1/64秒にして8枚を撮影し、撮影した画像を被写体が一致するように合成することで、シャッタ速度が1/8秒で撮影した場合の画像と同等の明度を得つつ、撮影画像の手ぶれを抑えた画像を撮影することができる。   An example of an electronic correction method is shown below. When automatic exposure is performed and the aperture value is set to F2.8 and the shutter speed is set to 1/8 second as a result of calculation by the appropriate AE calculation unit 154, the tripod is not used when the shutter speed is 1/8 second. When taking a picture by hand, it is difficult to suppress camera shake of a taken image. Therefore, for example, 8 images are shot at a shutter speed of 1/64 seconds, and the captured images are combined so that the subject matches, so that the brightness is equivalent to the image when the shutter speed is 1/8 seconds. It is possible to shoot an image with reduced camera shake.

そこで、1/64秒のシャッタ速度で撮影した画像の比率を、ソフト効果レベルによって変更することで、異なるソフトフォーカス効果を有する画像を撮影することができる。例えば、本実施形態に示した例では、ソフト効果レベルを「弱」に設定した場合においては、1/64秒のシャッタ速度で合焦画像を5枚、非合焦画像を3枚撮影し、撮影した合焦画像を非合焦画像とを合成する。同様に、ソフト効果レベルを「弱め」に設定した場合においては、1/64秒のシャッタ速度で合焦画像を4枚、非合焦画像を4枚撮影し、ソフト効果レベルを「強め」に設定した場合においては、1/64秒のシャッタ速度で合焦画像を3枚、非合焦画像を5枚撮影し、ソフト効果レベルを「強」に設定した場合においては、1/64秒のシャッタ速度で合焦画像を2枚、非合焦画像を6枚撮影する。このように、合焦画像と非合焦画像の撮影枚数の組を変化させることで、様々なソフトフォーカス効果を有する画像を撮影することができる、   Therefore, by changing the ratio of images taken at a shutter speed of 1/64 seconds according to the soft effect level, images having different soft focus effects can be taken. For example, in the example shown in the present embodiment, when the soft effect level is set to “low”, five in-focus images and three in-focus images are captured at a shutter speed of 1/64 seconds. The photographed focused image is combined with the non-focused image. Similarly, when the soft effect level is set to “weak”, four in-focus images and four in-focus images are taken at a shutter speed of 1/64 seconds, and the soft effect level is set to “strong”. When set, 3 in-focus images and 5 out-of-focus images are taken at a shutter speed of 1/64 sec. When the soft effect level is set to “strong”, 1/64 sec. Two in-focus images and six in-focus images are taken at the shutter speed. In this way, by changing the set of the number of captured images of the focused image and the non-focused image, it is possible to capture images having various soft focus effects.

合成して得られた画像は、圧縮処理部120で適切な形式の画像データに圧縮する圧縮処理が行われ、LCDドライバ122を通じてLCD124に表示されるようにしてもよい。また、圧縮処理が施された画像は、メディアコントローラ138を通じて記録メディア140に保存されるようにしてもよい。   The image obtained by the synthesis may be compressed by the compression processing unit 120 into image data of an appropriate format and displayed on the LCD 124 through the LCD driver 122. Further, the compressed image may be stored in the recording medium 140 through the media controller 138.

なお、上記の撮像方法はコンピュータプログラムによって実行されてもよい。CPU128が、撮像装置100の内部に記録されたコンピュータプログラムを呼び出すことによって、上記の撮像方法を実行してもよい。   Note that the above imaging method may be executed by a computer program. The CPU 128 may execute the above imaging method by calling a computer program recorded inside the imaging apparatus 100.

以上説明したように、本発明の第2の実施形態によれば、1回のシャッタボタンの操作で合焦画像と非合焦画像とを撮影し、合焦画像と非合焦画像を、位置合わせを行って合成することにより、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる。そして、非合焦画像は画像全体がぼける方向にフォーカスレンズを移動させて撮影を行うことで、画像全体がぼんやりとした、ソフトフォーカス撮影を行った場合と同等の効果を有する撮影画像を得ることができる。   As described above, according to the second embodiment of the present invention, the in-focus image and the out-of-focus image are photographed by operating the shutter button once, and the in-focus image and the out-of-focus image are By combining and combining, it is possible to obtain a captured image having an effect equivalent to that obtained when performing soft focus imaging. Then, by taking the out-of-focus image by moving the focus lens in the direction in which the entire image is blurred, it is possible to obtain a photographed image having the same effect as when performing soft focus shooting with the entire image blurred. Can do.

以上、添付図面を参照しながら本発明の好適な実施形態について説明したが、本発明は係る例に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to the example which concerns. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

例えば、上記実施形態では、合焦画像と非合焦画像の2枚を合成してソフトフォーカス効果を有する画像を生成したが、本発明はかかる例に限定されず、3枚以上の画像を合成してもよい。例えば、非合焦画像を2種類用意して、合焦画像と2種類の非合焦画像の3枚を合成してソフトフォーカス効果を有する画像を生成してもよい。合成する画像の枚数を増やすことで、ソフトフォーカス効果をより高めることができる。   For example, in the above-described embodiment, an image having a soft focus effect is generated by combining two images of a focused image and a non-focused image, but the present invention is not limited to this example, and three or more images are combined. May be. For example, two types of in-focus images may be prepared, and an image having a soft focus effect may be generated by synthesizing three in-focus images and two types of non-focus images. By increasing the number of images to be combined, the soft focus effect can be further enhanced.

また、本発明の第1の実施形態では、スキャニングを行う際にメモリ134にスキャニングを行った画像を順次記憶させていたが、ピーク位置よりも遠い位置でスキャニングして得られ、画像の合成に使用しない画像は破棄するようにしてもよい。画像の合成に使用しない画像を破棄することで、メモリ134の使用量を節約することができる。   In the first embodiment of the present invention, the scanned images are sequentially stored in the memory 134 at the time of scanning. However, the images obtained by scanning at positions far from the peak position are used for image synthesis. You may make it discard the image which is not used. By discarding images that are not used for image synthesis, the amount of memory 134 used can be saved.

本発明の第1の実施形態にかかる撮像装置の構成について説明する説明図である。It is explanatory drawing explaining the structure of the imaging device concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかるCPUの構成について説明する説明図である。It is explanatory drawing explaining the structure of CPU concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかるオートフォーカス処理について説明する説明図である。It is explanatory drawing explaining the autofocus process concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかる撮像方法について説明する流れ図である。It is a flowchart explaining the imaging method concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかる合成画像の例を示す説明図である。It is explanatory drawing which shows the example of the synthesized image concerning the 1st Embodiment of this invention. 本発明の第1の実施形態にかかる合成画像の別の例を示す説明図である。It is explanatory drawing which shows another example of the synthesized image concerning the 1st Embodiment of this invention. 本発明の第2の実施形態にかかるマルチAFによる撮影距離とコントラストの関係の一例を示す説明図である。It is explanatory drawing which shows an example of the relationship between the imaging distance by multi AF concerning the 2nd Embodiment of this invention, and contrast. 本発明の第2の実施形態にかかる撮像方法について説明する流れ図である。It is a flowchart explaining the imaging method concerning the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

100 撮像装置
106 フォーカスレンズ
108 CMOS素子
118 画像合成部
128 CPU
134 メモリ
152 合焦位置検出部
154 適正AE算出部
156 拡大縮小処理部
158 効果設定部
160 合成比率設定部
DESCRIPTION OF SYMBOLS 100 Imaging device 106 Focus lens 108 CMOS element 118 Image composition part 128 CPU
134 Memory 152 Focus Position Detection Unit 154 Appropriate AE Calculation Unit 156 Enlargement / Reduction Processing Unit 158 Effect Setting Unit 160 Composition Ratio Setting Unit

Claims (8)

撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、前記撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、前記被写体の合焦位置を検出する撮像部と;
前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像を記憶する画像記憶部と;
前記合焦位置に対する所望の非焦点度を予め所定数設定しておく効果設定部と;
前記合焦位置の画像と前記効果設定部で設定された各前記非焦点度に対応する画像とを前記画像記憶部から読み出した後、前記合焦位置の画像を含む複数の前記画像を位置合わせして合成する画像合成部と;
を含むことを特徴とする、撮像装置。
The focus position of the subject is based on the image of the subject that is sequentially imaged on the imaging surface of the image sensor through the imaging optical system while driving the focus lens included in the imaging optical system in the focus adjustment direction. An imaging unit for detecting
An image storage unit that stores images of the subject sequentially output from the image sensor when the in-focus position is detected;
An effect setting unit that sets a predetermined number of desired non-focus degrees with respect to the in-focus position;
After the image at the in-focus position and the image corresponding to each of the defocus degrees set by the effect setting unit are read from the image storage unit, a plurality of the images including the image at the in-focus position are aligned. And an image composition unit to be synthesized;
An imaging apparatus comprising:
前記画像記憶部は、前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像を全画素分の画像データとして記憶しておくことを特徴とする、請求項1に記載の撮像装置。   2. The imaging according to claim 1, wherein the image storage unit stores the image of the subject sequentially output from the imaging device when the in-focus position is detected as image data for all pixels. apparatus. 前記画像記憶部は、前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像のうち、前記合焦位置の画像のみ全画素分の画像データとして記憶しておく一方、前記合焦位置の画像以外の画像を所定の画素間引きした画像データとして記憶しておくことを特徴とする、請求項1に記載の撮像装置。   The image storage unit stores only the image at the in-focus position among the images of the subject sequentially output from the imaging element when the in-focus position is detected, as image data for all pixels. The imaging apparatus according to claim 1, wherein an image other than the image at the focal position is stored as image data obtained by thinning out predetermined pixels. 前記撮像部は、前記撮像素子の結像面上で複数の合焦検知位置を設定しておき、前記合焦位置の検出時に各前記合焦検知位置から得られる合焦レベルを分析し、
前記画像合成部は、前記撮像部による前記合焦レベルの分析結果に基づいて、前記合焦位置に対する遠近方向を選択し、選択した方向で撮影された前記被写体の画像のうち前記効果設定部により設定された各前記非焦点度に対応する画像を、前記画像記憶部から読み出すことを特徴とする、請求項1〜3のいずれかに記載の撮像装置。
The imaging unit sets a plurality of focus detection positions on the imaging surface of the image sensor, analyzes the focus level obtained from each focus detection position when detecting the focus position,
The image composition unit selects a perspective direction with respect to the in-focus position based on the analysis result of the in-focus level by the imaging unit, and the effect setting unit out of the image of the subject photographed in the selected direction. The imaging apparatus according to claim 1, wherein an image corresponding to each set non-focal degree is read from the image storage unit.
撮像光学系に含まれるフォーカスレンズを焦点調整方向に駆動させながら、前記撮像光学系を介して撮像素子の結像面上に順次結像される被写体の画像に基づいて、前記被写体の合焦位置を検出する撮像ステップと;
前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像を記憶する画像記憶ステップと;
前記合焦位置に対する所望の非焦点度を予め所定数設定しておき、前記合焦位置の画像と当該設定された各前記非焦点度に対応する画像とを前記画像記憶ステップで記憶しておいた複数の前記画像の中から読み出した後、前記合焦位置の画像を含む複数の前記画像を位置合わせして合成する画像合成ステップと;
を含むことを特徴とする、撮像方法。
The focus position of the subject is based on the image of the subject that is sequentially imaged on the imaging surface of the image sensor through the imaging optical system while driving the focus lens included in the imaging optical system in the focus adjustment direction. An imaging step to detect;
An image storing step of storing images of the subject sequentially output from the image sensor when the in-focus position is detected;
A predetermined number of desired defocus degrees for the in-focus position are set in advance, and an image at the in-focus position and an image corresponding to each of the set defocus degrees are stored in the image storing step. An image synthesis step of aligning and synthesizing the plurality of images including the image at the in-focus position after reading from the plurality of the images that have been recorded;
The imaging method characterized by including.
前記画像記憶ステップでは、前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像を全画素分の画像データとして記憶しておくことを特徴とする、請求項5に記載の撮像方法。   6. The imaging according to claim 5, wherein, in the image storing step, the image of the subject sequentially output from the imaging device when the in-focus position is detected is stored as image data for all pixels. Method. 前記画像記憶ステップでは、前記合焦位置の検出時に前記撮像素子から順次出力される前記被写体の画像のうち、前記合焦位置の画像のみ全画素分の画像データとして記憶しておく一方、前記合焦位置の画像以外の画像を所定の画素間引きした画像データとして記憶しておくことを特徴とする、請求項5に記載の撮像方法。   In the image storing step, among the images of the subject sequentially output from the imaging device when the focus position is detected, only the image at the focus position is stored as image data for all the pixels. 6. The imaging method according to claim 5, wherein an image other than the image at the focal position is stored as image data obtained by thinning out predetermined pixels. 前記撮像ステップでは、前記撮像素子の結像面上で複数の合焦検知位置を設定しておき、前記合焦位置の検出時に各前記合焦検知位置から得られる合焦レベルを分析し、
前記画像合成ステップでは、前記撮像ステップによる前記合焦レベルの分析結果に基づいて、前記合焦位置に対する遠近方向を選択し、選択した方向で撮影された前記被写体の画像のうち前記効果設定部により設定された各前記非焦点度に対応する画像を、前記画像記憶ステップで記憶しておいた複数の前記画像の中から読み出すことを特徴とする、請求項5〜7のいずれかに記載の撮像方法。
In the imaging step, a plurality of focus detection positions are set on the imaging surface of the image sensor, and the focus level obtained from each focus detection position when detecting the focus position is analyzed.
In the image composition step, a perspective direction with respect to the in-focus position is selected based on the analysis result of the in-focus level in the imaging step, and the effect setting unit out of the images of the subject photographed in the selected direction. The imaging according to any one of claims 5 to 7, wherein an image corresponding to each set non-focal degree is read out from the plurality of images stored in the image storing step. Method.
JP2006276550A 2006-10-10 2006-10-10 Imaging apparatus and imaging method Expired - Fee Related JP4878978B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2006276550A JP4878978B2 (en) 2006-10-10 2006-10-10 Imaging apparatus and imaging method
KR1020070044716A KR101336242B1 (en) 2006-10-10 2007-05-08 Imaging apparatus and imaging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006276550A JP4878978B2 (en) 2006-10-10 2006-10-10 Imaging apparatus and imaging method

Publications (2)

Publication Number Publication Date
JP2008098836A true JP2008098836A (en) 2008-04-24
JP4878978B2 JP4878978B2 (en) 2012-02-15

Family

ID=39381247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006276550A Expired - Fee Related JP4878978B2 (en) 2006-10-10 2006-10-10 Imaging apparatus and imaging method

Country Status (2)

Country Link
JP (1) JP4878978B2 (en)
KR (1) KR101336242B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010049152A (en) * 2008-08-25 2010-03-04 Nikon Corp Focus information detecting device
JP2010206510A (en) * 2009-03-03 2010-09-16 Olympus Corp Image capturing apparatus
JP2011209450A (en) * 2010-03-29 2011-10-20 Nikon Corp Digital camera and image sorting program
US8184171B2 (en) 2007-04-20 2012-05-22 Fujifilm Corporation Image pickup apparatus, image processing apparatus, image pickup method, and image processing method
JP2014176003A (en) * 2013-03-12 2014-09-22 Canon Inc Image pickup device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102145209B1 (en) 2014-02-12 2020-08-18 삼성전자주식회사 Flash device, apparatur and method for photographing image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002077591A (en) * 2000-09-05 2002-03-15 Minolta Co Ltd Image processing device and imaging device
JP2002112095A (en) * 2000-09-29 2002-04-12 Minolta Co Ltd Digital still camera
JP2003061082A (en) * 2001-08-20 2003-02-28 Fujitsu General Ltd Recording/reproducing controller for supervisory image data
JP2004133551A (en) * 2002-10-08 2004-04-30 Noritsu Koki Co Ltd Image processing method, image processor, image processing program and recording medium having image processing program recorded thereon
JP2004171021A (en) * 2004-02-05 2004-06-17 Casio Comput Co Ltd Imaging device and soft-focus image photographing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3624859B2 (en) * 2001-06-19 2005-03-02 カシオ計算機株式会社 Imaging device, soft focus image photographing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002077591A (en) * 2000-09-05 2002-03-15 Minolta Co Ltd Image processing device and imaging device
JP2002112095A (en) * 2000-09-29 2002-04-12 Minolta Co Ltd Digital still camera
JP2003061082A (en) * 2001-08-20 2003-02-28 Fujitsu General Ltd Recording/reproducing controller for supervisory image data
JP2004133551A (en) * 2002-10-08 2004-04-30 Noritsu Koki Co Ltd Image processing method, image processor, image processing program and recording medium having image processing program recorded thereon
JP2004171021A (en) * 2004-02-05 2004-06-17 Casio Comput Co Ltd Imaging device and soft-focus image photographing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184171B2 (en) 2007-04-20 2012-05-22 Fujifilm Corporation Image pickup apparatus, image processing apparatus, image pickup method, and image processing method
JP2010049152A (en) * 2008-08-25 2010-03-04 Nikon Corp Focus information detecting device
JP2010206510A (en) * 2009-03-03 2010-09-16 Olympus Corp Image capturing apparatus
JP2011209450A (en) * 2010-03-29 2011-10-20 Nikon Corp Digital camera and image sorting program
JP2014176003A (en) * 2013-03-12 2014-09-22 Canon Inc Image pickup device

Also Published As

Publication number Publication date
KR101336242B1 (en) 2013-12-03
JP4878978B2 (en) 2012-02-15
KR20080032591A (en) 2008-04-15

Similar Documents

Publication Publication Date Title
JP4665718B2 (en) Imaging device
JP4979969B2 (en) Imaging apparatus and imaging method
JP4528235B2 (en) Digital camera
TWI514847B (en) Image processing device, image processing method, and recording medium
JP2008165044A (en) Imaging apparatus and imaging method
TWI459126B (en) Image processing device capable of generating a wide-range image, image processing method and recording medium
JP4878978B2 (en) Imaging apparatus and imaging method
JP2006162990A (en) Stereoscopic image photographing apparatus
JP2006162991A (en) Stereoscopic image photographing apparatus
JP2008079193A (en) Digital camera
JP2008015097A (en) Imaging device and imaging method
JP2010127995A (en) Imaging apparatus and imaging method
JP2005202276A (en) Imaging apparatus
KR100819807B1 (en) Image pickup apparatus and method of picking up images
JP2003232986A (en) Camera
KR100819808B1 (en) Photographing apparatus, and photographing method
JP4888829B2 (en) Movie processing device, movie shooting device, and movie shooting program
JP2005078009A (en) Camera
JP2012220890A (en) Focus adjustment device
JP2004145022A (en) Digital camera
JP5180042B2 (en) Imaging apparatus and imaging method
JP5153293B2 (en) Image processing apparatus and image processing program
JP2006162724A (en) Camera device and photographing control program
JP5641352B2 (en) Image processing apparatus, image processing method, and program
JP5648563B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20090811

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091007

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20101005

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101221

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20110322

A602 Written permission of extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A602

Effective date: 20110325

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110517

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110920

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110930

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111129

R150 Certificate of patent or registration of utility model

Ref document number: 4878978

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees