JP2009260567A - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP2009260567A
JP2009260567A JP2008106088A JP2008106088A JP2009260567A JP 2009260567 A JP2009260567 A JP 2009260567A JP 2008106088 A JP2008106088 A JP 2008106088A JP 2008106088 A JP2008106088 A JP 2008106088A JP 2009260567 A JP2009260567 A JP 2009260567A
Authority
JP
Japan
Prior art keywords
distortion
focal length
target value
shooting mode
distortion correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008106088A
Other languages
Japanese (ja)
Other versions
JP2009260567A5 (en
JP5112154B2 (en
Inventor
Hirosumi Arai
裕純 荒井
Manabu Ichikawa
学 市川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Imaging Corp
Original Assignee
Olympus Imaging Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Imaging Corp filed Critical Olympus Imaging Corp
Priority to JP2008106088A priority Critical patent/JP5112154B2/en
Publication of JP2009260567A publication Critical patent/JP2009260567A/en
Publication of JP2009260567A5 publication Critical patent/JP2009260567A5/ja
Application granted granted Critical
Publication of JP5112154B2 publication Critical patent/JP5112154B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging device which can correct distortion according to photographing conditions or use of images and makes images with less uncomfortable sense. <P>SOLUTION: A microcomputer 116 acquires photographing mode information at photographing (step S601), as well as a focal length of a lens 101 at photographing (step S602). Then, the microcomputer 116 acquires a target value of distortion quantity corresponding to the photographing mode and the focal length of the lens 101 at photographing (step S603). After acquisition of the target value of distortion quantity, it reads out a distortion correction parameter corresponding to the acquired target value of distortion quantity from a flash memory 118 (step S604). A distortion correction processing section 181 uses the distortion correction parameter to correct distortion according to the distortion correction parameter obtained in the step S604 (step S605). <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、撮像素子を介して取得される画像データに対して歪補正処理を行うことができる撮像装置に関する。   The present invention relates to an imaging apparatus capable of performing distortion correction processing on image data acquired via an imaging element.

近年のデジタルカメラには歪補正機能を搭載したものが開発されてきている。歪補正機能とは、レンズの歪曲収差(以後、歪という)特性によって歪んだ状態で取得される画像データの周辺部の歪を補正する機能である。このような歪補正に関する提案として、特許文献1の提案がなされている。この特許文献1においては、広角レンズや魚眼レンズ等の画像の周辺部において大きな歪が発生する場合であっても適切に歪が補正できるように、レンズのキャリブレーションパラメータに応じて歪を補正するようにしている。
特開2005−252754号公報
In recent years, digital cameras equipped with a distortion correction function have been developed. The distortion correction function is a function for correcting distortion in the peripheral portion of image data acquired in a distorted state due to distortion characteristics (hereinafter referred to as distortion) characteristics of the lens. As a proposal related to such distortion correction, Patent Document 1 has been proposed. In this Patent Document 1, the distortion is corrected according to the calibration parameter of the lens so that the distortion can be appropriately corrected even when a large distortion occurs in the peripheral portion of the image such as a wide-angle lens or a fisheye lens. I have to.
JP 2005-252754 A

デジタルカメラが有する歪補正機能により、実際にはレンズの歪特性に応じて歪んで撮影された画像データの歪を補正することができる。しかしながら、撮影モードやレンズの焦点距離によっては歪補正を行わないほうが良い場合がある。例えば、近年のデジタルカメラには、撮影された複数の画像データをつなぎ合わせてパノラマ画像を作成する機能を有しているものがある。このようなパノラマ画像の作成処理を適正に行うためには、一般的に、つなぎ合わせる画像のそれぞれに歪がないことが好ましい。これに対し、広角レンズを用いて広い画角で撮影する場合には、周辺部の歪を残した画像のほうが、歪がない画像に比べて自然に見える場合がある。このような場合には、歪をあえて残す補正を行うほうが良い。特許文献1の手法では、撮影条件や画像の用途に応じた適切な歪補正を行うことができないため、歪補正の結果、かえって違和感のある画像が記録されてしまうことがある。   With the distortion correction function of the digital camera, it is possible to correct distortion of image data that is actually distorted according to the distortion characteristics of the lens. However, it may be better not to perform distortion correction depending on the shooting mode and the focal length of the lens. For example, some recent digital cameras have a function of creating a panoramic image by connecting a plurality of captured image data. In order to appropriately perform such panorama image creation processing, it is generally preferable that the images to be joined have no distortion. On the other hand, when shooting with a wide angle of view using a wide-angle lens, an image with the peripheral distortion left may appear more natural than an image without distortion. In such a case, it is better to perform correction that leaves distortion. In the method of Patent Document 1, since it is not possible to perform appropriate distortion correction according to shooting conditions and application of an image, an uncomfortable image may be recorded as a result of distortion correction.

本発明は、上記の事情に鑑みてなされたものであり、撮影条件や画像の用途に応じた歪補正を行い、違和感の少ない画像を得ることができる撮像装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an imaging apparatus that can perform distortion correction according to shooting conditions and use of an image, and obtain an image with less sense of incongruity.

上記の目的を達成するために、本発明の第1の態様の撮像装置は、被写体を撮影して画像データを得る撮像部と、前記画像データに対する歪補正の際の歪量の目標値を決定する歪量目標決定部と、前記歪量の目標値と対応付けて前記歪補正の際に用いられる歪補正パラメータを記憶する歪補正パラメータ記憶部と、前記歪量目標決定部により決定された歪量の目標値に応じた歪補正パラメータを前記歪補正パラメータ記憶部から読み出し、該読み出した歪補正パラメータを用いて前記画像データの歪補正を行う歪補正部とを具備することを特徴とする。   In order to achieve the above object, an imaging apparatus according to a first aspect of the present invention determines an imaging unit that captures a subject and obtains image data, and a target value of a distortion amount when distortion correction is performed on the image data. A distortion amount target determination unit, a distortion correction parameter storage unit that stores distortion correction parameters used in the distortion correction in association with the distortion amount target value, and the distortion determined by the distortion amount target determination unit A distortion correction unit that reads out a distortion correction parameter corresponding to a target value of the amount from the distortion correction parameter storage unit and corrects the distortion of the image data using the read distortion correction parameter.

本発明によると、撮影条件や画像の用途に応じた歪補正を行い、違和感の少ない画像を得ることができる。   According to the present invention, it is possible to perform distortion correction according to shooting conditions and use of an image, and to obtain an image with little uncomfortable feeling.

以下、図面を参照して本発明の実施形態を詳細に説明する。但し、本発明の範囲は、以下に説明する実施形態に記載されている構成要素、種類、組み合わせ、形状、相対配置等のみに限定されるものではない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the scope of the present invention is not limited only to the components, types, combinations, shapes, relative arrangements, and the like described in the embodiments described below.

図1は、本発明の一実施形態に係る撮像装置の一例としてのデジタルスチルカメラのブロック図である。図1に示すデジタルスチルカメラは、レンズ101と、レンズ駆動機構102と、撮像素子103と、アナログ処理部104と、アナログ/デジタル(A/D)変換部105と、バス106と、SDRAM107と、画像処理部108と、AE処理部109と、AF処理部110と、JPEG処理部111と、メモリインターフェース(I/F)112と、記録媒体113と、LCDドライバ114と、LCD115と、マイクロコンピュータ116と、操作部117と、Flashメモリ118とを有している。   FIG. 1 is a block diagram of a digital still camera as an example of an imaging apparatus according to an embodiment of the present invention. A digital still camera shown in FIG. 1 includes a lens 101, a lens driving mechanism 102, an image sensor 103, an analog processing unit 104, an analog / digital (A / D) conversion unit 105, a bus 106, an SDRAM 107, Image processing unit 108, AE processing unit 109, AF processing unit 110, JPEG processing unit 111, memory interface (I / F) 112, recording medium 113, LCD driver 114, LCD 115, and microcomputer 116 And an operation unit 117 and a flash memory 118.

レンズ101は、被写体の光学像を撮像素子103に集光させる。このレンズ101は可変焦点レンズであり、マイクロコンピュータ116からの指示に応じて駆動するレンズ駆動機構102によりその光軸方向に移動される。これにより、レンズ101の焦点距離や被写体へのフォーカス状態を変更することが可能である。また、レンズ101の近傍には図示しない絞り機構及びメカシャッター機構が設けられている。マイクロコンピュータ116からの指示に応じて図示しない絞り機構を駆動させることで、被写体の光量を調節することが可能である。また、撮影時には、マイクロコンピュータ116からの指示に応じて図示しないメカシャッター機構を駆動させることで撮像素子103の露光時間を制御することが可能である。   The lens 101 condenses the optical image of the subject on the image sensor 103. The lens 101 is a variable focus lens, and is moved in the optical axis direction by a lens driving mechanism 102 that is driven in accordance with an instruction from the microcomputer 116. Thereby, it is possible to change the focal length of the lens 101 and the focus state on the subject. In addition, a diaphragm mechanism and a mechanical shutter mechanism (not shown) are provided in the vicinity of the lens 101. By driving a diaphragm mechanism (not shown) in accordance with an instruction from the microcomputer 116, the amount of light of the subject can be adjusted. At the time of shooting, the exposure time of the image sensor 103 can be controlled by driving a mechanical shutter mechanism (not shown) in accordance with an instruction from the microcomputer 116.

なお、レンズ101の設計上、設定できる焦点距離には範囲があり、また、その範囲においても任意の焦点距離を設定できるわけではない。レンズ101の場合には、最短焦点距離をa、最長焦点距離をbとしたときに、例えば、aからbの範囲内において
(b−a)/10
の間隔で、aとbを含め11状態の焦点距離を設定できるものとする。
The focal length that can be set has a range in the design of the lens 101, and an arbitrary focal length cannot be set within that range. In the case of the lens 101, when the shortest focal length is a and the longest focal length is b, for example, within the range from a to b
(Ba) / 10
It is assumed that the focal lengths of 11 states including a and b can be set at intervals of.

撮像素子103は、ベイヤー配列のカラーフィルタが画素を構成するフォトダイオードの前面に配置された撮像素子である。ベイヤー配列は、水平方向にR画素とG(Gr)画素が交互に配置されたラインと、G(Gb)画素とB画素が交互に配置されたラインとを有し、さらにその2つのラインを垂直方向にも交互に配置することで構成されている。この撮像素子103は、レンズ101により集光された光を、画素を構成するフォトダイオードで受光して光電変換することで、光の量を電荷量としてアナログ処理部104へ出力する。なお、撮像素子103はCMOS方式でもCCD方式でも良い。   The image sensor 103 is an image sensor in which a Bayer array color filter is arranged in front of a photodiode constituting a pixel. The Bayer array has a line in which R pixels and G (Gr) pixels are alternately arranged in a horizontal direction, and a line in which G (Gb) pixels and B pixels are alternately arranged, and the two lines are further divided. It is configured by alternately arranging in the vertical direction. The image sensor 103 receives the light collected by the lens 101 by a photodiode that constitutes a pixel and performs photoelectric conversion, thereby outputting the amount of light to the analog processing unit 104 as a charge amount. Note that the image sensor 103 may be a CMOS method or a CCD method.

アナログ処理部104は、撮像素子103から出力された電気信号(アナログ画像信号)に対し、リセットノイズ等を低減した上で波形整形を行い、さらに目的の明るさとなるようゲインアップを行う。A/D変換部105は、アナログ処理部104から出力されるアナログ画像信号をデジタル画像信号(以降、画像データという)に変換する。   The analog processing unit 104 performs waveform shaping on the electrical signal (analog image signal) output from the image sensor 103 while reducing reset noise and the like, and further increases the gain so that the target brightness is obtained. The A / D conversion unit 105 converts the analog image signal output from the analog processing unit 104 into a digital image signal (hereinafter referred to as image data).

バス106は、デジタルカメラ内部で発生した各種データをデジタルカメラ内の各部に転送するための転送路である。バス106は、A/D変換部105と、SDRAM107と、画像処理部108と、AE処理部109と、AF処理部110と、JPEG処理部111と、メモリI/F112と、LCDドライバ114と、マイクロコンピュータ116とに接続されている。   A bus 106 is a transfer path for transferring various data generated in the digital camera to each unit in the digital camera. The bus 106 includes an A / D conversion unit 105, an SDRAM 107, an image processing unit 108, an AE processing unit 109, an AF processing unit 110, a JPEG processing unit 111, a memory I / F 112, an LCD driver 114, It is connected to the microcomputer 116.

A/D変換部105で得られた画像データは、バス106を介して一旦SDRAM107に記憶される。SDRAM107は、A/D変換部105において得られた画像データや、画像処理部108、JPEG処理部111において処理された画像データ等の各種データが一時的に記憶される記憶部である。   The image data obtained by the A / D conversion unit 105 is temporarily stored in the SDRAM 107 via the bus 106. The SDRAM 107 is a storage unit that temporarily stores various data such as image data obtained by the A / D conversion unit 105 and image data processed by the image processing unit 108 and the JPEG processing unit 111.

画像処理部108は、歪補正処理部181を少なくとも含み、さらに図示しないホワイトバランス補正部、色変換処理部、色再現処理部、ノイズ低減処理部等を含む。この画像処理部108は、SDRAM107から読み出した画像データに対し、ホワイトバランス補正処理、色変換処理及び色再現処理、ノイズ低減処理、歪補正処理等の画像処理を施す。歪補正処理部181は、Flashメモリ118に記憶される歪補正パラメータに基づいて画像データの歪補正を行う。   The image processing unit 108 includes at least a distortion correction processing unit 181 and further includes a white balance correction unit, a color conversion processing unit, a color reproduction processing unit, a noise reduction processing unit, and the like (not shown). The image processing unit 108 performs image processing such as white balance correction processing, color conversion processing and color reproduction processing, noise reduction processing, and distortion correction processing on the image data read from the SDRAM 107. The distortion correction processing unit 181 performs distortion correction of the image data based on the distortion correction parameter stored in the flash memory 118.

ここで、画像処理部108で画像処理が行われた後の画像データは、ベイヤー配列による画像データから、1画素あたりRGBの情報からなる画像データへ同時化され、同時化された画像データはSDRAM107に記憶される。   Here, the image data after the image processing is performed by the image processing unit 108 is synchronized from the image data based on the Bayer array to the image data composed of RGB information per pixel, and the synchronized image data is the SDRAM 107. Is remembered.

AE処理部109は、画像データを用いて被写体輝度を算出する。被写体輝度を算出するためのデータは、専用の測光センサの出力であってもよい。AF処理部110は、画像データから高周波成分の信号を取り出しAF(Auto Focus)積算処理により合焦評価値を取得する。   The AE processing unit 109 calculates subject luminance using the image data. The data for calculating the subject brightness may be an output of a dedicated photometric sensor. The AF processing unit 110 extracts a high-frequency component signal from the image data, and acquires a focus evaluation value by AF (Auto Focus) integration processing.

JPEG処理部111は、画像データの記録時には、SDRAM107からRGBの画像データを読み出し、読み出した画像データをJPEG圧縮方式に従って圧縮する。圧縮された画像データはSDRAM107に一旦記憶された後、メモリI/F112を介して記録媒体113に記録される。ここで、記録媒体113は、例えばカメラ本体に着脱可能なメモリカードからなる記録媒体であるが、これに限定されるものではない。   When recording image data, the JPEG processing unit 111 reads RGB image data from the SDRAM 107 and compresses the read image data according to the JPEG compression method. The compressed image data is temporarily stored in the SDRAM 107 and then recorded on the recording medium 113 via the memory I / F 112. Here, the recording medium 113 is, for example, a recording medium including a memory card that can be attached to and detached from the camera body, but is not limited thereto.

LCDドライバ114は、LCD115に画像を表示させる。記録媒体113に記録されたJPEG圧縮画像データを再生する場合には、JPEG処理部111は、記録媒体113に記録されているJPEG圧縮画像データを読み出して伸張処理を施した上で、伸張した画像データを一旦SDRAM107に記憶させる。LCDドライバ114は、その画像データをSDRAM107から読み出し、読み出した画像データを映像信号へ変換した後でLCD115へ出力し、画像の表示を行う。   The LCD driver 114 displays an image on the LCD 115. When JPEG compressed image data recorded on the recording medium 113 is reproduced, the JPEG processing unit 111 reads out the JPEG compressed image data recorded on the recording medium 113 and performs expansion processing, and then expands the image. Data is temporarily stored in the SDRAM 107. The LCD driver 114 reads the image data from the SDRAM 107, converts the read image data into a video signal, and then outputs the image data to the LCD 115 to display an image.

歪量目標決定部及び焦点距離取得部としての機能を有するマイクロコンピュータ116は、デジタルカメラ本体の各種シーケンスを統括的に制御する。このマイクロコンピュータ116には、操作部117、Flashメモリ118が接続されている。   The microcomputer 116 having functions as a distortion amount target determination unit and a focal length acquisition unit comprehensively controls various sequences of the digital camera body. An operation unit 117 and a flash memory 118 are connected to the microcomputer 116.

操作部117は、電源ボタン、レリーズボタン、ズームボタン、各種入力キー等の操作部材である。ユーザにより操作部117の何れかの操作部材が操作されることにより、マイクロコンピュータ116は、ユーザの操作に応じた各種シーケンスを実行する。電源ボタンは、当該デジタルカメラの電源のオンオフ指示を行うための操作部材である。電源ボタンが押されたときに、マイクロコンピュータ116は、当該デジタルカメラの電源をオン又はオフする。レリーズボタンは、1stレリーズスイッチと2ndレリーズスイッチの2段スイッチを有して構成されている。レリーズボタンが半押しされて1stレリーズスイッチがオンされた場合に、マイクロコンピュータ116は、AE処理やAF処理等の撮影準備シーケンスを行う。また、レリーズボタンが全押しされて2ndレリーズスイッチがオンされた場合に、マイクロコンピュータ116は撮影シーケンスを実行して撮影を行う。ズームボタンは、ワイドボタンとテレボタンとを有している。ワイドボタンが押された場合に、マイクロコンピュータ116はレンズ駆動シーケンスを実行してレンズ駆動機構102を駆動させ、レンズ101の焦点距離を短焦点距離側に変更する。テレボタンが押された場合に、マイクロコンピュータ116はレンズ駆動シーケンスを実行してレンズ駆動機構102を駆動させ、レンズ101の焦点距離を長焦点距離側に変更する。撮影モード設定部としての機能を有する各種の入力キーは撮影モードの設定等の各種の入力操作の際に用いられる。   The operation unit 117 is an operation member such as a power button, a release button, a zoom button, and various input keys. When one of the operation members of the operation unit 117 is operated by the user, the microcomputer 116 executes various sequences according to the user's operation. The power button is an operation member for instructing power on / off of the digital camera. When the power button is pressed, the microcomputer 116 turns the digital camera on or off. The release button has a two-stage switch including a 1st release switch and a 2nd release switch. When the release button is pressed halfway and the 1st release switch is turned on, the microcomputer 116 performs a shooting preparation sequence such as AE processing and AF processing. In addition, when the release button is fully pressed and the 2nd release switch is turned on, the microcomputer 116 executes the shooting sequence to perform shooting. The zoom button has a wide button and a tele button. When the wide button is pressed, the microcomputer 116 executes the lens driving sequence to drive the lens driving mechanism 102 and changes the focal length of the lens 101 to the short focal length side. When the tele button is pressed, the microcomputer 116 executes the lens driving sequence to drive the lens driving mechanism 102 and changes the focal length of the lens 101 to the long focal length side. Various input keys having a function as a shooting mode setting unit are used for various input operations such as setting of a shooting mode.

歪補正パラメータ記憶部としての機能を有するFlashメモリ118は、歪補正の際の歪量目標値決定テーブルと歪補正の際の歪量目標値及び焦点距離に応じた歪補正パラメータの他に、デジタルカメラの動作に必要な各種パラメータを記憶している。また、Flashメモリ118は、マイクロコンピュータ116にて実行するプログラムも記憶している。マイクロコンピュータ116は、Flashメモリ118に記憶されているプログラムに従い、またFlashメモリ118から各種シーケンスに必要なパラメータを読み込み、各処理を実行する。   A flash memory 118 having a function as a distortion correction parameter storage unit includes a distortion amount target value determination table for distortion correction, a distortion correction parameter corresponding to the distortion amount target value and focal length for distortion correction, and a digital value. Various parameters necessary for camera operation are stored. The flash memory 118 also stores a program executed by the microcomputer 116. The microcomputer 116 reads parameters necessary for various sequences from the flash memory 118 according to a program stored in the flash memory 118, and executes each process.

図2は、図1に示すデジタルカメラにおける撮影時の処理を示すフローチャートである。
図2において、マイクロコンピュータ116は、ユーザによりレリーズボタンが半押しされて1stレリーズスイッチがオンされたかを判定する(ステップS201)。ステップS201の判定において、1stレリーズスイッチがオンされるまで、マイクロコンピュータ116は、繰り返しステップS201の判定を行う。
FIG. 2 is a flowchart showing processing at the time of shooting in the digital camera shown in FIG.
In FIG. 2, the microcomputer 116 determines whether or not the user has pressed the release button halfway to turn on the first release switch (step S201). In the determination in step S201, the microcomputer 116 repeatedly performs the determination in step S201 until the first release switch is turned on.

一方、ステップS201の判定において、1stレリーズスイッチがオンされた場合に、マイクロコンピュータ116は、AF処理を実行する(ステップS202)。即ち、マイクロコンピュータ116は、AF処理部110で得られるAF評価値から、撮像素子103に集光される被写体の像が最も鮮明になるようにレンズ駆動機構102を駆動させてレンズ101のフォーカスを調整する。次に、マイクロコンピュータ116は、AE処理部109において被写体輝度を算出させる(ステップS203)。その後、マイクロコンピュータ116は、AE処理部109において算出された被写体輝度と予めFlashメモリ118に記憶された絞り値とシャッター速決定テーブルに基づき、撮影時の絞り値とシャッター速とを算出する(ステップS204)。   On the other hand, if it is determined in step S201 that the first release switch is turned on, the microcomputer 116 executes AF processing (step S202). That is, the microcomputer 116 drives the lens driving mechanism 102 so that the image of the subject condensed on the image sensor 103 becomes the clearest from the AF evaluation value obtained by the AF processing unit 110 to focus the lens 101. adjust. Next, the microcomputer 116 causes the AE processing unit 109 to calculate subject brightness (step S203). After that, the microcomputer 116 calculates the aperture value and shutter speed at the time of shooting based on the subject brightness calculated in the AE processing unit 109, the aperture value stored in the flash memory 118 in advance, and the shutter speed determination table (step). S204).

次に、マイクロコンピュータ116は、ユーザによりレリーズボタンが全押しされて2ndレリーズスイッチがオンされたかを判定する(ステップS205)。ステップS205の判定において、2ndレリーズスイッチがオンされるまで、マイクロコンピュータ116は、繰り返しステップS205の判定を行う。   Next, the microcomputer 116 determines whether the release button is fully pressed by the user and the 2nd release switch is turned on (step S205). In step S205, the microcomputer 116 repeats the determination in step S205 until the 2nd release switch is turned on.

一方、ステップS205の判定において、2ndレリーズスイッチがオンされた場合に、マイクロコンピュータ116は、ステップS204において算出した絞り値とシャッター速とを用いて図示しない絞り機構とメカシャッター機構とを制御しつつ、撮影を行う(ステップS206)。次に、マイクロコンピュータ116は、画像処理部108により、撮影によって得られた画像データに対し、ホワイトバランス補正処理、色補正処理、歪補正処理、同時化処理等の画像処理を行う(ステップS207)。次に、マイクロコンピュータ116は、JPEG処理部111により、画像処理後の画像データをJPEG圧縮する(ステップS208)。最後に、マイクロコンピュータ116は、JPEG圧縮により得られたJPEG圧縮画像データを記録媒体113に記録させる(ステップS209)。   On the other hand, when the 2nd release switch is turned on in the determination in step S205, the microcomputer 116 controls the aperture mechanism and the mechanical shutter mechanism (not shown) using the aperture value and the shutter speed calculated in step S204. Then, shooting is performed (step S206). Next, the microcomputer 116 causes the image processing unit 108 to perform image processing such as white balance correction processing, color correction processing, distortion correction processing, and synchronization processing on the image data obtained by photographing (step S207). . Next, the microcomputer 116 uses the JPEG processing unit 111 to JPEG-compress the image data after the image processing (step S208). Finally, the microcomputer 116 records the JPEG compressed image data obtained by JPEG compression on the recording medium 113 (step S209).

上述のように、図2の処理においては、1stレリーズスイッチがオンすると露出条件の算出等の撮影に必要な条件の算出が実行され、2ndレリーズスイッチがオンすると以後の処理が実行される。   As described above, in the process of FIG. 2, when the 1st release switch is turned on, calculation of conditions necessary for photographing such as calculation of exposure conditions is executed, and when the 2nd release switch is turned on, the subsequent processes are executed.

以下、本実施形態における歪補正処理について説明する。本実施形態においては、歪補正の際の歪量目標値を、撮影モードと撮影時におけるレンズ101の焦点距離とに応じて決定する。   Hereinafter, the distortion correction processing in the present embodiment will be described. In the present embodiment, a distortion amount target value at the time of distortion correction is determined according to the shooting mode and the focal length of the lens 101 at the time of shooting.

レンズ101の焦点距離が短く撮影画角が広い場合に得られる画像データに対して周辺部の歪が無くなるように歪補正処理を行うと、歪補正後に得られる画像は中心から外側に向かって引き伸ばされたような画像となる。   When distortion correction processing is performed on the image data obtained when the focal length of the lens 101 is short and the shooting angle of view is wide so that distortion in the peripheral portion is eliminated, the image obtained after distortion correction is stretched from the center toward the outside. The image looks like this.

図3(a)は、樽型の歪を有する画像データに対して歪が無くなるような歪補正処理を行った場合の例を示す図である。樽型の歪を有する画像データに対して歪補正処理を行った場合、図3(a)に示すように、補正後に得られる画像は中心から4隅の方向に向かって引き伸ばされたような画像となる。このため、画像の周辺部に顔部のような円形の像201があった場合には、その像201が楕円状に引き伸ばされてしまう。したがって、歪補正の結果として得られる画像が不自然な画像となってしまう。また、図示は省略するが、糸巻き型の歪(画像の周辺部が糸巻き状に歪む)を有する画像データに対して歪が無くなるような歪補正処理を行った場合は、補正後に得られる画像は中心から上下左右方向に向かって引き伸ばされたような画像となる。   FIG. 3A is a diagram illustrating an example of a case where distortion correction processing is performed so as to eliminate distortion with respect to image data having barrel distortion. When distortion correction processing is performed on image data having barrel distortion, as shown in FIG. 3A, the image obtained after correction is an image that is stretched from the center toward the four corners. It becomes. For this reason, when there is a circular image 201 like a face in the periphery of the image, the image 201 is stretched in an elliptical shape. Therefore, an image obtained as a result of distortion correction becomes an unnatural image. Although illustration is omitted, when image data having pincushion distortion (the peripheral portion of the image is distorted in a pincushion) is subjected to distortion correction processing that eliminates distortion, the image obtained after correction is The image is stretched in the vertical and horizontal directions from the center.

何れの場合であっても、レンズ101の焦点距離が短い場合には、周辺部の歪が残るように歪補正をすることが好ましい。ここで、歪のある画像の見え方としては、人の感覚的に糸巻き型の歪よりも樽型の歪の方が自然に見えやすい。したがって、レンズ101の焦点距離が短い場合には、図3(b)に示すような、樽型の歪が残るような歪補正を行うことが望ましい。   In either case, when the focal length of the lens 101 is short, it is preferable to correct the distortion so that the peripheral distortion remains. Here, as a way of viewing a distorted image, a barrel-shaped distortion is more likely to be seen more naturally than a pincushion-type distortion. Therefore, when the focal length of the lens 101 is short, it is desirable to perform distortion correction so that barrel distortion remains as shown in FIG.

一方、レンズ101の焦点距離が長く撮影画角が狭い場合には、被写体からの光が撮影方向に対してほぼ平行となる。このため、歪が無くなるような歪補正処理を行っても、レンズ101の焦点距離が短い場合に比べて不自然な画像となりにくい。このような場合には、歪が無くなるような歪補正処理を行ったほうがより自然な画像となる。   On the other hand, when the focal length of the lens 101 is long and the shooting angle of view is narrow, the light from the subject is substantially parallel to the shooting direction. For this reason, even if distortion correction processing is performed so that distortion is eliminated, an unnatural image is less likely to occur than when the focal length of the lens 101 is short. In such a case, a more natural image can be obtained by performing distortion correction processing that eliminates distortion.

また、レンズ101の焦点距離が短くとも、撮影モードによっては、歪が無くなるような歪補正処理を行ったほうが良い場合がある。
例えば、複数の画像をつなぎ合わせて1枚のパノラマ画像を生成することが想定されるパノラマ合成モードの場合には、各画像に歪を残したままでつなぎ合わせの処理を行ってしまうと、図4(a)に示すような、画像間のつなぎ目が一致しない不自然な画像が生成される可能性が高い。したがって、パノラマ合成モードの場合には、レンズ101の焦点距離によらず、各画像における歪が無くなるように補正した後でつなぎ合わせの処理を行うことが望ましい。各画像における歪を無くしてからつなぎ合わせの処理を行うことで、図4(b)に示すような自然なパノラマ画像を生成することが可能である。
Even if the focal length of the lens 101 is short, it may be better to perform distortion correction processing that eliminates distortion depending on the shooting mode.
For example, in the case of a panorama synthesis mode in which a plurality of images are joined to generate a single panoramic image, if the joining process is performed with distortion left in each image, FIG. There is a high possibility that an unnatural image as shown in (a) where the joints between the images do not match is generated. Therefore, in the case of the panorama synthesis mode, it is desirable to perform the joining process after correcting so that distortion in each image is eliminated regardless of the focal length of the lens 101. It is possible to generate a natural panoramic image as shown in FIG. 4B by performing the stitching process after eliminating distortion in each image.

また、樽型の歪では周辺部が縮小され、糸巻き型の歪では周辺部が拡大されるので、文書を撮影するための文書撮影モードにおいて画像に歪を残してしまうと、図5(a)に示すように文字が直線状に配列されずに、読みづらいものとなってしまう。したがって、文書撮影モードの場合においても、レンズ101の焦点距離によらず、歪が無くなるように補正することが望ましい。歪を無くすような補正を行うことで、図5(b)に示すようにして文字を直線状に配置することが可能である。上述したように、歪が無くなるように補正を行うと、周辺部が引き伸ばされた画像となるが、文書の場合には周辺部が余白等になっていることが多いため、引き伸ばされたとしても特に問題はないと考えられる。   Further, since the peripheral portion is reduced in barrel distortion, and the peripheral portion is enlarged in pincushion distortion, if distortion is left in the image in the document photographing mode for photographing a document, FIG. As shown in FIG. 4, the characters are not arranged in a straight line, which makes it difficult to read. Therefore, even in the document shooting mode, it is desirable to correct so that distortion is eliminated regardless of the focal length of the lens 101. By performing correction to eliminate distortion, it is possible to arrange characters in a straight line as shown in FIG. As described above, if the correction is made so that the distortion is eliminated, the image in which the peripheral part is stretched is obtained. However, in the case of a document, the peripheral part is often a margin or the like. There is no particular problem.

以上を考慮して本実施形態では、撮影モードと焦点距離とに応じて歪補正処理の際の歪量目標値を設定して歪補正を行う。   In consideration of the above, in the present embodiment, distortion correction is performed by setting a distortion amount target value in the distortion correction processing according to the shooting mode and the focal length.

図6は、撮影モード及びレンズ101の焦点距離から、歪量目標値を決定するためのテーブル(歪量目標値算出テーブル)の例を示す図である。この歪量目標値算出テーブルは、Flashメモリ118に記憶されているものである。   FIG. 6 is a diagram illustrating an example of a table (distortion amount target value calculation table) for determining a distortion amount target value from the photographing mode and the focal length of the lens 101. This distortion amount target value calculation table is stored in the flash memory 118.

ここで、図6に示す歪量目標値算出テーブルにおいては、撮影モードとして、通常撮影モード、パノラマ合成モード、文書撮影モード、その他のモードを示している。また、焦点距離は、最短焦点距離を28mm、最長焦点距離を110mmとし、8mm間隔、11状態の例を示している。さらに、歪量目標値は歪量を表す手法として一般的に知られているTVディストーションの値を示している。   Here, in the distortion amount target value calculation table shown in FIG. 6, the normal shooting mode, the panorama synthesis mode, the document shooting mode, and other modes are shown as shooting modes. In addition, the focal length is an example in which the shortest focal length is 28 mm, the longest focal length is 110 mm, the interval is 8 mm, and 11 states. Further, the distortion amount target value indicates a TV distortion value that is generally known as a technique for representing the distortion amount.

図7は、TVディストーションについて示した図である。TVディストーションは、テレビジョン(TV)モニタ上で表示した際の画像の歪量を示すものである。このTVディストーションは、画像の長辺方向の歪を百分率で示したもの、即ち、
(歪量Δh)/(画像の長辺方向の幅h)×100%
によって与えられる。なお、歪量Δhの符号は、糸巻き型の歪(図示破線)の場合に正、樽型の歪(図示実線)の場合に負とする。図7の関係からも分かるように、TVディストーションは、数値の絶対値が小さいほど歪が小さくなることを示す。
FIG. 7 is a diagram showing TV distortion. TV distortion indicates the amount of distortion of an image when displayed on a television (TV) monitor. This TV distortion shows the distortion in the long side direction of the image as a percentage, ie,
(Distortion amount Δh) / (width h in the long side direction of the image) × 100%
Given by. Note that the sign of the strain amount Δh is positive in the case of a pincushion-type strain (broken line in the figure) and negative in the case of a barrel-type strain (solid line in the figure). As can be seen from the relationship in FIG. 7, the TV distortion indicates that the smaller the absolute value of the numerical value, the smaller the distortion.

図6に示す、通常撮影モードは、単純に図2で示した処理に従って撮影を行う撮影モードである。この場合には、歪量目標値を焦点距離に応じて決定する。図6では、28mm〜52mmを短焦点距範囲、60mm〜84mmを中焦点距範囲、92mm〜110mmを長焦点距範囲としてそれぞれの範囲に歪量目標値を割り当てている。短焦点距離範囲の場合には、樽型の歪が残るような歪補正を行うために、歪量目標値を−1.0%としている。また、長焦点距離範囲の場合には、歪が残らないような歪補正を行うために、歪量目標値を0%としている。中焦点距離範囲の場合には、短焦点距離範囲の場合と長焦点距離範囲の場合との中間程度の樽型の歪が残るような歪補正を行う。図6の例では、歪量目標値を−0.3%としている。   The normal shooting mode shown in FIG. 6 is a shooting mode in which shooting is performed simply according to the processing shown in FIG. In this case, the distortion amount target value is determined according to the focal length. In FIG. 6, 28 mm to 52 mm is a short focal length range, 60 mm to 84 mm is a medium focal length range, and 92 mm to 110 mm is a long focal length range, and a distortion amount target value is assigned to each range. In the case of the short focal length range, the distortion amount target value is set to −1.0% in order to perform distortion correction so that barrel distortion remains. In the case of the long focal length range, the distortion amount target value is set to 0% in order to perform distortion correction so that no distortion remains. In the case of the intermediate focal length range, distortion correction is performed so that a barrel distortion that is intermediate between the case of the short focal length range and the case of the long focal length range remains. In the example of FIG. 6, the distortion amount target value is set to −0.3%.

パノラマ合成モードは、撮影方向を変えて得られる複数の画像をつなぎ合わせて1枚のパノラマ画像を生成する撮影モードである。パノラマ合成モードにおいては、歪が残らないような歪補正を行うために、焦点距離によらずに歪量目標値を0%としている。   The panorama synthesis mode is a shooting mode in which a plurality of images obtained by changing the shooting direction are connected to generate one panoramic image. In the panorama composition mode, the distortion amount target value is set to 0% regardless of the focal length in order to perform distortion correction so that no distortion remains.

文書撮影モードは、文書を撮影するのに適した撮影モードである。文書撮影モードにおいては、歪が残らないような歪補正を行うために、焦点距離によらずに歪量目標値を0%としている。   The document shooting mode is a shooting mode suitable for shooting a document. In the document photographing mode, the distortion amount target value is set to 0% regardless of the focal length in order to perform distortion correction so that no distortion remains.

その他のモードは、上述の3つの撮影モードに含まれない撮影モード(例えば、連写撮影モード、ブラケット撮影モード等)である。この場合も通常撮影モードと同様に、歪量目標値を焦点距離に応じて決定とする。なお、焦点距離と歪量目標値との関係は通常撮影モードの場合と同様である。   The other modes are shooting modes that are not included in the above three shooting modes (for example, continuous shooting mode, bracket shooting mode, etc.). Also in this case, the distortion amount target value is determined according to the focal length as in the normal shooting mode. Note that the relationship between the focal length and the target distortion amount is the same as in the normal shooting mode.

図8は、歪量目標値に対応した焦点距離毎の歪補正パラメータを示している。この歪補正パラメータも、Flashメモリ118に記憶されているものである。図8に示すように、歪量目標値と焦点距離とに対して歪補正パラメータPm_nが割り当てられている。なお、mは歪量目標値に対応している。歪量目標値が0%に対応した歪補正パラメータは、mが00である。歪量目標値が−0.3%に対応した歪補正パラメータは、mが03である。歪量目標値が−1.0%に対応した歪補正パラメータは、mが10である。また、nは焦点距離に対応している。レンズ101の焦点距離が28mmに対応した歪み補正パラメータはnが1である。また、レンズ101の焦点距離が36mmに対応した歪み補正パラメータはnが2である。以後も同様に、焦点距離が8mm増える毎(最長焦点距離のみ10mm)にnが1つ増える。例えば、歪量目標値が−1.0%、焦点距離が28mmの場合には、歪補正パラメータはP10_1を用いる。   FIG. 8 shows distortion correction parameters for each focal length corresponding to the distortion amount target value. This distortion correction parameter is also stored in the flash memory 118. As shown in FIG. 8, a distortion correction parameter Pm_n is assigned to the distortion amount target value and the focal length. Note that m corresponds to a distortion amount target value. The distortion correction parameter corresponding to the distortion amount target value of 0% is m = 00. The distortion correction parameter corresponding to the distortion amount target value of −0.3% is m = 03. The distortion correction parameter corresponding to the distortion amount target value of −1.0% has m = 10. N corresponds to the focal length. The distortion correction parameter corresponding to the focal length of the lens 101 of 28 mm is n = 1. The distortion correction parameter corresponding to the focal length of the lens 101 of 36 mm is n = 2. Thereafter, similarly, every time the focal length increases by 8 mm (only the longest focal length is 10 mm), n increases by one. For example, when the distortion target value is −1.0% and the focal length is 28 mm, P10_1 is used as the distortion correction parameter.

ここで、図9を参照して歪補正パラメータについて説明する。歪補正パラメータは、焦点距離毎に決定されている歪を歪量目標値に対応した歪に補正するためのパラメータである。この歪補正パラメータの求め方としては、例えば、デジタルカメラの製造時等においてレンズ101の焦点距離を変化させながら撮影を実行して焦点距離毎の画像の歪量(TVディストーション)を求めていく。これら求めた画像の歪量を各歪量目標値に対応した歪量とするパラメータが図8に示す歪補正パラメータとなる。   Here, the distortion correction parameters will be described with reference to FIG. The distortion correction parameter is a parameter for correcting the distortion determined for each focal length into a distortion corresponding to the distortion amount target value. As a method for obtaining the distortion correction parameter, for example, photographing is executed while changing the focal length of the lens 101 at the time of manufacturing a digital camera or the like, and an image distortion amount (TV distortion) is obtained for each focal length. A parameter for setting the obtained image distortion amount to a distortion amount corresponding to each distortion amount target value is the distortion correction parameter shown in FIG.

図9には、歪量目標値0%、−0.3%、−1.0%に対応した歪と、焦点距離110mm、60mm、28mmに対応した歪とを示している。例えば、図8に示す歪補正パラメータP00_1とは、図9に示す、28mmに対応した歪を歪量目標値0%に対応した歪に補正するパラメータである。同様に、図8に示す歪補正パラメータP03_5とは、図9に示す、60mmに対応した歪を歪量目標値−0.3%に対応した歪に補正するパラメータである。   FIG. 9 shows distortions corresponding to the target distortion amounts of 0%, −0.3%, and −1.0%, and distortions corresponding to the focal lengths of 110 mm, 60 mm, and 28 mm. For example, the distortion correction parameter P00_1 shown in FIG. 8 is a parameter for correcting the distortion corresponding to 28 mm shown in FIG. 9 into the distortion corresponding to the target amount of distortion 0%. Similarly, the distortion correction parameter P03_5 illustrated in FIG. 8 is a parameter for correcting the distortion corresponding to 60 mm illustrated in FIG. 9 to the distortion corresponding to the target distortion amount value −0.3%.

ここで、歪補正パラメータは、歪補正の手法によって異なるものが用いられる。ここでは、それぞれの手法に応じた歪補正パラメータの求め方については説明を省略するが、何れの手法を用いた場合であっても本実施形態の手法を適用することが可能である。   Here, different distortion correction parameters are used depending on the distortion correction method. Here, description of how to obtain the distortion correction parameter corresponding to each method is omitted, but the method of the present embodiment can be applied regardless of which method is used.

図10は、本実施形態における歪補正処理について示すフローチャートである。図10に示す処理は、図2のステップS207で行われる画像処理の際に、歪補正処理部181で行われる処理である。   FIG. 10 is a flowchart showing the distortion correction processing in the present embodiment. The process illustrated in FIG. 10 is a process performed by the distortion correction processing unit 181 during the image processing performed in step S207 of FIG.

まず、マイクロコンピュータ116は、撮影時の撮影モード情報を取得する(ステップS601)。撮影モード情報は、ユーザが操作部117の入力キーを操作することで変更することが可能である。撮影直前の入力キーの操作により変更された撮影直前の撮影モード情報をSDRAM107に一時的に記憶させておくことで、マイクロコンピュータ116は、撮影後に、撮影時の撮影モード情報を取得することができる。   First, the microcomputer 116 acquires shooting mode information at the time of shooting (step S601). The shooting mode information can be changed by the user operating the input key of the operation unit 117. By temporarily storing the shooting mode information immediately before shooting changed by the operation of the input key immediately before shooting in the SDRAM 107, the microcomputer 116 can acquire shooting mode information at the time of shooting after shooting. .

次に、マイクロコンピュータ116は、撮影時のレンズ101の焦点距離を取得する(ステップS602)。レンズ101の焦点距離は、ユーザが操作部117のズームボタンを操作することで変更することが可能である。撮影直前のズームボタンの操作により変更された最後の焦点距離をSDRAM107に一時的に記憶させておくことで、マイクロコンピュータ116は、撮影後に、撮影時の焦点距離を取得することができる。   Next, the microcomputer 116 acquires the focal length of the lens 101 at the time of shooting (step S602). The focal length of the lens 101 can be changed by the user operating the zoom button of the operation unit 117. By temporarily storing the last focal length changed by the operation of the zoom button immediately before shooting in the SDRAM 107, the microcomputer 116 can acquire the focal length at the time of shooting after shooting.

次に、マイクロコンピュータ116は、撮影時の撮影モード及びレンズ101の焦点距離に対応した歪量目標値を取得する(ステップS603)。即ち、マイクロコンピュータ116は、Flashメモリ118に記憶されている歪量目標値算出テーブルから、ステップS601で取得した撮影モード情報及びステップS602で取得したレンズ101の焦点距離に対応する歪量目標値を得る。   Next, the microcomputer 116 acquires a distortion amount target value corresponding to the shooting mode at the time of shooting and the focal length of the lens 101 (step S603). That is, the microcomputer 116 obtains the distortion amount target value corresponding to the shooting mode information acquired in step S601 and the focal length of the lens 101 acquired in step S602 from the distortion amount target value calculation table stored in the flash memory 118. obtain.

歪量目標値を取得した後、マイクロコンピュータ116は、取得した歪量目標値に対応した歪補正パラメータを取得する(ステップS604)。即ち、マイクロコンピュータ116は、Flashメモリ118に記憶されている歪補正パラメータから、ステップS603で取得した歪量目標値及びステップS602で取得したレンズ101の焦点距離に対応した歪補正パラメータを読み出す。   After acquiring the distortion amount target value, the microcomputer 116 acquires a distortion correction parameter corresponding to the acquired distortion amount target value (step S604). That is, the microcomputer 116 reads out from the distortion correction parameter stored in the flash memory 118 the distortion correction target value acquired in step S603 and the distortion correction parameter corresponding to the focal length of the lens 101 acquired in step S602.

歪補正パラメータを取得した後、マイクロコンピュータ116は、取得した歪補正パラメータを、バス106を介して歪補正処理部181に転送する。これを受けて、歪補正処理部181は、ステップS604で取得された歪補正パラメータに応じた歪補正処理を行う(ステップS605)。   After acquiring the distortion correction parameters, the microcomputer 116 transfers the acquired distortion correction parameters to the distortion correction processing unit 181 via the bus 106. In response, the distortion correction processing unit 181 performs distortion correction processing according to the distortion correction parameter acquired in step S604 (step S605).

以上説明したように、本一実施形態によれば、撮影時の撮影モードとレンズ101の焦点距離とに応じて歪補正処理の際の歪量目標値を決定し、この決定した歪量目標値に対応した歪補正パラメータに従って歪補正処理を行うことにより、撮影モードとレンズ101の焦点距離とに応じた適切な歪補正処理を行うことができる。   As described above, according to the present embodiment, the distortion amount target value for the distortion correction processing is determined according to the shooting mode at the time of shooting and the focal length of the lens 101, and the determined distortion amount target value is determined. By performing distortion correction processing according to the distortion correction parameters corresponding to the above, appropriate distortion correction processing according to the shooting mode and the focal length of the lens 101 can be performed.

以上実施形態に基づいて本発明を説明したが、本発明は上述した実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形や応用が可能なことは勿論である。   Although the present invention has been described above based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications and applications are naturally possible within the scope of the gist of the present invention.

例えば、上述した実施形態においては、3種類の焦点距離範囲のそれぞれに対して歪量目標値を設定している。しかしながら、焦点距離範囲は3種類に限るものではない。少なくとも短焦点距離と長焦点距離の2種類があれば良く、4種類以上あっても良い。焦点距離範囲を4種類以上とする場合には、その焦点距離範囲に応じて歪量目標値を設定することになる。   For example, in the above-described embodiment, the distortion amount target value is set for each of the three types of focal length ranges. However, the focal length range is not limited to three types. There may be at least two types of short focal length and long focal length, and there may be four or more types. When there are four or more types of focal length ranges, the target amount of distortion is set according to the focal length range.

また、上述した実施形態においては、撮影モードを4種類のみ例示しているが、これも4種類に限るものではない。さらに、上述した実施形態では、歪量目標値をTVディストーションとして表しているが、TVディストーション以外の歪量を用いて表しても良い。   Further, in the above-described embodiment, only four types of shooting modes are illustrated, but this is not limited to four types. Furthermore, in the above-described embodiment, the distortion amount target value is represented as TV distortion, but may be represented using a distortion amount other than TV distortion.

また、上述した実施形態においては、撮影モードと焦点距離の両方を用いて歪量目標値を決定しているが、何れか一方のみから歪量目標値を決定しても良い。   In the above-described embodiment, the distortion amount target value is determined using both the photographing mode and the focal length. However, the distortion amount target value may be determined from only one of them.

さらに、前記した実施形態には種々の段階の発明が含まれており、開示される複数の構成要件の適当な組合せにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、上述したような課題を解決でき、上述したような効果が得られる場合には、この構成要件が削除された構成も発明として抽出され得る。   Furthermore, the above-described embodiments include various stages of the invention, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some configuration requirements are deleted from all the configuration requirements shown in the embodiment, the above-described problem can be solved, and this configuration requirement is deleted when the above-described effects can be obtained. The configuration can also be extracted as an invention.

本発明の一実施形態に係る撮像装置の一例としてのデジタルスチルカメラのブロック図である。1 is a block diagram of a digital still camera as an example of an imaging apparatus according to an embodiment of the present invention. 図1に示すデジタルカメラにおける撮影時の処理を示すフローチャートである。It is a flowchart which shows the process at the time of imaging | photography in the digital camera shown in FIG. 図3(a)は短焦点距離の場合において樽型の歪を有する画像データに対して歪が無くなるような歪補正処理を行った場合の例を示す図であり、図3(b)は短焦点距離の場合に本発明の一実施形態における歪補正処理を行った場合の例を示す図である。FIG. 3A is a diagram showing an example of a case where distortion correction processing is performed so as to eliminate distortion for image data having barrel-shaped distortion in the case of a short focal length, and FIG. It is a figure which shows the example at the time of performing the distortion correction process in one Embodiment of this invention in the case of a focal distance. 図4(a)はパノラマ合成モードにおいて歪を残す歪補正処理を行った場合の例を示す図であり、図4(b)はパノラマ合成モードにおいて本発明の一実施形態における歪補正処理を行った場合の例を示す図である。FIG. 4A is a diagram illustrating an example of a case where a distortion correction process for leaving distortion is performed in the panorama synthesis mode, and FIG. 4B is a diagram illustrating the distortion correction process according to the embodiment of the present invention in the panorama synthesis mode. FIG. 図5(a)は文書撮影モードにおいて歪を残す歪補正処理を行った場合の例を示す図であり、図5(b)は文書撮影モードにおいて本発明の一実施形態における歪補正処理を行った場合の例を示す図である。FIG. 5A is a diagram illustrating an example of a case where distortion correction processing that leaves distortion is performed in the document shooting mode, and FIG. 5B is a diagram illustrating distortion correction processing according to an embodiment of the present invention performed in the document shooting mode. FIG. 歪量目標値算出テーブルの例を示す図である。It is a figure which shows the example of a distortion amount target value calculation table. TVディストーションについて説明するための図である。It is a figure for demonstrating TV distortion. 歪量目標値に対応した焦点距離毎の歪補正パラメータを示す図である。It is a figure which shows the distortion correction parameter for every focal distance corresponding to a distortion amount target value. 歪補正パラメータについて説明するための図である。It is a figure for demonstrating a distortion correction parameter. 本発明の一実施形態における歪補正処理について示すフローチャートである。It is a flowchart shown about the distortion correction process in one Embodiment of this invention.

符号の説明Explanation of symbols

101…レンズ、102…レンズ駆動機構、103…撮像素子、104…アナログ処理部、105…アナログ/デジタル(A/D)変換部、106…バス、107…SDRAM、108…画像処理部、109…AE処理部、110…AF処理部、111…JPEG処理部、112…メモリインターフェース(I/F)、113…記録媒体、114…LCDドライバ、115…LCD、116…マイクロコンピュータ、117…操作部、118…Flashメモリ、181…歪補正処理部   DESCRIPTION OF SYMBOLS 101 ... Lens, 102 ... Lens drive mechanism, 103 ... Image sensor, 104 ... Analog processing part, 105 ... Analog / digital (A / D) conversion part, 106 ... Bus, 107 ... SDRAM, 108 ... Image processing part, 109 ... AE processing unit, 110 ... AF processing unit, 111 ... JPEG processing unit, 112 ... memory interface (I / F), 113 ... recording medium, 114 ... LCD driver, 115 ... LCD, 116 ... microcomputer, 117 ... operation unit, 118: Flash memory, 181: Distortion correction processing unit

Claims (7)

被写体を撮影して画像データを得る撮像部と、
前記画像データに対する歪補正の際の歪量の目標値を決定する歪量目標決定部と、
前記歪量の目標値と対応付けて前記歪補正の際に用いられる歪補正パラメータを記憶する歪補正パラメータ記憶部と、
前記歪量目標決定部により決定された歪量の目標値に応じた歪補正パラメータを前記歪補正パラメータ記憶部から読み出し、該読み出した歪補正パラメータを用いて前記画像データの歪補正を行う歪補正部と、
を具備することを特徴とする撮像装置。
An imaging unit that captures image data by photographing a subject;
A distortion amount target determining unit for determining a target value of the distortion amount when correcting the distortion of the image data;
A distortion correction parameter storage unit that stores a distortion correction parameter used in the distortion correction in association with the target value of the distortion amount;
A distortion correction parameter is read out from the distortion correction parameter storage unit according to the distortion amount target value determined by the distortion amount target determination unit, and distortion correction of the image data is performed using the read distortion correction parameter. And
An imaging apparatus comprising:
撮影モードを示す撮影モード情報を設定するための撮影モード設定部をさらに具備し、
前記歪量目標決定部は、前記撮影モード設定部により設定された撮影モード情報に基づいて前記歪量の目標値を決定することを特徴とする請求項1に記載の撮像装置。
A shooting mode setting unit for setting shooting mode information indicating the shooting mode;
The imaging apparatus according to claim 1, wherein the distortion amount target determination unit determines a target value of the distortion amount based on shooting mode information set by the shooting mode setting unit.
前記被写体の像を前記撮像部に集光するためのレンズと、
撮影時における前記レンズの焦点距離情報を取得する焦点距離取得部と、
をさらに具備し、
前記歪量目標決定部は、さらに、前記焦点距離取得部により取得された撮影時における前記レンズの焦点距離情報に基づいて前記歪量の目標値を決定することを特徴とする請求項2に記載の撮像装置。
A lens for condensing the image of the subject on the imaging unit;
A focal length acquisition unit for acquiring focal length information of the lens at the time of shooting;
Further comprising
The distortion amount target determination unit further determines a target value of the distortion amount based on focal length information of the lens at the time of photographing acquired by the focal length acquisition unit. Imaging device.
前記歪量目標決定部は、前記撮影モード設定部によって設定された撮影モード情報が、互いにつなぎ合わされることを前提とした複数の画像データを取得する撮影モードであることを示す場合に、前記画像データにおける歪がなくなるように前記歪量の目標値を決定することを特徴とする請求項2又は3に記載の撮像装置。   When the distortion amount target determination unit indicates that the shooting mode information set by the shooting mode setting unit is a shooting mode for acquiring a plurality of image data on the assumption that they are connected to each other, the image The imaging apparatus according to claim 2 or 3, wherein a target value of the distortion amount is determined so that distortion in data is eliminated. 前記互いにつなぎ合わされることを前提とした複数の画像データを取得する撮影モードはパノラマ合成モードを含むことを特徴とする請求項4に記載の撮像装置。   The imaging apparatus according to claim 4, wherein the shooting mode for acquiring a plurality of image data on the assumption that the images are connected to each other includes a panorama synthesis mode. 前記歪量目標決定部は、前記撮影モード設定部によって設定された撮影モード情報が、文書を撮影するための撮影モードであることを示す場合に、前記画像データにおける歪がなくなるように前記歪量の目標値を決定することを特徴とする請求項2又は3に記載の撮像装置。   The distortion amount target determination unit, when the shooting mode information set by the shooting mode setting unit indicates a shooting mode for shooting a document, the distortion amount so as to eliminate distortion in the image data. The image pickup apparatus according to claim 2, wherein a target value is determined. 前記歪量目標決定部は、前記焦点距離取得部により取得された撮影時における前記レンズの焦点距離情報が所定距離よりも長いことを示す場合に、前記画像データにおける歪がなくなるように前記歪量の目標値を決定し、前記焦点距離取得部により取得された撮影時における前記レンズの焦点距離情報が前記所定距離よりも短いことを示す場合に、前記画像データにたる型の歪が残るように前記歪量の目標値を決定することを特徴とする請求項3に記載の撮像装置。   The distortion amount target determination unit, when the focal length information of the lens at the time of shooting acquired by the focal length acquisition unit indicates that it is longer than a predetermined distance, the distortion amount so as to eliminate distortion in the image data When the focal length information of the lens at the time of shooting acquired by the focal length acquisition unit indicates that the target value is shorter than the predetermined distance, a distortion of a mold corresponding to the image data remains. The imaging apparatus according to claim 3, wherein a target value of the distortion amount is determined.
JP2008106088A 2008-04-15 2008-04-15 Imaging device Expired - Fee Related JP5112154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008106088A JP5112154B2 (en) 2008-04-15 2008-04-15 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008106088A JP5112154B2 (en) 2008-04-15 2008-04-15 Imaging device

Publications (3)

Publication Number Publication Date
JP2009260567A true JP2009260567A (en) 2009-11-05
JP2009260567A5 JP2009260567A5 (en) 2011-03-17
JP5112154B2 JP5112154B2 (en) 2013-01-09

Family

ID=41387443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008106088A Expired - Fee Related JP5112154B2 (en) 2008-04-15 2008-04-15 Imaging device

Country Status (1)

Country Link
JP (1) JP5112154B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013229665A (en) * 2012-04-24 2013-11-07 Canon Inc Imaging apparatus, control method thereof, and program
JP2017034720A (en) * 2016-11-02 2017-02-09 キヤノン株式会社 Imaging apparatus, lens unit, signal processing device, signal processing method, and computer program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08317293A (en) * 1995-05-17 1996-11-29 Minolta Co Ltd Image pickup device
JP2005094048A (en) * 2003-08-13 2005-04-07 Topcon Corp Photographing apparatus with image correcting function and method thereof, and photographing apparatus and method thereof
JP2007104315A (en) * 2005-10-04 2007-04-19 Fujifilm Corp Photographing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08317293A (en) * 1995-05-17 1996-11-29 Minolta Co Ltd Image pickup device
JP2005094048A (en) * 2003-08-13 2005-04-07 Topcon Corp Photographing apparatus with image correcting function and method thereof, and photographing apparatus and method thereof
JP2007104315A (en) * 2005-10-04 2007-04-19 Fujifilm Corp Photographing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013229665A (en) * 2012-04-24 2013-11-07 Canon Inc Imaging apparatus, control method thereof, and program
JP2017034720A (en) * 2016-11-02 2017-02-09 キヤノン株式会社 Imaging apparatus, lens unit, signal processing device, signal processing method, and computer program

Also Published As

Publication number Publication date
JP5112154B2 (en) 2013-01-09

Similar Documents

Publication Publication Date Title
US20120300051A1 (en) Imaging apparatus, and display method using the same
JP3395770B2 (en) Digital still camera
WO2016072103A1 (en) Imaging device, imaging method and processing program
JP2008141518A (en) Imaging apparatus
TWI459126B (en) Image processing device capable of generating a wide-range image, image processing method and recording medium
KR101433121B1 (en) Image processing device for generating composite image having predetermined aspect ratio
JP2011103550A (en) Device and method for sensing image
KR101329942B1 (en) Image capturing apparatus and method for controlling the same
JP5132495B2 (en) Imaging apparatus and image processing method
JP4606486B2 (en) Image processing apparatus and photographing apparatus
JP5893712B1 (en) Imaging apparatus, imaging method, and processing program
JP4033456B2 (en) Digital camera
JP5112154B2 (en) Imaging device
JP2008182486A (en) Photographing device, and image processing method
JP2010245810A (en) Imaging apparatus
JP5750262B2 (en) Imaging apparatus and imaging method
JP5094686B2 (en) Image processing apparatus, image processing method, and image processing program
JP2010204303A (en) Imaging apparatus
US11653094B2 (en) Imaging apparatus with shaking state information display
JP2010245686A (en) Imaging apparatus, method of processing image, and image processing program
JP5641352B2 (en) Image processing apparatus, image processing method, and program
JP2010098428A (en) Imaging apparatus, imaging method, and imaging program
JP2003087647A (en) Digital still camera
JP2009219028A (en) Image recording method and imaging unit
JP2009147468A (en) Camera

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110127

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120606

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

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

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

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5112154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees