JP5441747B2 - Imaging apparatus and image processing method - Google Patents

Imaging apparatus and image processing method Download PDF

Info

Publication number
JP5441747B2
JP5441747B2 JP2010024602A JP2010024602A JP5441747B2 JP 5441747 B2 JP5441747 B2 JP 5441747B2 JP 2010024602 A JP2010024602 A JP 2010024602A JP 2010024602 A JP2010024602 A JP 2010024602A JP 5441747 B2 JP5441747 B2 JP 5441747B2
Authority
JP
Japan
Prior art keywords
image
setting
blurred
width
image processing
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.)
Active
Application number
JP2010024602A
Other languages
Japanese (ja)
Other versions
JP2011166302A (en
JP2011166302A5 (en
Inventor
明治 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2010024602A priority Critical patent/JP5441747B2/en
Priority to US13/018,251 priority patent/US8570402B2/en
Publication of JP2011166302A publication Critical patent/JP2011166302A/en
Publication of JP2011166302A5 publication Critical patent/JP2011166302A5/ja
Priority to US14/036,478 priority patent/US9332194B2/en
Application granted granted Critical
Publication of JP5441747B2 publication Critical patent/JP5441747B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Details Of Cameras Including Film Mechanisms (AREA)
  • Studio Devices (AREA)

Description

本発明は、固体撮像素子を用いた撮像装置により得られた画像に対するボカし処理に関する。   The present invention relates to a blurring process for an image obtained by an imaging apparatus using a solid-state imaging device.

従来、画像の上下をぼかしたジオラマ風の撮影は、光学的に実現されていた。光学的に実現するには、例えば、特殊レンズであるチルトシフトレンズを用いて俯瞰撮影を行う。また、ジオラマ風に限らず、画像のぼかし効果は通常の撮影画像に対する画像処理で実現することもできる。特許文献1では、通常の撮影画像をぼかした画像と元画像をある比率で混合して合成することによりソフトフォーカスのような効果が得られる技術が開示されている。また、特許文献2では、車載カメラによる車両周辺の撮像画像をモニタ画面に表示するとき、撮像画像の一部エリアと前記一部エリアを除いた他エリアとで画像表示の鮮鋭度を異ならせる技術が開示されている。   Conventionally, diorama-like shooting in which the top and bottom of an image is blurred has been optically realized. In order to realize optically, for example, overhead view photographing is performed using a tilt shift lens which is a special lens. Further, the blurring effect of the image is not limited to the diorama style, and can be realized by image processing on a normal captured image. Japanese Patent Application Laid-Open No. 2004-151561 discloses a technique that can obtain an effect like soft focus by mixing an image obtained by blurring a normal captured image and an original image at a certain ratio. Moreover, in patent document 2, when displaying the picked-up image of the vehicle periphery by a vehicle-mounted camera on a monitor screen, the technique which makes the sharpness of an image display different in the other area except the said partial area and the some area of a picked-up image. Is disclosed.

特開2000−69277JP 2000-69277 A 特許第3941926号Japanese Patent No. 3944926

画像処理でジオラマ風の静止画像を実現するためには、ぼけの度合いを所定方向に変化させた複数の段階のぼかし処理が必要となる。そして、このぼかし処理の領域及び方向と撮影画像の構図との関係が適正であれば、ジオラマ風の効果が視認できる良好な画像が得られる。しかし、ぼかし処理の領域及び方向を固定したままカメラの姿勢を変化させると、撮影画像のぼかし効果の方向や構図も変化するので、期待したジオラマ風の効果が表れない画像となるおそれがある。   In order to realize a diorama-like still image by image processing, a plurality of stages of blurring processing in which the degree of blur is changed in a predetermined direction is necessary. If the relationship between the blur processing region and direction and the composition of the photographed image is appropriate, a good image in which the effect of the diorama effect can be visually recognized can be obtained. However, if the posture of the camera is changed while the blur processing area and direction are fixed, the direction and composition of the blur effect of the photographed image also change, which may result in an image that does not exhibit the expected diorama effect.

本発明は上述した問題点を解決するためのものであり、撮像装置の姿勢を変化させても、期待したジオラマ風の効果が表れた画像を得ることができるようにする。   The present invention is intended to solve the above-described problems, and enables an image having an expected diorama effect to be obtained even when the attitude of the imaging apparatus is changed.

上述した課題を解決するために、本発明の画像処理装置は、撮像手段から入力される撮影画像に対して画像処理を行う画像処理装置であって、前記撮影画像から、ぼかさない領域と方向性をもってぼけた領域とを有する画像を生成する画像処理手段と、前記画像処理手段の生成する画像のぼけの方向を設定する設定手段と、を有し、前記設定手段は、ぼかさない領域を設定し、前記ぼけの方向の設定を変更するとき、変更前の前記ぼかさない領域の設定に応じて変更後の前記ぼかさない領域を設定することを特徴とする。
また、本発明の画像処理装置は、手段から入力される撮影画像に対して画像処理を行う画像処理装置であって、前記撮影画像から、所定の方向に第1の領域と前記第1の領域よりもぼけた第2の領域とを有する画像を生成する画像処理手段と、前記所定の方向及び前記第1の領域を設定する設定手段と、を有し、前記設定手段は、前記所定の方向の設定を変更するとき、変更前の前記第1の領域の設定に応じて変更後の前記第1の領域を設定することを特徴とする。
た、本発明の画像処理方法は、撮像装置により得られた撮影画像に対して画像処理を行う画像処理方法であって、前記撮影画像から、ぼかさない領域と方向性をもってぼけた領域とを有する画像を生成する画像処理ステップと、前記画像処理ステップにて生成する画像のぼけの方向を設定する設定ステップと、を有し、前記設定ステップでは、ぼかさない領域を設定し、前記ぼけの方向の設定を変更するとき、変更前の前記ぼかさない領域の設定に応じて変更後の前記ぼかさない領域を設定することを特徴とする。
In order to solve the above-described problems, an image processing apparatus of the present invention is an image processing apparatus that performs image processing on a captured image input from an imaging unit, and a region and directionality not to be blurred from the captured image. image processing means for producing an image having a have been blurred area, has a setting means for setting the direction of the blurring of the image to be generated by the image processing means, the setting means, sets a realm not blurred and, when changing the direction of setting of the blur, and sets the realm of the blurred not after the change according to the setting of the realm that is not blurred before change the.
The image processing apparatus of the present invention is an image processing apparatus that performs image processing on a photographed image input from the means, and includes a first area and a first area in a predetermined direction from the photographed image. Image processing means for generating an image having a second area that is more blurred, and setting means for setting the predetermined direction and the first area, and the setting means includes the predetermined direction. When the setting is changed, the first area after the change is set according to the setting of the first area before the change.
Also, the image processing method of the present invention is an image processing method for performing image processing on the obtained captured image by the imaging device, from the captured image, and a region blurred with areas and direction not blurred an image processing step of generating an image having, anda setting step of setting the direction of the blurring of the image generated by the image processing step, and in the setting step sets the realm not blurred, the blurring when changing the direction of setting, and sets the realm without the blurred after the change according to the setting of the blurred not realm before the change.

本発明によれば、撮像装置の姿勢を変化させても、期待したジオラマ風の効果が表れた画像を得ることができる。   According to the present invention, it is possible to obtain an image in which an expected diorama-like effect appears even when the posture of the imaging apparatus is changed.

撮像装置の構成を示す図The figure which shows the structure of the imaging device 本発明の実施形態のジオラマ風画像処理を説明する動作フローOperation flow for explaining diorama-like image processing according to an embodiment of the present invention 本発明の実施形態の撮影動作を説明する動作フローOperation flow for explaining the photographing operation of the embodiment of the present invention 撮像装置の姿勢とジオラマ風処理の関係を示す模式図1Schematic diagram showing the relationship between the attitude of the imaging device and diorama processing 撮像装置の姿勢とジオラマ風処理の関係を示す模式図2Schematic diagram showing the relationship between the attitude of the imaging device and diorama processing

以下、本発明に係る実施の形態を図面を用いて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(第1の実施形態)
図1は第1の実施形態の撮像装置の構成を示す図である。
(First embodiment)
FIG. 1 is a diagram illustrating a configuration of an imaging apparatus according to the first embodiment.

光学系101は、入射した光を撮像素子102上に結像させることで被写体を撮像する。光学制御部111は、光学系101の露出やズーム、フォーカス、光学式ブレ補正等を制御する。撮像素子102は、結像させた光学像を電気信号に変換する。撮像制御部112は、撮像素子を駆動するための制御系である。アナログ信号処理部103は、固体撮像素子の出力にクランプ、ゲインをかける等の処理を行なう。アナログ/デジタル(A/D)変換部104は、アナログ信号にデジタル変換を行ない画像データとして出力する。本実施形態では、光学系101からA/D変換部104までを含めて撮像手段とする。また、撮像装置は、撮像手段から出力された撮影画像の画像データを記録媒体108に単独フレームで記録することで静止画撮影を可能としている。また、連続して複数フレーム記録することで動画撮影を可能としている。信号処理部105は、A/D変換したデジタル信号の撮影画像に対して後述の画像処理を行い出力画像を生成する。内部記憶部106は、出力画像を生成する際に画像データを一時的に記憶する。信号処理部105は、システム制御部113の指示により内部記憶部106に記憶された画像データを読み出し可能な構成となっており、ぼけ画像の生成、トリミング処理、画像合成処理などのジオラマ風画像処理を行う。ジオラマ風画像処理の詳細については、後述する。   The optical system 101 images a subject by forming incident light on the image sensor 102. The optical control unit 111 controls exposure, zoom, focus, optical blur correction, and the like of the optical system 101. The image sensor 102 converts the formed optical image into an electrical signal. The imaging control unit 112 is a control system for driving the imaging element. The analog signal processing unit 103 performs processing such as clamping and gaining on the output of the solid-state imaging device. An analog / digital (A / D) conversion unit 104 performs digital conversion on an analog signal and outputs it as image data. In the present embodiment, the imaging unit including the optical system 101 to the A / D conversion unit 104 is used. In addition, the imaging apparatus enables still image shooting by recording image data of a captured image output from the imaging unit on the recording medium 108 in a single frame. In addition, video recording is possible by continuously recording a plurality of frames. The signal processing unit 105 performs image processing described later on the captured image of the A / D converted digital signal to generate an output image. The internal storage unit 106 temporarily stores image data when generating an output image. The signal processing unit 105 is configured to be able to read out image data stored in the internal storage unit 106 according to an instruction from the system control unit 113, and performs diorama-like image processing such as generation of a blurred image, trimming processing, and image synthesis processing. I do. Details of the diorama-style image processing will be described later.

記録再生部107は、生成した画像データを記録媒体108に記録する。記録媒体108は、光デイスク記録媒体、半導体記録媒体等、各種の取り外し可能な記録媒体が使用できる。画像表示装置110は、表示制御部109を介し、生成された画像データをライブ画像として表示する。電子ファインダとしての機能を有する表示装置110は、システム制御部113でのプログラムの実行にしたがって、合焦枠表示、合焦表示、非合焦の警告の表示なども行う。システム制御部113は、基本的に、撮像装置の全体の動作を制御するものであって、通常内部にCPUを備える。たとえば、上記撮像手段により得られる画像データを用いて予め定めた演算処理を信号処理部105で実行し、その演算結果に基づいて、光学制御部111及び撮像制御部112を制御する。光学制御部111が制御を行ない自動焦点制御(AF)を実行する。光学制御部111が絞り及びシャッタ、さらには撮像制御部112が撮像素子102の電子シャッタに対して制御を行い、自動露出制御(AE)を実行する。   The recording / reproducing unit 107 records the generated image data on the recording medium 108. As the recording medium 108, various removable recording media such as an optical disk recording medium and a semiconductor recording medium can be used. The image display device 110 displays the generated image data as a live image via the display control unit 109. The display device 110 having a function as an electronic viewfinder also performs in-focus frame display, in-focus display, and out-of-focus warning display according to the execution of the program in the system control unit 113. The system control unit 113 basically controls the overall operation of the imaging apparatus, and usually includes a CPU. For example, a predetermined calculation process is executed by the signal processing unit 105 using image data obtained by the imaging unit, and the optical control unit 111 and the imaging control unit 112 are controlled based on the calculation result. The optical control unit 111 performs control to execute automatic focus control (AF). The optical control unit 111 controls the diaphragm and shutter, and the imaging control unit 112 controls the electronic shutter of the image sensor 102 to execute automatic exposure control (AE).

姿勢検知部115は、加速度センサ及びまたは、前記光学式ブレ補正に用いるジャイロセンサを用いて撮像装置の姿勢を検知する。システム制御部113は、姿勢検知部115から出力された姿勢検知結果により撮像装置の姿勢を判別し、姿勢に応じた設定情報などの表示や、姿勢に応じてカーソルキーの入力方向の変更を行う。114は操作部である。操作部114には、撮影前の予備動作を撮像装置に指示を行うシャッターSW1および、撮影動作を撮像装置に指示を行うシャッターSW2、画像処理を行う位置などを指示するカーソルキーなどを備える。システム制御部113は、前記シャッターSW1の検出により、AF、AEを行い、前記シャッターSW2の検出により撮影動作を行う。なお、図1に示して説明した撮像装置の構成は1例であり、以下に説明する動作を実行できるのであれば、本発明に係る撮像装置の構成は、図1に示した構成に限定されるものではない。   The posture detection unit 115 detects the posture of the imaging apparatus using an acceleration sensor and / or a gyro sensor used for the optical blur correction. The system control unit 113 determines the posture of the imaging apparatus based on the posture detection result output from the posture detection unit 115, displays setting information according to the posture, and changes the input direction of the cursor key according to the posture. . Reference numeral 114 denotes an operation unit. The operation unit 114 includes a shutter SW1 for instructing the imaging apparatus to perform a preliminary operation before photographing, a shutter SW2 for instructing the imaging apparatus to perform a photographing operation, a cursor key for instructing a position for performing image processing, and the like. The system control unit 113 performs AF and AE by detecting the shutter SW1, and performs a photographing operation by detecting the shutter SW2. The configuration of the imaging apparatus illustrated in FIG. 1 is an example, and the configuration of the imaging apparatus according to the present invention is limited to the configuration illustrated in FIG. 1 as long as the operations described below can be performed. It is not something.

図2を用いて、本実施形態のジオラマ風画像処理について説明する。本実施形態では静止画撮影、動画撮影、ライブ表示のいずれの撮影動作においてもジオラマ風画像処理を行うことにより、ジオラマ風の効果が視認できる画像を生成することができる。本実施形態では上記撮影動作において共通のジオラマ風画像処理を行うものとする。ただし、それぞれの撮影動作において必要とされる画質やフレームレートは異なるので、撮影動作に応じて、ジオラマ風画像処理の内容を変化させるように構成してもよい。   The diorama style image processing of this embodiment will be described with reference to FIG. In the present embodiment, an image in which the effect of the diorama effect can be visually recognized can be generated by performing the diorama image processing in any of the shooting operations of still image shooting, moving image shooting, and live display. In the present embodiment, common diorama-like image processing is performed in the shooting operation. However, since the image quality and frame rate required for each shooting operation are different, the contents of the diorama-like image processing may be changed according to the shooting operation.

図2において、画像200は、信号処理部105に入力される撮影画像の全体を示す。本実施形態では、建物、人物、樹木等が含まれるシーンにおいて、主に人物に対してジオラマ風の効果が表れた画像を得ることを目的とする。枠201は、撮影画像の画角中に指定されたピントを合わせる範囲及び位置を表示している。枠201に人物が含まれ、その上下の領域をぼかす処理を行うことによりジオラマ風の効果が表れた画像が得られる。領域をぼかす強さは、信号処理部105により任意に設定可能であり、なだらかにぼかすことも可能である。   In FIG. 2, an image 200 shows the entire captured image input to the signal processing unit 105. An object of the present embodiment is to obtain an image in which a diorama effect appears mainly on a person in a scene including a building, a person, a tree, and the like. A frame 201 displays a range and position for focusing specified in the angle of view of the captured image. A person is included in the frame 201, and an image showing a diorama effect is obtained by performing a process of blurring the upper and lower regions. The strength of blurring the area can be arbitrarily set by the signal processing unit 105, and can be gently blurred.

本実施形態において、枠201は表示装置110に表示されるライブ画像上にも表示され、その上下位置は中心ライン202よりも少し下の位置で固定されており、幅の広さ203も一定になっている。信号処理部105はこの枠201の位置と幅に応じて各フレームに対して連続的にジオラマ風画像処理を実行し、ライブ画像を更新するようにする。   In the present embodiment, the frame 201 is also displayed on the live image displayed on the display device 110, the vertical position thereof is fixed at a position slightly below the center line 202, and the width 203 is also constant. It has become. The signal processing unit 105 continuously performs diorama-like image processing on each frame according to the position and width of the frame 201 so as to update the live image.

次に、図2(b)を用いてジオラマ風画像処理の動作フローを説明する。本動作フローはシステム制御部113が各処理ブロックを制御することにより実現される。   Next, an operation flow of diorama-like image processing will be described with reference to FIG. This operation flow is realized by the system control unit 113 controlling each processing block.

まず、システム制御部113は、撮像手段により入力された画像データであってホワイトバランス等の現像処理を行うことにより1フレームの処理対象の撮影画像が得られたことに応答して、本動作フローを開始する(S201)。ここで動作フローの開始時には既に枠201の位置と広さの固定値が設定されている。   First, the system control unit 113 responds to the fact that one frame of a photographic image to be processed is obtained by performing development processing such as white balance, which is image data input by the imaging unit. Is started (S201). Here, at the start of the operation flow, fixed values for the position and width of the frame 201 are already set.

システム制御部113は、ユーザにより設定されたぼけの度合いに基き、枠201以外の領域のぼけ量を決定する(S202)。本実施形態では、撮影動作中においてもぼけの度合いは「強」と「弱」から選択できる。   The system control unit 113 determines the amount of blur in an area other than the frame 201 based on the degree of blur set by the user (S202). In the present embodiment, the degree of blur can be selected from “strong” and “weak” even during the photographing operation.

次に、システム制御部113は、撮像手段により入力された画像データであってホワイトバランス等の現像処理を行うことにより得られた撮影画像の画像データを内部記憶部106に記憶させる(S203)。これは通常モードで撮影した場合の撮影画像と同じものである。   Next, the system control unit 113 stores the image data of the captured image obtained by performing development processing such as white balance, which is image data input by the imaging unit, in the internal storage unit 106 (S203). This is the same as the photographed image when photographing in the normal mode.

そして、信号処理部105は、撮影画像の画像データから画像全体をぼかした画像を作る(S204)。本実施形態では、ぼけ画像は、撮影画像をまびき処理により縮小処理し、再度、もとのサイズに拡大処理することで生成される。例えば、選択したぼけ度合いが「強」であれば縮小処理の縮小率を1/8とし、「弱」であれば縮小処理の縮小率を1/4とする。本発明はこの方法に限定せず、予め光学的に非合焦位置で撮影した画像を用いてぼけ画像を生成してもよい。   Then, the signal processing unit 105 creates an image in which the entire image is blurred from the image data of the captured image (S204). In the present embodiment, a blurred image is generated by reducing a captured image by a blinking process and then enlarging again to the original size. For example, if the selected degree of blur is “strong”, the reduction rate of the reduction process is 1/8, and if it is “weak”, the reduction rate of the reduction process is 1/4. The present invention is not limited to this method, and a blurred image may be generated using an image that has been optically captured in advance at an out-of-focus position.

信号処理部105は、内部記憶部106に記憶された撮影画像の画像データから枠201の部分をトリミングする(S205)。そして、信号処理部105は、ステップS204で作られたぼけ画像にトリミングした画像を位置合わせして貼り付けることにより、上下がボケて中心部に解像感が残った画像を生成する(S206)。尚、撮影画像の画像データを貼り付ける際に、ぼけ画像とトリミングした撮影画像をなだらかに混合することにより貼付境界部を目立たなくさせる。すなわち、枠201の境界部分で丁度、撮影画像とぼけ画像との合成比率を0:1とし、枠201の中心ラインに向かうに従って撮影画像の合成比率を上げていく処理を行う。   The signal processing unit 105 trims the portion of the frame 201 from the image data of the captured image stored in the internal storage unit 106 (S205). Then, the signal processing unit 105 aligns and pastes the trimmed image to the blurred image created in step S204, thereby generating an image in which the upper and lower sides are blurred and the sense of resolution remains in the center (S206). . In addition, when pasting image data of a photographed image, the pasting boundary portion is made inconspicuous by gently mixing the blurred image and the trimmed photographed image. That is, the process of setting the combined ratio of the captured image and the blurred image to 0: 1 at the boundary portion of the frame 201 and increasing the combined ratio of the captured image toward the center line of the frame 201 is performed.

図3(a)は、撮像装置の姿勢変化に応じてジオラマ風画像処理の内容を変更する動作フローである。本動作フローはシステム制御部113が各処理ブロックを制御することにより実現される。内容変更の動作フローは、動画撮影、静止画撮影においても適用可能であるが、ここでは、ライブ画像の表示動作を行っている状態から静止画撮影を行うまでの動作で説明する。   FIG. 3A is an operation flow for changing the contents of the diorama-like image processing in accordance with the posture change of the imaging device. This operation flow is realized by the system control unit 113 controlling each processing block. The content change operation flow can also be applied to moving image shooting and still image shooting. Here, the operation from the state of performing a live image display operation to the still image shooting will be described.

ライブ画像を表示している状態において、ユーザのモード指定によりジオラマ風の撮影モードが設定されたことに応答して本動作フローが開始される。動作フローの開始後、システム制御部113は、姿勢検知部115の出力信号に基づき撮像装置の姿勢を判断する(S301)。システム制御部113は、次にステップS301で検出した現在の姿勢と記憶しておいたそれ以前の姿勢を比較する。ここで現在の姿勢は次回の姿勢比較のときに以前の姿勢として用いるために記憶する(S302)。次に、システム制御部113は、この比較結果に応じて姿勢が変更されたかを判断する(S303)。ステップS303で姿勢が変更されていないと判断された場合は、ステップS305へ進む。一方、姿勢が変更されたと判断した場合は、ステップS304へ進む。   In the state where the live image is displayed, this operation flow is started in response to the setting of the diorama-like shooting mode by the user's mode designation. After the start of the operation flow, the system control unit 113 determines the attitude of the imaging device based on the output signal of the attitude detection unit 115 (S301). Next, the system control unit 113 compares the current posture detected in step S301 with the stored previous posture. Here, the current posture is stored for use as the previous posture in the next posture comparison (S302). Next, the system control unit 113 determines whether the posture has been changed according to the comparison result (S303). If it is determined in step S303 that the posture has not been changed, the process proceeds to step S305. On the other hand, if it is determined that the posture has been changed, the process proceeds to step S304.

ステップS304では、図3(a)、図3(b)、図3(c)に示す様に、ステップS301で判断した撮像装置の姿勢に応じて、枠201の表示方向及び、ジオラマ風画像処理の方向を切り替える。   In step S304, as shown in FIG. 3A, FIG. 3B, and FIG. 3C, the display direction of the frame 201 and diorama-like image processing are performed according to the orientation of the imaging device determined in step S301. Switch the direction.

そして、姿勢が変換していない場合は(ステップS303:No)そのままの方向で、姿勢が変換している場合は(ステップS303:Yes)、ステップS304で切り替えた方向で、図2(b)で説明したジオラマ風画像処理を行う(S305)。   If the posture has not been changed (step S303: No), the direction is as it is, and if the posture has been changed (step S303: Yes), the direction is changed in step S304 in FIG. 2B. The described diorama-style image processing is performed (S305).

そして、シャッタボタンが押されたか否かを判断し(S306)、押されていないと判断した場合はステップS301に戻りライブ画像の表示とそれに基づく姿勢検出を続け、押されていると判断した場合は、静止画の撮影処理を行う(S307)。そして、得られた静止画の撮影画像に対して、図2(b)で説明したジオラマ風画像処理を行う(S305)。ここで、静止画はフレームレートよりは画質を優先すべきであるので、1つのぼけ画像を用いて行ったステップS204〜S206の処理を2つ以上のぼけ画像を用いて行うことにより、よりジオラマ風の効果が得られた静止画像を得るようにしてもよい。   Then, it is determined whether or not the shutter button has been pressed (S306). If it is determined that the shutter button has not been pressed, the process returns to step S301, and the display of the live image and the posture detection based thereon are continued, and it is determined that the shutter button has been pressed. Performs still image shooting processing (S307). Then, the diorama-like image processing described with reference to FIG. 2B is performed on the obtained still image (S305). Here, the image quality should be prioritized over the frame rate for the still image, so that the process of steps S204 to S206, which is performed using one blurred image, is performed using two or more blurred images, so that a diorama can be obtained. A still image with a wind effect may be obtained.

図3(a)のステップS304の処理方向の変更処理について詳細に説明する。図3(b)は、ユーザが撮像装置を正位置に構えた時に表示装置110に表示されるジオラマ風の画像である。図2(a)で説明したのと同様なものであり、ピントが合う範囲及び表示枠の位置は枠201になる。ここで正位置とは、ユーザが図4(a)の様に撮像装置を構えている位置である。   The processing direction change processing in step S304 in FIG. 3A will be described in detail. FIG. 3B is a diorama-like image displayed on the display device 110 when the user holds the imaging device in the normal position. This is the same as that described with reference to FIG. 2A, and the range in focus and the position of the display frame are the frame 201. Here, the normal position is a position where the user holds the imaging device as shown in FIG.

図3(c)は、ユーザが図4(b)の様に撮像装置のグリップ位置を下に構え、正位置に対し右90°回転している位置である。図4(b)は、この時の処理方向と枠201が正位置に対して左90°回転していることを示している。   FIG. 3C shows a position where the user holds the grip position of the imaging apparatus downward as shown in FIG. 4B and rotates 90 ° to the right with respect to the normal position. FIG. 4B shows the processing direction at this time and that the frame 201 is rotated 90 ° to the left with respect to the normal position.

図3(d)は、正位置に対し左に90°回転している位置である。この時の枠201の位置は図3(c)と左右対称の関係になる。   FIG. 3D is a position rotated 90 ° to the left with respect to the normal position. The position of the frame 201 at this time has a symmetrical relationship with FIG.

撮像装置を左右90度方向に回転させても枠を固定していたならば、図2(a)の200のシーンに対して構図が変化するとともに枠が縦方向に表示されてジオラマ風処理がされてしまうため、期待したジオラマ風の効果が得られない。これに対して、本実施形態のように、姿勢変化に対応させて図3(c)及び(d)のように枠の方向も回転させることにより、構図は変化したとしてもジオラマ風の効果の方向は回転前の状態に保つことができるので、良好な画像を得ることができる。   If the frame is fixed even if the imaging device is rotated 90 degrees in the left and right directions, the composition changes with respect to the scene 200 in FIG. 2A and the frame is displayed in the vertical direction, and the diorama processing is performed. Therefore, the expected diorama effect cannot be obtained. On the other hand, as in this embodiment, by rotating the direction of the frame as shown in FIGS. 3C and 3D according to the posture change, the effect of the diorama effect can be obtained even if the composition changes. Since the direction can be maintained in the state before the rotation, a good image can be obtained.

(第2の実施形態)
本実施形態では、ライブ画像の表示動作中において、ユーザは操作部114を用いて、枠201の上下位置及び幅の広さを設定できるようになっている。信号処理部105は設定された枠201の位置と広さに応じてジオラマ風画像処理を実行し、ライブ画像を更新するようにする。
(Second Embodiment)
In the present embodiment, during the live image display operation, the user can set the vertical position and width of the frame 201 using the operation unit 114. The signal processing unit 105 executes diorama-like image processing according to the set position and width of the frame 201 so as to update the live image.

このとき、姿勢変化によりジオラマ風の画像処理の方向が変化した場合、引き続きユーザが設定した枠201の位置と幅の広さでジオラマ風の画像を表示させることが好ましい。   At this time, when the direction of the diorama-like image processing is changed due to the posture change, it is preferable that the diorama-like image is continuously displayed with the position and width of the frame 201 set by the user.

図4を用いて、図4(a)正位置から図4(b)右90°回転した時の枠201(ピントが合う範囲及び位置)の設定方法について説明する。左90°回転した場合についての説明は省略するが、同じ構成にて実現可能であるため、以下の説明においては、右90°回転または、左90°回転して構えていることを縦位置と表現する。   A method for setting the frame 201 (the range and position where the image is in focus) when rotated 90 ° to the right from FIG. 4 (a) from the normal position in FIG. 4 (a) will be described with reference to FIG. Although description about the case of 90 ° rotation to the left is omitted, since it can be realized with the same configuration, in the following description, it is assumed that the rotation is 90 ° to the right or 90 ° to the left. Express.

第1の実施形態と同様な図4(c)に示すシーンを撮影してジオラマ風の効果を得る場合に、ユーザーは、正位置または、縦位置のいずれかの構図で撮影する。ピントが合う範囲及び位置(枠201)は主被写体である人物に合わせて設定するため、正位置(402)、縦位置(401)に関わらず、ユーザの指定を反映させてほぼ同じ幅の広さを設定する必要がある。さらに、構図のバランスが崩れないように、上下のバランスも正位置(402)、縦位置(401)に関わらず一定領域内になる様に枠の位置も設定する。   When the scene shown in FIG. 4C similar to that of the first embodiment is photographed to obtain a diorama effect, the user photographs with a composition of either the normal position or the vertical position. Since the in-focus range and position (frame 201) are set according to the person who is the main subject, regardless of the normal position (402) and vertical position (401), the user's specification is reflected and the width is almost the same. It is necessary to set it. Further, the position of the frame is also set so that the vertical balance is within a certain region regardless of the normal position (402) and the vertical position (401) so that the balance of the composition is not lost.

図5は、姿勢の変化に応じて、以上の設定を行った例を示す図である。   FIG. 5 is a diagram illustrating an example in which the above setting is performed according to a change in posture.

図5(a)は、正位置での枠201の幅の広さをMに設定した例であり、図4(c)の402の構図の場合を示したものである。正位置 図5(a)から図5(b)に示す縦位置に姿勢が変更された場合は、正位置における図5(a)の幅Mに応じて縦位置における図5(b)の幅Pを設定する。ここで、幅M:撮影画像の縦方向の幅X=幅P:撮影画像の横方向の幅Yの関係を有する。同様の比率関係を用いて、正位置における図5(a)の幅L、幅Nに応じて縦位置における図5(b)の幅O、幅Qを設定する。縦位置 図5(b)から正位置図5(a)に姿勢を変更した場合も、幅O、幅P、幅Qに応じて、幅L、幅M、幅Nを設定する。   FIG. 5A shows an example in which the width of the frame 201 at the normal position is set to M, and shows the case of the composition 402 in FIG. 4C. Normal position When the posture is changed from the vertical position shown in FIG. 5A to the vertical position shown in FIG. 5B, the width of FIG. 5B in the vertical position according to the width M of FIG. 5A in the normal position. Set P. Here, there is a relationship of width M: vertical width X of the captured image = width P: horizontal width Y of the captured image. Using the same ratio relationship, the width O and the width Q in FIG. 5B in the vertical position are set according to the width L and the width N in FIG. Vertical Position Even when the posture is changed from FIG. 5B to the normal position FIG. 5A, the width L, the width M, and the width N are set according to the width O, the width P, and the width Q.

図5(c)は、正位置での枠201の位置を中心位置Sに設定した例であり、図4(c)の402の構図の場合を示したものである。正位置における図5(c)で枠201の中心位置Sを、画面全体の高さXに対する比率で設定している。図5(c)から縦位置における図5(d)に姿勢を変更した場合、枠201の中心位置Uは、画面全体の幅Yから式:U=Y×S÷Xで容易に求めることが可能である。また、縦位置における図5(d)から、正位置における図5(c)に姿勢を変更した場合は式S=X×U÷Yより算出する。ここでは、中心位置U及び中心位置S等を比率で引き継ぐ例を示したが、画面上端または、画面中心からの画素数により、位置を算出するようにしてもよい。   FIG. 5C is an example in which the position of the frame 201 at the normal position is set to the center position S, and shows the case of the composition 402 in FIG. 4C. The center position S of the frame 201 in FIG. 5C at the normal position is set as a ratio to the height X of the entire screen. When the posture is changed from FIG. 5C to FIG. 5D in the vertical position, the center position U of the frame 201 can be easily obtained from the width Y of the entire screen by the formula: U = Y × S ÷ X. Is possible. Further, when the posture is changed from FIG. 5D in the vertical position to FIG. 5C in the normal position, it is calculated from the equation S = X × U ÷ Y. Here, an example in which the center position U, the center position S, and the like are inherited at a ratio has been shown, but the position may be calculated from the upper end of the screen or the number of pixels from the screen center.

以上、枠201の設定を幅と位置とで別々に説明したが、図5(c)の枠201の中心位置Sから図5(a)の幅Mを設定するのであれば、図5(d)の中心位置Uから図5(b)の幅Pを設定できる。この場合、図4(d)に示す様に、ユーザーが縦位置404で画面下端付近に枠201を設定し、正位置405に構え直すと、設定した幅Pが広いと、枠の中心位置UとSとを対応させることはできても、枠の範囲Pが構図からはみ出てしまうことがある。したがって、下端に接する位置に枠が設定されていた場合は、姿勢変更を行っても中心位置の関係はそのまま引き継がず、枠の幅を保ったまま下端位置になるよう中心位置を設定する様にする。図示しないが、上端付近に枠201を設定した場合も同様な処理を行う。   The setting of the frame 201 has been described separately for the width and the position. However, if the width M of FIG. 5A is set from the center position S of the frame 201 of FIG. 5C, FIG. ) Can be set from the center position U of FIG. In this case, as shown in FIG. 4D, when the user sets the frame 201 near the lower end of the screen at the vertical position 404 and resets it to the normal position 405, the center position U of the frame is increased when the set width P is wide. And S may correspond to each other, but the frame range P may protrude from the composition. Therefore, when the frame is set at the position that touches the lower end, the center position relationship is not inherited as it is even if the posture is changed, and the center position is set so that the lower end position is maintained while maintaining the width of the frame. To do. Although not shown, the same processing is performed when the frame 201 is set near the upper end.

以上説明したように、本実施形態では、ジオラマ風処理を行うための枠の位置と幅をユーザが設定できるような仕様において、撮像装置の姿勢変化が生じた場合においても、期待したジオラマ風の効果が表れた画像を得ることができる。   As described above, in the present embodiment, in the specification in which the user can set the position and width of the frame for performing the diorama processing, even when the orientation of the imaging apparatus changes, the expected diorama processing An image showing the effect can be obtained.

(他の実施形態)
上記実施形態では、ライブ画像の表示と、静止画記録についてのジオラマ風画像処理について説明したが、本発明は、これに限らず、動画記録を行う場合におけるライブ表示や記録される動画に対しても適用可能である。
(Other embodiments)
In the above-described embodiment, the display of live images and the diorama-like image processing for still image recording have been described. However, the present invention is not limited to this, and live display in the case of performing moving image recording or for moving images to be recorded Is also applicable.

上記実施形態では、特殊効果としてジオラマ風の画像処理という文言を使用したが、これは便宜的なものであり、撮影画像と1枚以上のボケ画像とを方向性を持たせそれぞれ領域を変えて合成する処理を含むものあれば、他の特殊効果の処理においても、本発明は適用できる。   In the above embodiment, the term “diorama-like image processing” is used as a special effect. However, this is for convenience, and the captured image and one or more blurred images are given directions and each region is changed. The present invention can be applied to other special effect processing as long as it includes processing to synthesize.

また、上記実施形態では、本発明を撮像装置に適用した場合について説明したが、本発明はこれに限るものではなく、外部接続した撮像装置から撮影画像を入力可能なパーソナルコンピュータやデジタルテレビ等の画像処理装置において、実現されても良い。この場合、撮影画像の画像ファイルにおけるヘッダ情報に含まれている姿勢検知情報から姿勢を判断して、その姿勢に応じたジオラマ風画像処理を行う。なお、パーソナルコンピュータの場合は、上記図3に示した各ステップを実行するアプリケーションソフトウェアをCD−ROM等の記憶媒体やネットワーク上のサーバから取得してインストールすることにより実現される。   In the above embodiment, the case where the present invention is applied to an imaging apparatus has been described. However, the present invention is not limited to this, and a personal computer, a digital television, or the like that can input a captured image from an externally connected imaging apparatus. It may be realized in the image processing apparatus. In this case, the posture is determined from the posture detection information included in the header information in the image file of the photographed image, and diorama-like image processing corresponding to the posture is performed. In the case of a personal computer, it is realized by obtaining and installing application software for executing the steps shown in FIG. 3 from a storage medium such as a CD-ROM or a server on a network.

105 信号処理部
106 内部記憶部
113 システム制御部
115 姿勢検知部
105 signal processing unit 106 internal storage unit 113 system control unit 115 attitude detection unit

Claims (7)

撮像手段から入力される撮影画像に対して画像処理を行う撮像装置であって、前記撮影画像から、ぼかさない領域と方向性をもってぼけた領域とを有する画像を生成する画像処理手段と、
前記画像処理手段の生成する画像のぼけの方向を設定する設定手段と、を有し、前記設定手段は、ぼかさない領域の位置または幅を設定し、前記ぼけの方向の設定を変更するとき、変更前の前記ぼかさない領域の位置または幅の設定に応じて変更後の前記ぼかさない領域の位置または幅を設定することを特徴とする撮像装置。
An imaging apparatus that performs image processing on a captured image input from the imaging unit, and that generates an image having an area that is not blurred and an area that is blurred with directionality from the captured image;
Setting means for setting a direction of blur of an image generated by the image processing means, and the setting means sets a position or width of a region not to be blurred, and changes the setting of the direction of blur. An imaging apparatus, wherein the position or width of the non-blurred area after change is set according to the setting of the position or width of the non-blurred area before change.
前記撮像装置の姿勢を検知する検知手段と、
前記設定手段は、前記検知手段により検知される姿勢に応じて、前記画像処理手段により生成される画像のぼけの方向を設定することを特徴とする請求項に記載の撮像装置。
Detecting means for detecting the posture of the imaging device;
The imaging apparatus according to claim 1 , wherein the setting unit sets a blur direction of an image generated by the image processing unit in accordance with an attitude detected by the detection unit.
前記設定手段は、前記ぼけの方向の設定を変更するとき、変更前の方向における前記撮影画像の長さと前記ぼかさない領域の位置または幅との関係に基づいて、変更後の方向における前記ぼかさない領域の位置または幅を設定することを特徴とする請求項またはに記載の撮像装置。 The setting means, when changing the setting of the blur direction, based on the relationship between the length of the captured image in the direction before the change and the position or width of the non-blurred area, does not blur the change in the direction after the change the imaging apparatus according to claim 1 or 2, characterized in that setting the position or the width of the region. 前記設定手段は、前記ぼけの方向の設定を変更するとき、前記ぼかさない領域の幅と前記撮影画像全体の前記ぼけの方向の高さとの比率が、変更前後で変わらないように前記ぼかさない領域の幅を設定することを特徴とする請求項乃至のいずれか1項に記載の撮像装置。 When the setting unit changes the setting of the blur direction, the ratio of the width of the non-blurred area and the height of the blur direction of the entire photographed image is not blurred before and after the change. the imaging apparatus according to any one of claims 1 to 3, characterized in that setting the width. 撮像装置により得られた撮影画像に対して画像処理を行う画像処理方法であって、前記撮影画像から、ぼかさない領域と方向性をもってぼけた領域とを有する画像を生成する画像処理ステップと、
前記画像処理ステップにて生成する画像のぼけの方向を設定する設定ステップと、を有し、前記設定ステップでは、ぼかさない領域の位置または幅を設定し、前記ぼけの方向の設定を変更するとき、変更前の前記ぼかさない領域の位置または幅の設定に応じて変更後の前記ぼかさない領域の位置または幅を設定することを特徴とする画像処理方法。
An image processing method for performing image processing on a captured image obtained by an imaging apparatus, and generating an image having a region not blurred and a region blurred with directionality from the captured image;
A setting step for setting a blur direction of the image generated in the image processing step. In the setting step, a position or a width of an area not to be blurred is set, and the setting of the blur direction is changed. An image processing method comprising: setting the position or width of the non-blurred area after the change according to the setting of the position or width of the non-blurred area before the change.
請求項5に記載の画像処理方法のステップが記述された、コンピュータで実行可能なプログラム。A computer-executable program in which the steps of the image processing method according to claim 5 are described. コンピュータに、請求項5に記載の画像処理方法の各ステップを実行させるためのプログラムが記憶された、コンピュータが読み取り可能な記憶媒体。A computer-readable storage medium storing a program for causing a computer to execute the steps of the image processing method according to claim 5.
JP2010024602A 2010-02-05 2010-02-05 Imaging apparatus and image processing method Active JP5441747B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2010024602A JP5441747B2 (en) 2010-02-05 2010-02-05 Imaging apparatus and image processing method
US13/018,251 US8570402B2 (en) 2010-02-05 2011-01-31 Imaging apparatus for obtaining a user-intended image when orientation of the imaging apparatus changes in applying a special effect that changes the image quality in a set direction
US14/036,478 US9332194B2 (en) 2010-02-05 2013-09-25 Imaging apparatus for obtaining a user-intended image when orientation of the imaging apparatus changes in applying a special effect that changes the image quality in a set direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010024602A JP5441747B2 (en) 2010-02-05 2010-02-05 Imaging apparatus and image processing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2013251244A Division JP5653509B2 (en) 2013-12-04 2013-12-04 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2011166302A JP2011166302A (en) 2011-08-25
JP2011166302A5 JP2011166302A5 (en) 2013-03-21
JP5441747B2 true JP5441747B2 (en) 2014-03-12

Family

ID=44596507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010024602A Active JP5441747B2 (en) 2010-02-05 2010-02-05 Imaging apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP5441747B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9041727B2 (en) * 2012-03-06 2015-05-26 Apple Inc. User interface tools for selectively applying effects to image

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4693720B2 (en) * 2006-07-18 2011-06-01 京セラ株式会社 Imaging device
JP4935302B2 (en) * 2006-11-02 2012-05-23 株式会社ニコン Electronic camera and program
JP5418020B2 (en) * 2009-06-29 2014-02-19 株式会社ニコン Imaging device

Also Published As

Publication number Publication date
JP2011166302A (en) 2011-08-25

Similar Documents

Publication Publication Date Title
US8570402B2 (en) Imaging apparatus for obtaining a user-intended image when orientation of the imaging apparatus changes in applying a special effect that changes the image quality in a set direction
JP5106142B2 (en) Electronic camera
JP6071545B2 (en) IMAGING DEVICE, IMAGE PROCESSING DEVICE AND ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US8988535B2 (en) Photographing control method and apparatus according to motion of digital photographing apparatus
JP6863284B2 (en) Detection device, detection method, detection program and imaging device
JP2009212899A (en) Imaging device
JP6518409B2 (en) Imaging apparatus and imaging method
JP2017058660A (en) Image tremor correction device, tilt correction device, image tremor correction device control method, tilt correction device control method
US11902660B2 (en) Image processing device, image processing method, and program
JP2011166300A (en) Imaging apparatus and image processing method
JP2008187412A (en) Electronic camera
TW201351980A (en) Image processing device, image processing method, program
JP5326758B2 (en) Camera, image processing apparatus, and image processing program
JP6721084B2 (en) Zoom control device, zoom control method, and program
JP2009089220A (en) Imaging apparatus
WO2018196854A1 (en) Photographing method, photographing apparatus and mobile terminal
US10785415B2 (en) Display control device and display control method
JP4807582B2 (en) Image processing apparatus, imaging apparatus, and program thereof
WO2020170604A1 (en) Information processing device, information processing method, and program
JP5653509B2 (en) Image processing apparatus and image processing method
JP5441747B2 (en) Imaging apparatus and image processing method
JP6018466B2 (en) Imaging apparatus and control method thereof
WO2022041013A1 (en) Control method, handheld gimbal, system, and computer readable storage medium
JP5921646B2 (en) Image processing apparatus and image processing method
JP2012073512A (en) Photographing device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130204

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130204

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130827

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131028

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131217

R151 Written notification of patent or utility model registration

Ref document number: 5441747

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151