JP2016208522A - Electronic apparatus, imaging method, and program - Google Patents

Electronic apparatus, imaging method, and program Download PDF

Info

Publication number
JP2016208522A
JP2016208522A JP2016129369A JP2016129369A JP2016208522A JP 2016208522 A JP2016208522 A JP 2016208522A JP 2016129369 A JP2016129369 A JP 2016129369A JP 2016129369 A JP2016129369 A JP 2016129369A JP 2016208522 A JP2016208522 A JP 2016208522A
Authority
JP
Japan
Prior art keywords
unit
image
image data
subject
contour
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
JP2016129369A
Other languages
Japanese (ja)
Other versions
JP6320463B2 (en
Inventor
金子 哲也
Tetsuya Kaneko
哲也 金子
野中 修
Osamu Nonaka
修 野中
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.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Priority to JP2016129369A priority Critical patent/JP6320463B2/en
Publication of JP2016208522A publication Critical patent/JP2016208522A/en
Application granted granted Critical
Publication of JP6320463B2 publication Critical patent/JP6320463B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus, an imaging method, and a program capable of image processing varied in accordance with a distance to a subject.SOLUTION: An imaging apparatus comprises: an imaging device 203 for imaging a subject and generating image data of the subject; a contour detecting part 207b for detecting a contour of the subject within an image corresponding to the image data generated by the imaging device 203; and a special effect processing part 207f which generates processed image data for generating a visual effect, by applying image processing different for each subject area determined by a plurality of contour points in accordance with perspective distribution of the plurality of contour points constituting the contour of the subject detected by the contour detecting part 207b from the imaging device 203, to the image data generated by the imaging device 203.SELECTED DRAWING: Figure 3

Description

本発明は、被写体を撮像して該被写体の画像データを生成する電子機器、撮像方法およびプログラムに関する。   The present invention relates to an electronic apparatus, an imaging method, and a program that image a subject and generate image data of the subject.

近年、デジタルカメラ等の撮像装置において、被写体および背景それぞれに対して互いに異なる画像処理を行う技術が知られている(特許文献1参照)。この技術では、画像のエッジを検出するエッジ検出処理を行うことによって、被写体および背景それぞれの領域を抽出し、この抽出した被写体および背景それぞれの領域に対して互いに異なる画像処理を行う。   2. Description of the Related Art In recent years, a technique for performing different image processing on a subject and a background in an imaging apparatus such as a digital camera is known (see Patent Document 1). In this technique, an edge detection process for detecting an edge of an image is performed to extract a subject area and a background area, and different image processes are performed on the extracted subject area and background area.

特開2013−3990号公報JP 2013-3990 A

しかしながら、上述した特許文献1では、被写体および背景それぞれの領域に対してのみしか互いに異なる画像処理を行うことができなかった。このため、画像の表現の多様性からして、さらに豊富な画像情報を利用した、より表現力豊かな画像処理を行うことができる技術が望まれていた。   However, in Patent Document 1 described above, different image processing can be performed only on the subject and background areas. For this reason, a technique capable of performing image processing with more expressive power using abundant image information in view of the diversity of image expression has been desired.

本発明は、上記に鑑みてなされたものであって、被写体の距離に従って変化させられる画像処理を行うことができる電子機器、撮像方法およびプログラムを提供することを目的とする。   The present invention has been made in view of the above, and an object thereof is to provide an electronic device, an imaging method, and a program capable of performing image processing that is changed according to the distance of a subject.

上述した課題を解決し、目的を達成するために、本発明にかかる撮像装置は、被写体を撮像して該被写体の画像データを生成する撮像部と、前記撮像部が生成した前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出部と、前記撮像部が生成した前記画像データに対して、前記撮像部から前記被写体の輪郭を構成する複数の輪郭点の遠近分布に従って前記複数の輪郭点で定まる被写体領域毎に異なる画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理部と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, an imaging apparatus according to the present invention corresponds to an imaging unit that images a subject and generates image data of the subject, and the image data generated by the imaging unit A plurality of contour detectors for detecting a contour of the subject in the image to be captured, and the image data generated by the imaging unit according to a perspective distribution of a plurality of contour points constituting the contour of the subject from the imaging unit. And a special effect processing unit for generating processed image data for generating a visual effect by performing different image processing for each subject region determined by the contour point.

また、本発明にかかる撮像装置は、上記発明において、前記撮像部から前記被写体の輪郭を構成する複数の輪郭点の各々までの距離を算出する距離算出部をさらに備え、前記特殊効果処理部は、前記距離算出部が算出した前記複数の輪郭点の各々までの距離に応じて定まる被写体領域毎に異なる画像処理を行って前記処理画像データを生成することを特徴とする。   The imaging apparatus according to the present invention may further include a distance calculation unit that calculates a distance from the imaging unit to each of a plurality of contour points that form the contour of the subject in the above invention, and the special effect processing unit includes: The processing image data is generated by performing different image processing for each subject region determined according to the distance to each of the plurality of contour points calculated by the distance calculation unit.

また、本発明にかかる撮像装置は、上記発明において、焦点を調整可能な光学系を有するレンズ部と、前記輪郭検出部が検出した前記被写体の輪郭と前記距離算出部が算出した前記距離とに基づいて、前記光学系の光軸に沿って前記被写体の形状が同じであるか否かを判定する形状判定部と、をさらに備え、前記特殊効果処理部は、前記形状判定部が前記被写体の形状が同じであると判定した場合、前記処理画像データを生成することを特徴とする。   In the imaging device according to the present invention, in the above invention, the lens unit having an optical system capable of adjusting a focus, the contour of the subject detected by the contour detection unit, and the distance calculated by the distance calculation unit. Based on the optical axis of the optical system, and a shape determining unit that determines whether or not the shape of the subject is the same, the special effect processing unit is configured such that the shape determining unit includes the shape of the subject. If it is determined that the shapes are the same, the processed image data is generated.

また、本発明にかかる撮像装置は、上記発明において、前記撮像部は、前記被写体の画像データを生成する撮像画素と、前記焦点を検出するための焦点データを生成する焦点検出用画素と、を有し、前記輪郭検出部は、前記画像データに含まれる輝度成分に基づいて、前記被写体の輪郭を検出し、前記距離算出部は、前記焦点データに基づいて、前記距離を算出することを特徴とする。   In the imaging device according to the present invention, in the above invention, the imaging unit includes: an imaging pixel that generates image data of the subject; and a focus detection pixel that generates focus data for detecting the focus. The contour detection unit detects a contour of the subject based on a luminance component included in the image data, and the distance calculation unit calculates the distance based on the focus data. And

また、本発明にかかる撮像装置は、上記発明において、前記輪郭検出部は、前記画像データの輝度成分を抽出する輝度抽出部と、前記輝度抽出部が抽出した前記輝度成分に基づいて、前記画像データのコントラストを検出するコントラスト検出部と、前記画像データに対応する画像に対して、前記コントラスト検出部が検出した互いに異なるコントラストのピークで挟まれた領域を判定する領域判定部と、を有し、前記特殊効果処理部は、前記領域判定部が判定した前記領域に対して、前記画像処理を行って前記処理画像データを生成することを特徴とする。   Further, in the imaging device according to the present invention, in the above invention, the contour detection unit is configured to extract the luminance component of the image data, and the image based on the luminance component extracted by the luminance extraction unit. A contrast detection unit that detects the contrast of the data, and a region determination unit that determines a region sandwiched by different contrast peaks detected by the contrast detection unit with respect to an image corresponding to the image data. The special effect processing unit performs the image processing on the region determined by the region determining unit to generate the processed image data.

また、本発明にかかる撮像装置は、上記発明において、前記画像を表示可能な表示部と、前記画像内における所定の位置を指示する指示信号の入力を受け付ける入力部と、をさらに備え、前記領域判定部は、前記入力部が入力を受け付けた前記指示信号に対応する位置が前記領域内であるか否かを判定することを特徴とする。   The imaging apparatus according to the present invention further includes a display unit capable of displaying the image and an input unit that receives an input of an instruction signal that indicates a predetermined position in the image. The determination unit determines whether or not a position corresponding to the instruction signal received by the input unit is within the region.

また、本発明にかかる撮像装置は、上記発明において、焦点を調整可能な光学系を有するレンズ部と、前記光学系を該光学系の光軸に沿って移動させることによって、焦点位置を変更する撮像制御部と、をさらに備え、前記入力部は、前記表示部の表示画面上に重畳して設けられ、外部からの接触を検出し、この検出した位置に応じた位置信号の入力を受け付けるタッチパネルであり、前記撮像制御部は、前記タッチパネルから入力される前記位置信号の変化に応じて、前記光学系を移動させて焦点位置を変更し、前記領域判定部は、前記光学系が移動する毎に、前記指示信号に対応する位置が前記領域内であるか否かを判定することを特徴とする。   In the image pickup apparatus according to the present invention, in the above invention, the focal point is changed by moving the optical unit along the optical axis of the lens unit having an optical system capable of adjusting a focal point and the optical system. An imaging control unit, and the input unit is provided so as to be superimposed on the display screen of the display unit, detects a contact from outside, and receives a position signal input according to the detected position The imaging control unit changes the focal position by moving the optical system according to a change in the position signal input from the touch panel, and the area determination unit is configured to move the optical system each time the optical system moves. And determining whether or not a position corresponding to the instruction signal is within the region.

また、本発明にかかる撮像装置は、上記発明において、前記特殊効果処理部は、前記画像データに対して、複数の画像処理を組み合わせることにより、視覚的な効果を生じさせる特殊効果処理を行って前記処理画像データを生成することを特徴とする。   In the image pickup apparatus according to the present invention, in the above invention, the special effect processing unit performs a special effect process that generates a visual effect by combining a plurality of image processes on the image data. The processed image data is generated.

また、本発明にかかる撮像装置は、上記発明において、前記特殊効果処理で組み合わされる画像処理は、ぼかし処理、シェーディング追加処理、ノイズ重畳処理、彩度変更処理およびコントラスト強調処理のいずれか1つ以上であることを特徴とする。   In the image pickup apparatus according to the present invention, in the above invention, the image processing combined in the special effect processing is any one or more of blurring processing, shading addition processing, noise superimposition processing, saturation change processing, and contrast enhancement processing. It is characterized by being.

また、本発明にかかる撮像装置は、上記発明において、前記特殊効果処理部は、前記距離算出部が算出した前記距離に基づいて、前記画像データに対応する画像上にテキストデータ、図形データおよび記号データのいずれか1つ以上を重畳する特殊効果処理を行って前記処理画像データを生成することを特徴とする。   In the image pickup apparatus according to the present invention, in the above invention, the special effect processing unit has text data, graphic data, and a symbol on an image corresponding to the image data based on the distance calculated by the distance calculation unit. The processed image data is generated by performing special effect processing for superimposing any one or more of the data.

また、本発明にかかる撮像方法は、被写体を撮像して該被写体の画像データを生成する撮像装置が実行する撮像方法であって、前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出ステップと、前記画像データに対して、当該撮像装置から前記被写体の輪郭を構成する複数の輪郭点の遠近分布に従って前記複数の輪郭点で決まる被写体領域毎に異なる画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理ステップと、を含むことを特徴とする。   An imaging method according to the present invention is an imaging method executed by an imaging device that images a subject and generates image data of the subject, and detects an outline of the subject in an image corresponding to the image data. Visual detection is performed by performing different image processing for each of the subject areas determined by the plurality of contour points according to the contour detection step and the perspective distribution of the plurality of contour points constituting the contour of the subject from the imaging device. A special effect processing step for generating processed image data that produces a special effect.

また、本発明にかかる撮像方法は、被写体を撮像して該被写体の画像データを生成する撮像装置が実行する撮像方法であって、前記画像データに対応する画像内を複数の領域毎に分割する分割ステップと、前記分割ステップで分割した複数の領域の各々の奥行き方向の位置変化情報を取得する取得ステップと、前記分割ステップで分割された前記複数の領域の各々に対して、前記取得ステップで取得した前記位置変化情報に従った画像処理を行って処理画像データを生成する生成ステップと、を含むことを特徴とする。   An imaging method according to the present invention is an imaging method executed by an imaging device that images a subject and generates image data of the subject, and divides the image corresponding to the image data into a plurality of regions. A division step, an acquisition step of acquiring position change information in the depth direction of each of the plurality of regions divided in the division step, and for each of the plurality of regions divided in the division step, in the acquisition step. And a generation step of generating processed image data by performing image processing according to the acquired position change information.

また、本発明にかかるプログラムは、被写体を撮像して該被写体の画像データを生成する撮像装置に、前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出ステップと、前記画像データに対して、当該撮像装置から前記被写体の輪郭を構成する複数の輪郭点の各々までの奥行きに応じて定まる領域毎に異なる画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理ステップと、を実行させる。   In addition, the program according to the present invention includes a contour detection step for detecting a contour of the subject in an image corresponding to the image data in an imaging device that captures the subject and generates image data of the subject, and the image data. On the other hand, different image processing is performed for each region determined according to the depth from the imaging device to each of a plurality of contour points constituting the contour of the subject to generate processed image data that produces a visual effect. And a special effect processing step.

本発明によれば、被写体の距離情報を有効利用した画像処理を行うことができるという効果を奏する。   According to the present invention, there is an effect that it is possible to perform image processing that effectively uses subject distance information.

図1は、本発明の実施の形態1にかかる撮像装置の被写体に面する側の構成を示す斜視図である。FIG. 1 is a perspective view illustrating a configuration of a side facing a subject of the imaging apparatus according to the first embodiment of the present invention. 図2は、本発明の実施の形態1にかかる撮像装置の撮影者に面する側の構成を示す斜視図である。FIG. 2 is a perspective view illustrating a configuration of the imaging apparatus according to the first embodiment of the present invention on the side facing the photographer. 図3は、本発明の実施の形態1にかかる撮像装置の機能構成を示すブロック図である。FIG. 3 is a block diagram illustrating a functional configuration of the imaging apparatus according to the first embodiment of the present invention. 図4は、本発明の実施の形態1にかかる撮像装置の特殊効果処理部が行う特殊効果処理の概要を示す図である。FIG. 4 is a diagram illustrating an outline of special effect processing performed by the special effect processing unit of the imaging apparatus according to the first embodiment of the present invention. 図5は、本発明の実施の形態1にかかる撮像装置が実行する処理の概要を示すフローチャートである。FIG. 5 is a flowchart illustrating an outline of processing executed by the imaging apparatus according to the first embodiment of the present invention. 図6は、本発明の実施の形態1にかかる撮像装置の表示部が表示する画像の一例を示す図である。FIG. 6 is a diagram illustrating an example of an image displayed by the display unit of the imaging apparatus according to the first embodiment of the present invention. 図7は、図5の距離アート処理の概要を示すフローチャートである。FIG. 7 is a flowchart showing an overview of the distance art process of FIG. 図8は、本発明の実施の形態1にかかる撮像装置の形状判定部による互いに異なる距離の対象物の形状を判定する判定方法の概要を説明する模式図である。FIG. 8 is a schematic diagram for explaining an outline of a determination method for determining the shapes of objects at different distances by the shape determination unit of the imaging apparatus according to the first embodiment of the present invention. 図9は、本発明の実施の形態1にかかる撮像装置の形状判定部が判定する画像の一例を示す図である。FIG. 9 is a diagram illustrating an example of an image determined by the shape determination unit of the imaging apparatus according to the first embodiment of the present invention. 図10は、本発明の実施の形態1にかかる撮像装置の特殊効果処理部が生成した処理画像データに対応する画像の一例を示す図である。FIG. 10 is a diagram illustrating an example of an image corresponding to the processed image data generated by the special effect processing unit of the imaging apparatus according to the first embodiment of the present invention. 図11は、本発明の実施の形態1にかかる撮像装置の特殊効果処理部が生成した別の処理画像データに対応する画像の一例を示す図である。FIG. 11 is a diagram illustrating an example of an image corresponding to another processed image data generated by the special effect processing unit of the imaging apparatus according to the first embodiment of the present invention. 図12は、本発明の実施の形態1にかかる撮像装置のタッチパネルを介して被写体を選択する際の状況を示す模式図である。FIG. 12 is a schematic diagram illustrating a situation when a subject is selected via the touch panel of the imaging apparatus according to the first embodiment of the present invention. 図13は、本発明の実施の形態2にかかる撮像装置の機能構成を示すブロック図である。FIG. 13 is a block diagram illustrating a functional configuration of the imaging apparatus according to the second embodiment of the present invention. 図14は、本発明の実施の形態2にかかる撮像装置が実行する距離アート処理の概要を示すフローチャートである。FIG. 14 is a flowchart illustrating an outline of distance art processing executed by the imaging apparatus according to the second embodiment of the present invention. 図15は、本発明の実施の形態2にかかる撮像装置の特殊効果処理部が文字を重畳する画像の一例を示す図である。FIG. 15 is a diagram illustrating an example of an image on which characters are superimposed by the special effect processing unit of the imaging apparatus according to the second embodiment of the present invention. 図16は、本発明の実施の形態2にかかる撮像装置の特殊効果処理部による被写体の輪郭内に対して文字を重畳する際の文字の割当方法の概要を説明する模式図である。FIG. 16 is a schematic diagram for explaining an outline of a character assignment method when characters are superimposed on the outline of the subject by the special effect processing unit of the imaging apparatus according to the second embodiment of the present invention. 図17は、本発明の実施の形態2にかかる撮像装置の特殊効果処理部による文字の大きさの調整を説明する模式図である。FIG. 17 is a schematic diagram illustrating adjustment of character size by the special effect processing unit of the imaging apparatus according to the second embodiment of the present invention. 図18は、本発明の実施の形態2にかかる撮像装置の特殊効果処理部が生成した処理画像データに対応する画像の一例を示す図である。FIG. 18 is a diagram illustrating an example of an image corresponding to the processed image data generated by the special effect processing unit of the imaging apparatus according to the second embodiment of the present invention. 図19は、本発明の実施の形態3にかかる撮像装置の機能構成を示すブロック図である。FIG. 19 is a block diagram of a functional configuration of the imaging apparatus according to the third embodiment of the present invention. 図20は、本発明の実施の形態3にかかる撮像装置が実行する距離アート処理の概要を示すフローチャートである。FIG. 20 is a flowchart illustrating an outline of distance art processing executed by the imaging apparatus according to the third embodiment of the present invention. 図21は、本発明の実施の形態3にかかる撮像装置の領域判定部によるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。FIG. 21 is a schematic diagram illustrating an outline of a determination method for determining a region sandwiched between contrast peaks by the region determination unit of the imaging apparatus according to the third embodiment of the present invention. 図22は、本発明の実施の形態3にかかる撮像装置の特殊効果処理部が生成した処理画像データに対応する画像の一例を示す図である。FIG. 22 is a diagram illustrating an example of an image corresponding to the processed image data generated by the special effect processing unit of the imaging apparatus according to the third embodiment of the present invention. 図23Aは、本発明の実施の形態3にかかる撮像装置の領域判定部によるスライド方向におけるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。FIG. 23A is a schematic diagram illustrating an outline of a determination method for determining a region sandwiched between contrast peaks in the slide direction by the region determination unit of the imaging apparatus according to the third embodiment of the present invention. 図23Bは、本発明の実施の形態3にかかる撮像装置の領域判定部によるスライド方向におけるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。FIG. 23B is a schematic diagram illustrating an outline of a determination method for determining a region sandwiched between contrast peaks in the slide direction by the region determination unit of the imaging apparatus according to the third embodiment of the present invention. 図23Cは、本発明の実施の形態3にかかる撮像装置の領域判定部によるスライド方向におけるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。FIG. 23C is a schematic diagram illustrating an outline of a determination method for determining a region sandwiched between contrast peaks in the slide direction by the region determination unit of the imaging apparatus according to the third embodiment of the present invention. 図24は、本発明の実施の形態3にかかる撮像装置の特殊効果処理部が生成した別の処理画像データに対応する画像の一例を示す図である。FIG. 24 is a diagram illustrating an example of an image corresponding to another processed image data generated by the special effect processing unit of the imaging apparatus according to the third embodiment of the present invention. 図25は、本発明の実施の形態4にかかる撮像装置が実行する距離アート処理の概要を示すフローチャートである。FIG. 25 is a flowchart illustrating an outline of distance art processing executed by the imaging apparatus according to the fourth embodiment of the present invention. 図26は、本発明の実施の形態4にかかる撮像装置の特殊効果処理部が生成した処理画像データに対応する画像の一例を示す図である。FIG. 26 is a diagram illustrating an example of an image corresponding to the processed image data generated by the special effect processing unit of the imaging apparatus according to the fourth embodiment of the present invention. 図27は、本発明の実施の形態5にかかる撮像装置の機能構成を示すブロック図である。FIG. 27 is a block diagram of a functional configuration of the imaging apparatus according to the fifth embodiment of the present invention. 図28は、本発明の実施の形態5にかかる撮像装置が実行する処理の概要を示すフローチャートである。FIG. 28 is a flowchart illustrating an outline of processing executed by the imaging apparatus according to the fifth embodiment of the present invention.

以下、図面を参照して、本発明を実施するための形態(以下、「実施の形態」という)について説明する。なお、以下の実施の形態により本発明が限定されるものではない。また、図面の記載において、同一の部分には同一の符号を付して説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention (hereinafter referred to as “embodiments”) will be described with reference to the drawings. In addition, this invention is not limited by the following embodiment. In the description of the drawings, the same portions are denoted by the same reference numerals for description.

(実施の形態1)
図1は、本発明の実施の形態1にかかる撮像装置の被写体に面する側(前面側)の構成を示す斜視図である。図2は、本発明の実施の形態1にかかる撮像装置の撮影者に面する側(背面側)の構成を示す斜視図である。図3は、本発明の実施の形態1にかかる撮像装置の機能構成を示すブロック図である。
(Embodiment 1)
FIG. 1 is a perspective view illustrating a configuration of a side facing the subject (front side) of the imaging apparatus according to the first embodiment of the present invention. FIG. 2 is a perspective view showing the configuration of the side (back side) facing the photographer of the imaging apparatus according to the first embodiment of the present invention. FIG. 3 is a block diagram illustrating a functional configuration of the imaging apparatus according to the first embodiment of the present invention.

図1〜図3に示す撮像装置1は、本体部2と、本体部2に着脱自在であり、被写体像を結像する光学ズーム可能なレンズ部3と、を備える。   The imaging apparatus 1 shown in FIGS. 1 to 3 includes a main body unit 2 and a lens unit 3 that is detachably attached to the main body unit 2 and capable of optical zooming to form a subject image.

まず、本体部2について説明する。本体部2は、シャッタ201と、シャッタ駆動部202と、撮像素子203と、撮像素子駆動部204と、信号処理部205と、A/D変換部206と、画像処理部207と、AE処理部208と、AF処理部209と、画像圧縮展開部210と、入力部211と、アクセサリ通信部212と、接眼表示部213と、アイセンサ214と、可動部215と、背面表示部216と、タッチパネル217と、回動判定部218と、状態検出部219と、時計220と、記録媒体221と、メモリI/F222と、SDRAM(Synchronous Dynamic Random Access Memory)223と、Flashメモリ224と、本体通信部225と、バス226と、本体制御部227と、を備える。   First, the main body 2 will be described. The main body 2 includes a shutter 201, a shutter driving unit 202, an image sensor 203, an image sensor driving unit 204, a signal processing unit 205, an A / D conversion unit 206, an image processing unit 207, and an AE processing unit. 208, AF processing unit 209, image compression / decompression unit 210, input unit 211, accessory communication unit 212, eyepiece display unit 213, eye sensor 214, movable unit 215, rear display unit 216, and touch panel 217. A rotation determination unit 218, a state detection unit 219, a clock 220, a recording medium 221, a memory I / F 222, an SDRAM (Synchronous Dynamic Random Access Memory) 223, a flash memory 224, and a main body communication unit 225. And a bus 226 and a main body control unit 227.

シャッタ201は、撮像素子203の状態を露光状態または遮光状態に設定する。シャッタ201は、フォーカルプレーンシャッタ等の機械式のシャッタを用いて構成される。   The shutter 201 sets the state of the image sensor 203 to an exposure state or a light shielding state. The shutter 201 is configured using a mechanical shutter such as a focal plane shutter.

シャッタ駆動部202は、本体制御部227から入力される指示信号に応じてシャッタ201を駆動する。シャッタ駆動部202は、ステッピングモータやDCモータ等を用いて構成される。   The shutter driving unit 202 drives the shutter 201 in accordance with an instruction signal input from the main body control unit 227. The shutter drive unit 202 is configured using a stepping motor, a DC motor, or the like.

撮像素子203は、レンズ部3が集光した光を受光して光電変換を行うことによって電気信号を出力する複数の画素が2次元的に配列されたCMOS(Complementary Metal Oxide Semiconductor)等を用いて構成される。撮像素子203は、本体制御部227の制御のもと、所定のフレームレート、たとえば30fpsで連続的に画像データを生成して信号処理部205へ出力する。また、撮像素子203は、撮像装置1が位相差検出方式によって被写体までの距離を検出する測距処理および、レンズ部3の焦点を調整する像面位相差AF処理を行う際に用いられる焦点信号(以下「焦点データ」という)を生成するAF画素203a(焦点検出用画素)と、撮像面に被写体像を受光して電気信号(以下、「画像データ」という)を生成する撮像画素203bと、を有する。   The image sensor 203 uses a complementary metal oxide semiconductor (CMOS) or the like in which a plurality of pixels that output an electrical signal by receiving light collected by the lens unit 3 and performing photoelectric conversion are two-dimensionally arranged. Composed. The image sensor 203 continuously generates image data at a predetermined frame rate, for example, 30 fps, and outputs the image data to the signal processing unit 205 under the control of the main body control unit 227. In addition, the imaging element 203 is a focus signal used when the imaging device 1 performs distance measurement processing for detecting the distance to the subject by the phase difference detection method and image plane phase difference AF processing for adjusting the focus of the lens unit 3. An AF pixel 203a (focus detection pixel) that generates (hereinafter referred to as “focus data”), an imaging pixel 203b that receives an object image on the imaging surface and generates an electrical signal (hereinafter referred to as “image data”), Have

AF画素203aは、フォトダイオードや増幅回路等を用いて構成され、撮像素子203の撮像面に所定の間隔および所定の領域内に設けられる。たとえば、AF画素203aは、撮像素子203の受光面におけるAF領域または中央領域に所定の間隔で設けられる。   The AF pixel 203a is configured using a photodiode, an amplifier circuit, and the like, and is provided on the imaging surface of the imaging element 203 within a predetermined interval and a predetermined region. For example, the AF pixels 203a are provided at predetermined intervals in the AF area or the central area on the light receiving surface of the image sensor 203.

撮像画素203bは、フォトダイオード(photodiode)や増幅回路等を用いて構成される。撮像画素203bは、レンズ部3から入射された被写体像を受光して光電変換を行うことによって画像データを生成する。   The imaging pixel 203b is configured using a photodiode, an amplifier circuit, or the like. The imaging pixel 203b generates image data by receiving a subject image incident from the lens unit 3 and performing photoelectric conversion.

撮像素子駆動部204は、所定のタイミングで撮像素子203から画像データ(アナログ信号)および焦点データ(アナログ信号)を信号処理部205へ出力させる。この意味で、撮像素子駆動部204は、電子シャッタとして機能する。   The image sensor driving unit 204 outputs image data (analog signal) and focus data (analog signal) from the image sensor 203 to the signal processing unit 205 at a predetermined timing. In this sense, the image sensor driving unit 204 functions as an electronic shutter.

信号処理部205は、撮像素子203から入力される画像データおよび焦点データに対して、アナログ処理を施してA/D変換部206へ出力する。たとえば、信号処理部205は、画像データに対して、リセットノイズ等を低減した上で波形整形後、目的の明るさとなるようにゲインアップを行う。   The signal processing unit 205 performs analog processing on the image data and focus data input from the image sensor 203 and outputs the result to the A / D conversion unit 206. For example, the signal processing unit 205 increases the gain of the image data after reducing the reset noise and the like, shaping the waveform, and achieving the target brightness.

A/D変換部206は、信号処理部205から入力されるアナログの画像データおよび焦点データに対してA/D変換を行うことによってデジタルの画像データ(RAWデータ)および焦点データを生成し、バス226を介してSDRAM223へ出力する。なお、本実施の形態1では、撮像素子203、信号処理部205およびA/D変換部206が撮像部として機能する。   The A / D conversion unit 206 performs A / D conversion on the analog image data and focus data input from the signal processing unit 205 to generate digital image data (RAW data) and focus data. The data is output to the SDRAM 223 via the H.226. In the first embodiment, the image sensor 203, the signal processing unit 205, and the A / D conversion unit 206 function as an imaging unit.

画像処理部207は、基本画像処理部207aと、輪郭検出部207bと、距離算出部207cと、焦点位置取得部207dと、形状判定部207eと、特殊効果処理部207fと、を有する。   The image processing unit 207 includes a basic image processing unit 207a, a contour detection unit 207b, a distance calculation unit 207c, a focal position acquisition unit 207d, a shape determination unit 207e, and a special effect processing unit 207f.

基本画像処理部207aは、バス226を介してSDRAM223から画像データ(RAWデータ)を取得し、取得した画像データに対して各種の画像処理を行う。具体的には、画像処理部207は、オプティカルブラック減算処理、ホワイトバランス(WB)調整処理、カラーマトリクス演算処理、ガンマ補正処理、色再現処理およびエッジ強調処理等を含む基本の画像処理を行う。たとえば、基本画像処理部207aは、予め設定された各画像処理のパラメータに基づいて、画像処理を行う。ここで、各画像処理のパラメータとは、コントラスト、シャープネス、彩度、ホワイトバランスおよび階調の値である。なお、画像処理部207は、撮像素子203がベイヤー配列の場合には画像データの同時化処理を行う。画像処理部207は、バス226を介して処理画像データをSDRAM223または背面表示部216へ出力する。   The basic image processing unit 207a acquires image data (RAW data) from the SDRAM 223 via the bus 226, and performs various types of image processing on the acquired image data. Specifically, the image processing unit 207 performs basic image processing including optical black subtraction processing, white balance (WB) adjustment processing, color matrix calculation processing, gamma correction processing, color reproduction processing, and edge enhancement processing. For example, the basic image processing unit 207a performs image processing based on preset image processing parameters. Here, the parameters of each image processing are values of contrast, sharpness, saturation, white balance, and gradation. Note that the image processing unit 207 performs image data synchronization processing when the image sensor 203 is a Bayer array. The image processing unit 207 outputs the processed image data to the SDRAM 223 or the rear display unit 216 via the bus 226.

輪郭検出部207bは、撮像素子203が生成した画像データに対応する画像内における被写体の輪郭を検出する。具体的には、輪郭検出部207bは、画像データの輝度成分を抽出し、この抽出した輝度成分に対して2次微分の絶対値を算出することによって、被写体の輪郭(コントラスト)を構成する複数の輪郭点を検出する。なお、輪郭検出部207bは、画像データに対してエッジ検出処理を行うことによって、被写体の輪郭を構成する輪郭点を検出してもよい。さらに、輪郭検出部207bは、画像データに対して周知の技術を用いて画像内における被写体の輪郭を検出してもよい。   The contour detection unit 207b detects the contour of the subject in the image corresponding to the image data generated by the image sensor 203. Specifically, the contour detection unit 207b extracts a luminance component of the image data, and calculates an absolute value of a second-order derivative for the extracted luminance component, thereby forming a plurality of contours (contrast) of the subject. The contour point of is detected. Note that the contour detection unit 207b may detect contour points constituting the contour of the subject by performing edge detection processing on the image data. Further, the contour detection unit 207b may detect the contour of the subject in the image using a known technique for the image data.

距離算出部207cは、撮像素子203から輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点の少なくとも一部までの距離を算出する。具体的には、距離算出部207cは、AF画素203aが生成した焦点データに基づいて、輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点の少なくとも一部までの距離を算出する。たとえば、距離算出部207cは、AF画素203aが生成した焦点データに基づいて、輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点のうちの2点の距離を算出する。なお、距離算出部207cは、レンズ部3のフォーカスレンズ307が光軸Oに沿って焦点位置を中心に微小な幅で往復移動するWob駆動される毎に、被写体の輪郭を構成する複数の輪郭点それぞれの距離を算出してもよい。   The distance calculation unit 207c calculates a distance from the image sensor 203 to at least a part of a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b. Specifically, the distance calculation unit 207c calculates a distance to at least a part of a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b based on the focus data generated by the AF pixel 203a. To do. For example, the distance calculation unit 207c calculates the distance between two points among a plurality of contour points that form the contour of the subject detected by the contour detection unit 207b, based on the focus data generated by the AF pixel 203a. The distance calculation unit 207c includes a plurality of contours that form the contour of the subject each time the focus lens 307 of the lens unit 3 is driven by the web to reciprocate with a small width around the focal position along the optical axis O. You may calculate the distance of each point.

焦点位置取得部207dは、後述するレンズ部3のフォーカスレンズ307の焦点位置を取得する。具体的には、焦点位置取得部207dは、後述するレンズ部3のフォーカス位置検出部309が検出したフォーカスレンズ307の光軸O上における位置を取得する。   The focal position acquisition unit 207d acquires the focal position of a focus lens 307 of the lens unit 3 described later. Specifically, the focal position acquisition unit 207d acquires the position on the optical axis O of the focus lens 307 detected by a focus position detection unit 309 of the lens unit 3 described later.

形状判定部207eは、輪郭検出部207bが検出した被写体の輪郭と距離算出部207cが算出した距離とに基づいて、レンズ部3の光軸Oに沿って(奥行き方向)被写体の形状が同じであるか否かを判定する。また、形状判定部207eは、レンズ部3の光軸Oに沿って被写体の輪郭の幅が一定の範囲内で連続しているか否かを判定する。   The shape determination unit 207e has the same subject shape along the optical axis O (in the depth direction) of the lens unit 3 based on the contour of the subject detected by the contour detection unit 207b and the distance calculated by the distance calculation unit 207c. It is determined whether or not there is. The shape determination unit 207e determines whether the width of the contour of the subject is continuous within a certain range along the optical axis O of the lens unit 3.

特殊効果処理部207fは、1つの画像データに対して複数の画像処理を組み合わせることにより、視覚的な効果を生じさせる特殊効果処理を行って処理画像データを生成する。特殊効果処理で組み合わされる画像処理は、たとえば、ぼかし処理、シェーディング追加処理、ノイズ重畳処理、彩度変更処理およびコントラスト強調処理のいずれか1つ以上である。また、特殊効果処理部207fは、1つの画像データに対して、撮像素子203から被写体の輪郭を構成する複数の輪郭点の遠近分布に従って被写体を構成する複数の輪郭点で決まる被写体領域毎に異なる画像処理を行って視覚的な効果を生じさせる処理画像データを生成する。ここで、複数の輪郭点の遠近分布とは、距離算出部207cによって算出された被写体の輪郭を構成する複数の輪郭点の各々までの距離(撮像装置1の視野内で撮像装置1から遠ざかる奥行き方向の距離)の分布である。即ち、特殊効果処理部207fは、距離算出部207cによって算出された被写体の輪郭を構成する複数の輪郭点の各々までの距離に応じて定まる被写体領域毎に異なる画像処理を行って処理画像データを生成する。   The special effect processing unit 207f generates processed image data by performing a special effect process that causes a visual effect by combining a plurality of image processes on one image data. The image processing combined in the special effect processing is, for example, one or more of blurring processing, shading addition processing, noise superimposition processing, saturation change processing, and contrast enhancement processing. The special effect processing unit 207f is different for each image area determined by a plurality of contour points constituting the subject according to a perspective distribution of a plurality of contour points constituting the contour of the subject from the image sensor 203 with respect to one image data. Image processing is performed to generate processed image data that produces a visual effect. Here, the perspective distribution of the plurality of contour points refers to the distance to each of the plurality of contour points constituting the contour of the subject calculated by the distance calculation unit 207c (the depth away from the imaging device 1 within the field of view of the imaging device 1). (Distance in the direction). In other words, the special effect processing unit 207f performs different image processing for each subject area determined according to the distance to each of the plurality of contour points constituting the contour of the subject calculated by the distance calculation unit 207c, and processes the processed image data. Generate.

図4は、特殊効果処理部207fが行う特殊効果処理の概要を示す図である。図4では特殊効果処理として、ファンタジックフォーカス、ファンタジックフォーカス+スターライト、ファンタジックフォーカス+ホワイトエッジ、ポップアート、ポップアート+スターライト、ポップアート+ピンホール、ポップアート+ホワイトエッジ、トイフォト、ラフモノクローム、ジオラマの10種類が記載されている。以下、これらの特殊効果処理について説明する。   FIG. 4 is a diagram showing an outline of special effect processing performed by the special effect processing unit 207f. In Fig. 4, special effects processing includes: Fantastic focus, Fantastic focus + Starlight, Fantastic focus + White edge, Pop art, Pop art + Starlight, Pop art + Pinhole, Pop art + White edge, Toy photo, Rough monochrome, Ten types of diorama are described. Hereinafter, these special effect processes will be described.

ファンタジックフォーカスは、画像全体にぼかし処理を施し、ぼかす前の画像と一定の割合で合成するソフトフォーカスの効果を与える処理である。ファンタジックフォーカスは、中間の輝度をより明るくするトーンカーブ処理を行うことにより、柔らかいトーンの中で、被写体のディテールを残しながら、幸福な光に包まれたように美しく幻想的な雰囲気の画像を結像または生成する。ファンタジックフォーカスは、たとえばトーンカーブ処理、ぼかし処理、アルファブレンド処理および画像合成処理等の画像処理を組み合わせることによって実現される。
ファンタジックフォーカス+スターライトは、ファンタジックフォーカスに加えて、画像中の高輝度部に対してクロスパターンを描写するクロスフィルター効果を施す処理である。
ファンタジックフォーカス+ホワイトエッジは、ファンタジックフォーカスに加えて、画像の中心部から周辺部(周縁部)に行くにしたがって徐々に白味を帯びる効果が施す処理である。このような白味の効果は、画像の中心からの距離が大きいほど周辺部が白くなるように画素値を変更することによって得られる。
Fantastic focus is a process that gives a soft focus effect in which the entire image is subjected to a blurring process and synthesized at a certain ratio with the image before blurring. Fantastic focus is a tone curve process that brightens the intermediate brightness, leaving the details of the subject in a soft tone and creating an image with a beautiful and fantastic atmosphere as if wrapped in a happy light. Image or produce. The fantastic focus is realized by combining image processing such as tone curve processing, blur processing, alpha blend processing, and image composition processing.
Fantastic focus + starlight is a process of applying a cross filter effect that draws a cross pattern to a high-luminance portion in an image in addition to the fantastic focus.
Fantastic focus + white edge is a process in which, in addition to the phantom focus, an effect of gradually becoming whiter as it goes from the central part of the image to the peripheral part (peripheral part). Such a whiteness effect can be obtained by changing the pixel value so that the peripheral portion becomes whiter as the distance from the center of the image increases.

ポップアートは、色をカラフルに強調し、明るく楽しい雰囲気を表現する処理である。ポップアートは、たとえば彩度強調処理およびコントラスト強調処理を組み合わせることによって実現される。全体に高コントラストで高彩度の効果である。
ポップアート+スターライトは、ポップアートとスターライトを重ねて施す処理である。この場合には、カラフルな画像にクロスフィルターを施した効果が得られる。
ポップアート+ピンホールは、ポップアートに加えて、画像の周辺部をシェーディングによって暗くして穴から覗き込むような効果を与えるトイフォト(ピンホール)を施す処理である。トイフォトの詳細については、後述する。
ポップアート+ホワイトエッジは、ポップアートとホワイトエッジを重ねて施す処理である。
Pop art is a process that emphasizes colors colorfully and expresses a bright and fun atmosphere. Pop art is realized by, for example, combining saturation enhancement processing and contrast enhancement processing. The overall effect is high contrast and high saturation.
Pop art + starlight is a process of applying pop art and starlight in layers. In this case, the effect of applying a cross filter to a colorful image can be obtained.
In addition to pop art, pop art + pinhole is a process of applying toy photo (pinhole) that darkens the periphery of an image by shading and gives an effect of looking through a hole. Details of the toy photo will be described later.
Pop art + white edge is a process in which pop art and white edge are overlapped.

トイフォトは、画像の中心からの距離が大きいほど輝度が小さく(暗く)なるようにして、あたかも穴から覗き込んで異空間に迷い込んだような効果を生じさせる処理である。トイフォトは、たとえばローパスフィルタ処理、ホワイトバランス処理、コントラスト処理、色相・彩度処理に加え、輝度信号に対して周辺ほど小さい係数を乗じるシェーディング処理等の画像処理を組み合わせることによって実現される(トイフォト、シェーディングの詳細な内容については、たとえば特開2010−74244号公報を参照)。   Toy photo is a process in which the brightness is reduced (darker) as the distance from the center of the image increases, and the effect is as if looking into a different space from a hole. Toy photo is realized, for example, by combining low-pass filter processing, white balance processing, contrast processing, hue / saturation processing, and image processing such as shading processing that multiplies the luminance signal by a smaller coefficient toward the periphery. For details of photo and shading, see, for example, JP 2010-74244 A).

ラフモノクロームは、高コントラストとフィルムの粒状のノイズを付加してモノクロ画像の力強さや荒々しさを表現する処理である。ラフモノクロームは、たとえばエッジ強調処理、レベル補正最適化処理、ノイズパターン重畳処理、合成処理およびコントラスト処理等を組み合わせることによって実現される(ラフモノクロームの詳細な内容については、たとえば特開2010−62836号公報を参照)。このうち、ノイズパターン重畳処理(ノイズ付加処理)は、予め作成したノイズパターン画像をもとの画像に加算する処理である。ノイズパターン画像は、たとえば乱数などを発生させ、この乱数に基づいて生成してもよい。   Rough monochrome is a process of expressing the strength and roughness of a monochrome image by adding high contrast and grainy noise of the film. The rough monochrome is realized by combining, for example, edge enhancement processing, level correction optimization processing, noise pattern superimposition processing, synthesis processing, contrast processing, and the like (for details of the rough monochrome, for example, Japanese Patent Application Laid-Open No. 2010-62836). See the publication). Among these, the noise pattern superimposing process (noise adding process) is a process of adding a noise pattern image created in advance to the original image. The noise pattern image may be generated based on, for example, a random number generated.

ジオラマは、高コントラストで高彩度の画像に、画像の周縁部をぼかすことにより、ミニチュア模型やおもちゃを見ているかのような雰囲気を画面上に作り出す処理である。ジオラマは、たとえば色相・彩度処理、コントラスト処理、周辺ぼかし処理および合成処理等を組み合わせることによって実現される。このうち、周辺ぼかし処理は、画像の中心からの距離に応じ、周辺部ほどぼける度合いが大きくなるように、画像の位置に応じてローパス係数を変更しながらローパスフィルタ処理を行うものである。なお、周辺ぼかし処理として、画像の上下のみ、または画像の左右のみをぼかすようにしてもよい。   Diorama is a process that creates a high-contrast, high-saturation image on the screen by creating an atmosphere that looks like a miniature model or toy by blurring the periphery of the image. The diorama is realized by combining, for example, hue / saturation processing, contrast processing, peripheral blur processing, synthesis processing, and the like. Among these, the peripheral blur processing performs low-pass filter processing while changing the low-pass coefficient according to the position of the image so that the degree of blurring in the peripheral portion increases according to the distance from the center of the image. Note that as the peripheral blur processing, only the upper and lower sides of the image or only the left and right sides of the image may be blurred.

図3に戻り、撮像装置1の構成の説明を続ける。
AE処理部208は、バス226を介してSDRAM223に記録された画像データを取得し、取得した画像データに基づいて、撮像装置1が静止画撮影または動画撮影を行う際の露出条件を設定する。具体的には、AE処理部208は、画像データから輝度を算出し、算出した輝度に基づいて、たとえば絞り値、シャッタ速度、ISO感度等を決定することで撮像装置1の自動露出を行う。
Returning to FIG. 3, the description of the configuration of the imaging apparatus 1 is continued.
The AE processing unit 208 acquires image data recorded in the SDRAM 223 via the bus 226, and sets an exposure condition when the imaging apparatus 1 performs still image shooting or moving image shooting based on the acquired image data. Specifically, the AE processing unit 208 calculates the luminance from the image data, and performs automatic exposure of the imaging device 1 by determining, for example, an aperture value, a shutter speed, ISO sensitivity, and the like based on the calculated luminance.

AF処理部209は、バス226を介してSDRAM223に記録された焦点データを取得し、取得した焦点データに基づいて、撮像装置1の自動焦点の調整を行う。たとえば、AF処理部209は、焦点データに基づいて、被写体までの測距演算処理を行うことによってレンズ部3のデフォーカス量を算出し、この算出結果に従って撮像装置1の自動焦点の調整を行う位相差AF処理(像面位相差AF方式)を行う。なお、AF処理部209は、画像データから高周波成分の信号を取り出し、高周波成分の信号に対してAF(Auto Focus)演算処理(コントラストAF方式)を行うことによって、撮像装置1の合焦評価を決定することで撮像装置1の自動焦点の調整を行ってもよい。さらに、AF処理部209は、瞳分割位相差法を用いて撮像装置1の自動焦点の調整を行ってもよい。   The AF processing unit 209 acquires the focus data recorded in the SDRAM 223 via the bus 226 and adjusts the automatic focus of the imaging apparatus 1 based on the acquired focus data. For example, the AF processing unit 209 calculates the defocus amount of the lens unit 3 by performing distance measurement processing to the subject based on the focus data, and adjusts the automatic focus of the imaging apparatus 1 according to the calculation result. Phase difference AF processing (image plane phase difference AF method) is performed. The AF processing unit 209 extracts a high-frequency component signal from the image data, and performs AF (Auto Focus) calculation processing (contrast AF method) on the high-frequency component signal, thereby evaluating the focus of the imaging apparatus 1. The automatic focus adjustment of the imaging apparatus 1 may be performed by determining. Further, the AF processing unit 209 may perform automatic focus adjustment of the imaging apparatus 1 using a pupil division phase difference method.

画像圧縮展開部210は、バス226を介してSDRAM223から画像データや処理画像データを取得し、取得した画像データに対して所定の形式に従って圧縮し、この圧縮した画像データをメモリI/F222を介して記録媒体221へ出力する。ここで、所定の形式としては、JPEG(Joint Photographic Experts Group)方式、MotionJPEG方式およびMP4(H.264)方式等である。また、画像圧縮展開部210は、バス226およびメモリI/F222を介して記録媒体221に記録された画像データ(圧縮画像データ)を取得し、取得した画像データを展開(伸長)してSDRAM223へ出力する。   The image compression / decompression unit 210 acquires image data and processed image data from the SDRAM 223 via the bus 226, compresses the acquired image data according to a predetermined format, and compresses the compressed image data via the memory I / F 222. To the recording medium 221. Here, the predetermined format includes a JPEG (Joint Photographic Experts Group) system, a Motion JPEG system, and an MP4 (H.264) system. In addition, the image compression / decompression unit 210 acquires image data (compressed image data) recorded on the recording medium 221 via the bus 226 and the memory I / F 222, expands (decompresses) the acquired image data, and transfers it to the SDRAM 223. Output.

入力部211は、撮像装置1の電源状態をオン状態またはオフ状態に切り替える電源スイッチ211aと、静止画撮影の指示を与える静止画レリーズ信号の入力を受け付けるレリーズスイッチ211bと、撮像装置1の各種設定を切り替える操作スイッチ211cと、撮像装置1の各種設定を背面表示部216に表示させるメニュースイッチ211dと、動画撮影の指示を与える動画レリーズ信号の入力を受け付ける動画スイッチ211eと、記録媒体221に記録された画像データに対応する画像を背面表示部216に表示させる再生スイッチ211fと、を有する。レリーズスイッチ211bは、外部からの押圧により進退可能であり、半押しされた場合に撮影準備動作を指示する指示信号のファーストレリーズ信号の入力を受け付ける一方、全押しされた場合に静止画撮影を指示するセカンドレリーズ信号の入力を受け付ける。   The input unit 211 includes a power switch 211 a that switches the power state of the imaging device 1 to an on state or an off state, a release switch 211 b that receives an input of a still image release signal that gives a still image shooting instruction, and various settings of the imaging device 1 Recorded on the recording medium 221, an operation switch 211 c that switches between, a menu switch 211 d that displays various settings of the imaging device 1 on the rear display unit 216, a moving image switch 211 e that receives an input of a moving image release signal that gives an instruction to shoot moving images. A reproduction switch 211f that displays an image corresponding to the image data on the rear display unit 216. The release switch 211b can be moved back and forth by an external press. When the release switch 211b is pressed halfway, it accepts an input of a first release signal as an instruction signal for instructing a shooting preparation operation. The second release signal input is accepted.

アクセサリ通信部212は、本体部2に装着される外部機器との通信を行うための通信インターフェースである。   The accessory communication unit 212 is a communication interface for performing communication with an external device attached to the main body unit 2.

接眼表示部213は、本体制御部227の制御のもと、バス226を介してSDRAM223に記録された画像データに対応するライブビュー画像または再生画像を表示する。この意味で、接眼表示部213は、電子ビューファインダ(EVF)として機能する。接眼表示部213は、液晶または有機EL(Electro Luminescence)からなる表示パネルおよび駆動ドライバ等を用いて構成される。   The eyepiece display unit 213 displays a live view image or a reproduced image corresponding to the image data recorded in the SDRAM 223 via the bus 226 under the control of the main body control unit 227. In this sense, the eyepiece display unit 213 functions as an electronic viewfinder (EVF). The eyepiece display unit 213 is configured using a display panel made of liquid crystal or organic EL (Electro Luminescence), a drive driver, and the like.

アイセンサ214は、接眼表示部213に対するユーザ(物体)の接近を検出し、この検出結果を本体制御部227へ出力する。具体的には、アイセンサ214は、ユーザが接眼表示部213で画像を確認しているか否かを検出する。アイセンサ214は、接触センサや赤外線センサ等を用いて構成される。   The eye sensor 214 detects the approach of the user (object) to the eyepiece display unit 213 and outputs the detection result to the main body control unit 227. Specifically, the eye sensor 214 detects whether or not the user confirms an image on the eyepiece display unit 213. The eye sensor 214 is configured using a contact sensor, an infrared sensor, or the like.

可動部215は、背面表示部216およびタッチパネル217が設けられ、ヒンジ215aを介して可動可能に本体部2に設けられる。たとえば、可動部215は、本体部2の鉛直方向に対して背面表示部216が上向き、または下向きに変更可能に本体部2に設けられる(図2を参照)。   The movable part 215 is provided with a rear display part 216 and a touch panel 217, and is provided in the main body part 2 so as to be movable via a hinge 215a. For example, the movable unit 215 is provided in the main body 2 such that the rear display unit 216 can be changed upward or downward with respect to the vertical direction of the main body 2 (see FIG. 2).

背面表示部216は、本体制御部227の制御のもと、バス226を介してSDRAM223に記録された画像データまたは記録媒体221に記録された画像データを取得し、取得した画像データに対応する画像を表示する。ここで、画像の表示には、撮影直後の画像データを所定時間(たとえば3秒間)だけ表示するレックビュー表示、記録媒体221に記録された画像データを再生する再生表示、および撮像素子203が連続的に生成する画像データに対応するライブビュー画像を時系列に沿って順次表示するライブビュー表示等が含まれる。背面表示部216は、液晶または有機ELからなる表示パネルおよび駆動ドライバ等を用いて構成される。また、背面表示部216は、撮像装置1の操作情報および撮影に関する情報を適宜表示する。なお、本実施の形態1では、接眼表示部213または背面表示部216が表示部として機能する。   The rear display unit 216 acquires image data recorded on the SDRAM 223 or image data recorded on the recording medium 221 via the bus 226 under the control of the main body control unit 227, and an image corresponding to the acquired image data. Is displayed. Here, for image display, a rec view display that displays image data immediately after shooting for a predetermined time (for example, 3 seconds), a playback display that plays back image data recorded on the recording medium 221, and an image sensor 203 are continuously displayed. Live view display that sequentially displays live view images corresponding to image data to be generated in time series. The rear display unit 216 is configured using a display panel made of liquid crystal or organic EL, a drive driver, and the like. Further, the rear display unit 216 appropriately displays operation information of the imaging device 1 and information related to shooting. In the first embodiment, the eyepiece display unit 213 or the rear display unit 216 functions as a display unit.

タッチパネル217は、背面表示部216の表示画面上に重畳して設けられる。タッチパネル217は、外部からの物体のタッチを検出し、この検出したタッチ位置に応じた位置信号を本体制御部227へ出力する。また、タッチパネル217は、ユーザが背面表示部216で表示される情報、たとえばアイコン画像やサムネイル画像に基づいてタッチした位置を検出し、この検出したタッチ位置に応じて撮像装置1が行う動作を指示する指示信号や画像を選択する選択信号の入力を受け付けてもよい。一般に、タッチパネル217としては、抵抗膜方式、静電容量方式および光学方式等がある。本実施の形態1では、いずれの方式のタッチパネルであっても適用可能である。さらに、可動部215、背面表示部216およびタッチパネル217は、一体的に形成してもよい。   The touch panel 217 is provided so as to be superimposed on the display screen of the rear display unit 216. The touch panel 217 detects a touch of an object from the outside, and outputs a position signal corresponding to the detected touch position to the main body control unit 227. The touch panel 217 detects a position touched by the user based on information displayed on the rear display unit 216, for example, an icon image or a thumbnail image, and instructs an operation performed by the imaging apparatus 1 according to the detected touch position. An instruction signal to be selected or a selection signal to select an image may be received. In general, the touch panel 217 includes a resistance film method, a capacitance method, an optical method, and the like. In the first embodiment, any type of touch panel is applicable. Furthermore, the movable part 215, the rear display part 216, and the touch panel 217 may be integrally formed.

回動判定部218は、可動部215の回動状況を判定し、この検出結果を本体制御部227へ出力する。たとえば、回動判定部218は、本体部2に対して可動部215が可動しているか否かを判定し、この判定結果を本体制御部227へ出力する。   The rotation determination unit 218 determines the rotation state of the movable unit 215 and outputs the detection result to the main body control unit 227. For example, the rotation determination unit 218 determines whether or not the movable unit 215 is movable with respect to the main body unit 2, and outputs the determination result to the main body control unit 227.

状態検出部219は、加速度センサおよびジャイロセンサを用いて構成され、撮像装置1に生じる加速度および角速度をそれぞれ検出し、この検出結果を本体制御部227へ出力する。   The state detection unit 219 is configured by using an acceleration sensor and a gyro sensor, detects acceleration and angular velocity generated in the imaging apparatus 1, and outputs the detection result to the main body control unit 227.

時計220は、計時機能および撮影日時の判定機能を有する。時計220は、撮像素子203によって撮像された画像データに日時データを付加するため、日時データを本体制御部227へ出力する。   The clock 220 has a clocking function and a shooting date / time determination function. The clock 220 outputs the date / time data to the main body control unit 227 in order to add the date / time data to the image data captured by the image sensor 203.

記録媒体221は、撮像装置1の外部から装着されるメモリカード等を用いて構成される。記録媒体221は、メモリI/F222を介して撮像装置1に着脱自在に装着される。記録媒体221には、画像処理部207や画像圧縮展開部210が処理を施した画像データが書き込まれる。また、記録媒体221は、本体制御部227によって記録された画像データが読み出される。   The recording medium 221 is configured using a memory card or the like mounted from the outside of the imaging device 1. The recording medium 221 is detachably attached to the imaging device 1 via the memory I / F 222. In the recording medium 221, image data processed by the image processing unit 207 and the image compression / decompression unit 210 is written. Also, the image data recorded by the main body control unit 227 is read from the recording medium 221.

SDRAM223は、バス226を介してA/D変換部206から入力される画像データ、画像処理部207から入力される画像データおよび撮像装置1の処理中の情報を一時的に記録する。たとえば、SDRAM223は、信号処理部205、A/D変換部206およびバス226を介して撮像素子203が1フレーム毎に順次出力する画像データを一時的に記録する。SDRAM223は、揮発メモリを用いて構成される。   The SDRAM 223 temporarily records the image data input from the A / D conversion unit 206 via the bus 226, the image data input from the image processing unit 207, and information being processed by the imaging apparatus 1. For example, the SDRAM 223 temporarily records image data that the image sensor 203 sequentially outputs for each frame via the signal processing unit 205, the A / D conversion unit 206, and the bus 226. The SDRAM 223 is configured using a volatile memory.

Flashメモリ224は、プログラム記録部224aを有する。プログラム記録部224aは、撮像装置1を動作させるための各種プログラムや本実施の形態1にかかるプログラムおよびプログラムの実行中に使用される各種データおよび画像処理部207による画像処理の動作に必要な各画像処理のパラメータ、および図4に示した特殊効果処理部207fによる特殊効果処理の画像処理の組み合わせ等を記録する。Flashメモリ224は、不揮発性メモリを用いて構成される。   The flash memory 224 includes a program recording unit 224a. The program recording unit 224a includes various programs for operating the imaging apparatus 1, the program according to the first embodiment, various data used during the execution of the program, and each of the image processing operations performed by the image processing unit 207. The image processing parameters and the combination of the special effect processing image processing by the special effect processing unit 207f shown in FIG. 4 are recorded. The flash memory 224 is configured using a nonvolatile memory.

本体通信部225は、本体部2に装着されるレンズ部3との通信を行うための通信インターフェースである。   The main body communication unit 225 is a communication interface for performing communication with the lens unit 3 attached to the main body unit 2.

バス226は、撮像装置1の各構成部位を接続する伝送路等を用いて構成される。バス226は、撮像装置1の内部で発生した各種データを撮像装置1の各構成部に転送する。   The bus 226 is configured using a transmission path or the like that connects each component of the imaging device 1. The bus 226 transfers various data generated inside the imaging apparatus 1 to each component of the imaging apparatus 1.

本体制御部227は、CPU(Central Processing Unit)等を用いて構成される。本体制御部227は、入力部211からの指示信号またはタッチパネル217からの位置信号に応じて撮像装置1を構成する各部に対応する指示やデータの転送等を行って撮像装置1の動作を統括的に制御する。   The main body control unit 227 is configured using a CPU (Central Processing Unit) or the like. The main body control unit 227 comprehensively controls the operation of the imaging device 1 by performing instructions, data transfer, and the like corresponding to each unit constituting the imaging device 1 in accordance with an instruction signal from the input unit 211 or a position signal from the touch panel 217. To control.

本体制御部227の詳細な構成について説明する。本体制御部227は、撮像制御部227aと、表示制御部227bと、を有する。   A detailed configuration of the main body control unit 227 will be described. The main body control unit 227 includes an imaging control unit 227a and a display control unit 227b.

撮像制御部227aは、レリーズスイッチ211bからレリーズ信号が入力された場合、撮像装置1における撮影動作を開始する制御を行う。ここで、撮像装置1における撮影動作とは、シャッタ駆動部202の駆動によって撮像素子203が出力した画像データに対し、信号処理部205、A/D変換部206および画像処理部207が所定の処理を施す動作をいう。このように処理が施された画像データは、撮像制御部227aの制御のもと、画像圧縮展開部210で圧縮され、バス226およびメモリI/F222を介して記録媒体221に記録される。   When the release signal is input from the release switch 211b, the imaging control unit 227a performs control to start the imaging operation in the imaging device 1. Here, the photographing operation in the imaging apparatus 1 is a predetermined process performed by the signal processing unit 205, the A / D conversion unit 206, and the image processing unit 207 on the image data output from the imaging element 203 by driving the shutter driving unit 202. The operation to apply. The image data thus processed is compressed by the image compression / decompression unit 210 under the control of the imaging control unit 227a, and is recorded on the recording medium 221 via the bus 226 and the memory I / F 222.

表示制御部227bは、画像データに対応する画像を背面表示部216および/または接眼表示部213に表示させる。具体的には、表示制御部227bは、接眼表示部213の電源がオン状態である場合、画像データに対応するライブビュー画像を接眼表示部213に表示させる一方、接眼表示部213の電源がオフ状態である場合、画像データに対応するライブビュー画像を背面表示部216に表示させる。   The display control unit 227b causes the rear display unit 216 and / or the eyepiece display unit 213 to display an image corresponding to the image data. Specifically, when the eyepiece display unit 213 is powered on, the display control unit 227b displays the live view image corresponding to the image data on the eyepiece display unit 213, while the eyepiece display unit 213 is powered off. In the state, a live view image corresponding to the image data is displayed on the rear display unit 216.

以上の構成を有する本体部2に対して、音声入出力機能、フラッシュ機能および外部と双方向に通信可能な通信機能等を具備させてもよい。   The main body unit 2 having the above configuration may be provided with a voice input / output function, a flash function, a communication function capable of bidirectional communication with the outside, and the like.

次に、レンズ部3について説明する。レンズ部3は、ズームレンズ301と、ズーム駆動部302と、ズーム位置検出部303と、絞り304と、絞り駆動部305と、絞り値検出部306と、フォーカスレンズ307と、フォーカス駆動部308と、フォーカス位置検出部309と、レンズ操作部310と、レンズFlashメモリ311と、レンズ通信部312と、レンズ制御部313と、を備える。   Next, the lens unit 3 will be described. The lens unit 3 includes a zoom lens 301, a zoom drive unit 302, a zoom position detection unit 303, a diaphragm 304, a diaphragm drive unit 305, an aperture value detection unit 306, a focus lens 307, and a focus drive unit 308. A focus position detection unit 309, a lens operation unit 310, a lens flash memory 311, a lens communication unit 312, and a lens control unit 313.

ズームレンズ301は、一または複数のレンズを用いて構成される。ズームレンズ301は、レンズ部3の光軸O上に沿って移動することにより、撮像装置1の光学ズームの倍率を変更する。たとえば、ズームレンズ301は、焦点距離が12mm〜50mmの間で焦点距離を変更することができる。   The zoom lens 301 is configured using one or a plurality of lenses. The zoom lens 301 changes the magnification of the optical zoom of the imaging device 1 by moving along the optical axis O of the lens unit 3. For example, the zoom lens 301 can change the focal length between 12 mm and 50 mm.

ズーム駆動部302は、DCモータまたはステッピングモータ等を用いて構成され、レンズ制御部313の制御のもと、ズームレンズ301を光軸O上に沿って移動させることにより、撮像装置1の光学ズームの変更を行う。   The zoom driving unit 302 is configured by using a DC motor, a stepping motor, or the like, and moves the zoom lens 301 along the optical axis O under the control of the lens control unit 313, so that the optical zoom of the imaging device 1 is performed. Make changes.

ズーム位置検出部303は、フォトインタラプタ等を用いて構成され、光軸O上におけるズームレンズ301の位置を検出し、この検出結果をレンズ制御部313へ出力する。   The zoom position detection unit 303 is configured using a photo interrupter or the like, detects the position of the zoom lens 301 on the optical axis O, and outputs the detection result to the lens control unit 313.

絞り304は、ズームレンズ301が集光した光の入射量を制限することにより露出の調整を行う。   The diaphragm 304 adjusts exposure by limiting the amount of incident light collected by the zoom lens 301.

絞り駆動部305は、ステッピングモータ等を用いて構成され、レンズ制御部313の制御のもと、絞り304を駆動することにより、撮像装置1の絞り値(F値)を変更する。   The aperture driving unit 305 is configured by using a stepping motor or the like, and changes the aperture value (F value) of the imaging apparatus 1 by driving the aperture 304 under the control of the lens control unit 313.

絞り値検出部306は、フォトインタラプタやエンコーダ等を用いて構成され、絞り304の現在の状況から絞り値を検出し、この検出結果をレンズ制御部313へ出力する。   The aperture value detection unit 306 is configured using a photo interrupter, an encoder, or the like, detects the aperture value from the current state of the aperture 304, and outputs the detection result to the lens control unit 313.

フォーカスレンズ307は、一または複数のレンズを用いて構成される。フォーカスレンズ307は、レンズ部3の光軸O上に沿って移動することにより、撮像装置1の焦点位置を変更する。なお、本実施の形態1では、ズームレンズ301およびフォーカスレンズ307が光学系として機能する。   The focus lens 307 is configured using one or a plurality of lenses. The focus lens 307 changes the focal position of the imaging apparatus 1 by moving along the optical axis O of the lens unit 3. In the first embodiment, the zoom lens 301 and the focus lens 307 function as an optical system.

フォーカス駆動部308は、DCモータやステッピングモータ等を用いて構成され、レンズ制御部313の制御のもと、フォーカスレンズ307を光軸Oに沿って移動させることにより、撮像装置1のピント位置を調整する。   The focus driving unit 308 is configured using a DC motor, a stepping motor, or the like, and moves the focus lens 307 along the optical axis O under the control of the lens control unit 313, thereby adjusting the focus position of the imaging device 1. adjust.

フォーカス位置検出部309は、フォトインタラプタ等を用いて構成され、光軸O上におけるフォーカスレンズ307の位置を検出し、この検出結果をレンズ制御部313へ出力する。   The focus position detection unit 309 is configured using a photo interrupter or the like, detects the position of the focus lens 307 on the optical axis O, and outputs the detection result to the lens control unit 313.

レンズ操作部310は、図1に示すように、レンズ部3のレンズ鏡筒の周囲に設けられるリングであり、レンズ部3における光学ズームの変更を指示する指示信号の入力またはレンズ部3におけるピント位置の調整を指示する指示信号の入力を受け付ける。なお、レンズ操作部310は、プッシュ式のスイッチやレバー式のスイッチ等であってもよい。   As shown in FIG. 1, the lens operation unit 310 is a ring provided around the lens barrel of the lens unit 3. The lens operation unit 310 receives an instruction signal for instructing a change in the optical zoom in the lens unit 3 or focuses on the lens unit 3. An instruction signal for instructing position adjustment is received. The lens operation unit 310 may be a push type switch, a lever type switch, or the like.

レンズFlashメモリ311は、ズームレンズ301、絞り304およびフォーカスレンズ307の位置および動きをそれぞれ決定するための制御プログラム、レンズ部3のレンズ特性および各種パラメータを記録する。ここで、レンズ特性とは、レンズ部3の色収差、画角情報、明るさ情報(f値)および焦点距離情報(たとえば50mm〜300mm)である。   The lens flash memory 311 records a control program for determining the positions and movements of the zoom lens 301, the diaphragm 304, and the focus lens 307, the lens characteristics of the lens unit 3, and various parameters. Here, the lens characteristics are chromatic aberration, field angle information, brightness information (f value), and focal length information (for example, 50 mm to 300 mm) of the lens unit 3.

レンズ通信部312は、レンズ部3が本体部2に装着された際に、本体部2の本体通信部225と通信を行うための通信インターフェースである。   The lens communication unit 312 is a communication interface for communicating with the main body communication unit 225 of the main body unit 2 when the lens unit 3 is attached to the main body unit 2.

レンズ制御部313は、CPU等を用いて構成される。レンズ制御部313は、レンズ操作部310からの指示信号または本体部2からの指示信号に応じてレンズ部3の動作を制御する。具体的には、レンズ制御部313は、レンズ操作部310からの指示信号に応じて、フォーカス駆動部308を駆動させてフォーカスレンズ307によるピント調整やズーム駆動部302を駆動させてズームレンズ301の光学ズームのズーム倍率の変更を行う。なお、レンズ制御部313は、レンズ部3が本体部2に装着された際に、レンズ部3のレンズ特性およびレンズ部3を識別する識別情報を本体部2に送信してもよい。   The lens control unit 313 is configured using a CPU or the like. The lens control unit 313 controls the operation of the lens unit 3 in accordance with an instruction signal from the lens operation unit 310 or an instruction signal from the main body unit 2. Specifically, the lens control unit 313 drives the focus driving unit 308 in accordance with an instruction signal from the lens operation unit 310 to drive the focus adjustment by the focus lens 307 and the zoom driving unit 302 to drive the zoom lens 301. Change the zoom magnification of the optical zoom. The lens control unit 313 may transmit the lens characteristics of the lens unit 3 and identification information for identifying the lens unit 3 to the main body unit 2 when the lens unit 3 is attached to the main body unit 2.

以上の構成を有する撮像装置1が実行する処理について説明する。図5は、撮像装置1が実行する処理の概要を示すフローチャートである。   Processing executed by the imaging apparatus 1 having the above configuration will be described. FIG. 5 is a flowchart illustrating an outline of processing executed by the imaging apparatus 1.

図5に示すように、まず、電源スイッチ211aが操作された撮像装置1が起動した際に、撮像装置1が撮影モードに設定されている場合(ステップS101:Yes)について説明する。この場合において、撮像制御部227aは、撮像素子駆動部204を駆動させることによって、撮像素子203に撮像させる(ステップS102)。   As shown in FIG. 5, first, the case where the imaging device 1 is set to the shooting mode when the imaging device 1 in which the power switch 211a is operated is activated (step S101: Yes) will be described. In this case, the imaging control unit 227a causes the imaging device 203 to capture an image by driving the imaging device driving unit 204 (step S102).

続いて、撮像装置1に距離アートが設定されている場合(ステップS103:Yes)、撮像装置1は、撮像装置1から遠ざかる方向に沿って存在する被写体の距離毎に応じて特殊効果処理部207fによる特殊効果処理のパラメータを変更して特殊効果処理を画像データに実行させて処理画像データを生成する距離アート処理を実行する(ステップS104)。なお、距離アート処理の詳細な説明は後述する。これに対して、撮像装置1に距離アートが設定されていない場合(ステップS103:No)、撮像装置1は、ステップS105へ移行する。   Subsequently, when distance art is set in the imaging apparatus 1 (step S103: Yes), the imaging apparatus 1 causes the special effect processing unit 207f to correspond to each distance of the subject that exists along the direction away from the imaging apparatus 1. The distance art processing is executed to change the special effect processing parameter by the above and execute the special effect processing on the image data to generate processed image data (step S104). A detailed description of the distance art process will be described later. On the other hand, when distance art is not set in the imaging device 1 (step S103: No), the imaging device 1 proceeds to step S105.

続いて、表示制御部227bは、撮像素子203が撮像し、信号処理部205、A/D変換部206および画像処理部207がそれぞれ所定の処理を行ったライブビュー画像データに対応するライブビュー画像を接眼表示部213または背面表示部216に表示させる(ステップS105)。この場合、表示制御部227bは、アイセンサ214が撮影者(物体)を検出した場合、ライブビュー画像を接眼表示部213に表示させる。たとえば、表示制御部227bは、図6に示すライブビュー画像LV0を接眼表示部213に表示させる。なお、図6は、基本画像処理部207aによる基本の画像処理が画像データに対して施された状態を示す。 Subsequently, the display control unit 227b captures the live view image corresponding to the live view image data captured by the image sensor 203 and subjected to predetermined processing by the signal processing unit 205, the A / D conversion unit 206, and the image processing unit 207, respectively. Is displayed on the eyepiece display unit 213 or the rear display unit 216 (step S105). In this case, when the eye sensor 214 detects the photographer (object), the display control unit 227b displays the live view image on the eyepiece display unit 213. For example, the display control unit 227b displays a live view image LV 0 shown in FIG. 6 in the eyepiece display unit 213. FIG. 6 shows a state in which basic image processing by the basic image processing unit 207a is performed on the image data.

その後、レリーズスイッチ211bから撮影を指示するレリーズ信号が入力された場合(ステップS106:Yes)、撮像制御部227aは、撮影を実行する(ステップS107)。この場合において、撮像制御部227aは、撮像装置1に距離アートが設定されているとき、後述する距離アート処理で設定された設定内容に応じた特殊効果処理を特殊効果処理部207fに実行させて生成させた処理画像データを記録媒体221に記録する。   Thereafter, when a release signal instructing shooting is input from the release switch 211b (step S106: Yes), the imaging control unit 227a executes shooting (step S107). In this case, when the distance art is set in the imaging device 1, the imaging control unit 227a causes the special effect processing unit 207f to execute special effect processing according to the setting content set in the distance art processing described later. The generated processed image data is recorded on the recording medium 221.

続いて、電源スイッチ211aが操作され、撮像装置1の電源がオフされた場合(ステップS108:Yes)、撮像装置1は、本処理を終了する。これに対して、電源スイッチ211aが操作されず、撮像装置1の電源がオフされていない場合(ステップS108:No)、撮像装置1は、ステップS101へ戻る。   Subsequently, when the power switch 211a is operated and the power supply of the imaging device 1 is turned off (step S108: Yes), the imaging device 1 ends this process. On the other hand, when the power switch 211a is not operated and the power of the imaging device 1 is not turned off (step S108: No), the imaging device 1 returns to step S101.

ステップS106において、レリーズスイッチ211bから撮影を指示するレリーズ信号が入力されていない場合(ステップS106:No)、撮像装置1は、ステップS101へ戻る。   In step S106, when the release signal instructing photographing is not input from the release switch 211b (step S106: No), the imaging apparatus 1 returns to step S101.

ステップS101において、撮像装置1が撮影モードに設定されていない場合(ステップS101:No)について説明する。この場合において、撮像装置1が再生モードに設定されているとき(ステップS109:Yes)、撮像装置1は、記録媒体221に記録された画像データに対応する画像を背面表示部216または接眼表示部213に表示させる再生表示処理を実行する(ステップS110)。ステップS110の後、撮像装置1は、ステップS108へ移行する。   In step S101, the case where the imaging apparatus 1 is not set to the shooting mode (step S101: No) will be described. In this case, when the imaging device 1 is set to the reproduction mode (step S109: Yes), the imaging device 1 displays an image corresponding to the image data recorded on the recording medium 221 on the rear display unit 216 or the eyepiece display unit. A reproduction display process to be displayed on 213 is executed (step S110). After step S110, the imaging apparatus 1 proceeds to step S108.

ステップS109において、撮像装置1が再生モードに設定されていないとき(ステップS109:No)、撮像装置1は、ステップS108へ移行する。   In step S109, when the imaging device 1 is not set to the reproduction mode (step S109: No), the imaging device 1 proceeds to step S108.

次に、図5のステップS104で説明した距離アート処理について詳細に説明する。図7は、距離アート処理の概要を示すフローチャートである。   Next, the distance art process described in step S104 in FIG. 5 will be described in detail. FIG. 7 is a flowchart showing an outline of the distance art process.

図7に示すように、焦点位置取得部207dは、レンズ部3から現在の焦点位置を取得する(ステップS201)。   As shown in FIG. 7, the focal position acquisition unit 207d acquires the current focal position from the lens unit 3 (step S201).

続いて、輪郭検出部207bは、SDRAM223から画像データを取得し、取得した画像データに含まれる輝度成分を抽出し(ステップS202)、抽出した輝度成分に対して2次微分の絶対値を算出することによって、被写体の輪郭を検出する(ステップS203)。   Subsequently, the contour detection unit 207b acquires the image data from the SDRAM 223, extracts the luminance component included in the acquired image data (step S202), and calculates the absolute value of the second derivative for the extracted luminance component. Thus, the contour of the subject is detected (step S203).

続いて、距離算出部207cは、SDRAM223に記憶されたAF画素203aによって生成された焦点データに基づいて、撮像装置1から輪郭検出部207bが検出した被写体の輪郭を構成する輪郭点までの距離を算出する(ステップS204)。具体的には、距離算出部207cは、AF画素203aが生成した焦点データに基づいて、撮像素子203から輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点それぞれの距離を算出する測距算出処理を行う。なお、距離算出部207cは、フォーカスレンズ307が光軸O上を移動する毎に、被写体の輪郭を構成する複数の輪郭点までのそれぞれの距離を算出してもよい。さらに、距離算出部207cは、フォーカスレンズ307が焦点位置を中心に微小な幅で往復するWob駆動される毎に、被写体の輪郭を構成する輪郭点までの距離を算出してもよい。また、距離算出部207cは、被写体の輪郭を構成する複数の輪郭点のうち、少なくとも2つ以上の距離を算出すればよい。   Subsequently, the distance calculation unit 207c calculates the distance from the imaging device 1 to the contour point constituting the contour of the subject detected by the contour detection unit 207b based on the focus data generated by the AF pixel 203a stored in the SDRAM 223. Calculate (step S204). Specifically, the distance calculation unit 207c calculates the distance of each of a plurality of contour points constituting the contour of the subject detected from the image sensor 203 by the contour detection unit 207b based on the focus data generated by the AF pixel 203a. Ranging calculation processing is performed. Note that the distance calculation unit 207c may calculate each distance to a plurality of contour points constituting the contour of the subject each time the focus lens 307 moves on the optical axis O. Furthermore, the distance calculation unit 207c may calculate the distance to the contour point that constitutes the contour of the subject each time the focus lens 307 is driven by the web that reciprocates with a minute width around the focus position. In addition, the distance calculation unit 207c may calculate at least two or more distances among a plurality of contour points constituting the contour of the subject.

その後、形状判定部207eは、輪郭検出部207bが検出した被写体の輪郭と距離算出部207cが算出した被写体の輪郭を構成する複数の輪郭点の距離とに基づいて、被写体の輪郭内において同じ色(Low-Contrast)で互いに異なる距離の対象物(被写体)の形状を判定する(ステップS205)。具体的には、形状判定部207eは、レンズ部3の光軸Oに沿って被写体の形状が同じであるか否かを判定する。   After that, the shape determination unit 207e uses the same color within the contour of the subject based on the contour of the subject detected by the contour detection unit 207b and the distances of a plurality of contour points constituting the contour of the subject calculated by the distance calculation unit 207c. The shapes of the objects (subjects) at different distances are determined by (Low-Contrast) (step S205). Specifically, the shape determination unit 207 e determines whether or not the shape of the subject is the same along the optical axis O of the lens unit 3.

図8は、形状判定部207eによる互いに異なる距離の対象物の形状を判定する判定方法の概要を説明する模式図である。図9は、形状判定部207eが判定する画像の一例を示す。なお、図9の画像LV1上の被写体P1(レンズ部3の光軸Oに沿って遠ざかる方向に沿って存在する道)の輪郭L1,L2との幅は、撮像素子203上で結像される撮像面の幅に対応する。 FIG. 8 is a schematic diagram illustrating an outline of a determination method for determining the shapes of objects at different distances by the shape determination unit 207e. FIG. 9 shows an example of an image determined by the shape determining unit 207e. Note that the widths of the contours L 1 and L 2 of the subject P 1 (the road existing along the direction away from the optical axis O of the lens unit 3) on the image LV 1 in FIG. This corresponds to the width of the imaging surface to be imaged.

図8および図9に示すように、まず、形状判定部207eは、輪郭検出部207bが検出した被写体の輪郭と距離算出部207cが算出した被写体の輪郭点までの距離とに基づいて、被写体の輪郭内において同じ色で互いに異なる距離の対象物の形状として対象物の幅を判定する。具体的には、形状判定部207eは、撮像素子203上に形成される異なる像の幅をX1、X2、レンズ部3の焦点距離をFとした場合、以下の式(1)〜(4)によって、撮像装置1から距離D1,D2それぞれ離れた被写体の輪郭の幅W1,W2を判定する。
1:D1=X1:F ・・・(1)
したがって、
1=(D11)/F ・・・(2)
になる。同様に、
2:D2=X2:F ・・・(3)
したがって、
2=(D22)/F ・・・(4)
この場合において、W1≒W2のとき、式(2)および式(4)より、以下の式(5)が成り立つ。
11≒D22 ・・・(5)
即ち、形状判定部207eは、式(2)、式(4)および式(5)を用いて、撮像装置1から遠ざかる奥行き方向に沿って被写体P1の輪郭の幅(輪郭点の幅)が同じであるか否かを判定する。さらに、形状判定部207eは、撮像素子203上に形成される像の幅をX3、焦点距離をFとした場合、以下の式(6)および式(7)によって、撮像素子203から距離D3離れた対象物の幅W3を判定する。
3:D3=X3:F ・・・(6)
したがって、
3=(D33)/F ・・・(7)
この場合において、W1≒W3のとき、式(2)および式(7)より、以下の式(8)が成り立つ。
11≒D33 ・・・(8)
したがって、
3=D11/D3 ・・・(9)
になる。このように、形状判定部207eは、式(8)を用いて、レンズ部3の焦点位置における被写体P1の輪郭L1,L2の幅が同じであるか否かを判定する。
As shown in FIGS. 8 and 9, first, the shape determination unit 207 e determines the subject based on the contour of the subject detected by the contour detection unit 207 b and the distance to the contour point of the subject calculated by the distance calculation unit 207 c. The width of the object is determined as the shape of the object of the same color and different distance within the contour. Specifically, the shape determination unit 207e has the following formulas (1) to (1) when the widths of different images formed on the image sensor 203 are X 1 and X 2 and the focal length of the lens unit 3 is F. According to 4), the widths W 1 and W 2 of the contours of the subject that are separated from the imaging device 1 by the distances D 1 and D 2 are determined.
W 1 : D 1 = X 1 : F (1)
Therefore,
W 1 = (D 1 X 1 ) / F (2)
become. Similarly,
W 2 : D 2 = X 2 : F (3)
Therefore,
W 2 = (D 2 X 2 ) / F (4)
In this case, when W 1 ≈W 2 , the following equation (5) is established from the equations (2) and (4).
D 1 X 1 ≒ D 2 X 2 (5)
That is, the shape determination unit 207e uses the expressions (2), (4), and (5) to determine the width of the contour of the subject P 1 (the width of the contour point) along the depth direction away from the imaging device 1. It is determined whether or not they are the same. Furthermore, when the width of the image formed on the image sensor 203 is X 3 and the focal length is F, the shape determination unit 207e is a distance D from the image sensor 203 according to the following equations (6) and (7). 3 for determining the width W 3 of the distant object.
W 3 : D 3 = X 3 : F (6)
Therefore,
W 3 = (D 3 X 3 ) / F (7)
In this case, when W 1 ≈W 3 , the following equation (8) is established from the equations (2) and (7).
D 1 X 1 ≒ D 3 X 3 (8)
Therefore,
X 3 = D 1 X 1 / D 3 (9)
become. In this way, the shape determination unit 207e determines whether the widths of the contours L 1 and L 2 of the subject P 1 at the focal position of the lens unit 3 are the same using Expression (8).

続いて、形状判定部207eが輪郭検出部207bによって検出された被写体の輪郭点が同じ幅であると判定した場合(ステップS206:Yes)、撮像装置1は、後述するステップS207へ移行する。これに対して、形状判定部207eが輪郭検出部207bによって検出された被写体の輪郭が同じ幅でないと判定した場合(ステップS206:No)、撮像装置1は、図5のメインルーチンへ戻る。この場合において、表示制御部227bは、背面表示部216が表示するライブビュー画像上に、距離アートを行うことができない旨の情報、たとえば絵、アイコンおよび文字等で警告してもよい。   Subsequently, when the shape determination unit 207e determines that the contour points of the subject detected by the contour detection unit 207b have the same width (step S206: Yes), the imaging device 1 proceeds to step S207 described later. On the other hand, when the shape determination unit 207e determines that the contours of the subject detected by the contour detection unit 207b do not have the same width (step S206: No), the imaging device 1 returns to the main routine of FIG. In this case, the display control unit 227b may warn with information indicating that the distance art cannot be performed on the live view image displayed by the rear display unit 216, for example, a picture, an icon, and a character.

ステップS207において、形状判定部207eは、輪郭検出部207bによって検出された被写体の輪郭の幅が撮像装置1から遠ざかる方向に向けて画像上で減少しているか否かを判定する。具体的には、形状判定部207eは、輪郭検出部207bによって検出された被写体の輪郭の幅が撮像素子203上における受光領域で減少しているか否かを判定する。たとえば、図9に示す場合、形状判定部207eは、撮像装置1から遠ざかる奥行き方向に沿って被写体P1の幅が画像LV1上で下端から上端に向けて減少しているため、輪郭検出部207bによって検出された被写体の輪郭の幅が撮像装置1から遠ざかる方向に向けて画像上で減少していると判定する。形状判定部207eが輪郭検出部207bによって検出された被写体の輪郭の幅が撮像装置1から遠ざかる方向に向けて画像上で減少していると判定した場合(ステップS207:Yes)、撮像装置1は、後述するステップS208へ移行する。これに対して、形状判定部207eが輪郭検出部207bによって検出された被写体の輪郭の幅が撮像装置1から遠ざかる方向に向けて画像上で減少していないと判定した場合(ステップS207:No)、撮像装置1は、図5のメインルーチンへ戻る。また、道の向こう側(奥行き方向)、こちら側(手前方向)などは、画像から得られる輪郭のみならず、画面の端部であることも利用している。したがって、特殊効果処理部207fは、撮像素子203が生成した画像データに対応する画像内における被写体の輪郭を検出し、被写体の輪郭を構成する複数の輪郭点の遠近分布に従って、被写体の輪郭で囲まれた被写体領域毎に異なる画像処理を行って視覚的な効果を生じさせる処理画像データを生成するが、必要に応じて画面の端部も有効利用して被写体領域を決め特殊効果処理している。 In step S207, the shape determination unit 207e determines whether the width of the contour of the subject detected by the contour detection unit 207b decreases on the image in a direction away from the imaging device 1. Specifically, the shape determination unit 207e determines whether or not the width of the contour of the subject detected by the contour detection unit 207b is reduced in the light receiving region on the image sensor 203. For example, in the case illustrated in FIG. 9, the shape determination unit 207 e has a contour detection unit because the width of the subject P 1 decreases from the lower end toward the upper end on the image LV 1 along the depth direction away from the imaging device 1. It is determined that the width of the contour of the subject detected by 207b decreases on the image in the direction away from the imaging device 1. When the shape determination unit 207e determines that the width of the contour of the subject detected by the contour detection unit 207b decreases on the image in the direction away from the imaging device 1 (step S207: Yes), the imaging device 1 Then, the process proceeds to step S208 described later. On the other hand, when the shape determining unit 207e determines that the width of the contour of the subject detected by the contour detecting unit 207b has not decreased on the image in the direction away from the imaging device 1 (step S207: No). The imaging apparatus 1 returns to the main routine in FIG. In addition, the other side of the road (depth direction), the near side (front direction), and the like are not only the contours obtained from the image, but also the edges of the screen. Therefore, the special effect processing unit 207f detects the contour of the subject in the image corresponding to the image data generated by the image sensor 203, and surrounds the contour of the subject according to the perspective distribution of a plurality of contour points that form the contour of the subject. Processed image data that generates a visual effect by performing different image processing for each subject area is generated, but if necessary, the edge of the screen is also effectively used to determine the subject area and perform special effect processing .

ステップS208において、特殊効果処理部207fは、基本画像処理部207aが撮像素子203によって生成された画像データに対し、距離算出部207cが算出した被写体の輪郭を構成する複数の輪郭点の各々の距離に応じて定まる被写体領域毎に特殊効果処理を行って処理画像データを生成する。これにより、図10に示すように、特殊効果処理部207fが生成した処理画像データに対応する画像LV2は、撮像装置1の視野内で撮像装置1から遠ざかる方向(奥行き方向)に沿って距離毎に画像処理のパラメータが徐々に変更されたものになる。なお、特殊効果処理部207fが行う特殊効果処理は、予め入力部211またはタッチパネル217によって選択されて設定される。 In step S208, the special effect processing unit 207f determines the distance of each of a plurality of contour points constituting the contour of the subject calculated by the distance calculation unit 207c with respect to the image data generated by the basic image processing unit 207a by the image sensor 203. Special effect processing is performed for each subject area determined according to the above, and processed image data is generated. As a result, as shown in FIG. 10, the image LV 2 corresponding to the processed image data generated by the special effect processing unit 207 f is a distance along the direction away from the imaging device 1 (depth direction) within the field of view of the imaging device 1. Each time the image processing parameters are gradually changed. The special effect processing performed by the special effect processing unit 207f is selected and set in advance by the input unit 211 or the touch panel 217.

なお、図10においては、画像処理のパラメータとして、撮像装置1から被写体P1の輪郭を構成する複数の輪郭点(たとえば輪郭点A1,A2)までのそれぞれの距離に対応する位置毎または領域毎に、彩度およびコントラストのパラメータを変更した特殊効果処理(たとえば、図4のポップアート)を模式的に示すため、グラデーションのハッチングで表現した。もちろん、画像処理のパラメータとして、彩度、色相、階調、コントラスト、ホワイトバランス、感度、ソフトフォーカスの強度およびシェーディングの強度等のパラメータを重畳または変更してもよい。また、特殊効果処理部207fは、図11に示す画像LV3に示すように、画像の水平方向だけでなく、鉛直方向に対しても特殊効果処理を行うことができる。つまり、これらの実施例では、遠近法によって、画面内の特定の位置に集約されていくような直線は、道の両脇や建物の壁、廊下などの略並行な線が奥行き方向に広がっていることを判定し、平行な線のそれぞれ同じ距離の点を結べば、コントラストがなく距離情報がなくとも、同じ距離に応じて定まる領域を仮想的に判定、画像処理可能なことを利用している。ステップS208の後、撮像装置1は、図5のメインルーチンへ戻る。 In FIG. 10, as image processing parameters, for each position corresponding to each distance from the imaging device 1 to a plurality of contour points (for example, contour points A 1 and A 2 ) constituting the contour of the subject P 1 or In order to schematically show special effect processing (for example, pop art in FIG. 4) in which the parameters of saturation and contrast are changed for each region, it is expressed by gradation hatching. Of course, parameters such as saturation, hue, gradation, contrast, white balance, sensitivity, soft focus intensity, and shading intensity may be superimposed or changed as image processing parameters. Moreover, the special effect processing section 207f, as shown in the image LV 3 shown in FIG. 11, not only the horizontal direction of the image, also it is possible to perform special effect processing with respect to the vertical direction. In other words, in these examples, straight lines that are aggregated at a specific position in the screen by perspective are such that substantially parallel lines such as both sides of the road, walls of buildings, and corridors spread in the depth direction. By connecting points of the same distance between parallel lines, it is possible to virtually determine the area determined according to the same distance and perform image processing without contrast and no distance information. Yes. After step S208, the imaging apparatus 1 returns to the main routine in FIG.

以上説明した本発明の実施の形態1によれば、撮像装置1から遠ざかる方向に沿って存在する被写体に対して、撮像装置1からの距離毎に異なる画像処理を行うことができる。   According to the first embodiment of the present invention described above, different image processing can be performed for each distance from the imaging device 1 on a subject that exists along the direction away from the imaging device 1.

また、本発明の実施の形態1によれば、距離算出部207cが輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点までのそれぞれの距離を算出し、特殊効果処理部207fが距離算出部207cによって検出された被写体の輪郭を構成する複数の輪郭点の各々距離に応じて定まる領域毎に異なる画像処理を行って視覚的な効果を生じさせる。これにより、コントラストがないシーンで被写体を撮影する場合であっても、撮像装置1からの距離毎に異なる画像処理を行った処理画像データを生成することができる。そのため、画面に奥行き感を与え、距離の情報(必ずしも絶対的な距離である必要はなく、相対的な遠近情報、凹凸情報でも良い)を有効利用した、豊かな表現力の画像処理、画像表現、さらには画像を利用したユーザへの情報伝達が可能となる。画像表現の重要な要素である遠近感を用いたアート表現は、より自然な効果で、臨場感を与え、見るものを魅了することは言うまでもない。   Further, according to the first embodiment of the present invention, the distance calculation unit 207c calculates each distance to a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b, and the special effect processing unit 207f. However, different image processing is performed for each region determined according to the distance of each of a plurality of contour points constituting the contour of the subject detected by the distance calculation unit 207c, thereby producing a visual effect. Thereby, even when a subject is photographed in a scene having no contrast, processed image data obtained by performing different image processing for each distance from the imaging device 1 can be generated. Therefore, rich image processing and image expression that gives depth to the screen and makes effective use of distance information (not necessarily absolute distance, but relative perspective information and unevenness information may be used). Furthermore, it is possible to transmit information to a user using an image. It goes without saying that art expression using perspective, which is an important element of image expression, gives a sense of realism with a more natural effect and attracts what you see.

なお、本発明の実施の形態1では、距離算出部207cが輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点それぞれの距離を算出していたが、タッチパネル217を介して選択された被写体に対して距離を算出してもよい。図12は、タッチパネル217を介して被写体を選択する際の状況を示す模式図である。図12に示すように、距離算出部207cは、タッチパネル217を介してタッチされた画像LV4上の被写体P1に対して撮像装置1から遠ざかる方向の距離を算出してもよい。 In the first embodiment of the present invention, the distance calculation unit 207c calculates the distance of each of the plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b. The distance may be calculated with respect to the subject. FIG. 12 is a schematic diagram illustrating a situation when a subject is selected via the touch panel 217. As illustrated in FIG. 12, the distance calculation unit 207 c may calculate the distance in the direction away from the imaging device 1 with respect to the subject P 1 on the image LV 4 touched via the touch panel 217.

また、本発明の実施の形態1では、特殊効果処理部207fの画像処理として画像処理のパラメータを変更していたが、たとえば撮像装置1から被写体を構成する複数の輪郭点までのそれぞれの距離に対応する位置毎に画像処理の組み合わせを変更してもよい。さらに、特殊効果処理部207fは、撮像装置1から被写体を構成する複数の輪郭点までのそれぞれの距離に対応する位置毎に、所定の波長帯域(たとえば、赤:600nm〜700nm、緑:500nm〜600nm、青:400nm〜500nm)を抽出した画像データを合成してもよい。   In the first embodiment of the present invention, the image processing parameters are changed as the image processing of the special effect processing unit 207f. For example, the distance from the imaging device 1 to a plurality of contour points constituting the subject is set. You may change the combination of image processing for every corresponding position. Further, the special effect processing unit 207f has a predetermined wavelength band (for example, red: 600 nm to 700 nm, green: 500 nm to 500 nm) for each position corresponding to each distance from the imaging device 1 to a plurality of contour points constituting the subject. (600 nm, blue: 400 nm to 500 nm) may be synthesized.

また、本発明の実施の形態1では、画像処理部207を画像処理装置として他の機器、たとえば携帯電話や携帯型端末装置に搭載することにより、本発明を適用することができる。さらに、被検体内を撮像して被検体の画像データを生成する内視鏡装置と、内視鏡装置からの画像データに対して画像処理を行う処理装置と、処理装置が画像処理を施した画像データに対応する画像を表示装置と、を備えた内視鏡システムの処理装置に画像処理部207を搭載することにより、本発明を適用することができる。即ち、観察者や術者に画像処理で強調する画像を直感的に把握させることができれば、産業用の観察装置や医療用の検査装置にも有効であることは言うまでもない。奥行き情報(撮像装置1からの距離情報)に従った画像表現によって、観察者の視覚を補助し、理解を助けることが可能となる。   In the first embodiment of the present invention, the present invention can be applied by mounting the image processing unit 207 as an image processing apparatus in another device such as a mobile phone or a portable terminal device. Furthermore, an endoscope apparatus that images the inside of the subject and generates image data of the subject, a processing apparatus that performs image processing on the image data from the endoscope apparatus, and the processing apparatus performed image processing The present invention can be applied by installing the image processing unit 207 in a processing device of an endoscope system including an image corresponding to image data and a display device. That is, it is needless to say that if an observer or an operator can intuitively grasp an image to be emphasized by image processing, it is effective for an industrial observation apparatus or a medical inspection apparatus. The image representation according to the depth information (distance information from the imaging device 1) can assist the viewer's vision and assist understanding.

(実施の形態2)
次に、本発明の実施の形態2について説明する。本実施の形態2にかかる撮像装置は、上述した実施の形態1にかかる撮像装置1の画像処理部の構成が異なるとともに、撮像装置が実行する距離アート処理が異なる。このため、以下においては、本実施の形態2にかかる撮像装置の構成を説明後、撮像装置が実行する距離アート処理について説明する。なお、上述した実施の形態1にかかる撮像装置1と同様の構成には同一の符号を付して説明を省略する。
(Embodiment 2)
Next, a second embodiment of the present invention will be described. The imaging apparatus according to the second embodiment is different in the configuration of the image processing unit of the imaging apparatus 1 according to the first embodiment and the distance art process executed by the imaging apparatus. Therefore, in the following, after describing the configuration of the imaging apparatus according to the second embodiment, the distance art processing executed by the imaging apparatus will be described. In addition, the same code | symbol is attached | subjected to the structure similar to the imaging device 1 concerning Embodiment 1 mentioned above, and description is abbreviate | omitted.

図13は、本実施の形態2にかかる撮像装置の機能構成を示すブロック図である。図13に示す撮像装置100は、レンズ部3と、本体部101と、を備える。本体部101は、上述した実施の形態1の画像処理部207に換えて画像処理部401を備える。   FIG. 13 is a block diagram illustrating a functional configuration of the imaging apparatus according to the second embodiment. An imaging apparatus 100 illustrated in FIG. 13 includes a lens unit 3 and a main body unit 101. The main body unit 101 includes an image processing unit 401 instead of the image processing unit 207 of the first embodiment described above.

画像処理部401は、基本画像処理部207aと、輪郭検出部207bと、距離算出部207cと、焦点位置取得部207dと、形状判定部207eと、特殊効果処理部401aと、を有する。   The image processing unit 401 includes a basic image processing unit 207a, a contour detection unit 207b, a distance calculation unit 207c, a focal position acquisition unit 207d, a shape determination unit 207e, and a special effect processing unit 401a.

特殊効果処理部401aは、距離算出部207cが算出した撮像装置100から輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点までのそれぞれの距離に基づいて、画像データに対応する画像上にテキストデータ、図形データおよび記号データのいずれか1つ以上を重畳する特殊効果処理を行って処理画像データを生成する。   The special effect processing unit 401a corresponds to the image data based on the distances from the imaging device 100 calculated by the distance calculation unit 207c to a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b. Special effect processing is performed to superimpose any one or more of text data, graphic data, and symbol data on the image to generate processed image data.

次に、撮像装置100が実行する距離アートについて説明する。図14は、撮像装置100が実行する距離アート処理の概要を示すフローチャートである。図14において、ステップS301〜ステップS307は、図7のステップS201〜ステップS207それぞれに対応する。   Next, distance art executed by the imaging apparatus 100 will be described. FIG. 14 is a flowchart illustrating an overview of the distance art process executed by the imaging apparatus 100. In FIG. 14, steps S301 to S307 correspond to steps S201 to S207 in FIG.

ステップS308において、特殊効果処理部401aは、基本画像処理部207aによって基本の画像処理が施された画像データに対応する画像に対して、距離算出部207cが算出した撮像装置100から輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点の各々までの距離に応じて定まる被写体領域毎に予め設定されたテキストデータとしての文字を重畳した処理画像データを生成する。具体的には、特殊効果処理部401aは、距離算出部207cが算出した撮像装置100から輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点のうち互いに異なる距離で挟まれた輪郭内に対して、予め設定された文字を重畳した処理画像データを生成する。   In step S308, the special effect processing unit 401a performs the contour detection unit 207b from the imaging device 100 calculated by the distance calculation unit 207c on the image corresponding to the image data subjected to the basic image processing by the basic image processing unit 207a. Processed image data is generated by superimposing text as preset text data for each subject area determined according to the distance to each of a plurality of contour points constituting the contour of the subject detected by. Specifically, the special effect processing unit 401a is sandwiched at different distances from among a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b from the imaging device 100 calculated by the distance calculation unit 207c. Processed image data in which a preset character is superimposed on the contour is generated.

図15は、特殊効果処理部401aが文字を重畳する画像の一例を示す図である。図16は、特殊効果処理部401aによる被写体の輪郭内に対して文字を重畳する際の文字の割当方法の概要を説明する模式図である。なお、図15の画像LV11において、被写体の輪郭を構成する複数の輪郭点のうち互いに異なる距離の輪郭点A1および輪郭点A2で挟まれた被写体P1の領域上に文字を割り当てる際の割当方法を説明する。また、図15および図16においては、予め設定された文字の数を4文字(PARK)として説明する。 FIG. 15 is a diagram illustrating an example of an image on which characters are superimposed by the special effect processing unit 401a. FIG. 16 is a schematic diagram for explaining an outline of a character assignment method when a special effect processing unit 401a superimposes characters on the outline of a subject. In the image LV 11 in FIG. 15, when allocating a plurality of different distances of the contour point A 1 and the contour point A character sandwiched by the object P 1 on the area 2 of the contour points constituting the outline of the subject The allocation method will be described. Further, in FIGS. 15 and 16, description will be made assuming that the number of characters set in advance is 4 characters (PARK).

図15および図16に示すように、特殊効果処理部401aは、距離算出部207cが算出した被写体の輪郭を構成する複数の輪郭点のうち互いに異なる距離の輪郭点で挟まれた被写体P1の輪郭内に対して、予め設定された文字の領域を割り当てる。具体的には、特殊効果処理部401aは、撮像装置100から被写体P1の輪郭点A1までの距離をD1、撮像装置1から被写体P1の輪郭点A2までの距離をD2、画像LV11に重畳する文字の数をNとした場合、以下の式(10)によって、一文字当たりの領域ΔDを算出する。
ΔD=(D1−D2)/N ・・・(10)
As shown in FIGS. 15 and 16, the special effect processing unit 401 a includes a subject P 1 sandwiched between contour points at different distances from among a plurality of contour points constituting the contour of the subject calculated by the distance calculation unit 207 c. A character area set in advance is assigned to the outline. Specifically, the special effect processing section 401a is, D 1 the distance from the imaging device 100 to the contour point A 1 of the object P 1, the distance D 2 from the imaging apparatus 1 to the contour point A 2 of the object P 1, When the number of characters to be superimposed on the image LV 11 is N, a region ΔD per character is calculated by the following equation (10).
ΔD = (D 1 −D 2 ) / N (10)

そして、特殊効果処理部401aは、領域ΔDおよび画像LV11上における距離D1から距離D2までの高さYrに基づいて、画像LV11上に重畳する領域ΔD内における文字の大きさを設定する。たとえば、特殊効果処理部401aは、撮像装置100から遠ざかる方向に沿って(画像LV11上において下端から上端に向けて)文字が小さくなるように領域ΔD内における各文字の画像上の大きさを設定する。具体的には、特殊効果処理部401aは、領域ΔD内における各文字の画像上の大きさをX11〜X14とした場合、以下の条件(11)を満たすように領域ΔD内における各文字の画像上の大きさを設定する。
11:X12:X13:X14=(1/(D+3・ΔD)−1/D1):(1/(D+2・ΔD)−1/(D2+3・ΔD)):(1/(D−ΔD)−1/(D2+2・ΔD)):(1/D−1/(D1+ΔD))
・・・(11)
このように、特殊効果処理部401aは、画像LV11上に重畳する文字の大きさが条件(11)の比率になるように調整する。具体的には、図17に示すように、特殊効果処理部401aは、画像LV11上に重畳する各文字の大きさを調整する。その後、特殊効果処理部401aは、画像LV11上に各文字を重畳した処理画像データを生成する。これにより、図18に示すように、特殊効果処理部401aが生成した処理画像データに対応する画像LV12は、撮像装置100から遠ざかる方向に沿って各文字が徐々に小さくなったものとなり、被写体P1の幅の減少に応じて自然な仕上がりになる。なお、特殊効果処理部401aは、画像LV11上に重畳する文字の大きさが撮像装置100からの距離の逆数になるように調整してもよい。ステップS308の後、撮像装置100は、図5のメインルーチンへ戻る。
The special effect processing unit 401a may set the character size in based on the height Yr of the distance D 1 in the region ΔD and image LV 11 a distance D 2, superimposed on the image LV 11 area ΔD To do. For example, the special effect processing unit 401a has a size on each character image in along a direction away from the imaging device 100 (toward the upper end from the lower end on the image LV 11) so characters smaller area ΔD Set. Specifically, the special effect processing unit 401a sets each character in the region ΔD to satisfy the following condition (11) when the size of each character in the region ΔD on the image is X 11 to X 14. Set the size on the image.
X 11 : X 12 : X 13 : X 14 = (1 / (D 2 + 3 · ΔD) −1 / D 1 ) :( 1 / (D 2 + 2 · ΔD) −1 / (D 2 + 3 · ΔD)) : (1 / (D 2 −ΔD) −1 / (D 2 + 2 · ΔD)): (1 / D 2 −1 / (D 1 + ΔD))
(11)
Thus, the special effect processing section 401a is the character size to be superimposed on the image LV 11 is adjusted to be the ratio of the condition (11). Specifically, as illustrated in FIG. 17, the special effect processing unit 401 a adjusts the size of each character superimposed on the image LV 11 . Thereafter, the special effect processing unit 401a generates the processing image data obtained by superimposing the character on the image LV 11. As a result, as shown in FIG. 18, in the image LV 12 corresponding to the processed image data generated by the special effect processing unit 401a, each character gradually becomes smaller along the direction away from the imaging device 100, and the subject The result is a natural finish as the width of P 1 decreases. Incidentally, the special effect processing section 401a is the character size to be superimposed on the image LV 11 may be adjusted to the inverse of the distance from the imaging apparatus 100. After step S308, the imaging apparatus 100 returns to the main routine of FIG.

以上説明した本発明の実施の形態2によれば、撮像装置100から遠ざかる方向に沿って存在する被写体に対して、撮像装置100からの距離毎に異なる文字を重畳した画像処理を行うことができる。そのため、画面に奥行き感を与え、距離の情報(必ずしも絶対的な距離である必要はなく、相対的な遠近情報、凹凸情報でも良い)を有効利用した、豊かな表現力の画像処理、画像表現、さらには画像を利用したユーザへの情報伝達が可能となる。奥行き情報に従った画像表現によって、観察者の視覚を自然に補助し、見間違いを防止し、次の撮影や行動に対して間違いを防ぐ補助情報の表示にも有効で、撮影や観察を補助することが可能となる。   According to the second embodiment of the present invention described above, it is possible to perform image processing in which different characters are superimposed on a subject existing along a direction away from the imaging device 100 for each distance from the imaging device 100. . Therefore, rich image processing and image expression that gives depth to the screen and makes effective use of distance information (not necessarily absolute distance, but relative perspective information and unevenness information may be used). Furthermore, it is possible to transmit information to a user using an image. The image representation according to the depth information naturally assists the viewer's vision, prevents mistakes in viewing, and is useful for displaying supplementary information that prevents mistakes in the next shooting and action. It becomes possible to do.

また、本発明の実施の形態2によれば、距離算出部207cが輪郭検出部207bによって検出された被写体の輪郭を構成する複数の輪郭点までのそれぞれの距離を算出し、特殊効果処理部401aが距離算出部207cによって検出された被写体の輪郭を構成する複数の輪郭点までのそれぞれの距離に対応する位置毎に異なる画像処理を行って視覚的な効果を生じさせる。これにより、コントラストがないシーンで被写体を撮影する場合であっても、撮像装置100からの距離毎に異なる文字を重畳した処理画像データを生成することができる。   Further, according to the second embodiment of the present invention, the distance calculation unit 207c calculates the respective distances to a plurality of contour points constituting the contour of the subject detected by the contour detection unit 207b, and the special effect processing unit 401a. However, different image processing is performed for each position corresponding to each distance to a plurality of contour points constituting the contour of the subject detected by the distance calculation unit 207c, thereby producing a visual effect. As a result, even when a subject is shot in a scene with no contrast, processed image data in which different characters are superimposed for each distance from the imaging apparatus 100 can be generated.

なお、本発明の実施の形態2では、特殊効果処理部401aがテキストデータとして文字を重畳していたが、たとえば図形データとして予め設定された図形や記号等を重畳して処理画像データを生成してもよい。   In the second embodiment of the present invention, the special effect processing unit 401a superimposes characters as text data. However, for example, processing image data is generated by superimposing graphics or symbols set in advance as graphic data. May be.

(実施の形態3)
次に、本発明の実施の形態3について説明する。本実施の形態3にかかる撮像装置は、上述した実施の形態1にかかる撮像装置1の画像処理の構成が異なるとともに、撮像装置が実行する距離アート処理が異なる。このため、以下においては、本実施の形態3にかかる撮像装置の構成を説明後、撮像装置が実行する距離アート処理について説明する。なお、上述した実施の形態1にかかる撮像装置1と同様の構成には同一の符号を付して説明を省略する。
(Embodiment 3)
Next, a third embodiment of the present invention will be described. The imaging apparatus according to the third embodiment differs in the image processing configuration of the imaging apparatus 1 according to the first embodiment described above and the distance art process executed by the imaging apparatus. Therefore, in the following, after describing the configuration of the imaging apparatus according to the third embodiment, the distance art processing executed by the imaging apparatus will be described. In addition, the same code | symbol is attached | subjected to the structure similar to the imaging device 1 concerning Embodiment 1 mentioned above, and description is abbreviate | omitted.

図19は、本実施の形態3にかかる撮像装置の機能構成を示すブロック図である。図19に示す撮像装置110は、レンズ部3と、本体部111と、を備える。本体部111は、上述した実施の形態1の画像処理部207に換えて画像処理部410を備える。   FIG. 19 is a block diagram of a functional configuration of the imaging apparatus according to the third embodiment. An imaging apparatus 110 illustrated in FIG. 19 includes a lens unit 3 and a main body unit 111. The main body unit 111 includes an image processing unit 410 instead of the image processing unit 207 of the first embodiment described above.

画像処理部410は、基本画像処理部207aと、距離算出部207cと、焦点位置取得部207dと、特殊効果処理部207fと、輪郭検出部411と、を有する。   The image processing unit 410 includes a basic image processing unit 207a, a distance calculation unit 207c, a focal position acquisition unit 207d, a special effect processing unit 207f, and a contour detection unit 411.

輪郭検出部411は、撮像素子203が生成した画像データに対応する画像内における被写体の輪郭を検出する。輪郭検出部411は、撮像素子203が生成した画像データの輝度成分を抽出する輝度抽出部411aと、輝度抽出部411aが抽出した輝度成分に基づいて、画像データのコントラストを検出するコントラスト検出部411bと、画像データに対応する画像に対して、コントラスト検出部411bが検出した互いに異なるコントラストのピーク(頂点)で挟まれた領域を判定する領域判定部411cと、を有する。また、領域判定部411cは、タッチパネル217がタッチした位置が互いに異なるコントラストのピークで挟まれた領域であるか否かを判定する。   The contour detection unit 411 detects the contour of the subject in the image corresponding to the image data generated by the image sensor 203. The contour detection unit 411 extracts a luminance component 411a that extracts the luminance component of the image data generated by the image sensor 203, and a contrast detection unit 411b that detects the contrast of the image data based on the luminance component extracted by the luminance extraction unit 411a. And a region determination unit 411c that determines a region sandwiched between different contrast peaks (vertices) detected by the contrast detection unit 411b for an image corresponding to the image data. Further, the region determination unit 411c determines whether or not the position touched by the touch panel 217 is a region sandwiched between different contrast peaks.

次に、撮像装置110が実行する距離アート処理について説明する。図20は、撮像装置110が実行する距離アート処理の概要を示すフローチャートである。   Next, distance art processing executed by the imaging apparatus 110 will be described. FIG. 20 is a flowchart illustrating an overview of the distance art processing executed by the imaging apparatus 110.

図20に示すように、まず、タッチパネル217に対してタッチがあった場合(ステップS401:Yes)、撮像制御部227aは、タッチ位置の画像上に対応する視野領域に対してレンズ部3のピント位置を設定する(ステップS402)。具体的には、撮像制御部227aは、レンズ部3を制御することによって、タッチ位置にレンズ部3のピント位置が合うようにフォーカスレンズ307を光軸O上で移動させる。   As shown in FIG. 20, first, when there is a touch on the touch panel 217 (step S401: Yes), the imaging control unit 227a focuses the lens unit 3 on the visual field region corresponding to the image at the touch position. A position is set (step S402). Specifically, the imaging control unit 227a controls the lens unit 3 to move the focus lens 307 on the optical axis O so that the focus position of the lens unit 3 matches the touch position.

続いて、輝度抽出部411aは、SDRAM223から画像データを取得し、取得した画像データに含まれる輝度成分を抽出し(ステップS403)、コントラスト検出部411bは、輝度抽出部411aが抽出した輝度成分に基づいて、画像データのコントラストを検出する(ステップS404)。   Subsequently, the luminance extraction unit 411a acquires image data from the SDRAM 223, extracts the luminance component included in the acquired image data (step S403), and the contrast detection unit 411b uses the luminance component extracted by the luminance extraction unit 411a. Based on this, the contrast of the image data is detected (step S404).

その後、領域判定部411cは、タッチ位置が互いに異なるコントラストのピークで挟まれた領域内であるか否かを判定する(ステップS405)。   Thereafter, the region determination unit 411c determines whether or not the touch position is within a region sandwiched between different contrast peaks (step S405).

図21は、領域判定部411cによるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。図21において、背面表示部216が表示するライブビュー画像LV21上の横方向をX軸とし、縦方向をY軸とする。また、図21(a)がタッチ位置近傍のX方向の輝度成分を示し、図21(b)がタッチ位置近傍のX方向のコントラストを示す。また、図21(c)がタッチ位置近傍のY方向の輝度成分を示し、図21(d)がタッチ位置近傍のY方向のコントラストを示す。また、曲線BxがX軸方向の輝度成分の変化を示し、曲線CXがX軸方向のコントラストの変化を示し、曲線BがY軸方向の輝度成分の変化を示し、曲線CがY軸方向のコントラストの変化を示す。 FIG. 21 is a schematic diagram illustrating an outline of a determination method for determining a region sandwiched between contrast peaks by the region determination unit 411c. In FIG. 21, the horizontal direction on the live view image LV 21 displayed by the rear display unit 216 is taken as the X axis, and the vertical direction is taken as the Y axis. FIG. 21A shows the luminance component in the X direction near the touch position, and FIG. 21B shows the contrast in the X direction near the touch position. FIG. 21C shows the luminance component in the Y direction near the touch position, and FIG. 21D shows the contrast in the Y direction near the touch position. Further, shows a change of the luminance component of the curve B x is the X-axis direction, the curve C X represents a change in the contrast of the X-axis direction, the curve B y represents the change in the luminance component of the Y-axis direction, the curve C y is A change in contrast in the Y-axis direction is shown.

図21に示すように、領域判定部411cは、タッチ位置がX軸上において2つのコントラストのピークM1,M2に挟まれ、かつ、タッチ位置がY軸上において2つのコントラストのピークM3,M4に挟まれている領域(R1,R2)内であるか否かを判定する。図21に示す場合、領域判定部411cは、タッチ位置が互いに異なるコントラストのピークで挟まれた領域内であると判定する。 As shown in FIG. 21, the region determination unit 411c has a touch position between two contrast peaks M 1 and M 2 on the X axis, and two contrast peaks M 3 on the Y axis. , M 4 , it is determined whether it is within the region (R 1 , R 2 ). In the case illustrated in FIG. 21, the region determination unit 411 c determines that the touch position is within a region sandwiched between different contrast peaks.

領域判定部411cによってタッチ位置が互いに異なるコントラストのピークで挟まれた領域内であると判定された場合(ステップS405:Yes)、撮像装置110は、後述するステップS406へ移行する。これに対して、領域判定部411cによってタッチ位置が互いに異なるコントラストのピークで挟まれた領域内でないと判定された場合(ステップS405:No)、撮像装置110は、ステップS407へ移行する。   If the area determination unit 411c determines that the touch position is within an area sandwiched between different contrast peaks (step S405: Yes), the imaging apparatus 110 proceeds to step S406 described below. On the other hand, when the region determination unit 411c determines that the touch position is not within the region sandwiched between different contrast peaks (step S405: No), the imaging device 110 proceeds to step S407.

ステップS406において、特殊効果処理部207fは、領域判定部411cによってタッチ位置がコントラストのピークで挟まれた領域内に対応する画像データに対して特殊効果処理を実行して処理画像データを生成する。これにより、図22に示すように、表示制御部227bは、特殊効果処理部207fが特殊効果処理を行った画像データに対応するライブビュー画像LV23を背面表示部216に表示させることができる。この結果、ユーザは、直感的な操作によって、コントラストがない被写体に対しても所望の特殊効果処理を行うことができる。なお、図22においては、特殊効果処理の効果を表現するため、ハッチングで表現した。ステップS406の後、撮像装置110は、図5のメインルーチンへ戻る。 In step S406, the special effect processing unit 207f performs the special effect processing on the image data corresponding to the region where the touch position is sandwiched between the contrast peaks by the region determination unit 411c, and generates processed image data. As a result, as shown in FIG. 22, the display control unit 227b can display the live view image LV 23 corresponding to the image data on which the special effect processing unit 207f has performed the special effect processing on the rear display unit 216. As a result, the user can perform a desired special effect process even on a subject having no contrast by an intuitive operation. In FIG. 22, the effect of special effect processing is expressed by hatching. After step S406, the imaging apparatus 110 returns to the main routine of FIG.

ステップS407において、タッチパネル217に対して、スライド操作が行われた場合(ステップS407:Yes)において、領域判定部411cは、スライド操作によるスライド方向に互いに異なるコントラストのピークで挟まれた領域があるか否かを判定する(ステップS408)。   When the slide operation is performed on the touch panel 217 in step S407 (step S407: Yes), the area determination unit 411c determines whether there is an area sandwiched between different contrast peaks in the slide direction by the slide operation. It is determined whether or not (step S408).

図23A〜図23Cは、領域判定部411cによるスライド方向におけるコントラストのピークで挟まれた領域を判定する判定方法の概要を示す模式図である。図23A〜図23Cにおいて、背面表示部216が表示するライブビュー画像LV22上の横方向をX軸とし、縦方向をY軸とする。また、図23A(a)〜図23C(a)がスライド位置のX方向のコントラストを示し、図23A(b)〜図23C(b)がスライド位置のY方向のコントラストを示す。さらに、曲線CXがX軸方向のコントラストの変化を示し、曲線CがY軸方向のコントラストの変化を示す。 FIG. 23A to FIG. 23C are schematic diagrams illustrating an outline of a determination method for determining a region sandwiched between contrast peaks in the slide direction by the region determination unit 411c. 23A to 23C, the horizontal direction on the live view image LV 22 displayed by the rear display unit 216 is defined as the X axis, and the vertical direction is defined as the Y axis. 23A (a) to 23C (a) show the contrast in the X direction of the slide position, and FIGS. 23A (b) to 23C (b) show the contrast in the Y direction of the slide position. Curve C X represents a change in the contrast of the X-axis direction, the curve C y indicates a change in contrast in the Y-axis direction.

図23A〜図23Cに示すように、領域判定部411cは、タッチパネル217上におけるスライド操作のスライド方向(矢印Z方向)に沿ってX軸上に2つのコントラストのピークM1,M2に挟まれ、かつ、Y軸上に2つのコントラストのピークM3,M4があるか否かを判定する。図23A〜図23Cに示す場合、領域判定部411cは、スライド操作によるタッチパネル217上のスライド方向にコントラストのピークで挟まれた領域があると判定する。この場合、撮像制御部227aは、タッチパネル217から入力されるタッチ位置の軌跡に基づいて、レンズ部3のフォーカスレンズ307を光軸O方向に沿って移動させることによって、レンズ部3の焦点位置をスライド方向に追従させる。 As shown in FIGS. 23A to 23C, the region determination unit 411c is sandwiched between two contrast peaks M 1 and M 2 on the X axis along the slide direction (arrow Z direction) of the slide operation on the touch panel 217. In addition, it is determined whether or not there are two contrast peaks M 3 and M 4 on the Y axis. In the case illustrated in FIGS. 23A to 23C, the region determination unit 411c determines that there is a region sandwiched at a contrast peak in the sliding direction on the touch panel 217 by the slide operation. In this case, the imaging control unit 227a moves the focus lens 307 of the lens unit 3 along the optical axis O direction based on the locus of the touch position input from the touch panel 217, thereby changing the focal position of the lens unit 3. Follow the slide direction.

ステップS408において、領域判定部411cがスライド操作によるスライド方向に互いに異なるコントラストのピークで挟まれた領域があると判定した場合(ステップS408:Yes)、特殊効果処理部207fは、領域判定部411cによって判定された領域に対応する画像データに対して特殊効果処理を実行して処理画像データを生成する(ステップS409)。これにより、図24に示すように、表示制御部227bは、特殊効果処理部207fが特殊効果処理を行った処理画像データに対応するライブビュー画像LV24を背面表示部216に表示させることができる。なお、図24においては、特殊効果処理の効果を表現するため、ハッチングで表現した。ステップS409の後、撮像装置110は、図5のメインルーチンへ戻る。 In step S408, when the region determining unit 411c determines that there is a region sandwiched between different contrast peaks in the sliding direction by the slide operation (step S408: Yes), the special effect processing unit 207f is operated by the region determining unit 411c. Special effect processing is executed on the image data corresponding to the determined area to generate processed image data (step S409). Accordingly, as illustrated in FIG. 24, the display control unit 227b can display the live view image LV 24 corresponding to the processed image data on which the special effect processing unit 207f has performed the special effect processing on the rear display unit 216. . In FIG. 24, the effect of the special effect process is expressed by hatching. After step S409, the imaging apparatus 110 returns to the main routine of FIG.

ステップS407において、タッチパネル217に対して、スライド操作が行われていない場合(ステップS407:No)、撮像装置110は、図5のメインルーチンへ戻る。   In step S407, when the slide operation is not performed on the touch panel 217 (step S407: No), the imaging device 110 returns to the main routine of FIG.

ステップS408において、領域判定部411cがスライド操作によるスライド方向に互いに異なるコントラストのピークで挟まれた領域がないと判定した場合(ステップS408:No)、撮像装置110は、図5のメインルーチンへ戻る。   In step S408, when the region determination unit 411c determines that there is no region sandwiched by different contrast peaks in the slide direction by the slide operation (step S408: No), the imaging device 110 returns to the main routine of FIG. .

ステップS401において、タッチパネル217に対してタッチがない場合(ステップS401:No)、撮像装置110は、図5のメインルーチンへ戻る。   In step S401, when there is no touch on the touch panel 217 (step S401: No), the imaging apparatus 110 returns to the main routine of FIG.

以上説明した本発明の実施の形態3によれば、撮像装置110から遠ざかる方向に沿って存在する被写体に対して、撮像装置110からの距離毎に異なる画像処理を行うことができる。   According to the third embodiment of the present invention described above, it is possible to perform different image processing on the subject existing along the direction away from the imaging device 110 for each distance from the imaging device 110.

また、本発明の実施の形態3によれば、特殊効果処理部207fが領域判定部411cによってタッチパネル217から入力される位置信号に対応する位置が互いに異なるコントラストのピークで挟まれたと判定された領域に対応する画像データに対して、特殊効果処理を行った処理画像データを生成するので、コントラストがないシーンで被写体を撮影する場合であっても、撮像装置110からの距離毎に異なる画像処理を行った処理画像データを生成することができる。そのため、距離によって移り変わる光の表現や、陰影の表現で、べた塗り風の看板表現ではなく、さらに芸術的な表現が可能である。もちろん、ゴーギャンのような「クロワゾニズム」風の表現でも芸術的ではあるが、リアリティを追求すれば、奥行き感の追求はルネサンス以来、重要な表現技法である。また、画家の筆遣いや、刷毛の流れなど、同じ色の面であっても、何らかのリズム感が、作品に躍動感を与えることがあり、特定の規則に従った(ここでは遠近)、変化のある画像処理によって同様の効果が期待できる。つまり、画面に奥行き感やリズム感を与え、距離の情報(必ずしも絶対的な距離である必要はなく、相対的な遠近情報、凹凸情報でも良い)を有効利用した、変化に富む、豊かな画像表現力が得られる。   Further, according to the third embodiment of the present invention, the region in which the special effect processing unit 207f determines that the position corresponding to the position signal input from the touch panel 217 by the region determination unit 411c is sandwiched between different contrast peaks. Since the processed image data is generated by performing the special effect processing on the image data corresponding to the image data, different image processing is performed for each distance from the imaging device 110 even when the subject is photographed in a scene having no contrast. Processed image data can be generated. Therefore, the expression of light that changes with distance and the expression of shadows can be expressed more artistic than a solid signboard. Of course, the expression of “crois-zonism” like Gauguin is also artistic, but pursuing a sense of depth has been an important expression technique since the Renaissance. Also, even if the surface of the same color, such as the painter's writing or the flow of the brush, some sense of rhythm may give the work a sense of dynamism. A similar effect can be expected by certain image processing. In other words, a rich and varied image that gives a sense of depth and rhythm to the screen, and makes effective use of distance information (not necessarily absolute distance, but relative perspective information and unevenness information may be used). Expressive power is gained.

(実施の形態4)
次に、本発明の実施の形態4について説明する。本実施の形態4にかかる撮像装置は、上述した実施の形態3にかかる撮像装置110と同様の構成を有し、撮像装置が実行する距離アート処理が異なる。このため、以下においては、本実施の形態4にかかる撮像装置が実行する距離アート処理について説明する。なお、上述した実施の形態3にかかる撮像装置110と同様の構成には同一の符号を付して説明を省略する。
(Embodiment 4)
Next, a fourth embodiment of the present invention will be described. The imaging apparatus according to the fourth embodiment has a configuration similar to that of the imaging apparatus 110 according to the third embodiment described above, and the distance art processing executed by the imaging apparatus is different. For this reason, hereinafter, the distance art process executed by the imaging apparatus according to the fourth embodiment will be described. In addition, the same code | symbol is attached | subjected to the structure similar to the imaging device 110 concerning Embodiment 3 mentioned above, and description is abbreviate | omitted.

図25は、本実施の形態4にかかる撮像装置110が実行する距離アート処理の概要を示すフローチャートである。図25において、ステップS501〜S506は、図20のステップS401〜ステップS406にそれぞれ対応する。   FIG. 25 is a flowchart illustrating an outline of the distance art processing executed by the imaging apparatus 110 according to the fourth embodiment. In FIG. 25, steps S501 to S506 correspond to steps S401 to S406 in FIG. 20, respectively.

ステップS507において、タッチパネル217に対してタッチがあった場合(ステップS507:Yes)、撮像装置110は、ステップS502へ戻る。これに対して、タッチパネル217に対してタッチがない場合(ステップS507:No)、撮像装置110は、ステップS508へ移行する。   If the touch panel 217 is touched in step S507 (step S507: Yes), the imaging device 110 returns to step S502. On the other hand, when there is no touch on the touch panel 217 (step S507: No), the imaging device 110 proceeds to step S508.

続いて、特殊効果処理部207fは、処理画像データに対応する処理画像における未画像処理の領域に対して、他の領域と異なる特殊効果処理を実行する(ステップS508)。具体的には、図26に示すように、特殊効果処理部207fは、処理画像データに対応する処理画像LV31における未画像処理の領域Q1に対して、他の領域と異なる特殊効果処理を実行する(図26(a)→図26(b))。これにより、図26(b)に示すように、表示制御部227bは、特殊効果処理部207fが特殊効果処理を行った処理画像データに対応するライブビュー画像LV32を背面表示部216に表示させることができる。なお、図26においては、特殊効果処理の効果を表現するため、ハッチングで表現した。ステップS508の後、撮像装置110は、図5のメインルーチンへ戻る。 Subsequently, the special effect processing unit 207f executes special effect processing different from that for other regions on the unimaged region in the processed image corresponding to the processed image data (step S508). Specifically, as shown in FIG. 26, the special effect processing unit 207f executes special effect processing different from other regions on the unimaged region Q1 in the processed image LV 31 corresponding to the processed image data. (FIG. 26 (a) → FIG. 26 (b)). Accordingly, as illustrated in FIG. 26B, the display control unit 227b causes the rear display unit 216 to display the live view image LV 32 corresponding to the processed image data on which the special effect processing unit 207f has performed the special effect processing. be able to. In FIG. 26, the effect of the special effect processing is expressed by hatching. After step S508, the imaging apparatus 110 returns to the main routine of FIG.

以上説明した本発明の実施の形態4によれば、撮像装置110から遠ざかる方向に沿って存在する被写体に対して、撮像装置110からの距離毎に異なる画像処理を行うことができる。そのため、画面に奥行き感を与え、距離の情報(必ずしも絶対的な距離である必要はなく、相対的な遠近情報、凹凸情報でも良い)を有効利用した、豊かな表現力の画像処理、画像表現、さらには画像を利用したユーザへの情報伝達が可能となる。また、ユーザーの好みを、タッチによって直感的に画像表現に反映させられることが特徴となっている。画像を領域分割し、その領域内の奥行き方向の位置変化に従った画像処理を行っている。   According to the fourth embodiment of the present invention described above, different image processing can be performed on the subject existing along the direction away from the imaging device 110 for each distance from the imaging device 110. Therefore, rich image processing and image expression that gives depth to the screen and makes effective use of distance information (not necessarily absolute distance, but relative perspective information and unevenness information may be used). Furthermore, it is possible to transmit information to a user using an image. In addition, the user's preference can be intuitively reflected in the image expression by touch. The image is divided into regions, and image processing is performed according to the position change in the depth direction within the region.

(実施の形態5)
次に、本発明の実施の形態5について説明する。本実施の形態5は、上述した実施の形態1にかかる撮像装置1の構成と異なるうえ、撮像装置が実行する処理も異なる。このため、以下においては、本実施の形態5にかかる撮像装置の構成を説明後、本実施の形態5にかかる撮像装置が実行する処理について説明する。なお、上述した実施の形態1にかかる撮像装置1と同様の構成には同一の符号を付して説明を省略する。
(Embodiment 5)
Next, a fifth embodiment of the present invention will be described. The fifth embodiment is different from the configuration of the imaging device 1 according to the first embodiment described above, and the processing executed by the imaging device is also different. Therefore, in the following, after the configuration of the imaging apparatus according to the fifth embodiment is described, processing executed by the imaging apparatus according to the fifth embodiment will be described. In addition, the same code | symbol is attached | subjected to the structure similar to the imaging device 1 concerning Embodiment 1 mentioned above, and description is abbreviate | omitted.

図27は、本実施の形態5にかかる撮像装置の機能構成を示すブロック図である。図27に示す撮像装置120は、レンズ部501と、撮像部502と、輪郭検出部503と、画像処理部504と、表示部505と、入力部506と、記録部507と、を備える。   FIG. 27 is a block diagram of a functional configuration of the imaging apparatus according to the fifth embodiment. 27 includes a lens unit 501, an imaging unit 502, a contour detection unit 503, an image processing unit 504, a display unit 505, an input unit 506, and a recording unit 507.

レンズ部501は、一または複数のレンズおよび絞り等を用いて構成され、被写体像を撮像部502の受光面に結像する。   The lens unit 501 is configured using one or a plurality of lenses and a diaphragm, and forms a subject image on the light receiving surface of the imaging unit 502.

撮像部502は、レンズ部501が結像した被写体像を受光して光電変換を行うことによって被写体の画像データを生成する。撮像部502は、CCD(Charge Coupled Device)またはCMOSを用いて構成される。撮像部502は、画像データを輪郭検出部503および画像処理部504へ出力する。   The imaging unit 502 receives the subject image formed by the lens unit 501 and performs photoelectric conversion to generate image data of the subject. The imaging unit 502 is configured using a CCD (Charge Coupled Device) or a CMOS. The imaging unit 502 outputs the image data to the contour detection unit 503 and the image processing unit 504.

輪郭検出部503は、撮像部502が生成した画像データに対応する画像内における被写体の輪郭を検出する。具体的には、輪郭検出部503は、画像データの輝度成分を抽出し、この抽出した輝度成分に対して2次微分の絶対値を算出することによって、被写体の輪郭(コントラスト)を構成する複数の輪郭点を検出する。なお、輪郭検出部503は、画像データに対してエッジ検出処理を行うことによって、被写体の輪郭を構成する輪郭点を検出してもよい。さらに、輪郭検出部503は、画像データに対して周知の技術を用いて画像内における被写体の輪郭を検出してもよい。   The contour detection unit 503 detects the contour of the subject in the image corresponding to the image data generated by the imaging unit 502. Specifically, the contour detection unit 503 extracts a luminance component of the image data, and calculates an absolute value of the second derivative for the extracted luminance component, thereby forming a plurality of contours (contrast) of the subject. The contour point of is detected. Note that the contour detection unit 503 may detect contour points constituting the contour of the subject by performing edge detection processing on the image data. Further, the contour detection unit 503 may detect the contour of the subject in the image using a known technique for the image data.

画像処理部504は、撮像部502が生成した画像データに対して、撮像部502から輪郭検出部503によって検出された被写体の輪郭を構成する複数の輪郭点の遠近分布に従って被写体の輪郭点で定まる被写体領域毎に異なる画像処理、たとえば画像処理のパラメータを変更した画像処理を行った処理画像データを生成する。なお、本実施の形態5では、画像処理部504が特殊効果処理部としての機能を有する。   The image processing unit 504 determines the contour points of the subject in accordance with the perspective distribution of a plurality of contour points constituting the contour of the subject detected from the imaging unit 502 by the contour detection unit 503 with respect to the image data generated by the imaging unit 502. Processed image data is generated by performing different image processing for each subject area, for example, image processing with changed image processing parameters. In the fifth embodiment, the image processing unit 504 functions as a special effect processing unit.

表示部505は、画像処理部504が生成した処理画像データに対応する画像を表示する。表示部505は、液晶または有機ELからなる表示パネルおよび駆動ドライバ等を用いて構成される。   The display unit 505 displays an image corresponding to the processed image data generated by the image processing unit 504. The display unit 505 is configured using a display panel made of liquid crystal or organic EL, a drive driver, and the like.

入力部506は、撮像装置120に撮影を指示する。入力部506は、複数のボタン等を用いて構成される。   The input unit 506 instructs the imaging device 120 to perform shooting. The input unit 506 is configured using a plurality of buttons and the like.

記録部507は、画像処理部504が生成した処理画像データを生成する。記録部507は、記録媒体等を用いて構成される。   The recording unit 507 generates processed image data generated by the image processing unit 504. The recording unit 507 is configured using a recording medium or the like.

以上の構成を有する撮像装置120が実行する処理について説明する。図28は、撮像装置120が実行する処理の概要を示すフローチャートである。   Processing executed by the imaging apparatus 120 having the above configuration will be described. FIG. 28 is a flowchart illustrating an outline of processing executed by the imaging apparatus 120.

図28に示すように、まず、撮像部502は、画像データを生成し(ステップS601)、輪郭検出部503は、撮像部502が生成した画像データに対応する画像内における被写体の輪郭を検出する(ステップS602)。   As shown in FIG. 28, first, the imaging unit 502 generates image data (step S601), and the contour detection unit 503 detects the contour of the subject in the image corresponding to the image data generated by the imaging unit 502. (Step S602).

続いて、画像処理部504は、撮像部502が生成した画像データに対して、撮像部502から輪郭検出部503によって検出された被写体の輪郭を構成する複数の輪郭点の遠近分布に従って被写体の輪郭点で定まる被写体領域毎に異なる画像処理を行って処理画像データを生成する(ステップS603)。   Subsequently, the image processing unit 504 applies the contour of the subject to the image data generated by the imaging unit 502 according to the perspective distribution of a plurality of contour points that form the contour of the subject detected from the imaging unit 502 by the contour detection unit 503. Different image processing is performed for each subject area determined by points to generate processed image data (step S603).

その後、表示部505は、画像処理部504が生成した処理画像データに対応するライブビュー画像を表示する(ステップS604)。   Thereafter, the display unit 505 displays a live view image corresponding to the processed image data generated by the image processing unit 504 (step S604).

続いて、入力部506から撮影の指示があった場合(ステップS605:Yes)、撮像装置120は、撮影を行う(ステップS606)。この場合、撮像装置120は、画像処理部504が生成した処理画像データを記録部507に記録する。ステップS606の後、撮像装置120は、本処理を終了する。これに対して、入力部506から撮影の指示がない場合(ステップS605:No)、撮像装置120は、ステップS601へ戻る。   Subsequently, when there is a shooting instruction from the input unit 506 (step S605: Yes), the imaging device 120 performs shooting (step S606). In this case, the imaging apparatus 120 records the processed image data generated by the image processing unit 504 in the recording unit 507. After step S606, the imaging apparatus 120 ends this process. On the other hand, when there is no instruction | indication of imaging | photography from the input part 506 (step S605: No), the imaging device 120 returns to step S601.

以上説明した本発明の実施の形態5によれば、撮像装置120から遠ざかる方向に沿って存在する被写体に対して、撮像装置120からの距離毎に異なる画像処理を行うことができる。そのため、画面に奥行き感を与え、距離の情報、奥行き情報、凸凹情報を有効利用した、豊かな表現力の画像処理、画像表現、さらには画像を利用したユーザーへの情報伝達が可能となる。このように、本実施例では、画像から得られる輪郭等の画像変化の情報(またはそれによる領域分割)や距離情報などを総合的に判断して、簡単かつ精密な画像表現が可能となる。また、輪郭のみならず、画面の端部も利用している。   According to the fifth embodiment of the present invention described above, different image processing can be performed on the subject existing along the direction away from the imaging device 120 for each distance from the imaging device 120. Therefore, it is possible to give a feeling of depth to the screen, and to perform image processing with rich expressive power, image expression, and further information transmission to the user using the image by effectively using distance information, depth information, and unevenness information. As described above, in this embodiment, it is possible to make a simple and precise image expression by comprehensively determining image change information (or region divisions) and distance information obtained from an image. Further, not only the contour but also the edge of the screen is used.

また、本発明の実施の形態5では、画像処理部504が撮像部502から輪郭検出部503によって検出された被写体の輪郭を構成する複数の輪郭点の各々までの距離変化に応じて定まる領域毎に異なる画像処理を行って処理画像データを生成してもよい。これにより、被写体の距離に従って変化させられる画像処理を行うことができる。   Further, in the fifth embodiment of the present invention, each area determined by the image processing unit 504 according to a change in distance from the imaging unit 502 to each of a plurality of contour points constituting the contour of the subject detected by the contour detection unit 503. Alternatively, different image processing may be performed to generate processed image data. Thereby, it is possible to perform image processing that is changed according to the distance of the subject.

また、本発明の実施の形態5では、画像処理部504が撮像部502から輪郭検出部503によって検出された被写体の輪郭を構成する複数の輪郭点の各々までの奥行きに応じて定まる領域毎に異なる画像処理を行って処理画像データを生成してもよい。ここで、奥行きとは、撮像装置120の視野内で撮像装置120から遠ざかる方向である。これにより、被写体の距離に従って変化させられる画像処理を行うことができる。   Further, in the fifth embodiment of the present invention, the image processing unit 504 is determined for each region determined according to the depth from the imaging unit 502 to each of a plurality of contour points constituting the contour of the subject detected by the contour detection unit 503. Different image processing may be performed to generate processed image data. Here, the depth is a direction away from the imaging device 120 within the field of view of the imaging device 120. Thereby, it is possible to perform image processing that is changed according to the distance of the subject.

(その他の実施の形態)
また、本発明にかかる撮像装置は、撮像部が生成した画像データに対応する画像内を複数の領域毎に分割する分割ステップと、分割ステップで分割した複数の領域の各々の奥行き方向の位置変化情報を取得する取得ステップと、分割ステップで分割された複数の領域の各々に対して、取得ステップで取得した位置変化情報に従った画像処理を行って処理画像データを生成する生成ステップと、を含む撮像方法を行うことができる。ここで、位置変化情報とは、撮像装置の視野内で撮像装置からの距離、輝度およびコントラストである。これにより、被写体の奥行き方向の位置変化情報に従って変化させられる画像処理を行うことができる。
(Other embodiments)
In addition, an imaging apparatus according to the present invention includes a division step that divides an image corresponding to image data generated by an imaging unit into a plurality of areas, and a position change in the depth direction of each of the plurality of areas divided in the division step. An acquisition step of acquiring information, and a generation step of generating processed image data by performing image processing according to the position change information acquired in the acquisition step for each of the plurality of regions divided in the division step. Including imaging methods can be performed. Here, the position change information is the distance, brightness, and contrast from the imaging device within the field of view of the imaging device. Accordingly, it is possible to perform image processing that is changed according to position change information in the depth direction of the subject.

また、本発明にかかる撮像装置は、デジタル一眼レフカメラ以外にも、たとえデジタルカメラ、デジタルビデオカメラおよび撮像機能を有する携帯電話やタブレット型携帯機器等の電子機器にも適用することができる。   In addition to the digital single-lens reflex camera, the imaging apparatus according to the present invention can be applied to electronic devices such as a digital camera, a digital video camera, and a mobile phone or a tablet-type mobile device having an imaging function.

また、本発明にかかる撮像装置に実行させるプログラムは、インストール可能な形式又は実行可能な形式のファイルデータでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)、USB媒体、フラッシュメモリ等のコンピュータで読み取り可能な記録媒体に記録されて提供される。   The program executed by the imaging apparatus according to the present invention is file data in an installable format or executable format, and is a CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk), USB medium. The program is recorded on a computer-readable recording medium such as a flash memory.

また、本発明にかかる撮像装置に実行させるプログラムは、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。さらに、本発明にかかる撮像装置に実行させるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   The program to be executed by the imaging apparatus according to the present invention may be configured to be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Furthermore, the program to be executed by the imaging apparatus according to the present invention may be provided or distributed via a network such as the Internet.

なお、本明細書におけるフローチャートの説明では、「まず」、「その後」、「続いて」等の表現を用いてステップ間の処理の前後関係を明示していたが、本発明を実施するために必要な処理の順序は、それらの表現によって一意的に定められるわけではない。すなわち、本明細書で記載したフローチャートにおける処理の順序は、矛盾のない範囲で変更することができる。   In the description of the flowchart in the present specification, the context of the processing between steps is clearly indicated using expressions such as “first”, “after”, “follow”, etc., in order to implement the present invention. The order of processing required is not uniquely determined by their representation. That is, the order of processing in the flowcharts described in this specification can be changed within a consistent range.

このように、本発明は、ここでは記載していない様々な実施の形態を含みうるものであり、特許請求の範囲によって特定される技術的思想の範囲内で種々の設計変更等を行うことが可能である。   As described above, the present invention can include various embodiments not described herein, and various design changes and the like can be made within the scope of the technical idea specified by the claims. Is possible.

1,100,110,120 撮像装置
2,101,111 本体部
3,501 レンズ部
201 シャッタ
202 シャッタ駆動部
203 撮像素子
204 撮像素子駆動部
205 信号処理部
206 A/D変換部
207,401,410,504 画像処理部
207a 基本画像処理部
207b,411,503 輪郭検出部
207c 距離算出部
207d 焦点位置取得部
207e 形状判定部
207f,401a 特殊効果処理部
208 AE処理部
209 AF処理部
210 画像圧縮展開部
211,506 入力部
211b レリーズスイッチ
212 アクセサリ通信部
213 接眼表示部
214 アイセンサ
215 可動部
216 背面表示部
217 タッチパネル
218 回動判定部
219 状態検出部
220 時計
221 記録媒体
222 メモリI/F
223 SDRAM
224 Flashメモリ
225 本体通信部
226 バス
227 本体制御部
227a 撮像制御部
227b 表示制御部
301 ズームレンズ
307 フォーカスレンズ
313 レンズ制御部
411a 輝度抽出部
411b コントラスト検出部
411c 領域判定部
502 撮像部
505 表示部
507 記録部
DESCRIPTION OF SYMBOLS 1,100,110,120 Image pick-up device 2,101,111 Main body part 3,501 Lens part 201 Shutter 202 Shutter drive part 203 Image pick-up element 204 Image pick-up element drive part 205 Signal processing part 206 A / D conversion part 207,401,410 , 504 Image processing unit 207a Basic image processing unit 207b, 411, 503 Outline detection unit 207c Distance calculation unit 207d Focus position acquisition unit 207e Shape determination unit 207f, 401a Special effect processing unit 208 AE processing unit 209 AF processing unit 210 Image compression / decompression Unit 211, 506 input unit 211b release switch 212 accessory communication unit 213 eyepiece display unit 214 eye sensor 215 movable unit 216 rear display unit 217 touch panel 218 rotation determination unit 219 state detection unit 220 clock 221 recording medium 222 memory Li I / F
223 SDRAM
224 Flash memory 225 Main body communication unit 226 Bus 227 Main body control unit 227a Imaging control unit 227b Display control unit 301 Zoom lens 307 Focus lens 313 Lens control unit 411a Luminance extraction unit 411b Contrast detection unit 411c Area determination unit 502 Imaging unit 505 Display unit 507 Recording section

Claims (13)

被写体を撮像して該被写体の画像データを取得する撮像部と、
前記撮像部が生成した前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出部と、
前記被写体の輪郭点の少なくとも一部までの距離を算出する距離算出部と、
前記撮像部が生成した前記画像データに対して、前記撮像部から前記被写体の輪郭を構成する複数の輪郭点の遠近分布に従ってパラメータを徐々に変更した画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理部と、
を備えることを特徴とする電子機器。
An imaging unit for imaging a subject and acquiring image data of the subject;
A contour detection unit that detects a contour of the subject in an image corresponding to the image data generated by the imaging unit;
A distance calculation unit for calculating a distance to at least a part of the contour point of the subject;
The image data generated by the imaging unit is subjected to image processing in which parameters are gradually changed according to the perspective distribution of a plurality of contour points that form the contour of the subject from the imaging unit, thereby producing a visual effect. A special effect processing unit for generating processed image data;
An electronic device comprising:
前記特殊効果処理部は、前記距離算出部が算出した前記距離に応じて定まる被写体領域毎に、前記画像処理を行って前記処理画像データを生成することを特徴とする請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the special effect processing unit generates the processed image data by performing the image processing for each subject region determined according to the distance calculated by the distance calculation unit. machine. 焦点調整可能な機構を有する光学系と、
前記光学系の光軸に沿って前記被写体の形状が同じであるか否かを判定する形状判定部と、
をさらに備えることを特徴とする請求項2に記載の電子機器。
An optical system having a focus adjustable mechanism;
A shape determining unit that determines whether or not the shape of the subject is the same along the optical axis of the optical system;
The electronic apparatus according to claim 2, further comprising:
前記撮像部は、
前記被写体の画像データを生成する撮像画素と、
前記焦点を検出するための焦点データを生成する焦点検出用画素と、
を有し、
前記距離算出部は、前記焦点データに基づいて、前記距離を算出することを特徴とする請求項2に記載の電子機器。
The imaging unit
An imaging pixel for generating image data of the subject;
Focus detection pixels for generating focus data for detecting the focus; and
Have
The electronic device according to claim 2, wherein the distance calculation unit calculates the distance based on the focus data.
前記輪郭検出部は、
前記画像データの輝度成分を抽出する輝度抽出部と、
前記輝度抽出部が抽出した前記輝度成分に基づいて、前記画像データのコントラストを検出するコントラスト検出部と、
前記画像データに対応する画像に対して、前記コントラスト検出部が検出した互いに異なるコントラストのピークで挟まれた領域を判定する領域判定部と、
を有し、
前記特殊効果処理部は、前記領域判定部が判定した前記領域に対して、前記画像処理を行って前記処理画像データを生成することを特徴とする請求項1に記載の電子機器。
The contour detection unit
A luminance extraction unit for extracting a luminance component of the image data;
A contrast detection unit that detects a contrast of the image data based on the luminance component extracted by the luminance extraction unit;
An area determination unit for determining an area sandwiched between different contrast peaks detected by the contrast detection unit for an image corresponding to the image data;
Have
The electronic device according to claim 1, wherein the special effect processing unit performs the image processing on the region determined by the region determination unit to generate the processed image data.
前記画像を表示可能な表示部と、
前記画像内における所定の位置を指示する指示信号の入力を受け付ける入力部と、
をさらに備え、
前記領域判定部は、前記入力部が入力を受け付けた前記指示信号に対応する位置が前記領域内であるか否かを判定することを特徴とする請求項5に記載の電子機器。
A display unit capable of displaying the image;
An input unit for receiving an input of an instruction signal indicating a predetermined position in the image;
Further comprising
The electronic device according to claim 5, wherein the region determination unit determines whether or not a position corresponding to the instruction signal received by the input unit is within the region.
焦点調整可能な機構を有する光学系と、
前記光学系を該光学系の光軸に沿って移動させることによって、焦点位置を変更する撮像制御部と、
をさらに備え、
前記入力部は、前記表示部の表示画面上に重畳して設けられ、外部からの接触を検出し、この検出した位置に応じた位置信号の入力を受け付けるタッチパネルであり、
前記撮像制御部は、前記タッチパネルから入力される前記位置信号の変化に応じて、前記光学系を移動させて焦点位置を変更し、
前記領域判定部は、前記光学系が移動する毎に、前記指示信号に対応する位置が前記領域内であるか否かを判定することを特徴とする請求項6に記載の電子機器。
An optical system having a focus adjustable mechanism;
An imaging control unit that changes a focal position by moving the optical system along the optical axis of the optical system;
Further comprising
The input unit is a touch panel that is provided so as to be superimposed on the display screen of the display unit, detects a contact from the outside, and receives an input of a position signal according to the detected position,
The imaging control unit moves the optical system according to a change in the position signal input from the touch panel, and changes a focal position.
The electronic apparatus according to claim 6, wherein the area determination unit determines whether or not a position corresponding to the instruction signal is within the area every time the optical system moves.
前記特殊効果処理部は、
前記画像データに対して、複数の画像処理を組み合わせることにより、視覚的な効果を生じさせる特殊効果処理を行って前記処理画像データを生成することを特徴とする請求項1に記載の電子機器。
The special effect processing unit
The electronic apparatus according to claim 1, wherein the processed image data is generated by performing a special effect process that generates a visual effect by combining a plurality of image processes on the image data.
前記特殊効果処理で組み合わされる画像処理は、ぼかし処理、シェーディング追加処理、ノイズ重畳処理、彩度変更処理およびコントラスト強調処理のいずれか1つ以上であることを特徴とする請求項8に記載の電子機器。   9. The electronic apparatus according to claim 8, wherein the image processing combined in the special effect processing is at least one of blurring processing, shading addition processing, noise superimposition processing, saturation change processing, and contrast enhancement processing. machine. 前記特殊効果処理部は、
前記距離算出部が算出した前記距離に基づいて、前記画像データに対応する画像上にテキストデータ、図形データおよび記号データのいずれか1つ以上を重畳する特殊効果処理を行って前記処理画像データを生成することを特徴とする請求項1に記載の電子機器。
The special effect processing unit
Based on the distance calculated by the distance calculation unit, special effect processing is performed to superimpose any one or more of text data, graphic data, and symbol data on an image corresponding to the image data, and the processed image data is processed. The electronic device according to claim 1, wherein the electronic device is generated.
被写体を撮像して該被写体の画像データを生成する撮像装置が実行する撮像方法であって、
前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出ステップと、
前記画像データに対して、当該撮像装置から前記被写体の輪郭を構成する複数の輪郭点の遠近分布に従ってパラメータを徐々に変換した画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理ステップと、
を含むことを特徴とする撮像方法。
An imaging method executed by an imaging device that images a subject and generates image data of the subject,
A contour detecting step for detecting a contour of the subject in an image corresponding to the image data;
The image data is subjected to image processing in which parameters are gradually converted in accordance with the perspective distribution of a plurality of contour points constituting the contour of the subject from the imaging device, thereby generating processed image data that produces a visual effect. Special effects processing steps;
An imaging method comprising:
被写体を撮像して該被写体の画像データを生成する撮像装置が実行する撮像方法であって、
前記画像データに対応する画像内を複数の領域毎に分割する分割ステップと、
前記分割ステップで分割した複数の領域の各々の奥行き方向の位置変化情報を取得する取得ステップと、
前記分割ステップで分割された前記複数の領域の各々に対して、前記取得ステップで取得した前記位置変化情報に従ってパラメータを徐々に変換した画像処理を行って処理画像データを生成する生成ステップと、
を含むことを特徴とする撮像方法。
An imaging method executed by an imaging device that images a subject and generates image data of the subject,
A dividing step of dividing the image corresponding to the image data into a plurality of regions;
An acquisition step of acquiring position change information in the depth direction of each of the plurality of regions divided in the division step;
For each of the plurality of regions divided in the division step, a generation step for generating processed image data by performing image processing in which parameters are gradually converted according to the position change information acquired in the acquisition step;
An imaging method comprising:
被写体を撮像して該被写体の画像データを生成する撮像装置に、
前記画像データに対応する画像内における前記被写体の輪郭を検出する輪郭検出ステップと、
前記画像データに対して、当該撮像装置から前記被写体の輪郭を構成する複数の輪郭点の各々までの奥行きに応じて、パラメータを徐々に変換した画像処理を行って視覚的な効果を生じさせる処理画像データを生成する特殊効果処理ステップと、
を実行させることを特徴とするプログラム。
An imaging device that images a subject and generates image data of the subject.
A contour detecting step for detecting a contour of the subject in an image corresponding to the image data;
A process for producing a visual effect by performing image processing with gradually converting parameters according to the depth from the imaging device to each of a plurality of contour points constituting the contour of the subject on the image data Special effect processing steps for generating image data;
A program characterized by having executed.
JP2016129369A 2016-06-29 2016-06-29 Electronic device, imaging method and program Active JP6320463B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016129369A JP6320463B2 (en) 2016-06-29 2016-06-29 Electronic device, imaging method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016129369A JP6320463B2 (en) 2016-06-29 2016-06-29 Electronic device, imaging method and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014247104A Division JP5964937B2 (en) 2014-12-05 2014-12-05 Image processing method, electronic device, and program

Publications (2)

Publication Number Publication Date
JP2016208522A true JP2016208522A (en) 2016-12-08
JP6320463B2 JP6320463B2 (en) 2018-05-09

Family

ID=57490783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016129369A Active JP6320463B2 (en) 2016-06-29 2016-06-29 Electronic device, imaging method and program

Country Status (1)

Country Link
JP (1) JP6320463B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157584A (en) * 2003-11-21 2005-06-16 Nippon Telegr & Teleph Corp <Ntt> Device, method and program for generating pseudo three-dimensional image
JP2009110137A (en) * 2007-10-29 2009-05-21 Ricoh Co Ltd Image processor, image processing method, and image processing program
JP2011039918A (en) * 2009-08-17 2011-02-24 Sony Corp Apparatus and method for processing image and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157584A (en) * 2003-11-21 2005-06-16 Nippon Telegr & Teleph Corp <Ntt> Device, method and program for generating pseudo three-dimensional image
JP2009110137A (en) * 2007-10-29 2009-05-21 Ricoh Co Ltd Image processor, image processing method, and image processing program
JP2011039918A (en) * 2009-08-17 2011-02-24 Sony Corp Apparatus and method for processing image and program

Also Published As

Publication number Publication date
JP6320463B2 (en) 2018-05-09

Similar Documents

Publication Publication Date Title
JP5769768B2 (en) Imaging apparatus, imaging method, and program
JP4823970B2 (en) Image editing device
JP4787180B2 (en) Imaging apparatus and imaging method
KR20100039430A (en) Image processor, image processing method, digital camera, and imaging apparatus
JP2011010194A (en) Blurred image forming apparatus and camera provided with the same
JP5400486B2 (en) Imaging apparatus and imaging method
JP6021512B2 (en) Imaging device
JP5964937B2 (en) Image processing method, electronic device, and program
JP6320463B2 (en) Electronic device, imaging method and program
JP6242428B2 (en) Imaging apparatus and imaging method
JP2009182832A (en) Photographing device and through image displaying method
JP4586578B2 (en) Digital camera and program
JP6084310B2 (en) Imaging apparatus and imaging method
JP2017195457A (en) Imaging apparatus and imaging method
JP5539820B2 (en) Imaging apparatus, imaging method, and imaging program
JP6925827B2 (en) Image processing device and image processing method
JP6138632B2 (en) Imaging apparatus, imaging method, and program
JP2015118274A (en) Imaging device, imaging device control method, and program
JP5592778B2 (en) Imaging apparatus, imaging method, and imaging program
JP5878063B2 (en) Imaging apparatus, imaging method, and imaging program
JP2013135398A (en) Image composition device
JP6423612B2 (en) Information device, image processing method, and program
JP6218865B2 (en) Imaging apparatus and imaging method
JP6616573B2 (en) Image processing apparatus, image processing method, image processing program, and imaging apparatus
JP6013574B2 (en) Imaging apparatus and imaging method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170606

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170801

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180403

R151 Written notification of patent or utility model registration

Ref document number: 6320463

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250