JP4379363B2 - Image tilt correction with angle of view maintained - Google Patents

Image tilt correction with angle of view maintained Download PDF

Info

Publication number
JP4379363B2
JP4379363B2 JP2005093654A JP2005093654A JP4379363B2 JP 4379363 B2 JP4379363 B2 JP 4379363B2 JP 2005093654 A JP2005093654 A JP 2005093654A JP 2005093654 A JP2005093654 A JP 2005093654A JP 4379363 B2 JP4379363 B2 JP 4379363B2
Authority
JP
Japan
Prior art keywords
image
area
image generation
imaging
inclination
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
JP2005093654A
Other languages
Japanese (ja)
Other versions
JP2006279373A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005093654A priority Critical patent/JP4379363B2/en
Publication of JP2006279373A publication Critical patent/JP2006279373A/en
Application granted granted Critical
Publication of JP4379363B2 publication Critical patent/JP4379363B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像の傾き補正に関し、特に、画像の画角が狭くなることを抑制しつつ傾き補正を行う技術に関する。   The present invention relates to image inclination correction, and more particularly to a technique for performing inclination correction while suppressing a reduction in the angle of view of an image.

デジタルスチルカメラ(以下「DSC」と呼ぶ)で画像を撮像する場合、撮像時にDSC自体が傾いていると、被写体が傾いて表現された画像が生成される。近年では、DSCの小型化・軽量化に伴い、撮像時にDSCが傾きやすい傾向にある。   When an image is captured by a digital still camera (hereinafter referred to as “DSC”), if the DSC itself is tilted at the time of imaging, an image expressed by tilting the subject is generated. In recent years, the DSC tends to be inclined at the time of imaging with the downsizing and weight reduction of the DSC.

撮像時におけるDSCの傾きを検出し、検出されたDSCの傾きを用いて、撮像された画像の傾き補正を行う技術が開示されている(例えば特許文献1)。   A technique is disclosed in which the tilt of a DSC at the time of imaging is detected and the tilt of the captured image is corrected using the detected tilt of the DSC (for example, Patent Document 1).

特開2004−343476JP 2004-343476 A 特開平5−150318JP-A-5-150318

上記の従来技術では、撮像された画像から、DSCの傾きを補正するように傾けられた矩形領域の画像を切り出すことによって、補正後の画像を生成する。そのため、上記の従来技術における画像の傾き補正では、補正後の画像の画角が補正前の画像の画角と比較して狭くなるという問題があった。補正後の画像の画角が狭くなると、補正後の画像の構図が撮像時にユーザが望んだ構図とは大きく異なってしまう場合がある。   In the above-described conventional technology, a corrected image is generated by cutting out an image of a rectangular area tilted so as to correct the tilt of the DSC from the captured image. For this reason, the image tilt correction in the conventional technique has a problem that the angle of view of the image after correction is narrower than the angle of view of the image before correction. If the angle of view of the image after correction is narrowed, the composition of the image after correction may be significantly different from the composition desired by the user at the time of imaging.

なお、このような問題は、DSCにより撮像した画像の傾き補正を行う場合に限らず、画像生成装置により撮像した画像の傾き補正を行う場合に共通する問題であった。   Such a problem is not limited to the case of correcting the tilt of the image captured by the DSC, but is a problem common to the case of correcting the tilt of the image captured by the image generation apparatus.

本発明は、上述した従来の課題を解決するためになされたものであり、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことを可能とする技術を提供することを目的とする。   The present invention has been made to solve the above-described conventional problems, and provides a technique capable of correcting the inclination of an image while suppressing a narrowing of the angle of view of the image assumed by the user. The purpose is to do.

上記課題の少なくとも一部を解決するために、本発明の第1の画像生成装置は、
ユーザに画像の構図を示すために被写体を表示する表示部と、
撮像素子を用いて画像を生成する撮像部と、
前記撮像部による撮像時における前記画像生成装置の鉛直面に沿った傾きの量を表す撮像時傾き量を検出する傾き量検出部と、
画像の傾き補正を行う補正処理部と、を備え、
前記撮像部は、前記撮像素子上の領域であって、前記表示部に表示された被写体の範囲に対応した表示対応領域と前記表示対応領域の外周に付加された付加領域とで構成される画像生成領域に対応した画像を元画像として生成し、
前記補正処理部は、前記撮像時傾き量に基づき、前記元画像における前記表示対応領域に対応した画像および前記付加領域に対応した画像の両方を利用して、前記画像生成装置の傾きの影響を取り除くように補正された画像である補正画像を生成する。
In order to solve at least a part of the above problems, a first image generation device of the present invention includes:
A display for displaying the subject to show the composition of the image to the user;
An imaging unit that generates an image using an imaging element;
An inclination amount detection unit that detects an inclination amount during imaging that represents an amount of inclination along the vertical plane of the image generation device at the time of imaging by the imaging unit;
A correction processing unit that performs image inclination correction,
The image pickup unit is an area on the image pickup element, and is configured by a display corresponding region corresponding to the range of the subject displayed on the display unit and an additional region added to the outer periphery of the display corresponding region. Generate an image corresponding to the generation area as the original image,
The correction processing unit uses the image corresponding to the display corresponding area and the image corresponding to the additional area in the original image based on the amount of inclination at the time of imaging to affect the influence of the inclination of the image generation apparatus. A corrected image that is an image corrected to be removed is generated.

この画像生成装置では、撮像素子上の領域であって、表示部に表示された被写体の範囲に対応した表示対応領域と表示対応領域の外周に付加された付加領域とで構成される画像生成領域に対応した画像が、元画像として生成される。そのため、画像生成装置の傾きの影響を取り除くように補正された補正画像を生成する際に、元画像における表示対応領域に対応した画像に加えて、付加領域に対応した画像も利用することができる。従って、この画像生成装置では、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   In this image generation device, an image generation area that is an area on the image sensor and includes a display corresponding area corresponding to the range of the subject displayed on the display unit and an additional area added to the outer periphery of the display corresponding area Is generated as an original image. Therefore, when generating a corrected image corrected so as to remove the influence of the tilt of the image generation apparatus, an image corresponding to the additional area can be used in addition to the image corresponding to the display corresponding area in the original image. . Therefore, in this image generation apparatus, it is possible to correct the inclination of the image while suppressing the narrowing of the angle of view of the image assumed by the user.

上記画像生成装置において、前記補正処理部は、前記撮像素子上の前記表示対応領域を所定の回転中心点を中心に前記画像生成装置の傾き方向と反対方向に前記撮像時傾き量分回転させた領域である補正画像領域に対応した画像を、前記補正画像として生成するとしてもよい。   In the image generation apparatus, the correction processing unit rotates the display corresponding area on the image sensor about the predetermined rotation center point in the direction opposite to the inclination direction of the image generation apparatus by the amount of inclination during imaging. An image corresponding to the corrected image region that is a region may be generated as the corrected image.

このようにすれば、補正画像を、表示部に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像とすることができる。そのため、ユーザの想定した画像の画角を維持しつつ画像の傾き補正を行うことができる。   In this way, the corrected image can be an image representing a subject in a range having the same size as the range of the subject displayed on the display unit. Therefore, the inclination of the image can be corrected while maintaining the angle of view of the image assumed by the user.

また、上記画像生成装置において、さらに、
前記撮像時傾き量に応じて、前記撮像素子上の前記画像生成領域を、前記補正画像領域を包含するよう可変に設定する画像生成領域設定部を備えるとしてもよい。
In the above image generation device,
An image generation area setting unit that variably sets the image generation area on the image sensor so as to include the correction image area according to the amount of tilt at the time of imaging may be provided.

このようにすれば、撮像時傾き量に基づいて、必要な大きさの前記画像生成領域を設定することができ、撮像素子や記憶領域といったリソースの有効活用を図ることができる。   In this way, the image generation area of a necessary size can be set based on the amount of tilt at the time of imaging, and resources such as an imaging element and a storage area can be effectively used.

また、上記画像生成装置において、さらに、
ズームレンズと、
前記ズームレンズを駆動するレンズ駆動部と、を備え、
前記レンズ駆動部は、設定された前記画像生成領域が前記撮像素子上に収まらないときは、前記画像生成領域設定部が前記画像生成領域を前記撮像素子上に収まるように設定できる状態となるように、前記ズームレンズを駆動するとしてもよい。
In the above image generation device,
A zoom lens,
A lens driving unit for driving the zoom lens,
When the set image generation area does not fit on the image sensor, the lens driving unit can be set so that the image generation area setting section can fit the image generation area on the image sensor. In addition, the zoom lens may be driven.

このようにすれば、設定された画像生成領域が撮像素子上に収まらないときに、画像生成領域設定部が画像生成領域を撮像素子上に収まるように設定できる状態となるようにズームレンズが駆動される。そのため、ズームレンズ駆動後に、画像生成領域を撮像素子上に収まるように設定することができる。従って、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   In this way, when the set image generation area does not fit on the image sensor, the zoom lens is driven so that the image generation area setting unit can set the image generation area to fit on the image sensor. Is done. Therefore, after the zoom lens is driven, the image generation area can be set so as to fit on the image sensor. Therefore, it is possible to correct the inclination of the image while suppressing the narrowing of the angle of view of the image assumed by the user.

また、上記画像生成装置において、さらに、
前記元画像における撮像時のピントの位置を取得するピント位置取得部を備え、
前記補正処理部は、前記所定の回転中心点を、前記ピント位置に対応した前記撮像素子上の点に設定するとしてもよい。
In the above image generation device,
A focus position acquisition unit that acquires a focus position at the time of imaging in the original image;
The correction processing unit may set the predetermined rotation center point to a point on the image sensor corresponding to the focus position.

このようにすれば、補正画像を、ユーザが意図した構図により近い構図とすることができる。   In this way, the corrected image can be made closer to the composition intended by the user.

また、上記画像生成装置において、さらに、
前記元画像における所定の種類の被写体の位置を検出する被写体位置検出部を備え、
前記補正処理部は、前記所定の回転中心点を、前記所定の種類の被写体の位置に対応した前記撮像素子上の点に設定するとしてもよい。
In the above image generation device,
A subject position detector that detects the position of a predetermined type of subject in the original image;
The correction processing unit may set the predetermined rotation center point to a point on the image sensor corresponding to the position of the predetermined type of subject.

このようにしても、補正画像を、ユーザが意図した構図により近い構図とすることができる。   Even in this case, the corrected image can be made closer to the composition intended by the user.

また、上記画像生成装置において、画像の傾き補正を行う第1の画像生成モードと、画像の傾き補正を行わない第2の画像生成モードと、を有し、
前記第1の画像生成モードが設定されているときは、前記撮像素子上の前記表示対応領域は、前記第2の画像生成モードが設定されているときと比較して、小さい領域として設定されるとしてもよい。
Further, the image generation apparatus includes a first image generation mode for performing image inclination correction, and a second image generation mode for performing no image inclination correction,
When the first image generation mode is set, the display corresponding area on the image sensor is set as a smaller area than when the second image generation mode is set. It is good.

このようにすれば、ユーザの想定した画像の画角が狭くなることを抑制した画像の傾き補正を行う場合と撮像素子を有効利用した撮像を行う場合とで、撮像モードを使い分けることができる。   In this way, it is possible to use different imaging modes depending on whether the inclination of the image is suppressed while suppressing the narrowing of the angle of view of the image assumed by the user, or when imaging is performed using the imaging element effectively.

また、上記課題の少なくとも一部を解決するために、本発明の第2の画像生成装置は、
ユーザに画像の構図を示すために被写体を表示する表示部と、
撮像素子を用いて画像を生成する撮像部と、を備え、
前記撮像部は、前記撮像素子上の領域であって、前記表示部に表示された被写体の範囲に対応した表示対応領域と前記表示対応領域の外周に付加された付加領域とで構成される画像生成領域に対応した画像を元画像として生成すると共に、前記元画像を表すデータと、前記表示対応領域に対応した前記元画像上の領域の位置を表すデータと、を含む画像ファイルを生成する。
In order to solve at least a part of the above problems, the second image generation apparatus of the present invention provides:
A display for displaying the subject to show the composition of the image to the user;
An imaging unit that generates an image using an imaging element,
The image pickup unit is an area on the image pickup element, and is configured by a display corresponding region corresponding to the range of the subject displayed on the display unit and an additional region added to the outer periphery of the display corresponding region. An image corresponding to the generation area is generated as an original image, and an image file including data representing the original image and data representing the position of the area on the original image corresponding to the display corresponding area is generated.

この画像生成装置では、元画像を表すデータと、表示対応領域に対応した元画像上の領域の位置を表すデータと、を含む画像ファイルを生成することができる。この画像ファイルを用いれば、元画像における表示対応領域に対応した画像に加えて、付加領域に対応した画像も利用して、画像生成装置の傾きの影響を取り除くように補正された補正画像を生成することができる。従って、この画像生成装置では、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うための画像ファイルを生成することができる。   This image generation apparatus can generate an image file including data representing the original image and data representing the position of the area on the original image corresponding to the display corresponding area. Using this image file, in addition to the image corresponding to the display-corresponding area in the original image, the image corresponding to the additional area is also used to generate a corrected image corrected so as to remove the influence of the tilt of the image generating device. can do. Therefore, in this image generation device, it is possible to generate an image file for correcting the inclination of the image while suppressing the angle of view of the image assumed by the user from being narrowed.

なお、本発明は、種々の態様で実現することが可能であり、例えば、画像生成方法および装置、画像処理方法および装置、画像補正方法および装置、これらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の形態で実現することができる。   Note that the present invention can be realized in various modes. For example, an image generation method and apparatus, an image processing method and apparatus, an image correction method and apparatus, and a function of these methods or apparatuses are realized. The present invention can be realized in the form of a computer program, a recording medium recording the computer program, a data signal including the computer program and embodied in a carrier wave, and the like.

次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
B.第2実施例:
C.第3実施例:
D.第4実施例:
E.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
B. Second embodiment:
C. Third embodiment:
D. Fourth embodiment:
E. Variations:

A.第1実施例:
図1は、本発明の第1実施例としてのデジタルスチルカメラ100の構成を概略的に示す説明図である。第1実施例のデジタルスチルカメラ(以下「DSC」と呼ぶ)100は、レンズ102と、レンズ102を駆動して焦点距離を調整するレンズ駆動部104と、レンズ駆動部104を制御するレンズ駆動制御回路106と、レンズ102を通して受光面に受けた光を電気信号に変換する撮像素子108と、撮像素子108から出力された電気信号をデジタルデータに変換するA/D変換器110と、外部機器との情報のやり取りのためのインターフェイス部(I/F部)112と、画像や各種設定情報を表示する表示部114と、ユーザ操作のための操作部116と、DSC100の各部を制御するCPU118と、内部メモリ200と、角度センサ120と、を備えている。DSC100の各構成要素は、バス122を介して互いに接続されている。
A. First embodiment:
FIG. 1 is an explanatory diagram schematically showing the configuration of a digital still camera 100 as a first embodiment of the present invention. The digital still camera (hereinafter referred to as “DSC”) 100 according to the first embodiment includes a lens 102, a lens driving unit 104 that drives the lens 102 to adjust the focal length, and a lens driving control that controls the lens driving unit 104. A circuit 106, an image sensor 108 that converts light received on the light receiving surface through the lens 102 into an electrical signal, an A / D converter 110 that converts the electrical signal output from the image sensor 108 into digital data, an external device, An interface unit (I / F unit) 112 for exchanging information, a display unit 114 for displaying images and various setting information, an operation unit 116 for user operation, a CPU 118 for controlling each unit of the DSC 100, An internal memory 200 and an angle sensor 120 are provided. Each component of the DSC 100 is connected to each other via a bus 122.

本実施例では、撮像素子108としてCCD(Chage Coupled Device(電荷結合素子))が用いられ、角度センサ120として2軸の加速度センサが用いられる。   In the present embodiment, a CCD (Chaged Coupled Device) is used as the image sensor 108, and a biaxial acceleration sensor is used as the angle sensor 120.

また、本実施例では、表示部114として、液晶モニタが用いられる。DSC100による撮像時には、表示部114としての液晶モニタに被写体の画像が表示される。ユーザは、表示部114に表示された被写体を参考にして、画像の構図を決定する。なお、表示部114は、ユーザに画像の構図を示すために被写体を表示するものであればよく、表示部114としてファインダ等の他の装置が用いられてもよい。また、本明細書において、「被写体」とは、画像の全体にわたって撮像される人、物、景色といった撮像対象を意味している。   In this embodiment, a liquid crystal monitor is used as the display unit 114. At the time of imaging by the DSC 100, an image of the subject is displayed on a liquid crystal monitor as the display unit 114. The user determines the composition of the image with reference to the subject displayed on the display unit 114. Note that the display unit 114 only needs to display a subject in order to show the composition of the image to the user, and other devices such as a viewfinder may be used as the display unit 114. Further, in this specification, “subject” means an imaging target such as a person, an object, or a landscape that is captured over the entire image.

内部メモリ200には、画像生成処理部210として機能するコンピュータプログラムが格納されている。画像生成処理部210は、傾き量検出部212と、補正処理部214と、モード選択受領部216としての機能を含んでいる。CPU118は、内部メモリ200から画像生成処理部210としてのコンピュータプログラムを読み出して実行することにより、画像を生成するための画像生成処理を実行する。   The internal memory 200 stores a computer program that functions as the image generation processing unit 210. The image generation processing unit 210 includes functions as an inclination amount detection unit 212, a correction processing unit 214, and a mode selection reception unit 216. The CPU 118 executes an image generation process for generating an image by reading out and executing a computer program as the image generation processing unit 210 from the internal memory 200.

ここで、本実施例のDSC100は、撮像モードとして、画像の傾き補正を行う傾き補正モードと、画像の傾き補正を行わない非傾き補正モードと、を有している。撮像モードは、ユーザによるモード選択指示を、操作部116を介してモード選択受領部216が受領することにより設定される。CPU118は、設定された撮像モードに従った画像生成処理を行う。   Here, the DSC 100 according to the present embodiment has, as an imaging mode, an inclination correction mode in which image inclination correction is performed and a non-inclination correction mode in which image inclination correction is not performed. The imaging mode is set when the mode selection receiving unit 216 receives a mode selection instruction from the user via the operation unit 116. The CPU 118 performs image generation processing according to the set imaging mode.

撮像モードとして非傾き補正モードが設定されているときには、画像の傾き補正を行わない通常の画像生成処理が実行される。具体的には、レンズ102を通して撮像素子108に投影された光が電気信号に変換され、さらにA/D変換器110においてデジタルデータに変換され、その後現像処理およびエンコードを経て生成された画像データが内部メモリ200の所定の領域に格納される。このとき、生成される画像は、撮像時に表示部114に表示された被写体を表す画像、すなわち、ユーザが意図した構図の画像となる。なお、生成された画像データは、I/F部112を介して外部メモリに格納されるとしてもよい。   When the non-tilt correction mode is set as the imaging mode, normal image generation processing that does not perform image tilt correction is executed. Specifically, light projected on the image sensor 108 through the lens 102 is converted into an electrical signal, further converted into digital data by the A / D converter 110, and then image data generated through development processing and encoding is obtained. It is stored in a predetermined area of the internal memory 200. At this time, the generated image is an image representing the subject displayed on the display unit 114 at the time of imaging, that is, an image having a composition intended by the user. The generated image data may be stored in an external memory via the I / F unit 112.

一方、撮像モードとして傾き補正モードが設定されているときには、以下に説明するように、画像の傾き補正を行う画像生成処理が実行される。   On the other hand, when the tilt correction mode is set as the imaging mode, an image generation process for correcting the tilt of the image is executed as described below.

図2は、撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャートである。図2に示した画像生成処理は、モード選択受領部216(図1)が、ユーザによる傾き補正モードを選択する選択指示を受領したときに開始される。ステップS110では、画像生成処理部210(図1)が、領域設定を行う。図3は、領域設定の一例を示す説明図である。図3には、撮像素子108(図1)の受光面を示している。なお、図3には、撮像素子108の受光面の中心点である点Oと、点Oを通る撮像素子108の受光面の直行座標軸であるX軸およびY軸と、を示している。X軸およびY軸は、それぞれ、撮像素子108の受光面の上下辺および左右辺に平行となるよう設定されている。また、図3には、参考のために、撮像素子108の受光面に投影された被写体も示している。   FIG. 2 is a flowchart showing the flow of image generation processing when the tilt correction mode is set as the imaging mode. The image generation processing shown in FIG. 2 is started when the mode selection receiving unit 216 (FIG. 1) receives a selection instruction for selecting a tilt correction mode by the user. In step S110, the image generation processing unit 210 (FIG. 1) performs area setting. FIG. 3 is an explanatory diagram showing an example of area setting. FIG. 3 shows the light receiving surface of the image sensor 108 (FIG. 1). FIG. 3 shows a point O that is the center point of the light receiving surface of the image sensor 108, and an X axis and a Y axis that are orthogonal coordinate axes of the light receiving surface of the image sensor 108 that passes through the point O. The X axis and the Y axis are set to be parallel to the upper and lower sides and the left and right sides of the light receiving surface of the image sensor 108, respectively. FIG. 3 also shows the subject projected on the light receiving surface of the image sensor 108 for reference.

図3に示すように、画像生成処理部210(図1)は、撮像素子108の受光面上に、表示対応領域DAと元画像生成領域SAとを設定する。ここで、表示対応領域DAとは、表示部114(図1)に表示される被写体の範囲に対応した撮像素子108の受光面上の領域を意味している。すなわち、撮像素子108上の表示対応領域DAにおいて撮像された画像が、表示部114に表示されることとなる。一方、元画像生成領域SAとは、後述の元画像SIの生成に使用される撮像素子108の受光面上の領域を意味している。すなわち、撮像素子108上の元画像生成領域SAにおいて撮像された画像が、元画像SIとなる。   As shown in FIG. 3, the image generation processing unit 210 (FIG. 1) sets a display corresponding area DA and an original image generation area SA on the light receiving surface of the image sensor 108. Here, the display corresponding area DA means an area on the light receiving surface of the image sensor 108 corresponding to the range of the subject displayed on the display unit 114 (FIG. 1). That is, an image captured in the display corresponding area DA on the image sensor 108 is displayed on the display unit 114. On the other hand, the original image generation area SA means an area on the light receiving surface of the image sensor 108 used for generation of an original image SI described later. That is, the image captured in the original image generation area SA on the image sensor 108 becomes the original image SI.

図3に示すように、表示対応領域DAは、撮像素子108の受光面よりも小さい領域に設定される。一方、元画像生成領域SAは、表示対応領域DAと表示対応領域DAの外周に付加された付加領域AA(図3においてハッチングを付して示す)とから構成される領域として設定される。すなわち、元画像生成領域SAは、表示対応領域DAより大きく、かつ表示対応領域DAを包含する領域に設定される。従って、本実施例のDSC100では、表示部114に表示された被写体の範囲よりも広い範囲の被写体の画像が元画像SIとして生成される。なお、本実施例では、表示対応領域DAおよび元画像生成領域SAは、各辺が撮像素子108の受光面の各辺と平行な矩形の領域として設定される。また、元画像生成領域SAは、撮像素子108の受光面のほぼ全面の領域に設定される。以下の説明では、表示対応領域DAの幅(X方向の長さ)をWdと表し、高さ(Y方向の長さ)をHdと表す。同様に、元画像生成領域SAの幅をWsと、高さをHsと表す。   As shown in FIG. 3, the display corresponding area DA is set to an area smaller than the light receiving surface of the image sensor 108. On the other hand, the original image generation area SA is set as an area composed of a display corresponding area DA and an additional area AA (shown with hatching in FIG. 3) added to the outer periphery of the display corresponding area DA. That is, the original image generation area SA is set to an area larger than the display corresponding area DA and including the display corresponding area DA. Therefore, in the DSC 100 of the present embodiment, an image of a subject in a wider range than the range of the subject displayed on the display unit 114 is generated as the original image SI. In this embodiment, the display corresponding area DA and the original image generation area SA are set as rectangular areas whose sides are parallel to the sides of the light receiving surface of the image sensor 108. Further, the original image generation area SA is set to an almost entire area of the light receiving surface of the image sensor 108. In the following description, the width (the length in the X direction) of the display corresponding area DA is represented as Wd, and the height (the length in the Y direction) is represented as Hd. Similarly, the width of the original image generation area SA is expressed as Ws, and the height is expressed as Hs.

ステップS120(図2)では、画像生成処理部210(図1)が、ユーザからの撮像指示を受領する。撮像指示は、例えば、操作部116(図1)に含まれるレリーズボタンの押し下げにより行われる。   In step S120 (FIG. 2), the image generation processing unit 210 (FIG. 1) receives an imaging instruction from the user. The imaging instruction is performed, for example, by pressing a release button included in the operation unit 116 (FIG. 1).

ステップS130(図2)では、傾き量検出部212(図1)が、撮像時におけるDSC100の傾きを表す撮像時傾き量αを検出する。傾き量検出部212は、ステップS120の撮像指示受領の直後に、角度センサ120としての2軸の加速度センサからの出力を受領し、鉛直面に沿ったDSC100の傾きを撮像時傾き量αとして算出する。DSC100が傾くと、撮像素子108も同様に傾くので、撮像時傾き量αは撮像素子108の傾きを表すとも言える。一般に、DSC100は、横向きと縦向きとの2通りの基本姿勢で使用される。そのため、撮像時傾き量αは、基本姿勢時を基準に右回りを正として、−45度から+45度までの範囲の値として検出される。図3には、撮像時傾き量αを表示している。なお、傾き量検出部212は、ステップS120の撮像指示受領の瞬間または直前における角度センサ120の出力を用いて撮像時傾き量αを算出するとしてもよい。   In step S130 (FIG. 2), the tilt amount detection unit 212 (FIG. 1) detects an image capturing tilt amount α representing the tilt of the DSC 100 during image capturing. The inclination amount detection unit 212 receives the output from the biaxial acceleration sensor as the angle sensor 120 immediately after receiving the imaging instruction in step S120, and calculates the inclination of the DSC 100 along the vertical plane as the imaging inclination amount α. To do. When the DSC 100 is tilted, the image sensor 108 is similarly tilted. Therefore, it can be said that the imaging tilt amount α represents the tilt of the image sensor 108. In general, the DSC 100 is used in two basic postures, a horizontal orientation and a vertical orientation. Therefore, the imaging tilt amount α is detected as a value in a range from −45 degrees to +45 degrees with the clockwise direction being positive with respect to the basic posture. In FIG. 3, the amount of tilt α during imaging is displayed. Note that the inclination amount detection unit 212 may calculate the imaging inclination amount α using the output of the angle sensor 120 at the moment or immediately before the reception of the imaging instruction in step S120.

ステップS140(図2)では、画像生成処理部210(図1)が、元画像SIを生成する。図4は、元画像SIの一例を示す説明図である。元画像SIは、上述したように、元画像生成領域SA(図3)において撮像された画像として生成される。そのため、図4に示すように、元画像SIは、表示部114(図1)に表示された被写体の範囲よりも広い範囲の被写体を表す画像となる。図4の例では、元画像SIは、撮像時のDSC100の傾きの影響を受けて、水平線が傾いた画像となっている。生成された元画像SIは、内部メモリ200の所定の領域に一時的に格納される。   In step S140 (FIG. 2), the image generation processing unit 210 (FIG. 1) generates the original image SI. FIG. 4 is an explanatory diagram showing an example of the original image SI. As described above, the original image SI is generated as an image captured in the original image generation area SA (FIG. 3). Therefore, as shown in FIG. 4, the original image SI is an image representing a subject in a wider range than the range of the subject displayed on the display unit 114 (FIG. 1). In the example of FIG. 4, the original image SI is an image in which the horizontal line is inclined under the influence of the inclination of the DSC 100 at the time of imaging. The generated original image SI is temporarily stored in a predetermined area of the internal memory 200.

ステップS150(図2)では、補正処理部214(図1)が、元画像SIと撮像時傾き量αとに基づき、補正画像CIを生成する。補正画像CIは、表示部114に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像であって、DSC100の撮像時の傾きの影響を取り除くように補正された画像である。図5は、補正画像CIの生成の概念を示す説明図である。図5には、撮像素子108の受光面を示している。補正画像CIは、撮像素子108上の補正画像領域CA(図5)に対応する画像を、元画像SI(図4)から切り出すことによって生成される。ここで、補正画像領域CAは、図5に示すとおり、撮像素子108上の表示対応領域DAを、点Oを中心として、DSC100の傾き方向と反対方向に撮像時傾き量α分回転させた領域である。   In step S150 (FIG. 2), the correction processing unit 214 (FIG. 1) generates a corrected image CI based on the original image SI and the imaging tilt amount α. The corrected image CI is an image representing a subject in the same size range as the range of the subject displayed on the display unit 114, and is an image that has been corrected so as to remove the influence of tilt when the DSC 100 is imaged. FIG. 5 is an explanatory diagram showing the concept of generation of the corrected image CI. FIG. 5 shows a light receiving surface of the image sensor 108. The corrected image CI is generated by cutting out an image corresponding to the corrected image area CA (FIG. 5) on the image sensor 108 from the original image SI (FIG. 4). Here, as shown in FIG. 5, the corrected image area CA is an area obtained by rotating the display corresponding area DA on the image sensor 108 about the point O in the direction opposite to the tilt direction of the DSC 100 by the imaging tilt amount α. It is.

補正画像領域CAの4つの頂点を、図5に示すようにZ1,Z2,Z3,Z4と表し、それぞれの撮像素子108上における座標をZ1(Xz1,Yz1),Z2(Xz2,Yz2),Z3(Xz3,Yz3),Z4(Xz4,Yz4)と表す。このとき、補正画像領域CAの4つの頂点の座標は、以下の式(1)〜(4)で表される。

Figure 0004379363
The four vertices of the corrected image area CA are represented as Z1, Z2, Z3, and Z4 as shown in FIG. 5, and the coordinates on the image sensor 108 are Z1 (Xz1, Yz1), Z2 (Xz2, Yz2), and Z3. (Xz3, Yz3), Z4 (Xz4, Yz4). At this time, the coordinates of the four vertices of the corrected image area CA are expressed by the following equations (1) to (4).
Figure 0004379363

補正処理部214(図1)は、上記の式(1)〜(4)により、撮像素子108上における補正画像領域CAの位置を算出し、算出した補正画像領域CAの位置と元画像生成領域SAの位置との関係から、元画像SIにおける補正画像CIの位置を算出し、補正画像CIを生成する。図6は、生成された補正画像CIの一例を示す説明図である。図6に示すように、生成された補正画像CIは、撮像時のDSC100の傾きの影響が補正された画像となっている。また、補正画像CIに表された画角は、表示部114に表示された画角と同じとなっている。なお、本実施例では、撮像時傾き量αと元画像SIにおける補正画像CIの位置との対応関係は、一義的に定まる。そのため、当該対応関係を予め算出して内部メモリ200に格納しておき、補正処理部214が、格納された対応関係を参照して補正画像CIを生成するとしてもよい。   The correction processing unit 214 (FIG. 1) calculates the position of the corrected image area CA on the image sensor 108 by the above formulas (1) to (4), and calculates the position of the corrected image area CA and the original image generation area. From the relationship with the position of the SA, the position of the corrected image CI in the original image SI is calculated, and the corrected image CI is generated. FIG. 6 is an explanatory diagram illustrating an example of the generated corrected image CI. As shown in FIG. 6, the generated corrected image CI is an image in which the influence of the tilt of the DSC 100 at the time of imaging is corrected. In addition, the angle of view represented in the corrected image CI is the same as the angle of view displayed on the display unit 114. In the present embodiment, the correspondence relationship between the imaging tilt amount α and the position of the corrected image CI in the original image SI is uniquely determined. Therefore, the correspondence relationship may be calculated in advance and stored in the internal memory 200, and the correction processing unit 214 may generate the corrected image CI with reference to the stored correspondence relationship.

ステップS160(図2)では、画像生成処理部210(図1)が、補正画像CIに対して所定の現像処理およびエンコードを行った後、補正画像CIのデータを内部メモリ200(図1)の所定の領域に格納する。   In step S160 (FIG. 2), after the image generation processing unit 210 (FIG. 1) performs predetermined development processing and encoding on the corrected image CI, the data of the corrected image CI is stored in the internal memory 200 (FIG. 1). Store in a predetermined area.

以上説明したように、本実施例のDSC100は、傾き補正モードが設定されているとき、DSC100の撮像時の傾きの影響を取り除くように補正された補正画像CIを生成する。このとき、元画像生成領域SAは、表示対応領域DAより大きくかつ表示対応領域DAを包含する領域として設定される(図5参照)。そのため、元画像SIは、表示部114(図1)に表示された被写体の範囲よりも広い範囲の被写体を表す画像となる。従って、補正画像CIを、表示部114に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像とすることができる。従って、本実施例のDSC100では、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   As described above, when the tilt correction mode is set, the DSC 100 according to the present embodiment generates a corrected image CI that is corrected so as to remove the influence of tilt when the DSC 100 is imaged. At this time, the original image generation area SA is set as an area larger than the display corresponding area DA and including the display corresponding area DA (see FIG. 5). Therefore, the original image SI is an image representing a subject in a wider range than the range of the subject displayed on the display unit 114 (FIG. 1). Therefore, the corrected image CI can be an image representing a subject in a range having the same size as the range of the subject displayed on the display unit 114. Therefore, the DSC 100 according to the present embodiment can correct the inclination of the image while suppressing the angle of view of the image assumed by the user from being narrowed.

また、本実施例のDSC100では、傾き補正モードおよび非傾き補正モードの2つの撮像モードを有している。そのため、傾き補正モード時には、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができ、非傾き補正モード時には、撮像素子108を有効に活用した画像の生成を行うことができる。   In addition, the DSC 100 of the present embodiment has two imaging modes, a tilt correction mode and a non-tilt correction mode. Therefore, in the tilt correction mode, the tilt of the image can be corrected while suppressing the narrowing of the angle of view of the image assumed by the user. In the non-tilt correction mode, the image generation using the image sensor 108 is effectively performed. It can be performed.

B.第2実施例:
図7は、第2実施例としてのデジタルスチルカメラ100aの構成を概略的に示す説明図である。図1に示した第1実施例のDSC100との違いは、第2実施例のDSC100aでは、画像生成処理部210に、元画像生成領域SAの設定を行う元画像生成領域設定部217が含まれている点である。
B. Second embodiment:
FIG. 7 is an explanatory diagram schematically showing a configuration of a digital still camera 100a as the second embodiment. The difference from the DSC 100 of the first embodiment shown in FIG. 1 is that in the DSC 100a of the second embodiment, the image generation processing section 210 includes an original image generation area setting section 217 for setting the original image generation area SA. It is a point.

図8は、第2実施例において、撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャートである。図2に示した第1実施例の画像生成処理との違いは、第1実施例における領域設定(図2のステップS110)の内、元画像生成領域SAの設定(図8のステップS134)を撮像指示受領(図8のステップS132)の後に実行している点である。第2実施例の画像生成処理では、後述するように、元画像生成領域SAは撮像時傾き量αに応じて可変に設定される。   FIG. 8 is a flowchart showing the flow of image generation processing when the tilt correction mode is set as the imaging mode in the second embodiment. The difference from the image generation process of the first embodiment shown in FIG. 2 is that the setting of the original image generation area SA (step S134 of FIG. 8) in the area setting (step S110 of FIG. 2) of the first embodiment is different. This is executed after receiving the imaging instruction (step S132 in FIG. 8). In the image generation process of the second embodiment, as will be described later, the original image generation area SA is variably set according to the imaging tilt amount α.

ステップS112では、画像生成処理部210(図7)が、表示対応領域DAの設定を行う。表示対応領域DAの設定方法は、第1実施例と同様である。   In step S112, the image generation processing unit 210 (FIG. 7) sets the display corresponding area DA. The method for setting the display corresponding area DA is the same as in the first embodiment.

ステップS130(図8)では、傾き量検出部212(図7)が、撮像時におけるDSC100の傾きを表す撮像時傾き量αを検出する。ステップS132では、画像生成処理部210(図7)が、撮像指示を受領したか否かを判定する。撮像指示をまだ受領していないと判定したときは、再度、ステップS130に戻り、撮像時傾き量αを検出する。一方、撮像指示を受領したと判定したときは、処理をステップS134に進める。すなわち、ステップS130およびS132において、撮像時傾き量αが、撮像指示受領まで検出され続けることとなる。   In step S130 (FIG. 8), the tilt amount detection unit 212 (FIG. 7) detects an image capturing tilt amount α representing the tilt of the DSC 100 during image capturing. In step S132, the image generation processing unit 210 (FIG. 7) determines whether an imaging instruction has been received. When it is determined that the imaging instruction has not yet been received, the process returns to step S130 again to detect the imaging tilt amount α. On the other hand, if it is determined that an imaging instruction has been received, the process proceeds to step S134. That is, in steps S130 and S132, the imaging tilt amount α is continuously detected until the imaging instruction is received.

ステップS134(図8)では、元画像生成領域設定部217(図7)が、元画像生成領域SAを設定する。元画像生成領域SAの設定は、撮像時傾き量αに基づいて行われる。   In step S134 (FIG. 8), the original image generation area setting unit 217 (FIG. 7) sets the original image generation area SA. The original image generation area SA is set based on the imaging tilt amount α.

図9は、元画像生成領域SAの設定方法の一例を示す説明図である。図9に示すように、第2実施例では、元画像生成領域SAは、補正画像領域CAを包含する最小の矩形の領域として設定される。補正画像領域CAは、ステップS112で設定された表示対応領域DAとステップS130で検出された撮像時傾き量αとに基づき一義的に定まるため、元画像生成領域SAも一義的に定まる。具体的には、元画像生成領域SAの幅Wsおよび高さHsは、以下の式(5)〜(8)により算出される。

Figure 0004379363
FIG. 9 is an explanatory diagram showing an example of a method for setting the original image generation area SA. As shown in FIG. 9, in the second embodiment, the original image generation area SA is set as a minimum rectangular area including the corrected image area CA. Since the corrected image area CA is uniquely determined based on the display corresponding area DA set in step S112 and the imaging tilt amount α detected in step S130, the original image generation area SA is also uniquely determined. Specifically, the width Ws and the height Hs of the original image generation area SA are calculated by the following equations (5) to (8).
Figure 0004379363

なお、撮像時傾き量αと元画像生成領域SAとの対応関係を予め算出して内部メモリ200に格納しておき、元画像生成領域設定部217が、格納された対応関係を参照して元画像生成領域SAを設定するとしてもよい。   It should be noted that the correspondence relationship between the imaging inclination amount α and the original image generation area SA is calculated in advance and stored in the internal memory 200, and the original image generation area setting unit 217 refers to the stored correspondence relation to The image generation area SA may be set.

ステップS140〜S160(図8)の処理は、図2に示した第1実施例と同様の処理である。すなわち、設定された元画像生成領域SAに対応した元画像SIが生成され、元画像SIと撮像時傾き量αとに基づき補正画像CIが生成され、所定の現像処理およびエンコードが行われ、画像データが格納される。   The processes in steps S140 to S160 (FIG. 8) are the same as those in the first embodiment shown in FIG. That is, an original image SI corresponding to the set original image generation area SA is generated, a corrected image CI is generated based on the original image SI and the imaging tilt amount α, predetermined development processing and encoding are performed, and the image Data is stored.

以上説明したように、第2実施例のDSC100aは、傾き補正モードが設定されているとき、DSC100aの撮像時の傾きの影響を取り除くように補正された補正画像CIを生成する。このとき第1実施例と同様に、元画像生成領域SAが、表示対応領域DAより大きくかつ表示対応領域DAを包含する領域として設定されるため、元画像SIは、表示部114に表示された被写体の範囲よりも広い範囲の被写体を表す画像となる。そのため、補正画像CIを、表示部114に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像とすることができる。従って、第2実施例のDSC100aでも、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   As described above, when the tilt correction mode is set, the DSC 100a according to the second embodiment generates the corrected image CI that is corrected so as to remove the influence of the tilt at the time of imaging of the DSC 100a. At this time, as in the first embodiment, the original image generation area SA is set as an area larger than the display corresponding area DA and including the display corresponding area DA, so that the original image SI is displayed on the display unit 114. The image represents a subject in a wider range than the subject range. Therefore, the corrected image CI can be an image representing a subject in a range having the same size as the range of the subject displayed on the display unit 114. Therefore, the DSC 100a according to the second embodiment can correct the inclination of the image while suppressing the narrowing of the angle of view of the image assumed by the user.

また、第2実施例のDSC100aでは、元画像生成領域SAが、撮像時傾き量αに基づき、補正画像領域CAを包含する最小の矩形の領域として設定される(図9参照)。そのため、画像の傾き補正のために必要十分な被写体の範囲が撮像された元画像SIを生成することができる。従って、処理に伴う消費電力の低減を図ることができると共に、撮像素子や記憶領域といったリソースの有効活用を図ることができる。   In the DSC 100a of the second embodiment, the original image generation area SA is set as a minimum rectangular area including the corrected image area CA based on the imaging tilt amount α (see FIG. 9). Therefore, it is possible to generate the original image SI in which the range of the subject necessary and sufficient for correcting the image inclination is captured. Therefore, it is possible to reduce the power consumption associated with the processing and to effectively use resources such as an image sensor and a storage area.

C.第3実施例:
図10は、第3実施例としてのデジタルスチルカメラ100bの構成を概略的に示す説明図である。図1に示した第1実施例のDSC100との違いは、第3実施例のDSC100bでは、画像生成処理部210に、元画像SIのピント位置を検出するピント位置検出部218が含まれている点である。
C. Third embodiment:
FIG. 10 is an explanatory diagram schematically showing the configuration of a digital still camera 100b as a third embodiment. The difference from the DSC 100 of the first embodiment shown in FIG. 1 is that in the DSC 100b of the third embodiment, the image generation processing unit 210 includes a focus position detection unit 218 that detects the focus position of the original image SI. Is a point.

図11は、第3実施例において、撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャートである。図2に示した第1実施例の画像生成処理との違いは、第3実施例では、ステップS142においてピント位置の検出を行っている点である。また、ステップS150の補正画像CIの生成において、傾き補正の中心点を、ステップS142で検出したピント位置としている点も、第1実施例とは異なっている。   FIG. 11 is a flowchart illustrating the flow of image generation processing when the tilt correction mode is set as the imaging mode in the third embodiment. The difference from the image generation process of the first embodiment shown in FIG. 2 is that the focus position is detected in step S142 in the third embodiment. Further, in the generation of the corrected image CI in step S150, the center point of inclination correction is set to the focus position detected in step S142, which is different from the first embodiment.

ステップS110〜S140(図11)の処理は、図2に示した第1実施例と同様の処理である。   The processes in steps S110 to S140 (FIG. 11) are the same as those in the first embodiment shown in FIG.

ステップS142では、ピント位置取得部218(図10)が、元画像SIの撮像時におけるピント位置を取得する。一般に、DSC100bのピント位置は、予め設定された1つまたは複数の点の内の、1つに設定される。あるいは、ユーザが任意の点をピント位置と設定できる場合もある。ピント位置取得部218は、撮像時に設定されたピント位置を、撮像素子108上の位置として取得する。   In step S142, the focus position acquisition unit 218 (FIG. 10) acquires the focus position at the time of capturing the original image SI. In general, the focus position of the DSC 100b is set to one of one or more preset points. Alternatively, the user may be able to set an arbitrary point as the focus position. The focus position acquisition unit 218 acquires the focus position set at the time of imaging as the position on the image sensor 108.

ステップS150(図11)では、補正処理部214(図10)が、元画像SIと撮像時傾き量αとに基づき、補正画像CIを生成する。図12は、補正画像CIの生成の概念を示す説明図である。補正画像CIは、第1実施例と同様に、撮像素子108上の補正画像領域CAに対応する画像を、元画像SIから切り出すことによって生成される。ただし、第3実施例では、補正画像領域CAは、撮像素子108上の表示対応領域DAを、点Oではなく、ピント位置点Pを中心として撮像時傾き量α分回転させた領域として設定される。   In step S150 (FIG. 11), the correction processing unit 214 (FIG. 10) generates a corrected image CI based on the original image SI and the imaging tilt amount α. FIG. 12 is an explanatory diagram showing the concept of generation of the corrected image CI. The corrected image CI is generated by cutting out an image corresponding to the corrected image area CA on the image sensor 108 from the original image SI, as in the first embodiment. However, in the third embodiment, the corrected image area CA is set as an area obtained by rotating the display corresponding area DA on the image sensor 108 by the imaging tilt amount α around the focus position point P instead of the point O. The

ピント位置点Pの座標をP(Xp,Yp)と表すと、第3実施例における補正画像領域CAの4つの頂点Z1,Z2,Z3,Z4の座標Z1(Xz1,Yz1),Z2(Xz2,Yz2),Z3(Xz3,Yz3),Z4(Xz4,Yz4)は、以下の式(9)〜(12)で表される。

Figure 0004379363
When the coordinates of the focus position point P are expressed as P (Xp, Yp), the coordinates Z1 (Xz1, Yz1), Z2 (Xz2,) of the four vertices Z1, Z2, Z3, Z4 of the corrected image area CA in the third embodiment. Yz2), Z3 (Xz3, Yz3), and Z4 (Xz4, Yz4) are represented by the following formulas (9) to (12).
Figure 0004379363

なお、ステップS142において、ピント位置が複数取得される場合も考えられる。この場合には、補正画像領域CAを求めるための回転中心を、第1実施例と同様に、点Oの位置に設定する。なお、回転中心を、取得された複数のピント位置の内の任意の1つとしたり、複数のピント位置の中心位置としたり、複数のピント位置の重心としたりしてもよい。   Note that a plurality of focus positions may be acquired in step S142. In this case, the rotation center for obtaining the corrected image area CA is set at the position of the point O as in the first embodiment. The rotation center may be any one of the acquired plurality of focus positions, the center position of the plurality of focus positions, or the center of gravity of the plurality of focus positions.

補正処理部214(図10)は、上記の式(9)〜(12)により、撮像素子108上における補正画像領域CAの位置を算出し、第1実施例と同様に、補正画像CIを生成する。その後ステップS160(図11)で、補正画像CIに対して所定の現像処理およびエンコードが行なわれ、補正画像CIのデータが内部メモリ200の所定の領域に格納される。   The correction processing unit 214 (FIG. 10) calculates the position of the corrected image area CA on the image sensor 108 by the above formulas (9) to (12), and generates the corrected image CI as in the first embodiment. To do. Thereafter, in step S160 (FIG. 11), predetermined development processing and encoding are performed on the corrected image CI, and the data of the corrected image CI is stored in a predetermined area of the internal memory 200.

以上説明したように、第3実施例のDSC100bは、傾き補正モードが設定されているとき、DSC100bの撮像時の傾きの影響を取り除くように補正された補正画像CIを生成する。このとき第1実施例と同様に、元画像生成領域SAが、表示対応領域DAより大きくかつ表示対応領域DAを包含する領域として設定されるため、元画像SIは、表示部114に表示された被写体の範囲よりも広い範囲の被写体を表す画像となる。そのため、補正画像CIを、表示部114に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像とすることができる。従って、第3実施例のDSC100bでも、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   As described above, when the tilt correction mode is set, the DSC 100b according to the third embodiment generates the corrected image CI that is corrected so as to remove the influence of the tilt at the time of imaging of the DSC 100b. At this time, as in the first embodiment, the original image generation area SA is set as an area larger than the display corresponding area DA and including the display corresponding area DA, so that the original image SI is displayed on the display unit 114. The image represents a subject in a wider range than the subject range. Therefore, the corrected image CI can be an image representing a subject in a range having the same size as the range of the subject displayed on the display unit 114. Therefore, the DSC 100b according to the third embodiment can correct the inclination of the image while suppressing the narrowing of the angle of view of the image assumed by the user.

また、第3実施例のDSC100bでは、補正画像領域CAが、表示対応領域DAを、ピント位置点Pを中心として撮像時傾き量α分回転させた領域として設定される。そのため、ユーザが意図した構図により近い補正画像CIを生成することができる。   In the DSC 100b of the third embodiment, the corrected image area CA is set as an area obtained by rotating the display corresponding area DA by the imaging tilt amount α around the focus position point P. Therefore, it is possible to generate a corrected image CI that is closer to the composition intended by the user.

D.第4実施例:
図13は、第4実施例において、撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャートである。図8に示した第2実施例の画像生成処理との違いは、第4実施例では、ステップS134の元画像生成領域設定処理の後に、ステップS136およびS138の処理を実行している点である。なお、第4実施例におけるDSC100の構成は、図7に示した第2実施例と同じ構成である。
D. Fourth embodiment:
FIG. 13 is a flowchart illustrating the flow of image generation processing when the tilt correction mode is set as the imaging mode in the fourth embodiment. The difference from the image generation process of the second embodiment shown in FIG. 8 is that, in the fourth embodiment, the processes of steps S136 and S138 are executed after the original image generation area setting process of step S134. . The configuration of the DSC 100 in the fourth embodiment is the same as that of the second embodiment shown in FIG.

ステップS136では、画像生成処理部210(図7)が、ステップS134で設定された元画像生成領域SAが、撮像素子108(図7)の受光面内に収まっているか否かの判定を行う。図14は、元画像生成領域SAと撮像素子108の受光面との関係の一例を示す説明図である。撮像時傾き量αが大きい場合には、図14に示すように、撮像時傾き量αに基づき設定された元画像生成領域SAが、撮像素子108の受光面より広い領域となる場合がある。この場合には、補正画像CIを生成するために必要な大きさの元画像SIを生成することができない。そのため、ステップS136で元画像生成領域SAが撮像素子108の受光面内に収まっていないと判定されたときには、処理はステップS138に進む。一方、元画像生成領域SAが撮像素子108の受光面内に収まっていると判定されたときには、補正画像CIを生成するために必要な大きさの元画像SIを生成することができるため、ステップS140以降の処理に進む。   In step S136, the image generation processing unit 210 (FIG. 7) determines whether or not the original image generation area SA set in step S134 is within the light receiving surface of the image sensor 108 (FIG. 7). FIG. 14 is an explanatory diagram showing an example of the relationship between the original image generation area SA and the light receiving surface of the image sensor 108. When the imaging tilt amount α is large, as shown in FIG. 14, the original image generation area SA set based on the imaging tilt amount α may be a wider area than the light receiving surface of the image sensor 108. In this case, the original image SI having a size necessary for generating the corrected image CI cannot be generated. Therefore, when it is determined in step S136 that the original image generation area SA is not within the light receiving surface of the image sensor 108, the process proceeds to step S138. On the other hand, when it is determined that the original image generation area SA is within the light receiving surface of the image sensor 108, an original image SI having a size necessary for generating the corrected image CI can be generated. It progresses to the process after S140.

ステップS138(図13)では、画像生成処理部210(図7)が、レンズ駆動制御回路106およびレンズ駆動部104を制御してレンズ102を駆動すると共に、元画像生成領域SAおよび表示対応領域DAの再設定を行う。具体的には、表示部114(図7)に表示された被写体の範囲を固定し、元画像生成領域SAを、撮像素子108の受光面内に収まるように設定できるように、レンズ102がワイド側に駆動される。図15は、レンズ102駆動後に再設定された元画像生成領域SAと撮像素子108との関係を示す説明図である。
表示部114に表示された被写体の範囲を固定とすれば、レンズ102がワイド側に駆動されると、撮像素子108の受光面上の表示対応領域DAの大きさは小さくなる。そのため、レンズ102がワイド側に駆動されると、補正画像領域CAの大きさも小さくなり、補正画像領域CAを包含する元画像生成領域SAを、より小さい領域として再設定できるようになる。画像生成処理部210は、図15に示すように元画像生成領域SAを再設定できる状態となるまで、レンズ102をワイド側に駆動し、その後、元画像生成領域SAおよび表示対応領域DAを再設定する。
In step S138 (FIG. 13), the image generation processing unit 210 (FIG. 7) controls the lens drive control circuit 106 and the lens drive unit 104 to drive the lens 102, and the original image generation area SA and the display corresponding area DA. Reset the settings. Specifically, the lens 102 is wide so that the range of the subject displayed on the display unit 114 (FIG. 7) can be fixed and the original image generation area SA can be set within the light receiving surface of the image sensor 108. Driven to the side. FIG. 15 is an explanatory diagram showing the relationship between the original image generation area SA reset after driving the lens 102 and the image sensor 108.
If the range of the subject displayed on the display unit 114 is fixed, when the lens 102 is driven to the wide side, the size of the display corresponding area DA on the light receiving surface of the image sensor 108 becomes small. Therefore, when the lens 102 is driven to the wide side, the size of the corrected image area CA is also reduced, and the original image generation area SA that includes the corrected image area CA can be reset as a smaller area. The image generation processing unit 210 drives the lens 102 to the wide side until the original image generation area SA can be reset as shown in FIG. 15, and then resets the original image generation area SA and the display corresponding area DA. Set.

なお、レンズ102が、ワイド端まで駆動されても、元画像生成領域SAを撮像素子108の受光面内に収まるように再設定できない場合には、処理はエラーとなり、画像の傾き補正は実行されない。または、レンズ102をワイド端まで駆動し、元画像生成領域SAを可能な限り大きく再設定し、補正画像領域CAを、表示対応領域DAに対する補正画像領域CAの傾き量を低減して元画像生成領域SAに包含されるように設定し、設定した補正画像領域CAに対応した補正画像CIを生成するとしてもよい。   If the original image generation area SA cannot be reset so as to be within the light receiving surface of the image sensor 108 even if the lens 102 is driven to the wide end, the process becomes an error, and image tilt correction is not executed. . Alternatively, the lens 102 is driven to the wide end, the original image generation area SA is reset as large as possible, and the corrected image area CA is reduced by reducing the inclination amount of the corrected image area CA with respect to the display corresponding area DA. It may be set so as to be included in the area SA, and a corrected image CI corresponding to the set corrected image area CA may be generated.

ステップS140〜S160の処理内容は、図8に示した第2実施例と同様の内容である。   The processing contents of steps S140 to S160 are the same as those in the second embodiment shown in FIG.

以上説明したように、第4実施例のDSC100は、傾き補正モードが設定されているとき、DSC100の撮像時の傾きの影響を取り除くように補正された補正画像CIを生成する。このとき第1実施例と同様に、元画像生成領域SAが、表示対応領域DAより大きくかつ表示対応領域DAを包含する領域として設定されるため、元画像SIは、表示部114に表示された被写体の範囲よりも広い範囲の被写体を表す画像となる。そのため、補正画像CIを、表示部114に表示された被写体の範囲と同じ大きさの範囲の被写体を表す画像とすることができる。従って、第4実施例のDSC100でも、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。   As described above, when the tilt correction mode is set, the DSC 100 of the fourth embodiment generates the corrected image CI that is corrected so as to remove the influence of the tilt when the DSC 100 is imaged. At this time, as in the first embodiment, the original image generation area SA is set as an area larger than the display corresponding area DA and including the display corresponding area DA, so that the original image SI is displayed on the display unit 114. The image represents a subject in a wider range than the subject range. Therefore, the corrected image CI can be an image representing a subject in a range having the same size as the range of the subject displayed on the display unit 114. Therefore, the DSC 100 according to the fourth embodiment can correct the inclination of the image while suppressing the angle of view of the image assumed by the user from being narrowed.

また、第4実施例のDSC100では、仮に、設定した元画像生成領域SAが撮像素子108の受光面内に収まらない場合には、元画像生成領域SAを撮像素子108の受光面内に収まるように再設定できる状態となるように、レンズ102が駆動される。そのため、表示対応領域DAの設定の自由度を向上させることができる。すなわち、例えば、最初に表示対応領域DAを撮像素子108の受光面とほぼ同じ領域に設定したとしても、その後にレンズ102を駆動することによって、最初に設定された表示対応領域DAに対応する画像の画角が狭くなることを抑制しつつ、画像の傾き補正を行うことができる。従って、例えば、従来のDSCに角度センサを付加することによって、このような傾き補正を実現することができる。   Further, in the DSC 100 of the fourth embodiment, if the set original image generation area SA does not fit within the light receiving surface of the image sensor 108, the original image generation area SA fits within the light receiving surface of the image sensor 108. The lens 102 is driven so as to be able to be reset to. Therefore, the degree of freedom for setting the display corresponding area DA can be improved. That is, for example, even if the display corresponding area DA is initially set to substantially the same area as the light receiving surface of the image sensor 108, the image corresponding to the initially set display corresponding area DA is driven by driving the lens 102 thereafter. The inclination of the image can be corrected while suppressing the narrowing of the angle of view. Therefore, for example, such an inclination correction can be realized by adding an angle sensor to a conventional DSC.

E.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
E. Variations:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

E1.変形例1:
上記各実施例では、角度センサ120(図1)によって撮像時傾き量αを検出しているが、撮像時傾き量αを元画像SIから検出するとしてもよい。元画像SIからの撮像時傾き量αの検出は、元画像SI内の水平方向と想定される線あるいは垂直方向と想定される線を、水平または垂直方向に反応するエッジ検出オペレータを用いて検出し、検出された線の元画像SIにおける傾き量を算出することにより行う。
E1. Modification 1:
In each of the above-described embodiments, the imaging tilt amount α is detected by the angle sensor 120 (FIG. 1). However, the imaging tilt amount α may be detected from the original image SI. The detection of the amount of tilt α during imaging from the original image SI is performed using an edge detection operator that reacts in the horizontal or vertical direction to a line that is assumed to be horizontal or vertical in the original image SI. Then, the amount of inclination of the detected line in the original image SI is calculated.

なお、元画像SIから撮像時傾き量αを検出する場合には、所定の現像処理を実行した後の元画像SIを用いて行うとしてもよい。   In addition, when detecting the imaging inclination amount α from the original image SI, it may be performed using the original image SI after executing a predetermined development process.

E2.変形例2:
上記第3実施例では、補正画像領域CAを求めるための回転中心をピント位置点Pに設定しているが、回転中心を元画像SIにおける所定の種類の被写体の位置に対応する位置に設定してもよい。所定の種類の被写体としては、例えば、人間の顔や人間の全身等が設定される。所定の種類の被写体として人間の顔が設定された場合には、顔検出技術を用いて元画像SIにおける顔領域を検出し、顔領域中の所定の位置を補正画像領域CAを求めるための回転中心に設定してもよい。なお、顔検出技術としては、パターンマッチングによる顔検出、肌色領域による顔検出、SVM(Support Vector Machine)等の識別器による顔検出等の公知の技術を採用することができる。また、所定の種類の被写体として人間の全身が設定された場合には、顔領域検出後に、全身領域検出を行い、全身領域中の所定の位置を補正画像領域CAを求めるための回転中心に設定してもよい。
E2. Modification 2:
In the third embodiment, the rotation center for obtaining the corrected image area CA is set to the focus position point P. However, the rotation center is set to a position corresponding to the position of a predetermined type of subject in the original image SI. May be. For example, a human face or a human whole body is set as the predetermined type of subject. When a human face is set as a predetermined type of subject, a face area in the original image SI is detected using a face detection technique, and a predetermined position in the face area is rotated to obtain a corrected image area CA. It may be set at the center. As the face detection technique, known techniques such as face detection by pattern matching, face detection by a skin color region, face detection by a classifier such as SVM (Support Vector Machine), etc. can be adopted. In addition, when the whole body of a human is set as a predetermined type of subject, the whole body area is detected after the face area is detected, and a predetermined position in the whole body area is set as the rotation center for obtaining the corrected image area CA. May be.

E3.変形例3:
上記各実施例では、画像生成処理中に傾き補正を行っていたが、画像生成後に、生成された画像を用いて傾き補正を行うとしてもよい。具体的には、傾き補正モードが設定されているときには、DSC100によって、元画像SIのデータと、表示対応領域DAに対応した元画像SI上の領域の位置を表す情報と、を含む画像ファイルが生成される。画像の傾き補正時には、まず、元画像SIから撮像時傾き量αが検出される。その後、元画像SIから、表示対応領域DAに対応した元画像SI上の領域を撮像時傾き量αによって補正した領域の画像が切り出されて、補正画像CIが生成される。このようにしても、ユーザの想定した画像の画角が狭くなることを抑制しつつ画像の傾き補正を行うことができる。
E3. Modification 3:
In each of the embodiments described above, the tilt correction is performed during the image generation process. However, the tilt correction may be performed using the generated image after the image generation. Specifically, when the tilt correction mode is set, the DSC 100 creates an image file including data of the original image SI and information indicating the position of the area on the original image SI corresponding to the display corresponding area DA. Generated. At the time of image inclination correction, first, an imaging inclination amount α is detected from the original image SI. Thereafter, an image of a region obtained by correcting the region on the original image SI corresponding to the display corresponding region DA with the tilt amount α during imaging is cut out from the original image SI, and the corrected image CI is generated. Even in this case, it is possible to correct the inclination of the image while suppressing the narrowing of the angle of view of the image assumed by the user.

なお、このような画像ファイルは、周知のExifファイルとして実現できる。また、画像ファイルに、DSC100の角度センサ120により検出された撮像時傾き量αも記録しておき、記録された撮像時傾き量αを用いて傾き補正を行うとしてもよい。   Such an image file can be realized as a well-known Exif file. In addition, it is also possible to record an image capturing tilt amount α detected by the angle sensor 120 of the DSC 100 in the image file, and perform tilt correction using the recorded image capturing tilt amount α.

E4.変形例4:
上記各実施例では、元画像生成領域SAを矩形の領域として設定しているが、必ずしも矩形の領域として設定する必要は無い。なお、元画像生成領域SAを矩形の領域として設定する場合に、元画像生成領域SAのアスペクト比を表示対応領域DAのアスペクト比と同じ値とする必要は無い。
E4. Modification 4:
In each of the above embodiments, the original image generation area SA is set as a rectangular area, but it is not always necessary to set it as a rectangular area. When the original image generation area SA is set as a rectangular area, the aspect ratio of the original image generation area SA does not have to be the same value as the aspect ratio of the display corresponding area DA.

E5.変形例5:
上記各実施例では、撮像時傾き量αを、−45度から+45度までの範囲の値として検出しているが、撮像時傾き量αを、より小さい所定の範囲に制限し、所定の範囲を超える撮像時傾き量αが検出されたときには、ユーザの意図した傾きであるとして、画像の傾き補正を行わないとしてもよい。
E5. Modification 5:
In each of the above embodiments, the imaging tilt amount α is detected as a value in a range from −45 degrees to +45 degrees. However, the imaging tilt amount α is limited to a smaller predetermined range, and the predetermined range. If an image-taking tilt amount α exceeding is detected, it may be assumed that the tilt is intended by the user, and the image tilt correction may not be performed.

E6.変形例6:
上記各実施例では、横長の構図の画像を生成する場合の傾き補正について説明したが、縦長の構図の画像(いわゆるポートレート画像)を生成する場合にも、同様に傾き補正を行うことができる。例えば、検出された撮像時傾き量αの値から、ユーザの意図した構図が横長か縦長かが判定される。縦長の構図と判定されたときは、DSC100が垂直に設置されたときを基準として撮像時傾き量αが検出され、当該撮像時傾き量αに基づき画像の傾き補正が行われる。
E6. Modification 6:
In each of the above-described embodiments, the inclination correction when generating an image having a horizontally long composition has been described. However, even when an image having a vertically long composition (a so-called portrait image) is generated, the inclination correction can be similarly performed. . For example, it is determined whether the composition intended by the user is horizontally long or vertically long from the value of the detected inclination amount α during imaging. When it is determined that the composition is vertically long, the imaging tilt amount α is detected with reference to when the DSC 100 is installed vertically, and image tilt correction is performed based on the imaging tilt amount α.

E7.変形例7:
上記各実施例では、ユーザが、撮像モードの選択指示を行うとしているが、撮像モードは、撮像時傾き量αに基づき自動的に行うとしてもよい。例えば、撮像時傾き量αが微少のときは非傾き補正モードが設定され、撮像時傾き量αの値が所定の第1の閾値以上となると傾き補正モードが設定され、撮像時傾き量αの値が第1の閾値より大きい所定の第2の閾値以上となると非傾き補正モードが設定されるとしてもよい。
E7. Modification 7:
In each of the above embodiments, the user instructs the selection of the imaging mode, but the imaging mode may be automatically performed based on the imaging tilt amount α. For example, the non-tilt correction mode is set when the amount of tilt α during imaging is small, and the tilt correction mode is set when the value of the amount of tilt α during imaging exceeds a predetermined first threshold value. The non-tilt correction mode may be set when the value is equal to or greater than a predetermined second threshold value that is greater than the first threshold value.

E8.変形例8:
上記各実施例では、補正画像領域CAを、表示対応領域DAを回転させた領域として設定している。すなわち、補正画像領域CAを、表示対応領域DAと同じ大きさの領域として設定しているが、必ずしも補正画像領域CAを、表示対応領域DAと同じ大きさの領域とする必要はない。
E8. Modification 8:
In each of the above embodiments, the corrected image area CA is set as an area obtained by rotating the display corresponding area DA. That is, although the corrected image area CA is set as an area having the same size as the display corresponding area DA, the corrected image area CA is not necessarily required to be an area having the same size as the display corresponding area DA.

E9.変形例9:
上記各実施例のDSC100の構成は、あくまで一例であり、DSC100の構成を他の構成とすることも可能である。また、上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。
E9. Modification 9:
The configuration of the DSC 100 in each of the above embodiments is merely an example, and the configuration of the DSC 100 can be other configurations. In each of the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part of the configuration realized by software may be replaced by hardware. Also good.

本発明の第1実施例としてのデジタルスチルカメラの構成を概略的に示す説明図。BRIEF DESCRIPTION OF THE DRAWINGS Explanatory drawing which shows schematically the structure of the digital still camera as 1st Example of this invention. 撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャート。The flowchart which shows the flow of an image generation process when the inclination correction mode is set as an imaging mode. 領域設定の一例を示す説明図。Explanatory drawing which shows an example of area | region setting. 元画像SIの一例を示す説明図。Explanatory drawing which shows an example of the original image SI. 補正画像CIの生成の概念を示す説明図。Explanatory drawing which shows the concept of the production | generation of the correction | amendment image CI. 生成された補正画像CIの一例を示す説明図。Explanatory drawing which shows an example of the produced | generated correction image CI. 第2実施例としてのデジタルスチルカメラの構成を概略的に示す説明図。Explanatory drawing which shows schematically the structure of the digital still camera as 2nd Example. 第2実施例において撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャート。12 is a flowchart illustrating a flow of image generation processing when an inclination correction mode is set as an imaging mode in the second embodiment. 元画像生成領域SAの設定方法の一例を示す説明図。Explanatory drawing which shows an example of the setting method of original image generation area SA. 第3実施例としてのデジタルスチルカメラの構成を概略的に示す説明図。Explanatory drawing which shows schematically the structure of the digital still camera as 3rd Example. 第3実施例において撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャート。10 is a flowchart illustrating a flow of image generation processing when an inclination correction mode is set as an imaging mode in the third embodiment. 補正画像CIの生成の概念を示す説明図。Explanatory drawing which shows the concept of the production | generation of the correction | amendment image CI. 第4実施例において撮像モードとして傾き補正モードが設定されているときの画像生成処理の流れを示すフローチャート。10 is a flowchart illustrating a flow of image generation processing when an inclination correction mode is set as an imaging mode in the fourth embodiment. 元画像生成領域SAと撮像素子の受光面との関係の一例を示す説明図。Explanatory drawing which shows an example of the relationship between original image generation area SA and the light-receiving surface of an image pick-up element. レンズ駆動後に再設定された元画像生成領域SAと撮像素子との関係を示す説明図。Explanatory drawing which shows the relationship between the original image production | generation area | region SA reset after lens drive, and an image pick-up element.

符号の説明Explanation of symbols

100...デジタルスチルカメラ
102...レンズ
104...レンズ駆動部
106...レンズ駆動制御回路
108...撮像素子
110...A/D変換器
112...I/F部
114...表示部
116...操作部
118...CPU
120...角度センサ
122...バス
200...内部メモリ
210...画像生成処理部
212...傾き量検出部
214...補正処理部
216...モード選択受領部
217...元画像生成領域設定部
218...ピント位置検出部
DESCRIPTION OF SYMBOLS 100 ... Digital still camera 102 ... Lens 104 ... Lens drive part 106 ... Lens drive control circuit 108 ... Imaging element 110 ... A / D converter 112 ... I / F part 114 ... Display unit 116 ... Operation unit 118 ... CPU
120: Angle sensor 122 ... Bus 200 ... Internal memory 210 ... Image generation processing unit 212 ... Inclination amount detection unit 214 ... Correction processing unit 216 ... Mode selection receiving unit 217. .. Original image generation area setting unit 218 ... Focus position detection unit

Claims (5)

画像生成装置であって、
ユーザに画像の構図を示すために被写体を表示する表示部と、
撮像素子を用いて画像を生成する撮像部と、
前記撮像部による撮像時における前記画像生成装置の鉛直面に沿った傾きの量を表す撮像時傾き量を検出する傾き量検出部と、
画像の傾き補正を行う補正処理部と、を備え、
前記撮像部は、前記撮像素子上の領域であって、前記表示部に表示され被写体の範囲に対応した表示対応領域と前記表示対応領域の外周に付加された付加領域とで構成される画像生成領域に対応した画像を元画像として生成し、
前記補正処理部は、前記撮像時傾き量に基づき、前記元画像における前記表示対応領域に対応した画像および前記付加領域に対応した画像の両方を利用して、前記画像生成装置の傾きの影響を取り除くように補正された画像である補正画像を生成し、
前記補正処理部は、前記撮像素子上の前記表示対応領域を所定の回転中心点を中心に前記画像生成装置の傾き方向と反対方向に前記撮像時傾き量分回転させた領域である補正画像領域に対応した画像を、前記補正画像として生成し、
前記画像生成装置は、さらに、
前記撮像時傾き量に応じて、前記撮像素子上の前記画像生成領域を、前記補正画像領域を包含するよう可変に設定する画像生成領域設定部を備え、
前記画像生成装置は、画像の傾き補正を行う第1の画像生成モードと、画像の傾き補正を行わない第2の画像生成モードと、を有し、
前記第1の画像生成モードが設定されているときは、前記撮像素子上の前記表示対応領域は、前記第2の画像生成モードが設定されているときと比較して、小さい領域として設定される、画像生成装置。
An image generation device,
A display for displaying the subject to show the composition of the image to the user;
An imaging unit that generates an image using an imaging element;
An inclination amount detection unit that detects an inclination amount during imaging that represents an amount of inclination along the vertical plane of the image generation device at the time of imaging by the imaging unit;
A correction processing unit that performs image inclination correction,
The imaging unit is an area on the image sensor, the image composed of the outer periphery appended additional area of display corresponding region corresponding to a range of subject said that is displayed on the display unit and the display corresponding region Generate an image corresponding to the generation area as the original image,
The correction processing unit uses the image corresponding to the display corresponding area and the image corresponding to the additional area in the original image based on the amount of inclination at the time of imaging to affect the influence of the inclination of the image generation apparatus. Generate a corrected image that is corrected to be removed ,
The correction processing unit is a correction image region that is a region obtained by rotating the display corresponding region on the image sensor about the predetermined rotation center point in the direction opposite to the tilt direction of the image generation device by the amount of tilt during imaging. Is generated as the corrected image,
The image generation device further includes:
An image generation area setting unit configured to variably set the image generation area on the image sensor so as to include the correction image area in accordance with the amount of tilt during imaging;
The image generation apparatus has a first image generation mode for correcting image inclination, and a second image generation mode for not correcting image inclination,
When the first image generation mode is set, the display corresponding area on the image sensor is set as a smaller area than when the second image generation mode is set. , Image generation device.
請求項記載の画像生成装置であって、さらに、
ズームレンズと、
前記ズームレンズを駆動するレンズ駆動部と、を備え、
前記レンズ駆動部は、設定された前記画像生成領域が前記撮像素子上に収まらないときは、前記画像生成領域設定部が前記画像生成領域を前記撮像素子上に収まるように設定できる状態となるように、前記ズームレンズを駆動する、画像生成装置。
The image generation apparatus according to claim 1 , further comprising:
A zoom lens,
A lens driving unit for driving the zoom lens,
When the set image generation area does not fit on the image sensor, the lens driving unit can be set so that the image generation area setting section can fit the image generation area on the image sensor. And an image generating device for driving the zoom lens.
請求項記載の画像生成装置であって、さらに、
前記元画像における撮像時のピントの位置を取得するピント位置取得部を備え、
前記補正処理部は、前記所定の回転中心点を、前記ピント位置に対応した前記撮像素子上の点に設定する、画像生成装置。
The image generation apparatus according to claim 1 , further comprising:
A focus position acquisition unit that acquires a focus position at the time of imaging in the original image;
The correction processing unit sets the predetermined rotation center point to a point on the image sensor corresponding to the focus position.
請求項記載の画像生成装置であって、さらに、
前記元画像における所定の種類の被写体の位置を検出する被写体位置検出部を備え、
前記補正処理部は、前記所定の回転中心点を、前記所定の種類の被写体の位置に対応した前記撮像素子上の点に設定する、画像生成装置。
The image generation apparatus according to claim 1 , further comprising:
A subject position detector that detects the position of a predetermined type of subject in the original image;
The correction processing unit sets the predetermined rotation center point to a point on the image sensor corresponding to the position of the predetermined type of subject.
画像生成方法であって、
(a)ユーザに画像の構図を示すために被写体を表示する工程と、
(b)撮像素子を用いて画像を生成する工程と、
(c)前記工程(b)における撮像時の前記撮像素子の鉛直面に沿った傾きの量を表す撮像時傾き量を検出する工程と、
(d)画像の傾き補正を行う工程と、を備え、
前記工程(b)は、前記撮像素子上の領域であって、前記工程(a)で表示され被写体の範囲に対応した表示対応領域と前記表示対応領域の外周に付加された付加領域とで構成される画像生成領域に対応した画像を元画像として生成する工程であり、
前記工程(d)は、前記撮像時傾き量に基づき、前記元画像における前記表示対応領域に対応した画像および前記付加領域に対応した画像の両方を利用して、前記撮像時の傾きの影響を取り除くように補正された画像である補正画像を生成する工程であり、
前記工程(d)は、前記撮像素子上の前記表示対応領域を所定の回転中心点を中心に前記工程(b)における撮像時の傾き方向と反対方向に前記撮像時傾き量分回転させた領域である補正画像領域に対応した画像を、前記補正画像として生成する工程であり、
前記画像生成方法は、さらに、
(e)前記撮像時傾き量に応じて、前記撮像素子上の前記画像生成領域を、前記補正画像領域を包含するよう可変に設定する工程を備え、
前記撮像素子上の前記表示対応領域は、前記工程(d)における画像の傾き補正を行わない場合と比較して、小さい領域として設定される、画像生成方法。
An image generation method comprising:
(A) displaying a subject to show the composition of the image to the user;
(B) generating an image using an image sensor;
(C) detecting a tilt amount during imaging that represents an amount of tilt along the vertical plane of the image sensor at the time of imaging in the step (b);
(D) a step of correcting the inclination of the image,
Wherein step (b) is a region on the image sensor, between the step (a) outer periphery appended additional area of display corresponding region corresponding to the range of the object that is displayed and the display corresponding region in A step of generating an image corresponding to the configured image generation region as an original image,
In the step (d), based on the amount of inclination at the time of imaging, the influence of the inclination at the time of imaging is obtained by using both the image corresponding to the display corresponding area and the image corresponding to the additional area in the original image. Ri step der to generate a corrected image is corrected image to remove,
In the step (d), the display corresponding region on the image sensor is rotated around the predetermined rotation center point in the direction opposite to the tilt direction at the time of image capture in the step (b) by the tilt amount at the time of image capture. An image corresponding to the corrected image area is generated as the corrected image,
The image generation method further includes:
(E) comprising a step of variably setting the image generation area on the image sensor so as to include the corrected image area in accordance with the amount of tilt during imaging,
The image generation method , wherein the display corresponding region on the image sensor is set as a small region as compared to a case where the image inclination correction in the step (d) is not performed .
JP2005093654A 2005-03-29 2005-03-29 Image tilt correction with angle of view maintained Active JP4379363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005093654A JP4379363B2 (en) 2005-03-29 2005-03-29 Image tilt correction with angle of view maintained

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005093654A JP4379363B2 (en) 2005-03-29 2005-03-29 Image tilt correction with angle of view maintained

Publications (2)

Publication Number Publication Date
JP2006279373A JP2006279373A (en) 2006-10-12
JP4379363B2 true JP4379363B2 (en) 2009-12-09

Family

ID=37213670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005093654A Active JP4379363B2 (en) 2005-03-29 2005-03-29 Image tilt correction with angle of view maintained

Country Status (1)

Country Link
JP (1) JP4379363B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4930297B2 (en) * 2007-09-10 2012-05-16 株式会社ニコン Imaging device
JP2010093607A (en) * 2008-10-09 2010-04-22 Panasonic Corp Image pickup device
JP5191879B2 (en) * 2008-12-25 2013-05-08 ペンタックスリコーイメージング株式会社 Imaging device
JP2010252238A (en) * 2009-04-20 2010-11-04 Kyocera Corp Imaging apparatus and imaging method
WO2010123011A1 (en) * 2009-04-20 2010-10-28 京セラ株式会社 Image capturing device and image capturing method
JP2011010010A (en) * 2009-06-25 2011-01-13 Sanyo Electric Co Ltd Image reproduction device and imaging apparatus
US8687070B2 (en) * 2009-12-22 2014-04-01 Apple Inc. Image capture device having tilt and/or perspective correction
CN113539162A (en) * 2021-07-02 2021-10-22 深圳精智达技术股份有限公司 Image capturing method and device of display panel

Also Published As

Publication number Publication date
JP2006279373A (en) 2006-10-12

Similar Documents

Publication Publication Date Title
JP4379363B2 (en) Image tilt correction with angle of view maintained
US8004570B2 (en) Image processing apparatus, image-pickup apparatus, and image processing method
JP4529837B2 (en) Imaging apparatus, image correction method, and program
US8441541B2 (en) Control apparatus and control method therefor
JP5413344B2 (en) Imaging apparatus, image composition method, and program
JP5106142B2 (en) Electronic camera
JP6135848B2 (en) Imaging apparatus, image processing apparatus, and image processing method
JP6128458B2 (en) Imaging apparatus and image processing method
US9210323B2 (en) Image capture device and image processor
JP2013017165A (en) Imaging apparatus
CN111279113A (en) Handheld holder control method and handheld holder
CN103780747A (en) Information processing method and electronic equipment
JP2011188345A (en) Portable electronic device
JP6752360B2 (en) Image processing device, imaging device, terminal device, image correction method and image processing program
JP5248951B2 (en) CAMERA DEVICE, IMAGE SHOOTING SUPPORT DEVICE, IMAGE SHOOTING SUPPORT METHOD, AND IMAGE SHOOTING SUPPORT PROGRAM
JP2014016451A (en) Imaging device, method for calculating camera shake correction amount, and program for calculating camera shake correction amount
US9270884B2 (en) Imaging apparatus and detecting apparatus
JP6320165B2 (en) Image processing apparatus, control method therefor, and program
JP5797069B2 (en) Imaging apparatus, control method thereof, and control program
JP5540765B2 (en) Display device, imaging device, and program
JP2006121201A (en) Video photography apparatus
JP2009244434A (en) Camera shake preventing device, electronic device, camera shake preventing method and camera shake preventing program
JP5186966B2 (en) Camera shake prevention device, electronic device, camera shake prevention method, and camera shake prevention program
JP5424725B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2009237611A (en) Detection of face area from target image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090730

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090907

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

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150