JP2009260567A - Imaging device - Google Patents
Imaging device Download PDFInfo
- 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
Links
Images
Abstract
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においては、広角レンズや魚眼レンズ等の画像の周辺部において大きな歪が発生する場合であっても適切に歪が補正できるように、レンズのキャリブレーションパラメータに応じて歪を補正するようにしている。
デジタルカメラが有する歪補正機能により、実際にはレンズの歪特性に応じて歪んで撮影された画像データの歪を補正することができる。しかしながら、撮影モードやレンズの焦点距離によっては歪補正を行わないほうが良い場合がある。例えば、近年のデジタルカメラには、撮影された複数の画像データをつなぎ合わせてパノラマ画像を作成する機能を有しているものがある。このようなパノラマ画像の作成処理を適正に行うためには、一般的に、つなぎ合わせる画像のそれぞれに歪がないことが好ましい。これに対し、広角レンズを用いて広い画角で撮影する場合には、周辺部の歪を残した画像のほうが、歪がない画像に比べて自然に見える場合がある。このような場合には、歪をあえて残す補正を行うほうが良い。特許文献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
本発明は、上記の事情に鑑みてなされたものであり、撮影条件や画像の用途に応じた歪補正を行い、違和感の少ない画像を得ることができる撮像装置を提供することを目的とする。 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
レンズ101は、被写体の光学像を撮像素子103に集光させる。このレンズ101は可変焦点レンズであり、マイクロコンピュータ116からの指示に応じて駆動するレンズ駆動機構102によりその光軸方向に移動される。これにより、レンズ101の焦点距離や被写体へのフォーカス状態を変更することが可能である。また、レンズ101の近傍には図示しない絞り機構及びメカシャッター機構が設けられている。マイクロコンピュータ116からの指示に応じて図示しない絞り機構を駆動させることで、被写体の光量を調節することが可能である。また、撮影時には、マイクロコンピュータ116からの指示に応じて図示しないメカシャッター機構を駆動させることで撮像素子103の露光時間を制御することが可能である。
The
なお、レンズ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
(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
アナログ処理部104は、撮像素子103から出力された電気信号(アナログ画像信号)に対し、リセットノイズ等を低減した上で波形整形を行い、さらに目的の明るさとなるようゲインアップを行う。A/D変換部105は、アナログ処理部104から出力されるアナログ画像信号をデジタル画像信号(以降、画像データという)に変換する。
The
バス106は、デジタルカメラ内部で発生した各種データをデジタルカメラ内の各部に転送するための転送路である。バス106は、A/D変換部105と、SDRAM107と、画像処理部108と、AE処理部109と、AF処理部110と、JPEG処理部111と、メモリI/F112と、LCDドライバ114と、マイクロコンピュータ116とに接続されている。
A
A/D変換部105で得られた画像データは、バス106を介して一旦SDRAM107に記憶される。SDRAM107は、A/D変換部105において得られた画像データや、画像処理部108、JPEG処理部111において処理された画像データ等の各種データが一時的に記憶される記憶部である。
The image data obtained by the A /
画像処理部108は、歪補正処理部181を少なくとも含み、さらに図示しないホワイトバランス補正部、色変換処理部、色再現処理部、ノイズ低減処理部等を含む。この画像処理部108は、SDRAM107から読み出した画像データに対し、ホワイトバランス補正処理、色変換処理及び色再現処理、ノイズ低減処理、歪補正処理等の画像処理を施す。歪補正処理部181は、Flashメモリ118に記憶される歪補正パラメータに基づいて画像データの歪補正を行う。
The
ここで、画像処理部108で画像処理が行われた後の画像データは、ベイヤー配列による画像データから、1画素あたりRGBの情報からなる画像データへ同時化され、同時化された画像データはSDRAM107に記憶される。
Here, the image data after the image processing is performed by the
AE処理部109は、画像データを用いて被写体輝度を算出する。被写体輝度を算出するためのデータは、専用の測光センサの出力であってもよい。AF処理部110は、画像データから高周波成分の信号を取り出しAF(Auto Focus)積算処理により合焦評価値を取得する。
The
JPEG処理部111は、画像データの記録時には、SDRAM107からRGBの画像データを読み出し、読み出した画像データをJPEG圧縮方式に従って圧縮する。圧縮された画像データはSDRAM107に一旦記憶された後、メモリI/F112を介して記録媒体113に記録される。ここで、記録媒体113は、例えばカメラ本体に着脱可能なメモリカードからなる記録媒体であるが、これに限定されるものではない。
When recording image data, the
LCDドライバ114は、LCD115に画像を表示させる。記録媒体113に記録されたJPEG圧縮画像データを再生する場合には、JPEG処理部111は、記録媒体113に記録されているJPEG圧縮画像データを読み出して伸張処理を施した上で、伸張した画像データを一旦SDRAM107に記憶させる。LCDドライバ114は、その画像データをSDRAM107から読み出し、読み出した画像データを映像信号へ変換した後でLCD115へ出力し、画像の表示を行う。
The LCD driver 114 displays an image on the
歪量目標決定部及び焦点距離取得部としての機能を有するマイクロコンピュータ116は、デジタルカメラ本体の各種シーケンスを統括的に制御する。このマイクロコンピュータ116には、操作部117、Flashメモリ118が接続されている。
The
操作部117は、電源ボタン、レリーズボタン、ズームボタン、各種入力キー等の操作部材である。ユーザにより操作部117の何れかの操作部材が操作されることにより、マイクロコンピュータ116は、ユーザの操作に応じた各種シーケンスを実行する。電源ボタンは、当該デジタルカメラの電源のオンオフ指示を行うための操作部材である。電源ボタンが押されたときに、マイクロコンピュータ116は、当該デジタルカメラの電源をオン又はオフする。レリーズボタンは、1stレリーズスイッチと2ndレリーズスイッチの2段スイッチを有して構成されている。レリーズボタンが半押しされて1stレリーズスイッチがオンされた場合に、マイクロコンピュータ116は、AE処理やAF処理等の撮影準備シーケンスを行う。また、レリーズボタンが全押しされて2ndレリーズスイッチがオンされた場合に、マイクロコンピュータ116は撮影シーケンスを実行して撮影を行う。ズームボタンは、ワイドボタンとテレボタンとを有している。ワイドボタンが押された場合に、マイクロコンピュータ116はレンズ駆動シーケンスを実行してレンズ駆動機構102を駆動させ、レンズ101の焦点距離を短焦点距離側に変更する。テレボタンが押された場合に、マイクロコンピュータ116はレンズ駆動シーケンスを実行してレンズ駆動機構102を駆動させ、レンズ101の焦点距離を長焦点距離側に変更する。撮影モード設定部としての機能を有する各種の入力キーは撮影モードの設定等の各種の入力操作の際に用いられる。
The
歪補正パラメータ記憶部としての機能を有するFlashメモリ118は、歪補正の際の歪量目標値決定テーブルと歪補正の際の歪量目標値及び焦点距離に応じた歪補正パラメータの他に、デジタルカメラの動作に必要な各種パラメータを記憶している。また、Flashメモリ118は、マイクロコンピュータ116にて実行するプログラムも記憶している。マイクロコンピュータ116は、Flashメモリ118に記憶されているプログラムに従い、またFlashメモリ118から各種シーケンスに必要なパラメータを読み込み、各処理を実行する。
A
図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
一方、ステップ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
次に、マイクロコンピュータ116は、ユーザによりレリーズボタンが全押しされて2ndレリーズスイッチがオンされたかを判定する(ステップS205)。ステップS205の判定において、2ndレリーズスイッチがオンされるまで、マイクロコンピュータ116は、繰り返しステップS205の判定を行う。
Next, the
一方、ステップ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
上述のように、図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
レンズ101の焦点距離が短く撮影画角が広い場合に得られる画像データに対して周辺部の歪が無くなるように歪補正処理を行うと、歪補正後に得られる画像は中心から外側に向かって引き伸ばされたような画像となる。
When distortion correction processing is performed on the image data obtained when the focal length of the
図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
何れの場合であっても、レンズ101の焦点距離が短い場合には、周辺部の歪が残るように歪補正をすることが好ましい。ここで、歪のある画像の見え方としては、人の感覚的に糸巻き型の歪よりも樽型の歪の方が自然に見えやすい。したがって、レンズ101の焦点距離が短い場合には、図3(b)に示すような、樽型の歪が残るような歪補正を行うことが望ましい。
In either case, when the focal length of the
一方、レンズ101の焦点距離が長く撮影画角が狭い場合には、被写体からの光が撮影方向に対してほぼ平行となる。このため、歪が無くなるような歪補正処理を行っても、レンズ101の焦点距離が短い場合に比べて不自然な画像となりにくい。このような場合には、歪が無くなるような歪補正処理を行ったほうがより自然な画像となる。
On the other hand, when the focal length of the
また、レンズ101の焦点距離が短くとも、撮影モードによっては、歪が無くなるような歪補正処理を行ったほうが良い場合がある。
例えば、複数の画像をつなぎ合わせて1枚のパノラマ画像を生成することが想定されるパノラマ合成モードの場合には、各画像に歪を残したままでつなぎ合わせの処理を行ってしまうと、図4(a)に示すような、画像間のつなぎ目が一致しない不自然な画像が生成される可能性が高い。したがって、パノラマ合成モードの場合には、レンズ101の焦点距離によらず、各画像における歪が無くなるように補正した後でつなぎ合わせの処理を行うことが望ましい。各画像における歪を無くしてからつなぎ合わせの処理を行うことで、図4(b)に示すような自然なパノラマ画像を生成することが可能である。
Even if the focal length of the
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
また、樽型の歪では周辺部が縮小され、糸巻き型の歪では周辺部が拡大されるので、文書を撮影するための文書撮影モードにおいて画像に歪を残してしまうと、図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
以上を考慮して本実施形態では、撮影モードと焦点距離とに応じて歪補正処理の際の歪量目標値を設定して歪補正を行う。 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
ここで、図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
ここで、図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
図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
ここで、歪補正パラメータは、歪補正の手法によって異なるものが用いられる。ここでは、それぞれの手法に応じた歪補正パラメータの求め方については説明を省略するが、何れの手法を用いた場合であっても本実施形態の手法を適用することが可能である。 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
まず、マイクロコンピュータ116は、撮影時の撮影モード情報を取得する(ステップS601)。撮影モード情報は、ユーザが操作部117の入力キーを操作することで変更することが可能である。撮影直前の入力キーの操作により変更された撮影直前の撮影モード情報をSDRAM107に一時的に記憶させておくことで、マイクロコンピュータ116は、撮影後に、撮影時の撮影モード情報を取得することができる。
First, the
次に、マイクロコンピュータ116は、撮影時のレンズ101の焦点距離を取得する(ステップS602)。レンズ101の焦点距離は、ユーザが操作部117のズームボタンを操作することで変更することが可能である。撮影直前のズームボタンの操作により変更された最後の焦点距離をSDRAM107に一時的に記憶させておくことで、マイクロコンピュータ116は、撮影後に、撮影時の焦点距離を取得することができる。
Next, the
次に、マイクロコンピュータ116は、撮影時の撮影モード及びレンズ101の焦点距離に対応した歪量目標値を取得する(ステップS603)。即ち、マイクロコンピュータ116は、Flashメモリ118に記憶されている歪量目標値算出テーブルから、ステップS601で取得した撮影モード情報及びステップS602で取得したレンズ101の焦点距離に対応する歪量目標値を得る。
Next, the
歪量目標値を取得した後、マイクロコンピュータ116は、取得した歪量目標値に対応した歪補正パラメータを取得する(ステップS604)。即ち、マイクロコンピュータ116は、Flashメモリ118に記憶されている歪補正パラメータから、ステップS603で取得した歪量目標値及びステップS602で取得したレンズ101の焦点距離に対応した歪補正パラメータを読み出す。
After acquiring the distortion amount target value, the
歪補正パラメータを取得した後、マイクロコンピュータ116は、取得した歪補正パラメータを、バス106を介して歪補正処理部181に転送する。これを受けて、歪補正処理部181は、ステップS604で取得された歪補正パラメータに応じた歪補正処理を行う(ステップS605)。
After acquiring the distortion correction parameters, the
以上説明したように、本一実施形態によれば、撮影時の撮影モードとレンズ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
以上実施形態に基づいて本発明を説明したが、本発明は上述した実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形や応用が可能なことは勿論である。 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.
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
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.
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)
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)
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 |
-
2008
- 2008-04-15 JP JP2008106088A patent/JP5112154B2/en not_active Expired - Fee Related
Patent Citations (3)
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)
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 |