JP2010118926A - Imaging device - Google Patents
Imaging device Download PDFInfo
- Publication number
- JP2010118926A JP2010118926A JP2008291023A JP2008291023A JP2010118926A JP 2010118926 A JP2010118926 A JP 2010118926A JP 2008291023 A JP2008291023 A JP 2008291023A JP 2008291023 A JP2008291023 A JP 2008291023A JP 2010118926 A JP2010118926 A JP 2010118926A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- subject
- subject image
- correction
- image
- 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 that corrects subject image data captured using flash light.
フラッシュ光が照射されなかった被写体を撮像した第1の画像信号に所定の重み付け係数を乗算し、フラッシュ光が照射された被写体を撮像した第2の画像信号に所定の重み付け係数を乗算した後に、第1の画像信号と第2の画像信号とを合成して第3の画像信号を生成することにより、例えば、夜景をバックに被写体を撮影する際に、被写体にフラッシュ光以外の光源からの光が照射されている場合においても、夜景および被写体のそれぞれに最適なホワイトバランス調整がなされた撮像データを得ることができる撮像装置が知られている(例えば、特許文献1参照)。
ところで、特許文献1に記載された撮像装置においては、被写体にフラッシュ光を照射して第1の画像信号を取得した後に、フラッシュ光を照射しない状態で第2の画像信号を取得するため、両画像信号を取得する間の時間差に起因する被写体ぶれが発生するおそれがある。
By the way, in the imaging apparatus described in
本発明の課題は、フラッシュ撮影によって取得された画像データの明るさを適切に補正できると共に、被写体ぶれの発生を防止し、レリーズボタン押下後から補正処理までの時間を短縮することができる撮像装置を提供することである。 An object of the present invention is to provide an imaging apparatus capable of appropriately correcting the brightness of image data acquired by flash photography, preventing subject blurring, and shortening the time from the release button being pressed to the correction processing. Is to provide.
本発明の撮像装置は、被写体に対して照明光を発光する発光部と、被写体光を撮像し撮像信号を生成する撮像素子と、前記撮像信号に基づいて被写体画像データを生成する生成部と、前記被写体画像データを補正する補正部とを備え、前記生成部は、前記照明光が発光されていないときの被写体光から生成された撮像信号に基づいて第1の被写体画像データを生成すると共に、前記第1の被写体画像データの生成後、前記照明光が発光されたときの被写体光から生成された撮像信号に基づいて第2の被写体画像データを生成し、前記補正部は、前記第1の被写体画像データを使用して前記第2の被写体画像データの補正を行うことを特徴とする。 An imaging apparatus of the present invention includes a light emitting unit that emits illumination light to a subject, an imaging element that captures subject light and generates an imaging signal, a generation unit that generates subject image data based on the imaging signal, A correction unit that corrects the subject image data, and the generation unit generates first subject image data based on an imaging signal generated from the subject light when the illumination light is not emitted, After the generation of the first subject image data, second subject image data is generated based on an imaging signal generated from the subject light when the illumination light is emitted, and the correction unit is configured to generate the first subject image data. The second subject image data is corrected using subject image data.
本発明の撮像装置によれば、フラッシュ撮影によって取得された画像データの明るさを適切に補正できると共に、被写体ぶれの発生を防止し、レリーズボタン押下後から補正処理までの時間を短縮することができる。 According to the imaging apparatus of the present invention, it is possible to appropriately correct the brightness of image data acquired by flash photography, to prevent subject blurring, and to shorten the time from the release button being pressed to the correction processing. it can.
以下、図面を参照して本発明の実施の形態に係る撮像装置について説明する。図1は、この実施の形態に係る撮像装置としてのカメラ2の概略構成を示すブロック図である。図1に示すように、カメラ2は、カメラ2の各部を統括的に制御する制御部4を備えている。制御部4には、カメラ2の各部との間で制御信号を送受信するための通信回路としてのバス6が接続されており、バス6には、操作部8、発光部10、A/D変換回路12を介して接続された撮像素子14、画像生成部16、画像表示部18、画像補正部20、バッファメモリ22、記録媒体24等が接続されている。
Hereinafter, an imaging apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a
操作部8は、カメラ2の本体の上部や背面に設けられた各種のスイッチやボタン等から構成されており、カメラ2の使用者(以下、撮影者という)が種々の操作/指示を手動入力する際に使用される。具体的には、カメラ2の電源のオン/オフを行うための電源スイッチ、撮影を指示するためのレリーズボタン、画像表示部18にメニュー画面を表示させるためのメニューボタン、表示されたメニュー画面において機能設定や項目選択を行うための十字キーや決定ボタン等が設けられている。操作部8から制御部4に対して入力された操作信号は、制御部4によって制御信号に変換されてカメラ2の各部に送信される。
The
カメラ2の前面に設けられた発光部10は、フラッシュ撮影モードの選択時に撮影者によってレリーズボタンが押下されると、被写体を瞬間的に照明するフラッシュ光を発光する。ここで、フラッシュ撮影モードの選択は、制御部4によって自動的に行われてもよいし、撮影者が手動で行ってもよい。なお、発光部10は、オートフォーカス用の赤外線光を発光する機能を備えていてもよいし、カメラ2に対して着脱可能に装着される、所謂外付けのものであってもよい。
The
撮像素子14は、CCDまたはCMOS等により構成されており、カメラ2の本体の前面に設けられた撮影レンズを透過した被写体光を撮像し、撮像した像から光電変換して生成される撮像信号(蓄積電荷としてのアナログ信号)をA/D変換回路12に対して出力する。撮像素子14から出力された撮像信号は、A/D変換回路12においてゲイン調整などの処理が行われた後にアナログ信号からデジタル信号に変換され、画像生成部16に対して出力される。
The
画像生成部16は、A/D変換回路12から出力されたデジタル信号に基づいて、被写体画像データを生成する。なお、詳細は後述するが、生成される被写体画像データには、本撮影画像データ、プレビュー画像データ、撮影前画像データの3種類が存在する。また、画像生成部16は、被写体画像データの生成に合わせて、ホワイトバランス調整、シャープネス調整、ガンマ補正、階調調整等の画像処理を適宜行ってもよい。生成された被写体画像データは、バッファメモリ22または記録媒体24に対して送信されて記憶される。ここで、バッファメモリ22は、新しい撮影前画像データを受信した場合には、既に記憶しているデータを書き換えてもよいし、蓄積して保存してもよい。また、記録媒体24は、カメラ2に設けられた装着部(スロット)に着脱可能に装着されるメモリカード等の可搬性を有する記録媒体である。記録媒体24には、Exif(Exchangable image file format)等の所定の形式で、撮影日時等の撮影に関する情報と共に被写体画像データが記録される。
The
画像表示部18は、カメラ2の背面に設けられており、LCDパネルから構成されている。カメラ2が撮影モードに設定されている場合には、撮像素子14によって撮像されたプレビュー画像(スルー画像、ライブビュー画像)が画像表示部18に表示される。また、画像表示部18は、記録媒体24に記録されている画像や、メニュー画面等を表示することもできる。
The
画像補正部20は、バッファメモリ22に記憶されているフラッシュ撮影時に生成された被写体画像データに対して、後述する補正処理を実行する。当該補正処理が行われることにより、フラッシュ光の反射等によって明るさ(輝度)が極度に高い部分などが適切に補正された良好な撮影画像が生成される。
The
次に、撮像素子14による撮像信号の生成、及び画像生成部16による被写体画像データの生成について詳しく説明する。上述したように、画像生成部16は、本撮影画像データ、プレビュー画像データ、及び撮影前画像データの3種類の被写体画像データを生成する。
Next, generation of an imaging signal by the
本撮影画像データは、撮影者によってカメラ2が備えるレリーズボタンが押下されたときに生成される被写体画像データである。レリーズボタンが押下されると、制御部4は、撮像素子14に対して制御信号を出力して被写体光の露光を開始させる。露光が終了すると、A/D変換回路12は、撮像素子14が有する最大の画素数(画像サイズ)または予め設定された画素数の撮像信号を取得し、デジタル信号に変換して画像生成部16に出力する。画像生成部16は、受信した信号に基づいて、当該画素数に対応する画素データ数から構成される本撮影画像データを生成する。ここで、発光部10によるフラッシュ光の発光を伴わずに撮影が行われた場合には、生成された本撮影画像データは記録媒体24へ出力されて記録される。一方、フラッシュ光の発光を伴った撮影が行われた場合には、生成された本撮影画像データはバッファメモリ22へ一旦出力され、必要な補正が実行された後に記録媒体24へ出力されて記録される。
The captured image data is subject image data generated when a release button provided in the
プレビュー画像データは、カメラ2が撮影モードに設定されている場合に、画像表示部18にプレビュー画像を継続的に表示するために生成される被写体画像データである。このプレビュー画像データは、撮像素子14から所定の時間間隔毎に読み出された撮像信号に基づいて画像生成部16によって継続的に生成される。生成されたプレビュー画像データは、バッファメモリ22へ出力されて一時的に記憶された後に、制御部4によって読み出されて画像表示部18に表示される。この実施の形態に係るカメラ2においては、プレビュー画像は毎秒30フレーム表示されるため、撮像素子14による被写体光の露光も毎秒30回実行される。ここで、プレビュー画像データ用の露光後には、上述の本撮影画像データの画素数の数分の1程度の画素数の撮像信号しか読み出されない。このようにして読み出される撮像信号数が削減されることにより、読み出し時間が短くなると共に、画像生成部16に対して出力されるデジタル変換された信号のデータ量も少なくなるため、毎秒30フレームという高速なプレビュー画像データの生成処理が可能になる。
The preview image data is subject image data generated in order to continuously display the preview image on the
撮影前画像データは、フラッシュ撮影によって取得される本撮影画像データを補正するために生成される被写体画像データである。カメラ2がフラッシュ撮影モードに設定されている場合には、上述のプレビュー画像データが所定回数生成される毎に一の撮影前画像データが生成される。ここで、本撮影画像データの補正処理は、本撮影画像データの画素単位で実行されるため、補正用に生成される撮影前画像データは、補正対象としての本撮影画像データと同数の画素数から構成されている必要がある。従って、撮像素子14によって生成された撮像信号の読み出しには、プレビュー画像データを生成する際に要した時間の数倍の時間が必要となる。
The pre-photographing image data is subject image data generated to correct the main photographing image data acquired by flash photographing. When the
次に図2のタイミングチャートを用いて、画像生成部16による被写体画像データの生成処理について説明する。なお、図2は、プレビュー画像データが5回生成される毎に撮影前画像データが1回生成される場合を例にしている。ここで、e1〜e8は撮像素子14によるプレビュー画像データの露光時間、D1〜D8は画像生成部16によるプレビュー画像データの読出時間、E´は撮像素子14による撮影前画像データの露光時間、Fは画像生成部16による撮影前画像データの読出時間、Eは撮像素子14による本撮影画像データの露光時間、Sは画像生成部16による本撮影画像データの読出時間を示している。
Next, subject image data generation processing by the
図2に示すように、撮像素子14が被写体光を時間e1だけ露光して撮像信号を生成すると、画像生成部16が読出時間D1内に当該撮像信号に基づいて第1のプレビュー画像データを生成する。制御部4は、当該画像データに基づいて、画像表示部18に第1のプレビュー画像を1/30秒間だけ表示する。以下同様に、露光時間e2及び読出時間D2内に生成された第2のプレビュー画像データに基づく第2のプレビュー画像、露光時間e3及び読出時間D3内に生成された第3のプレビュー画像データに基づく第3のプレビュー画像、露光時間e4及び読出時間D4内に生成された第4のプレビュー画像データに基づく第4のプレビュー画像、そして露光時間e5及び読出時間D5内に生成された第5のプレビュー画像データに基づく第5のプレビュー画像が、それぞれ1/30秒間ずつ順番に画像表示部18に表示される。
As shown in FIG. 2, when the
ここで、一のプレビュー画像データを生成する際に要する時間は1/30秒より短いため、画像生成部16において生成されたプレビュー画像データが画像表示部18に表示されるまでにはタイムラグが生じる。しかしながら、当該タイムラグは極僅かであるので、プレビュー画像を見ながら撮影を行っている撮影者によって認識されることはない。
Here, since the time required to generate one preview image data is shorter than 1/30 second, a time lag occurs before the preview image data generated by the
第5のプレビュー画像データの生成が終了すると、撮像素子14は被写体光を露光時間E´だけ露光して撮影前画像データ用の撮像信号を生成する。画像生成部16は、読出時間F内に読み出された当該撮像信号に基づいて撮影前画像データを生成する。ここで、上述したように、撮影前画像データは、プレビュー画像データの画素数の数倍の画素数を有するため、読出時間Fはプレビュー画像データの読出時間D1等よりも数倍長くなる。そして、生成された撮影前画像データは、バッファメモリ22に送信されて一時的に記憶される。
When the generation of the fifth preview image data is completed, the
以上のように、図2に示す例においては、プレビュー画像データが5回生成された後に、撮影前画像データが1回生成されるまでが1サイクルとなる。従って、撮影前画像データの生成が終了すると、撮像素子14は、再びプレビュー画像データ(第6のプレビュー画像データ)の露光を開始する(露光時間e6)。一方、各プレビュー画像が画像表示部18に表示されるまでには上述のタイムラグが生じているため、プレビュー画像データ及び撮影前画像データの生成サイクルの終了時(読出時間Fの経過時)においても、画像表示部18には第5のプレビュー画像が依然として表示されている。そして、読出時間D6が経過して第6のプレビュー画像データが生成されると、第5のプレビュー画像の表示が終了した画像表示部18に、2回目のサイクルの第1のプレビュー画像として第6のプレビュー画像が表示される。以上のようにしてプレビュー画像の表示が繰り返し実行されることにより、撮像素子14及び画像生成部16によるプレビュー画像データの生成が中断されている場合においても、画像表示部18には1/30秒毎に継続してプレビュー画像が表示される。
As described above, in the example shown in FIG. 2, after the preview image data is generated five times, it takes one cycle until the pre-photographing image data is generated once. Therefore, when the generation of the pre-photographing image data is completed, the
プレビュー画像の表示中に撮影者によってレリーズボタンが押下されると、プレビュー画像データや撮影前画像データの生成処理が中断されて、本撮影画像データの生成が開始される。例えば、図2に示すように、撮像素子14がプレビュー画像データの露光をしている間(露光時間e7)に、撮影者によってレリーズボタンが押下されると、制御部4は、撮像素子14によるプレビュー画像の露光を中止して、本撮影画像データの露光を開始させる(露光時間E)。露光時間Eが経過して撮像信号が生成されると、画像生成部16は、読出時間S内に読み出された当該撮像信号に基づいて本撮影画像データを生成する。ここで、上述したように、本撮影画像データは、プレビュー画像データの画素数の数倍の画素数を有するため、読出時間Sはプレビュー画像データの読出時間D1等よりも数倍長くなる。そして、生成された本撮影画像データは、バッファメモリ22に対して送信されて一時的に記憶された後に補正処理が実行される。なお、読出時間Sが終了すると、再びプレビュー画像データ(第8のプレビュー画像データ)の露光が開始される(露光時間e8)。
When the release button is pressed by the photographer while the preview image is displayed, the generation processing of the preview image data and the pre-shooting image data is interrupted, and the generation of the main shooting image data is started. For example, as illustrated in FIG. 2, when the release button is pressed by the photographer while the
図3は、フラッシュ撮影時に生成された本撮影画像データに基づいて作成された撮影画像の1例である。図3に示すように、フラッシュ撮影を行った場合には、例えば、主要被写体上においてフラッシュ光が局所的に強く反射した領域Pや、構図内にあるガラスなどの反射物においてフラッシュ光が強く反射した領域Qなどの、極度に輝度が高い領域が撮影画像内に発生し、被写体の本来の色調が再現されず、ホワイトバランスも異常になる。 FIG. 3 is an example of a captured image created based on the actual captured image data generated during flash imaging. As shown in FIG. 3, when flash photography is performed, for example, the flash light is strongly reflected by a region P where the flash light is locally strongly reflected on the main subject or a reflecting object such as glass in the composition. A region with extremely high brightness, such as the region Q, occurs in the captured image, the original color tone of the subject is not reproduced, and the white balance becomes abnormal.
図4は、フラッシュ撮影時に生成された本撮影画像データに基づいて作成された撮影画像の輝度分布を示す図である。なお、図4(a)は撮影画像を示し、図4(b)のグラフは、図4(a)の直線AA上に存在する画素の輝度出力を示している。 FIG. 4 is a diagram illustrating a luminance distribution of a captured image created based on main captured image data generated at the time of flash photographing. 4A shows a captured image, and the graph of FIG. 4B shows the luminance output of the pixels existing on the straight line AA of FIG. 4A.
図4(a)に示すように、撮影画像内に極度に明るい領域Rが存在している場合には、図4(b)のグラフに示すように、領域R内を構成する画素データの輝度は、領域R外の領域を構成する画素データの輝度に比して極度に高いことが分かる。従って、輝度の所定の閾値としてΔthを設定し、本撮影画像データを構成する各画素データの輝度をΔthと比較することにより、撮影画像における高輝度領域を特定することができる。 As shown in FIG. 4A, when an extremely bright region R exists in the photographed image, the luminance of the pixel data constituting the region R as shown in the graph of FIG. Is extremely higher than the luminance of the pixel data constituting the region outside the region R. Therefore, by setting Δth as a predetermined threshold value of luminance and comparing the luminance of each pixel data constituting the actual captured image data with Δth, a high luminance region in the captured image can be specified.
次に、図5に示すフローチャートを参照して、この実施の形態に係るカメラ2において実行されるフラッシュ撮影処理について説明する。始めに、自動または手動によってフラッシュ撮影モードが設定されたことによりフラッシュ撮影が開始されると(ステップS10)、制御部4は、撮影者の周囲の明るさや被写体距離などの撮影条件、撮影レンズの性能や発光部10の照明性能などに基づいて、撮影画像内に存在する高輝度領域を判定するための閾値としてΔthを設定する(ステップS12)。なお、このΔthは、撮影者が手動で設定してもよいし、制御部4によって自動的に設定された値を変更してもよい。また、撮影条件に変化があった場合には、新たなΔthが自動的に設定されることが望ましい。
Next, with reference to the flowchart shown in FIG. 5, the flash photographing process executed in the
Δthの設定処理が実行されると、画像生成部16によって所定の間隔毎にプレビュー画像データが生成され、当該画像データに基づいて、画像表示部18にプレビュー画像が表示される(ステップS14)。上述のように、撮影者によってレリーズボタンが押下されるまでは、画像表示部18にはライブビュー画像が1/30秒毎に更新されながら継続的に表示される。
When the Δth setting process is executed, preview image data is generated at predetermined intervals by the
一方、画像生成部16は、プレビュー画像データの生成を数回(この実施例においては5回)行う毎に、本撮影画像の補正に使用する第1の被写体画像データとして撮影前画像データを生成する(ステップS16)。この撮影前画像データは、撮影者によって撮影される本撮影画像の画素数と同等の画素数を有している必要がある。生成された撮影前画像データは、バッファメモリ22に対して送信されて一時的に保存される(ステップS18)。
On the other hand, every time the preview image data is generated several times (five times in this embodiment), the
プレビュー画像を見ながら所望の構図や撮影条件を決定した撮影者によってレリーズボタンが押下されると(ステップS20)、発光部10からフラッシュ光が発光されて被写体の撮影が行われる(ステップS22)。即ち、フラッシュ光が照射された被写体からの被写体光を露光した撮像素子14が撮像信号を生成し、当該撮像信号を受信した画像生成部16が第2の被写体画像データとしての本撮影画像データを生成する。生成された本撮影画像データは、バッファメモリ22に送信された後に一時的に保存される(ステップS24)。なお、レリーズボタンが押下されない場合には、プレビュー画像の生成と表示、及び撮影前画像データの生成と保存が繰り返し実行される。この場合においては、バッファメモリ22に保存されている古い撮影前画像データは、新しく生成された撮影前画像データによって書き換えられる。
When the release button is pressed by the photographer who has determined the desired composition and shooting conditions while viewing the preview image (step S20), flash light is emitted from the
本撮影画像データの保存が完了すると、画像補正部20によって、詳細は後述する本撮影画像データの補正が実行される(ステップS26)。当該補正が実行されることによって、画素データの輝度が適切に補正された本撮影画像データは、記録媒体24へ送信されて保存される(ステップS28)。
When the saving of the main image data is completed, the
次に、図6に示すフローチャートを用いて、この発明の実施の形態に係るカメラ2の画像補正部20が行う画像の補正処理、即ち、図5に示すフローチャートのステップS26において実行される画像の補正処理について説明する。なお、当該補正処理は、本撮影画像における高輝度部分の判定処理と、当該高輝度部分に対する輝度調整処理との2つの処理からなる。
Next, using the flowchart shown in FIG. 6, the image correction processing performed by the
高輝度部分の判定処理が開始されると、画像補正部20は、バッファメモリ22に保存されている本撮影画像データの横サイズ(画素数)H及び縦サイズVを取得する(ステップS30)。画像サイズを取得することにより、本撮影画像データを構成する各画素データの位置を、座標(h,v)(1≦h≦H,1≦v≦V)で表すことができる。まず始めに、h=1,v=1が設定され(ステップS32)、座標(h,v)、即ち座標(1,1)にある画素データ(以降、画素データ(1,1)という)が高輝度判定の対象となる画素データとして選択されると、画素データ(1,1)の輝度値bが読み出される(ステップS34)。次に、画像補正部20は、輝度値bと予め設定された閾値であるΔthとを比較する(ステップS36)。
When the high-intensity portion determination process is started, the
輝度値bがΔthより小さい場合には、画像補正部20によって画素データ(1,1)の輝度の補正は必要ないと判断され、ステップS42に進む。
If the luminance value b is smaller than Δth, the
一方、輝度値bがΔthより大きい場合には、画素データ(1,1)の輝度は補正が必要であると判定されて、撮影前画像データを構成する画素データの中の、画素データ(1,1)に対応する画素データ、即ち、撮影前画像データの座標(1,1)で表される座標位置にある画素データの輝度値aが読み出される(ステップS38)。ここで、撮影前画像データは、本撮影画像データと同数の画素数を有し、横サイズがHかつ縦サイズがVで構成されているため、本撮影画像データを構成する画素データのすべてに対応する画素データを有している。 On the other hand, when the luminance value b is larger than Δth, it is determined that the luminance of the pixel data (1, 1) needs to be corrected, and the pixel data (1 , 1), that is, the luminance value a of the pixel data at the coordinate position represented by the coordinates (1, 1) of the pre-photographing image data is read (step S38). Here, since the pre-shooting image data has the same number of pixels as the main shooting image data, and the horizontal size is H and the vertical size is V, all of the pixel data constituting the main shooting image data is included. It has corresponding pixel data.
次に、画像補正部20は、読み出された輝度値aを用いて、詳細は後述する画素単位の補正を実行する(ステップS40)。当該補正が終了すると、補正を終了した画素データの座標(h,v)の横方向の座標hと、本撮影画像データの横サイズHとの大小が比較される(ステップS42)。hがHより小さい場合、即ち、補正を終了した画素データが、本撮影画像データの右端に位置する画素のデータでない場合には、横方向の座標hに1が加算され(ステップS44)、座標(h+1,v)にある画素データが高輝度判定の対象となる画素データとして選択される(ステップS34)。即ち、画素データ(1,1)の補正の終了後には、画素データ(2,1)が高輝度判定の対象として選択される。
Next, the
以上のようにしてステップS34〜S44が繰り返し実行された後に、座標(1,1)〜(H,1)で表される横方向の画素データの補正が終了すると、ステップS42においてhがH以上と判断されて、横方向の座標hが1に戻される(ステップS46)。 After the steps S34 to S44 are repeatedly executed as described above, when correction of the pixel data in the horizontal direction represented by the coordinates (1, 1) to (H, 1) is completed, h is H or more in step S42. And the horizontal coordinate h is returned to 1 (step S46).
次に、ステップS48においてvとVの大小が比較され、vがVより小さいと判断された場合、即ち、補正の対象となる画素データが、本撮影画像データの上端に位置する画素のデータでない場合には、vに1が加算され(ステップS50)、座標(1,v+1)の座標によって示される画素データが読みこまれる(ステップS34)。即ち、画素データ(1,1)〜(H,1)の補正の終了後には、画素データ(1,2)が次の高輝度判定の対象として選択される。 Next, when v and V are compared in step S48 and it is determined that v is smaller than V, that is, the pixel data to be corrected is not the data of the pixel located at the upper end of the actual captured image data. In this case, 1 is added to v (step S50), and the pixel data indicated by the coordinates (1, v + 1) is read (step S34). That is, after the correction of the pixel data (1, 1) to (H, 1) is completed, the pixel data (1, 2) is selected as the next high brightness determination target.
上述と同様にステップS34〜S44が繰り返し実行され、座標(1,2)〜(H,2)で表される横方向の画素データの補正が終了すると、同様にステップS42〜S50が実行されて画素データ(1,3)が次の高輝度判定の対象として選択される(ステップS34)。以降、このような処理が繰り返し実行されることにより、(H,V)で合わされる画素データまで、即ち本画像データを構成するすべての画素データに対して補正処理が実行される。画素データ(H,V)の補正が終了すると、ステップS48においてvがV以上であると判断されて、本撮影画像データの高輝度部分の補正処理が終了する。 Steps S34 to S44 are repeatedly executed in the same manner as described above, and when correction of the pixel data in the horizontal direction represented by coordinates (1, 2) to (H, 2) is completed, steps S42 to S50 are similarly executed. Pixel data (1, 3) is selected as a target for the next high luminance determination (step S34). Thereafter, by repeatedly executing such processing, correction processing is executed up to pixel data combined at (H, V), that is, all pixel data constituting the main image data. When the correction of the pixel data (H, V) is completed, it is determined in step S48 that v is V or more, and the correction process for the high-intensity portion of the captured image data is completed.
次に、図7に示すフローチャートを用いて画素データ単位の輝度補正処理、即ち、図6に示すフローチャートのステップS40において実行される画素単位の輝度補正処理について説明する。 Next, the luminance correction processing in units of pixel data, that is, the luminance correction processing in units of pixels executed in step S40 of the flowchart shown in FIG. 6 will be described using the flowchart shown in FIG.
画像補正部20によって画素単位の補正が開始されると、始めに算出回数を表すiが1に設定される(ステップS60)。次に、補正対象である本撮影画像データの画素データの輝度値bと、当該画素データに対応する撮影前画像データの画素データの輝度出力aとを用いて、1回目に算出される平均値A1が算出される(ステップS62)。次に、算出された平均値A1と予め設定された閾値であるΔthとの大小が比較される(ステップS64)。A1がΔthより小さい場合には、Δthを超えていた出力bがA1で置き換えられて、当該画素データの補正は終了する(ステップS66)。
When the pixel correction is started by the
一方、A1がΔthより大きいと判断された場合には(ステップS64)、iに1が加算された後に(ステップS68)、新たな平均値A2が求められる(ステップS62)。この新たな平均値は、前回算出された平均値よりも、撮影前画像データの画素データの出力aが1回だけ多く加算された和の平均値である。新たな平均値A2が算出された後、再びA2とΔthとの大小関係が比較される(ステップS64)。そして、A2がΔthより小さいと判断されれば、輝度値bがA2に置換されて補正は終了する(S66)。一方、Δthより大きいと判断されれば、再びiに1が加算されて(ステップS68)再度新たな平均値A3が算出されて、Δthとの比較が行われる。 On the other hand, if the A 1 is determined to Δth larger (step S64), after 1 is added to i (step S68), a new average value A 2 is determined (step S62). This new average value is an average value of the sum obtained by adding the output a of the pixel data of the pre-photographing image data only once more than the previously calculated average value. After the new average value A 2 is calculated, the magnitude relationship between A 2 and Δth is again compared (step S64). Then, A 2 is when it is determined that the Δth smaller, the brightness value b is corrected is replaced by A 2 is terminated (S66). On the other hand, if it is determined that Δth larger, is 1 is added (step S68) again new average value A 3 is calculated again i, compared with Δth is performed.
以上のようにして、平均値Aiの算出処理と、輝度値bの置換処理が繰り返し行われることにより、本撮影画像データの補正の対象となっている画素データの輝度出力を確実にΔth未満に補正することができる。 As described above, the calculation process of the average value A i and the replacement process of the luminance value b are repeatedly performed, so that the luminance output of the pixel data targeted for correction of the actual captured image data is surely less than Δth. Can be corrected.
この実施の形態に係るカメラによれば、フラッシュ撮影の前に取得された画像データを用いて、フラッシュ撮影によって取得された画像データの補正を行うため、フラッシュ撮影によって取得された画像データの明るさを適切に補正できると共に、被写体ぶれの発生を防止し、レリーズボタン押下後から補正処理までの時間を短縮することができる。 According to the camera of this embodiment, the image data acquired by flash shooting is corrected using the image data acquired before flash shooting, so that the brightness of the image data acquired by flash shooting is corrected. Can be appropriately corrected, subject blurring can be prevented, and the time from when the release button is pressed until the correction process can be shortened.
なお、上述のΔthを赤(R)、緑(G)、青(B)成分毎に3つ設定し、本撮影画像データを構成する各画素データのRGB成分毎に輝度の判定及び補正を行ってもよい。この場合には、例えば、画素データのR成分に対してR成分用の閾値ΔthRを用いて、ステップS10〜S28、S30〜S50、S60〜S68による処理が実行された後に、当該画素データのG成分及びB成分に対して、それぞれG成分用の閾値ΔthG及びB成分用の閾値ΔthBを用いて上述の補正処理が実行される。 Note that the above-described Δth is set to three for each of the red (R), green (G), and blue (B) components, and the luminance is determined and corrected for each RGB component of each pixel data constituting the actual captured image data. May be. In this case, for example, after the processing of steps S10 to S28, S30 to S50, and S60 to S68 is executed using the R component threshold Δth R for the R component of the pixel data, The above-described correction processing is executed on the G component and the B component using the threshold value Δth G for the G component and the threshold value Δth B for the B component, respectively.
また、本撮影画像データの画素データの輝度がRGB成分毎に補正された場合には、すべての成分に対する補正が終了した後に、本撮影画像データ全体のホワイトバランス調整を行ってもよい。この場合には、本撮影画像データ全体の輝度補正が既に完了しているため、本撮影画像内に存在する色ムラ等を効果的に調整することができる。 Further, when the luminance of the pixel data of the actual captured image data is corrected for each RGB component, the white balance adjustment of the entire actual captured image data may be performed after the correction for all components is completed. In this case, since the luminance correction of the entire actual captured image data has already been completed, color unevenness and the like existing in the actual captured image can be effectively adjusted.
2…カメラ、4…制御部、6…バス、8…操作部、10…発光部、14…撮像素子、16…画像生成部、18…画像表示部、20…画像補正部、22…バッファメモリ、24…記録媒体
DESCRIPTION OF
Claims (8)
被写体光を撮像し撮像信号を生成する撮像素子と、
前記撮像信号に基づいて被写体画像データを生成する生成部と、
前記被写体画像データを補正する補正部とを備え、
前記生成部は、前記照明光が発光されていないときの被写体光から生成された撮像信号に基づいて第1の被写体画像データを生成すると共に、
前記第1の被写体画像データの生成後、前記照明光が発光されたときの被写体光から生成された撮像信号に基づいて第2の被写体画像データを生成し、
前記補正部は、前記第1の被写体画像データを使用して前記第2の被写体画像データの補正を行うことを特徴とする撮像装置。 A light emitting unit for emitting illumination light to the subject;
An image sensor that images subject light and generates an image signal;
A generating unit that generates subject image data based on the imaging signal;
A correction unit for correcting the subject image data,
The generation unit generates first subject image data based on an imaging signal generated from subject light when the illumination light is not emitted, and
After generating the first subject image data, generate second subject image data based on an imaging signal generated from the subject light when the illumination light is emitted,
The image pickup apparatus, wherein the correction unit corrects the second subject image data using the first subject image data.
前記閾値以下の新たな平均値が算出された場合には、当該新たな平均値で前記第2の被写体画像データの前記画素データを置き換える補正を行うことを特徴とする請求項2記載の撮像装置。 When the average value exceeds the threshold value, the correction unit calculates the calculated average value and the pixel data of the first subject image data until an average value equal to or less than the threshold value is calculated. Calculate a new average value from
The imaging apparatus according to claim 2, wherein when a new average value equal to or less than the threshold is calculated, correction is performed to replace the pixel data of the second subject image data with the new average value. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008291023A JP5136369B2 (en) | 2008-11-13 | 2008-11-13 | Imaging device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008291023A JP5136369B2 (en) | 2008-11-13 | 2008-11-13 | Imaging device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010118926A true JP2010118926A (en) | 2010-05-27 |
JP5136369B2 JP5136369B2 (en) | 2013-02-06 |
Family
ID=42306285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008291023A Expired - Fee Related JP5136369B2 (en) | 2008-11-13 | 2008-11-13 | Imaging device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5136369B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004349837A (en) * | 2003-05-20 | 2004-12-09 | Sony Corp | Imaging apparatus and method thereof |
JP2008011560A (en) * | 2007-08-22 | 2008-01-17 | Casio Comput Co Ltd | Electronic camera apparatus and stroboscope color correction method |
JP2008219367A (en) * | 2007-03-02 | 2008-09-18 | Fujifilm Corp | Imaging apparatus and imaging method |
-
2008
- 2008-11-13 JP JP2008291023A patent/JP5136369B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004349837A (en) * | 2003-05-20 | 2004-12-09 | Sony Corp | Imaging apparatus and method thereof |
JP2008219367A (en) * | 2007-03-02 | 2008-09-18 | Fujifilm Corp | Imaging apparatus and imaging method |
JP2008011560A (en) * | 2007-08-22 | 2008-01-17 | Casio Comput Co Ltd | Electronic camera apparatus and stroboscope color correction method |
Also Published As
Publication number | Publication date |
---|---|
JP5136369B2 (en) | 2013-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI293846B (en) | Image pickup device with brightness correcting function and method of correcting brightness of image | |
JP4840688B2 (en) | Imaging apparatus and program thereof | |
JP5108093B2 (en) | Imaging apparatus and imaging method | |
JP6624889B2 (en) | Video processing apparatus, video processing method, and video processing program | |
JP2007124087A (en) | Imaging apparatus, gradation correction method, and program | |
JP2008301371A (en) | Imaging apparatus and image processing program | |
US7714929B2 (en) | Method for setting and adapting preset white balance of digital photographing apparatus and digital photographing apparatus performing the same | |
JP2013141105A (en) | Image processing device, electronic camera, and image processing program | |
JP4760496B2 (en) | Image data generation apparatus and image data generation method | |
JP6231814B2 (en) | EXPOSURE DETERMINING DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM | |
JP2020038505A (en) | Image processing device, capturing device, image processing method, and program | |
JP2004129065A (en) | Digital camera | |
JP2004214836A (en) | Imaging apparatus | |
JP5191251B2 (en) | Imaging device | |
JP5136369B2 (en) | Imaging device | |
JP4752434B2 (en) | Color correction processing program and electronic camera | |
JP3822486B2 (en) | Electronic camera and signal processing method | |
JP2006157342A (en) | Imaging apparatus | |
JP5444026B2 (en) | Imaging device | |
JP2006295774A (en) | Imaging apparatus, control method thereof, and image processing program for digital camera | |
JP2008124793A (en) | Imaging apparatus, and imaging method | |
JP4525717B2 (en) | Electronic camera device and strobe color correction method | |
JP4274207B2 (en) | Imaging apparatus, exposure control method thereof, and recording medium | |
JP2006246014A (en) | Digital camera and image processing method thereof | |
JP6300514B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110916 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120323 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120806 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120815 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120920 |
|
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: 20121016 |
|
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: 20121029 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5136369 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151122 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151122 Year of fee payment: 3 |
|
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 |
|
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 |