Nothing Special   »   [go: up one dir, main page]

JP6704611B2 - Imaging device and imaging method - Google Patents

Imaging device and imaging method Download PDF

Info

Publication number
JP6704611B2
JP6704611B2 JP2016043985A JP2016043985A JP6704611B2 JP 6704611 B2 JP6704611 B2 JP 6704611B2 JP 2016043985 A JP2016043985 A JP 2016043985A JP 2016043985 A JP2016043985 A JP 2016043985A JP 6704611 B2 JP6704611 B2 JP 6704611B2
Authority
JP
Japan
Prior art keywords
image data
signal level
dark
reference signal
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2016043985A
Other languages
Japanese (ja)
Other versions
JP2017163233A (en
Inventor
陽一 角田
陽一 角田
吉孝 木村
吉孝 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Imaging Co Ltd
Original Assignee
Ricoh Imaging Co Ltd
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 Ricoh Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2016043985A priority Critical patent/JP6704611B2/en
Publication of JP2017163233A publication Critical patent/JP2017163233A/en
Application granted granted Critical
Publication of JP6704611B2 publication Critical patent/JP6704611B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)

Description

本発明は、画像データに対して画像処理を施す撮影装置及び撮影方法に関する。 The present invention relates to a photographing device and a photographing method for performing image processing on image data.

撮影装置には、CCD(Charge Coupled Device)イメージセンサやCMOS(Complementary Metal Oxide Semiconductor)イメージセンサ等の撮像素子が搭載されている。撮影装置によって生成される撮影画像データには、撮像素子で発生し、縞状やスポット状の固定のパターンを有する暗電流ノイズが重畳している。この暗電流ノイズを除去するために、撮影画像データのダーク補正処理を行う撮影装置が知られている。ダーク補正処理は、撮像素子を遮光した状態で撮影された画像データ(ダーク画像データ)を、本露光処理によって生成された撮影画像データから減算する処理である。これにより、撮影画像データから暗電流ノイズが除去される。 The image pickup device is equipped with an image pickup device such as a CCD (Charge Coupled Device) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor. Dark current noise having a fixed pattern of stripes or spots is superimposed on the captured image data generated by the image capturing device. In order to remove this dark current noise, a photographing device that performs dark correction processing of photographed image data is known. The dark correction process is a process of subtracting image data (dark image data) imaged with the image sensor shielded from the image data generated by the main exposure process. As a result, dark current noise is removed from the captured image data.

特許文献1には、撮像素子内の焦点検出用画素から出力された画素信号から、暗電流ノイズを除去する構成が開示されている。詳しくは、特許文献1では、遮光された焦点検出用画素から出力された画素信号(暗出力)が予め保存されている。露光された焦点検出用画素から出力された画素信号(画素出力)から暗出力を減算することにより、画素信号の暗電流ノイズが除去される。 Patent Document 1 discloses a configuration in which dark current noise is removed from a pixel signal output from a focus detection pixel in an image sensor. Specifically, in Patent Document 1, the pixel signal (dark output) output from the shaded focus detection pixel is stored in advance. The dark current noise of the pixel signal is removed by subtracting the dark output from the pixel signal (pixel output) output from the exposed focus detection pixel.

また、特許文献2には、撮像素子に、撮影画像データを生成するための有効画素領域と、遮光された基準画素領域(オプティカルブラック画素領域)を設け、基準画素領域から出力された基準信号を用いて、撮影画像データの暗電流ノイズを除去する構成が開示されている。 Further, in Patent Document 2, an effective pixel area for generating captured image data and a shielded reference pixel area (optical black pixel area) are provided in an image sensor, and a reference signal output from the reference pixel area is provided. A configuration for removing dark current noise of captured image data by using it is disclosed.

特開昭63−263881号公報JP-A-63-263881 特開2011−50016号公報JP, 2011-50016, A

撮影画像データからダーク画像データを減算して暗電流ノイズを除去する場合、撮影画像データにオフセット(信号レベルの変化)が発生するのを防止するため、撮影画像データとダーク画像データの基準信号レベルを合わせておく必要がある。各画像データの基準信号レベルは、遮光された画素から出力された画素信号を用いて計算される。しかし、画素信号は、通常、固定のパターンを有する暗電流ノイズの他に、時間に応じて変化し、画素間で異なる大きさを有するランダムノイズを含んでいる。このランダムノイズにより、基準信号レベルが変動し、撮影画像データにオフセットが発生するという問題があった。 When subtracting dark image data from captured image data to remove dark current noise, the reference signal level for captured image data and dark image data is set to prevent offset (change in signal level) from occurring in captured image data. Need to be matched. The reference signal level of each image data is calculated using the pixel signal output from the shaded pixel. However, in addition to dark current noise having a fixed pattern, pixel signals usually include random noise that changes with time and has different magnitudes between pixels. Due to this random noise, the reference signal level fluctuates, and there is a problem that offset occurs in the captured image data.

特許文献1に記載の撮影装置では、画素出力と暗出力は、同じ焦点検出用画素から異なるタイミングで出力されており、互いに異なるランダムノイズを有している。そのため、特許文献1に記載の撮影装置では、画素出力と暗出力の基準信号レベルは異なっており、画素出力にオフセットが発生するという問題がある。 In the imaging device described in Patent Document 1, the pixel output and the dark output are output from the same focus detection pixel at different timings, and have different random noises. Therefore, in the imaging device described in Patent Document 1, the pixel output and the dark output have different reference signal levels, and there is a problem in that an offset occurs in the pixel output.

また、特許文献2に記載の撮影装置では、複数の基準画素の画素信号の平均値を取ることにより、基準画素の基準信号レベルに含まれるランダムノイズを抑制することができる。しかし、基準画素は有効画素に比べてその数が少ないため、少数の基準画素の画素信号の平均値を取っても、基準信号レベルが変動してしまう可能性がある。 In addition, in the image capturing apparatus described in Patent Document 2, it is possible to suppress random noise included in the reference signal level of the reference pixel by taking the average value of the pixel signals of the plurality of reference pixels. However, since the number of reference pixels is smaller than the number of effective pixels, the reference signal level may vary even if the average value of the pixel signals of a small number of reference pixels is taken.

本発明は上記の事情に鑑みてなされたものであり、その目的とするところは、撮影画像データに発生するオフセットを抑制しつつ、撮影画像データのノイズを除去するのに好適な撮影装置及び撮影方法を提供することである。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image capturing apparatus and an image capturing apparatus suitable for removing noise in captured image data while suppressing an offset generated in the captured image data. It is to provide a method.

本発明の一実施形態によれば、被写体からの光束に応じた信号を出力する複数の有効画素からなる有効画素領域と、光束に対して遮光された複数の基準画素からなる基準画素領域とを有する撮像素子と、有効画素が光束に対して露光されている露光状態のときに、有効画素領域から出力された信号に基づいて撮影画像データを生成する、撮影画像生成手段と、有効画素が光束に対して遮光されている遮光状態のときに、有効画素領域から出力された信号に基づいてダーク画像データを生成し、有効画素領域を含む領域から出力された信号に基づいて遮光時基準信号レベルを算出する、ダーク画像生成手段と、遮光時基準信号レベルを用いて撮影画像データを補正する、撮影画像補正手段と、を備える。 According to one embodiment of the present invention, an effective pixel area including a plurality of effective pixels that outputs a signal corresponding to a light flux from a subject and a reference pixel area including a plurality of reference pixels shielded from the light flux are provided. The image pickup device having the image pickup device and the effective pixel generate light image data based on the signal output from the effective pixel area when the effective pixel is exposed to the light beam. In the light-shielded state, the dark image data is generated based on the signal output from the effective pixel area, and the reference signal level during light-shielding is based on the signal output from the area including the effective pixel area. And a captured image correction means for correcting captured image data using the light-shielding reference signal level.

このような構成によれば、ダーク画像データの基準信号レベルは、画素数の多い有効画素を用いて算出される。そのため、ランダムノイズによる基準信号レベルの変動が抑えられ、撮影画像データからのダーク画像データの減算処理時に、撮影画像データにオフセットが発生することが抑制される。 With such a configuration, the reference signal level of dark image data is calculated by using effective pixels having a large number of pixels. Therefore, the fluctuation of the reference signal level due to random noise is suppressed, and the occurrence of offset in the captured image data is suppressed when the dark image data is subtracted from the captured image data.

また、本発明の一実施形態によれば、撮影画像補正手段は、例えば、撮影画像データからダーク画像データを所定の割合で減算することにより、撮影画像データを補正する。 Further, according to the embodiment of the present invention, the captured image correction unit corrects the captured image data by subtracting dark image data from the captured image data at a predetermined ratio, for example.

また、本発明の一実施形態によれば、撮影画像生成手段は、例えば、有効画素が露光状態のときに、基準画素領域から出力された信号に基づいて露光時基準信号レベルを算出する。 Further, according to the embodiment of the present invention, the captured image generation means calculates the exposure reference signal level based on the signal output from the reference pixel area when the effective pixel is in the exposure state, for example.

また、本発明の一実施形態によれば、撮影装置は、例えば、露光時基準信号レベルと遮光時基準信号レベルを整合させる基準信号補正手段を更に備える。 Further, according to an embodiment of the present invention, the image capturing apparatus further includes, for example, a reference signal correction unit that matches the exposure reference signal level and the light-shielding reference signal level.

また、本発明の一実施形態によれば、基準信号補正手段は、例えば、有効画素が遮光状態のときに、遮光時基準信号レベルと基準画素領域から出力される信号レベルとの信号レベル差を算出し、信号レベル差に基づいて撮影画像データの信号レベルを補正する。 Further, according to one embodiment of the present invention, the reference signal correction means, for example, when the effective pixel is in the light-shielded state, calculates the signal level difference between the light-shielded reference signal level and the signal level output from the reference pixel region. The signal level of the captured image data is calculated and corrected based on the signal level difference.

また、本発明の一実施形態によれば、ダーク画像生成手段は、例えば、有効画素領域を含む領域から出力された信号の平均値、中央値、最頻値の何れかを算出することにより、遮光時基準信号レベルを決定する。 Further, according to an embodiment of the present invention, the dark image generating means, for example, by calculating any one of the average value, the median value, the mode value of the signal output from the area including the effective pixel area, Determines the reference signal level when light is blocked.

また、本発明の一実施形態によれば、基準信号補正手段は、例えば、複数の有効画素が遮光状態のときに、有効画素領域から出力された信号を用いて有効画素領域内の遮光時基準信号レベルの分布を表す近似曲線を算出し、近似曲線を用いて信号レベル差を算出する。 Further, according to one embodiment of the present invention, the reference signal correction unit uses the signal output from the effective pixel area to determine the reference for light shielding in the effective pixel area when the plurality of effective pixels are in the light shielding state. An approximate curve representing the distribution of signal levels is calculated, and the signal level difference is calculated using the approximate curve.

また、本発明の一実施形態によれば、基準信号補正手段は、例えば、複数の有効画素が遮光状態のときに、有効画素領域及び基準画素領域から出力された信号を用いて、有効画素領域内及び基準画素領域内の信号レベルの分布を表す近似曲線を算出し、近似曲線を用いて信号レベル差を算出する。 Further, according to one embodiment of the present invention, the reference signal correction unit uses the signals output from the effective pixel region and the reference pixel region, for example, when the plurality of effective pixels are in the light-shielding state. An approximate curve that represents the distribution of the signal levels inside the pixel area and the reference pixel area is calculated, and the signal level difference is calculated using the approximate curve.

また、本発明の一実施形態によれば、ダーク画像生成手段は、例えば、基準信号補正手段によって算出された近似曲線を用いて、遮光時基準信号レベルを算出する。 Further, according to an embodiment of the present invention, the dark image generating means calculates the light-shielding reference signal level by using, for example, the approximate curve calculated by the reference signal correcting means.

また、本発明の一実施形態によれば、撮影画像生成手段は、例えば、基準画素領域から出力された信号の平均値、中央値、最頻値の何れかを算出することにより、露光時基準信号レベルを決定する。 Further, according to one embodiment of the present invention, the captured image generating means calculates, for example, an average value, a median value, or a mode value of the signals output from the reference pixel area to thereby obtain the exposure reference value. Determine the signal level.

また、本発明の一実施形態によれば、ダーク画像生成手段は、例えば、有効画素が露光状態のときの撮影条件に基づいて、有効画素領域のうち、遮光時基準信号レベルの算出に使用する信号を出力する領域を変更する。 Further, according to the embodiment of the present invention, the dark image generating means is used to calculate the light-shielding reference signal level in the effective pixel area based on, for example, the photographing condition when the effective pixel is in the exposure state. Change the signal output area.

また、本発明の一実施形態によれば、撮影装置は、例えば、ダーク画像データを記憶するダーク画像記憶手段を更に備える。この場合、撮影画像補正手段は、予めダーク画像記憶段に記憶されたダーク画像データを用いて撮影画像データを補正する。 Further, according to an embodiment of the present invention, the image capturing apparatus further includes, for example, dark image storage means for storing dark image data. In this case, the captured image correction means corrects the captured image data by using the dark image data stored in the dark image storage stage in advance.

本発明の一実施形態によれば、撮影方法は、被写体からの光束に応じた信号を出力する複数の有効画素からなる有効画素領域と、光束に対して遮光された複数の基準画素からなる基準画素領域とを有する撮像素子を備える撮影装置において実行される撮影方法であって、有効画素が光束に対して露光されている露光状態のときに、有効画素領域から出力された信号に基づいて撮影画像データを生成する、撮影画像生成ステップと、有効画素が光束に対して露光されていない遮光状態のときに、有効画素領域から出力された信号に基づいてダーク画像データを生成し、有効画素領域を含む領域から出力された信号に基づいて遮光時基準信号レベルを算出し、遮光時基準信号レベルに基づいてダーク画像データの信号レベルを補正する、ダーク画像生成手段と、ダーク画像データを用いて撮影画像データを補正する撮影画像補正ステップと、を含む。 According to an embodiment of the present invention, an image capturing method includes an effective pixel region including a plurality of effective pixels that output a signal corresponding to a light flux from a subject, and a reference including a plurality of reference pixels shielded from the light flux. A photographing method executed in a photographing device including an image sensor having a pixel region, wherein photographing is performed based on a signal output from the effective pixel region in an exposure state in which an effective pixel is exposed to a light flux. In the captured image generation step of generating image data, and when the effective pixel is not exposed to the light flux and is in the light-shielded state, dark image data is generated based on the signal output from the effective pixel area, and the effective pixel area is generated. Using the dark image data, the dark image generation means for calculating the reference signal level at the time of light shielding based on the signal output from the region including, and correcting the signal level of the dark image data based on the reference signal level at the time of light shielding. A captured image correction step of correcting captured image data.

本実施形態によれば、撮影画像データに発生するオフセットを抑制しつつ、撮影画像データのノイズを除去するのに好適な撮影装置及び撮影方法が提供される。 According to the present embodiment, a photographing apparatus and a photographing method suitable for removing noise in photographed image data while suppressing an offset generated in photographed image data are provided.

図1は、本発明の第1の実施形態にかかる撮影装置のブロック図である。FIG. 1 is a block diagram of an image capturing apparatus according to the first embodiment of the present invention. 図2は、本発明の第1の実施形態にかかる撮影処理のフローチャートである。FIG. 2 is a flowchart of the shooting process according to the first embodiment of the present invention. 図3は、本発明の第1の実施形態にかかる撮像素子の撮像面の概略図である。FIG. 3 is a schematic view of an image pickup surface of the image pickup device according to the first embodiment of the present invention. 図4は、本発明の第1の実施形態にかかる画素信号の行代表値及び近似曲線を示すグラフである。FIG. 4 is a graph showing row representative values and approximate curves of pixel signals according to the first embodiment of the present invention. 図5は、本発明の第1の実施形態にかかる画素信号の行代表値及び近似曲線を示すグラフである。FIG. 5 is a graph showing row representative values and approximate curves of pixel signals according to the first embodiment of the present invention. 図6は、本発明の第2の実施形態にかかる撮影処理のフローチャートである。FIG. 6 is a flowchart of the shooting process according to the second embodiment of the present invention.

(第1の実施形態)
以下、本発明の第1の実施形態の撮影装置について図面を参照しながら説明する。以下においては、本発明の一実施形態として、デジタル一眼レフカメラについて説明する。なお、撮影装置は、デジタル一眼レフカメラに限らず、例えば、ミラーレス一眼カメラ、コンパクトデジタルカメラ、カムコーダ、タブレット端末、PHS(Personal Handy phone System)、スマートフォン、フィーチャフォン、携帯ゲーム機など、撮影機能を有する別の形態の装置に置き換えてもよい。
(First embodiment)
Hereinafter, the image capturing apparatus according to the first embodiment of the present invention will be described with reference to the drawings. In the following, a digital single lens reflex camera will be described as an embodiment of the present invention. Note that the image capturing device is not limited to a digital single-lens reflex camera, and includes, for example, a mirrorless single-lens camera, a compact digital camera, a camcorder, a tablet terminal, a PHS (Personal Handy phone System), a smartphone, a feature phone, a portable game machine, and the like. May be replaced with another type of device having

図1は、本実施形態の撮影装置1の構成を示すブロック図である。図1に示されるように、撮影装置1には画像処理装置が組み込まれており、システムコントローラ100、操作部102、絞り・シャッタ駆動回路104、撮影レンズ106、絞り108、シャッタ110、撮像素子112、撮像素子駆動回路114、画像処理エンジン116、メモリ118、カード用インタフェース120、LCD(Liquid Crystal Display)制御回路122、LCD124及びROM(Read Only Memory)126を備えている。 FIG. 1 is a block diagram showing the configuration of the image capturing apparatus 1 of this embodiment. As shown in FIG. 1, an image processing apparatus is incorporated in the photographing apparatus 1, and a system controller 100, an operation unit 102, a diaphragm/shutter drive circuit 104, a photographing lens 106, a diaphragm 108, a shutter 110, an image sensor 112. An image pickup element drive circuit 114, an image processing engine 116, a memory 118, a card interface 120, an LCD (Liquid Crystal Display) control circuit 122, an LCD 124 and a ROM (Read Only Memory) 126.

操作部102には、電源スイッチやレリーズスイッチ、撮影設定スイッチなど、ユーザが撮影装置1を操作するために必要な各種スイッチが含まれる。ユーザにより電源スイッチが押されると、図示省略されたバッテリから撮影装置1の各種回路に電源ラインを通じて電源供給が行われる。システムコントローラ100は電源供給後、ROM126にアクセスして制御プログラムを読み出してワークエリア(不図示)にロードし、ロードされた制御プログラムを実行することにより、撮影装置1全体の制御を行う。 The operation unit 102 includes various switches necessary for the user to operate the image capturing apparatus 1, such as a power switch, a release switch, and a shooting setting switch. When the power switch is pressed by the user, power is supplied from a battery (not shown) to various circuits of the image capturing apparatus 1 through power lines. After power is supplied, the system controller 100 accesses the ROM 126, reads a control program, loads the control program into a work area (not shown), and executes the loaded control program to control the entire imaging apparatus 1.

レリーズスイッチが操作されると、システムコントローラ100は、撮影装置1に内蔵されたTTL(Through The Lens)露出計(不図示)で測定された測光値に基づき適正露出が得られるように、絞り・シャッタ駆動回路104を介して絞り108及びシャッタ110を駆動制御する。より詳細には、絞り108及びシャッタ110の駆動制御は、プログラムAE(Automatic Exposure)、シャッタ速度優先AE、絞り優先AEなど、撮影設定スイッチにより指定されるAE機能に基づいて行われる。また、システムコントローラ100はAE制御と併せてAF(Autofocus)制御を行う。AF制御には、アクティブ方式、位相差検出方式、コントラスト検出方式等が適用される。なお、この種のAE及びAFの構成及び制御については周知であるため、ここでの詳細な説明は省略する。 When the release switch is operated, the system controller 100 sets an aperture/aperture so that a proper exposure can be obtained based on a photometric value measured by a TTL (Through The Lens) exposure meter (not shown) built in the photographing apparatus 1. The diaphragm 108 and the shutter 110 are drive-controlled via the shutter drive circuit 104. More specifically, the drive control of the aperture 108 and the shutter 110 is performed based on an AE function designated by a shooting setting switch, such as a program AE (Automatic Exposure), a shutter speed priority AE, and an aperture priority AE. The system controller 100 also performs AF (Autofocus) control in addition to AE control. An active method, a phase difference detection method, a contrast detection method, or the like is applied to the AF control. Since the configuration and control of this type of AE and AF are well known, detailed description thereof is omitted here.

被写体からの光束は、撮影レンズ106、絞り108、シャッタ110を通過して撮像素子112により受光される。撮像素子112は、例えばCMOS(Complementary Metal Oxide Semiconductor)イメージセンサやCCD(Charge Coupled Device)イメージセンサである。以下では、撮像素子112はCMOSイメージセンサであるとして説明する。 The light flux from the subject passes through the taking lens 106, the diaphragm 108, and the shutter 110, and is received by the image sensor 112. The image sensor 112 is, for example, a CMOS (Complementary Metal Oxide Semiconductor) image sensor or a CCD (Charge Coupled Device) image sensor. Hereinafter, the image sensor 112 will be described as a CMOS image sensor.

撮像素子駆動回路114は、撮像素子112より入力される画素信号に対して増幅処理の所定の信号処理を施して、画像処理エンジン116に出力する。画像処理エンジン116は、撮像素子駆動回路114より入力される画素信号に対して、クランプ補正処理、デモザイ処理、階調変換処理、エッジ強調処理、マトリクス演算処理、Y/C分離処理、ホワイトバランス調整処理等の信号処理を施して撮影画像データ(輝度信号Y、色差信号Cb、Cr)を生成し、JPEG(Joint Photographic Experts Group)等の所定のフォーマットで圧縮する。メモリ118は、画像処理エンジン116による信号処理の実行時、処理データの保存場所として用いられる。 The image sensor drive circuit 114 subjects the pixel signal input from the image sensor 112 to predetermined signal processing of amplification processing, and outputs the signal to the image processing engine 116. The image processing engine 116 performs clamp correction processing, demosaicing processing, gradation conversion processing, edge enhancement processing, matrix calculation processing, Y/C separation processing, white balance adjustment on pixel signals input from the image sensor drive circuit 114. Photographed image data (luminance signal Y, color difference signals Cb, Cr) is generated by performing signal processing such as processing, and compressed in a predetermined format such as JPEG (Joint Photographic Experts Group). The memory 118 is used as a storage location of processed data when the image processing engine 116 executes signal processing.

カード用インタフェース120のカードスロットには、メモリカード200が着脱可能に差し込まれている。画像処理エンジン116は、カード用インタフェース120を介してメモリカード200と通信可能である。画像処理エンジン116は、圧縮された撮影画像データをメモリカード200(又は撮影装置1に備えられる不図示の内蔵メモリ)に保存する。 The memory card 200 is removably inserted into the card slot of the card interface 120. The image processing engine 116 can communicate with the memory card 200 via the card interface 120. The image processing engine 116 stores the compressed photographed image data in the memory card 200 (or a built-in memory (not shown) provided in the photographing apparatus 1).

また、画像処理エンジン116は、生成された撮影画像データをフレームメモリ(不図示)にフレーム単位でバッファリングする。画像処理エンジン116は、バッファリングされた信号を所定のタイミングで各フレームメモリから掃き出して所定のフォーマットの映像信号に変換し、LCD制御回路122に出力する。LCD制御回路122は、画像処理エンジン116より入力される映像信号を基に液晶を変調制御する。これにより、被写体の撮影画像がLCD124の表示画面に表示される。ユーザは、AE制御及びAF制御に基づいて適正な輝度及びピントで撮影されたリアルタイムのスルー画を、LCD124の表示画面を通じて視認することができる。 The image processing engine 116 also buffers the generated captured image data in a frame memory (not shown) on a frame-by-frame basis. The image processing engine 116 sweeps out the buffered signal from each frame memory at a predetermined timing, converts it into a video signal of a predetermined format, and outputs it to the LCD control circuit 122. The LCD control circuit 122 controls the modulation of the liquid crystal based on the video signal input from the image processing engine 116. As a result, the captured image of the subject is displayed on the display screen of the LCD 124. The user can visually recognize a real-time through image captured with proper brightness and focus based on the AE control and the AF control through the display screen of the LCD 124.

画像処理エンジン116は、ユーザにより撮影画像の再生操作が行われると、操作により指定された撮影画像データをメモリカード200又は内蔵メモリから読み出して所定のフォーマットの映像信号に変換し、LCD制御回路122に出力する。LCD制御回路122が画像処理エンジン116より入力される映像信号を基に液晶を変調制御することで、被写体の撮影画像がLCD124の表示画面に表示される。 When the user performs a reproduction operation of the captured image, the image processing engine 116 reads the captured image data designated by the operation from the memory card 200 or the built-in memory and converts it into a video signal of a predetermined format, and the LCD control circuit 122. Output to. The LCD control circuit 122 modulates and controls the liquid crystal based on the video signal input from the image processing engine 116, so that the captured image of the subject is displayed on the display screen of the LCD 124.

次に、画像処理エンジン116による撮影処理のうち、撮影画像の暗電流ノイズの除去処理について詳細に説明する。図2は、撮影処理のうち暗電流ノイズの除去に関する処理のフローチャートを示す。この処理は、レリーズスイッチが操作されることによって開始される。 Next, of the shooting processing by the image processing engine 116, the dark current noise removal processing of the shot image will be described in detail. FIG. 2 shows a flowchart of processing relating to removal of dark current noise in the shooting processing. This process is started by operating the release switch.

[処理ステップS101(本露光処理)]
本処理ステップS101では、ユーザによって設定された撮影設定により、本露光処理が行われる。撮影設定は、例えば、露光時間(シャッタ110のシャッタスピード)、絞り108の絞り値、ISO(International Organization for Standardization)感度及び信号処理に関する設定を含む。信号処理に関する設定は、例えば、撮像素子駆動回路114による増幅処理の増幅率や、画像処理エンジン116によるホワイトバランス調整処理のパラメータ等を含む。
[Processing Step S101 (Main Exposure Processing)]
In the main processing step S101, main exposure processing is performed according to the shooting settings set by the user. The shooting settings include, for example, settings relating to exposure time (shutter speed of the shutter 110), aperture value of the aperture 108, ISO (International Organization for Standardization) sensitivity, and signal processing. The settings relating to the signal processing include, for example, the amplification factor of the amplification processing by the image sensor drive circuit 114, the parameters of the white balance adjustment processing by the image processing engine 116, and the like.

本露光処理S101では、被写体からの光束に応じた撮影画像データの生成処理と、撮影画像データの基準信号レベルの補正処理(クランプ補正処理)が行われる。撮影画像データの生成に使用する画素信号と、撮影画像データの基準信号レベル(以下、「露光時基準信号レベル」と記す。)を算出するための画素信号は、撮像素子112内の異なる領域の画素から出力される。 In the main exposure process S101, a process of generating captured image data according to the light flux from the subject and a process of correcting the reference signal level of the captured image data (clamp correction process) are performed. The pixel signal used to generate the captured image data and the pixel signal for calculating the reference signal level of the captured image data (hereinafter, referred to as “exposure reference signal level”) are different from each other in different areas in the image sensor 112. It is output from the pixel.

図3は、本実施形態における撮像素子112の撮像面130の概略図である。撮像面130には、複数の画素が、撮像素子112の上下方向(垂直方向)にm行、左右方向(水平方向)にn列となるように並んで配置されている(m及びnは正の整数)。また、撮像面130には、有効画素を含む有効画素領域130A及び基準画素を含む基準画素領域130Bが設けられている。有効画素領域130Aは撮像面130の右下側に設けられており、有効画素領域130A内にはp+1行目からm行目の間で、且つ、q+1列目からn列目において複数の有効画素が配置されている(p及びqは正の整数)。基準画素領域130Bは、例えば、図3においてハッチングによって示されるように、有効画素領域130Aの上側から左側にかけてL字状に設けられている。有効画素から出力される画素信号(有効画素信号)は、被写体からの光束に基づいて撮影画像データを生成するために使用される。基準画素から出力される画素信号(基準画素信号)は、露光時基準信号レベルを算出するために使用される。なお、基準画素領域130Bの配置は、図3に示す配置に限定されない。例えば、基準画素領域130Bは、撮像面130の上側(1行目からq行目まで)のみに設けられていてもよく、撮像面130の周囲の4つの辺に沿って、有効画素領域130Aを囲うように配置されていてもよい。 FIG. 3 is a schematic diagram of the image pickup surface 130 of the image pickup device 112 according to the present embodiment. On the image pickup surface 130, a plurality of pixels are arranged side by side in the vertical direction (vertical direction) of the image pickup element 112 in m rows and in the horizontal direction (horizontal direction) in n columns (m and n are positive). Integer). Further, the imaging surface 130 is provided with an effective pixel area 130A including effective pixels and a reference pixel area 130B including reference pixels. The effective pixel region 130A is provided on the lower right side of the imaging surface 130, and within the effective pixel region 130A, there are a plurality of effective pixels between the p+1th row to the mth row and the q+1th column to the nth column. Are arranged (p and q are positive integers). The reference pixel region 130B is provided in an L shape from the upper side to the left side of the effective pixel region 130A, as shown by hatching in FIG. 3, for example. The pixel signal output from the effective pixel (effective pixel signal) is used to generate captured image data based on the light flux from the subject. The pixel signal output from the reference pixel (reference pixel signal) is used to calculate the exposure reference signal level. The arrangement of the reference pixel area 130B is not limited to the arrangement shown in FIG. For example, the reference pixel area 130B may be provided only on the upper side of the imaging surface 130 (from the first row to the q-th row), and the effective pixel area 130A is formed along the four sides around the imaging surface 130. You may arrange so that it may surround.

有効画素は、シャッタ110が開いているときに、被写体から光束を受光する露光状態となり、シャッタ110が閉じているときに、シャッタ110によって被写体からの光束に対して遮光された遮光状態となる。有効画素は、露光状態であるときに蓄積された電荷を有効画素信号として出力する。この有効画素信号に基づいて、撮影画像データが生成される。撮影画像データは、被写体からの光束に応じた信号とノイズ成分を含んでいる。ノイズ成分は、例えば、有効画素領域130A内で一様に発生するオフセットノイズ、撮像素子112に応じた固定のパターンを有する暗電流ノイズ(固定パターンノイズ)、画素間でレベルの異なるランダムノイズ等である。 The effective pixel is in an exposure state in which a light flux is received from the subject when the shutter 110 is open, and is in a light-shielding state in which the light flux from the subject is shielded by the shutter 110 when the shutter 110 is closed. The effective pixel outputs the charge accumulated in the exposure state as an effective pixel signal. Captured image data is generated based on the effective pixel signal. The captured image data includes a signal and a noise component according to the light flux from the subject. The noise component is, for example, offset noise uniformly generated in the effective pixel region 130A, dark current noise (fixed pattern noise) having a fixed pattern according to the image sensor 112, random noise having different levels between pixels, or the like. is there.

基準画素は、シャッタ110の動作に拘わらず、被写体からの光束に対して常に遮光されたオプティカルブラック画素である。本露光処理S101時に複数の基準画素から出力される基準画素信号の平均値が、露光時基準信号レベルとして撮影装置内の記憶領域に記憶される。なお、露光時基準信号レベルは、基準画素信号の平均値ではなく、最頻値や中央値としてもよい。 The reference pixel is an optical black pixel that is always shielded from the light flux from the subject regardless of the operation of the shutter 110. The average value of the reference pixel signals output from the plurality of reference pixels during the main exposure process S101 is stored in the storage area in the image capturing apparatus as the exposure reference signal level. The exposure reference signal level may be a mode value or a median value instead of the average value of the reference pixel signals.

露光時基準信号レベルが記憶されると、この露光時基準信号レベルを用いて、撮影画像データに対するクランプ補正処理が行われる。 When the exposure reference signal level is stored, clamp correction processing is performed on the captured image data using the exposure reference signal level.

[処理ステップS102(ダーク露光処理)]
本処理ステップS102では、ダーク露光処理が行われる。ダーク露光処理は、例えば、シャッタが閉じられて有効画素が遮光されていること以外は、本露光処理S101と同じ撮影設定で実行される。
[Processing Step S102 (Dark Exposure Processing)]
In this processing step S102, dark exposure processing is performed. The dark exposure processing is executed in the same shooting setting as the main exposure processing S101, except that the shutter is closed and the effective pixels are shielded from light, for example.

ダーク露光処理では、遮光された有効画素から出力された画素信号に基づいてダーク画像データが生成される。ダーク画像データは、ノイズ成分のみを含んだ信号である。また、遮光された有効画素及び基準画素から出力された信号に基づいて、ダーク画像データの基準信号レベル(以下、「遮光時基準信号レベル」と記す。)が算出される。この遮光時基準信号レベルを用いて、ダーク画像データに対して基準信号レベルの補正処理(クランプ補正処理)が行われる。 In the dark exposure processing, dark image data is generated based on the pixel signal output from the shaded effective pixel. Dark image data is a signal containing only noise components. Further, the reference signal level of dark image data (hereinafter, referred to as “reference signal level during light shielding”) is calculated based on the signals output from the shaded effective pixel and the reference pixel. Using this light-shielding reference signal level, reference signal level correction processing (clamp correction processing) is performed on dark image data.

遮光時基準信号レベルは、各画素の画素信号を用いて近似的に求められる。詳しくは、まず、有効画素及び基準画素の各行について、画素信号の代表値(行代表値)が算出される。行代表値は、その行に含まれる画素信号が反映される値であり、例えば、欠陥画素や位相差検出用の画素を除く画素から出力された画素信号の平均値である。なお、行代表値は、画素信号の中央値や最頻値であってもよい。図4は、撮像素子112の各行の行代表値、及びその近似曲線を示したグラフである。図4の横軸は1〜mの行番号を表し、縦軸は各行の行代表値を表す。図4において、行代表値が実線で示され、近似曲線が破線で示されている。図4に示すように、行代表値は、ランダムノイズによって行間にバラつきを有する。このランダムノイズの影響を抑えるため、フィッティングにより行代表値の近似曲線が求められる。この近似曲線は、例えば、最小二乗法によって求められた多項式である。なお、行代表値の近似曲線は、多項式に限定されない。近似曲線は、例えば、多項式以外の関数を用いて近似されてもよく、移動平均によって求められてもよい。 The light-shielding reference signal level is approximately calculated using the pixel signal of each pixel. Specifically, first, a representative value (row representative value) of pixel signals is calculated for each row of effective pixels and reference pixels. The row representative value is a value in which the pixel signals included in the row are reflected, and is, for example, an average value of pixel signals output from pixels excluding defective pixels and pixels for phase difference detection. The row representative value may be the median value or the mode value of the pixel signals. FIG. 4 is a graph showing the row representative value of each row of the image sensor 112 and its approximate curve. The horizontal axis of FIG. 4 represents the row numbers 1 to m, and the vertical axis represents the row representative value of each row. In FIG. 4, the row representative value is shown by a solid line, and the approximate curve is shown by a broken line. As shown in FIG. 4, the row representative value has variations between rows due to random noise. In order to suppress the influence of this random noise, an approximate curve of row representative values is obtained by fitting. This approximate curve is, for example, a polynomial obtained by the method of least squares. The approximate curve of the row representative value is not limited to the polynomial. The approximated curve may be approximated using a function other than a polynomial, or may be obtained by a moving average.

また、図4に示すように、行代表値は、r行目よりも行番号の大きい領域において、行番号が大きくなるにつれて信号レベルが増加している。この信号レベルの増加は、シェーディングと呼ばれ、撮像素子112の仕様や、個体差、駆動モードに応じて変化する。シェーディングは、画素信号に対してオフセットとして重畳する。そのため、遮光時基準信号レベルの算出には、シェーディングによるオフセットの小さい領域が使用される。 Further, as shown in FIG. 4, in the row representative value, the signal level increases as the row number increases in the region where the row number is larger than the r-th row. This increase in signal level is called shading, and changes depending on the specifications of the image sensor 112, individual differences, and drive modes. The shading is superimposed on the pixel signal as an offset. Therefore, an area with a small offset due to shading is used for the calculation of the reference signal level during light shielding.

図4に示す例では、遮光時基準信号レベルは、撮像素子112のうち、1行目からr行目の領域(参照領域)130Cから出力された画素信号を用いて算出される。詳しくは、図4に示す行代表値の近似曲線のうち、1行目からr行目の平均値V1が、遮光時基準信号レベルとしてメモリ118に保存される。なお、遮光時基準信号レベルは、行代表値の近似曲線のうち、参照領域130Cから出力された画素信号の中央値又は最頻値としてもよい。 In the example illustrated in FIG. 4, the light-shielding reference signal level is calculated using the pixel signal output from the region (reference region) 130C of the first row to the r-th row of the image sensor 112. Specifically, of the approximate curves of the row representative values shown in FIG. 4, the average value V1 of the first row to the r-th row is stored in the memory 118 as the light-shielding reference signal level. The light-shielding reference signal level may be the median value or the mode value of the pixel signals output from the reference area 130C in the approximate curve of the row representative value.

遮光時基準信号レベルがメモリ118に保存されると、この遮光時基準信号レベルを用いて、ダーク画像データに対するクランプ補正処理が行われる。 When the light-shielded reference signal level is stored in the memory 118, the clamp correction process is performed on the dark image data using the light-shielded reference signal level.

なお、シェーディングは、図4に示すような垂直方向だけでなく、水平方向に生じる場合がある。この場合、シェーディングによるオフセットが画素信号の行代表値に重畳しないように、図3に示す参照領域130Cのうち、点線で示された左右端部の領域140A、140Bは、行代表値及び遮光時基準信号レベルの算出に使用しないことが望ましい。 Note that shading may occur not only in the vertical direction as shown in FIG. 4 but also in the horizontal direction. In this case, in order to prevent the offset due to shading from being superimposed on the row representative value of the pixel signal, the reference regions 130C shown in FIG. It should not be used to calculate the reference signal level.

また、垂直方向のシェーディングは、図4に示す例に限定されない。例えば、撮影装置1の撮影設定により、画素領域の上側と下側の両方にシェーディングが発生する場合がある。図5は、画素領域の上側と下側の両方にシェーディングが発生した場合の各行の行代表値、及びその近似曲線を示したグラフである。図5の横軸は1〜mの行番号を表し、縦軸は各行の行代表値を表す。図5に示す例では、基準画素領域130B(1行目からp行目)にもシェーディングが発生している。そのため、この場合、有効画素領域130Aのうち、シェーディングが発生していないs行目からr行目の参照領域230Cの行代表値の平均値が、遮光時基準信号レベルとして保存される。 Further, the shading in the vertical direction is not limited to the example shown in FIG. For example, depending on the shooting settings of the shooting device 1, shading may occur on both the upper side and the lower side of the pixel area. FIG. 5 is a graph showing the row representative value of each row and the approximate curve thereof when shading occurs on both the upper side and the lower side of the pixel region. The horizontal axis of FIG. 5 represents the row numbers 1 to m, and the vertical axis represents the row representative value of each row. In the example shown in FIG. 5, shading also occurs in the reference pixel area 130B (first row to p-th row). Therefore, in this case, in the effective pixel area 130A, the average value of the row representative values of the reference areas 230C of the sth to rth rows in which shading has not occurred is stored as the light-shielding reference signal level.

このように、本実施形態では、基準画素領域130Bに比べて多数の画素から構成される有効画素領域130Aから出力される画素信号を用いて遮光時基準信号レベルが算出される。多数の画素信号を用いることにより、遮光時基準信号レベルがランダムノイズによって変動することを抑えることができる。これにより、ダーク画像データに対し、適正な信号レベルへのクランプ補正処理を施すことができる。 As described above, in the present embodiment, the light-shielding reference signal level is calculated using the pixel signals output from the effective pixel area 130A configured by a larger number of pixels than the reference pixel area 130B. By using a large number of pixel signals, it is possible to suppress fluctuation of the reference signal level during light shielding due to random noise. As a result, the clamp correction processing to the proper signal level can be performed on the dark image data.

[S103(オフセット補正処理)]
本処理ステップS103では、遮光時基準信号レベルと露光時基準信号レベルとを整合させる処理が行われる。例えば、図5に示すように、基準画素領域130B(1行目からp行目)にシェーディングが発生している場合、ダーク画像データの遮光時基準信号レベルは、有効画素領域130Aのうち、シェーディングの無い参照領域230Cから出力された信号を用いて算出される。一方、露光時基準信号レベルは、シェーディングが発生している1行目からp行目の基準画素領域130Bから出力された信号を用いて算出される。この場合、ダーク露光処理S102において、撮影画像データに対して、シェーディングによって信号レベルが増加(オフセット)した露光時基準信号レベルに基づいてクランプ補正処理が行われる。そのため、本処理ステップS103では、シェーディングによるオフセットの大きさが検知され、このオフセットの大きさに基づいて撮影画像データが補正される。これにより、撮影画像データの基準信号レベルとダーク画像データの基準信号レベルを整合させることができる。
[S103 (Offset correction process)]
In this processing step S103, processing for matching the light-shielding reference signal level with the exposure reference signal level is performed. For example, as shown in FIG. 5, when shading occurs in the reference pixel area 130B (first row to p-th row), the shading reference signal level of dark image data is the shading in the effective pixel area 130A. It is calculated by using the signal output from the reference area 230C that does not exist. On the other hand, the exposure reference signal level is calculated using the signals output from the reference pixel regions 130B in the first row to the p-th row in which shading is occurring. In this case, in the dark exposure process S102, the clamp correction process is performed on the captured image data based on the exposure reference signal level whose signal level is increased (offset) by shading. Therefore, in this processing step S103, the magnitude of the offset due to shading is detected, and the captured image data is corrected based on this offset magnitude. Thereby, the reference signal level of the captured image data and the reference signal level of the dark image data can be matched.

シェーディングによるオフセットの量は、図4や図5に示されるダーク露光時における行代表値の近似曲線が使用される。例えば、画素信号に図5に示すシェーディングが発生している場合、遮光時基準信号レベルは、行代表値の近似曲線のうち、特性がフラットで、且つ、信号レベルの小さい領域(s行目からr行目)の平均値V2である。また、オフセットの算出に使用する露光時基準信号レベルは、行代表値の近似曲線のうち、基準画素領域130B(1行目からp行目)に対応する信号レベルの平均値Vbによって求められる。オフセットは、近似曲線から求めた遮光時基準信号レベルV2と露光時基準信号レベルVbの差分ΔVによって求められる。 As the amount of offset due to shading, an approximate curve of row representative values at the time of dark exposure shown in FIGS. 4 and 5 is used. For example, when the shading shown in FIG. 5 occurs in the pixel signal, the light-shielding reference signal level is a region having a flat characteristic and a small signal level (from the s-th row) in the approximate curve of the row representative value. It is the average value V2 of the (rth row). The exposure reference signal level used for calculating the offset is obtained by the average value Vb of the signal levels corresponding to the reference pixel area 130B (first row to p-th row) in the approximate curve of the row representative value. The offset is obtained by the difference ΔV between the light-shielding reference signal level V2 and the exposure reference signal level Vb obtained from the approximate curve.

このように、本実施形態では、基準信号レベルのオフセットを算出するために、ダーク露光処理における画素信号から求めた行代表値の近似曲線が使用される。これにより、オフセットの算出結果へのランダムノイズの影響を抑えることができる。また、算出されたオフセットに基づいて撮影画像データの信号レベルが補正される。これにより、撮影画像データの基準信号レベルとダーク画像データの基準信号レベルが、シェーディングによるオフセットのないものに揃えられる。 As described above, in this embodiment, in order to calculate the offset of the reference signal level, the approximate curve of the row representative value obtained from the pixel signal in the dark exposure processing is used. As a result, the influence of random noise on the offset calculation result can be suppressed. Further, the signal level of the captured image data is corrected based on the calculated offset. As a result, the reference signal level of the captured image data and the reference signal level of the dark image data are made uniform so as not to have an offset due to shading.

例えば、露光時基準信号レベルを、ダーク露光処理S102において基準画素から出力された基準画素信号のみを用いて算出する場合を考える。基準画素の数は、有効画素の数よりも少ないため、複数の基準信号の平均値を露光時基準信号レベルとした場合、ランダムノイズによる信号レベルの変動を十分に抑えられない可能性がある。基準信号のレベルが変動すると、シェーディングによるオフセットの大きさを正しく算出することができないため、撮影画像データのオフセットを適切に補正することができない。撮影画像データにオフセットが残っていると、撮影画像に明るさや色味の変化が生じる可能性がある。 For example, consider a case where the exposure reference signal level is calculated using only the reference pixel signal output from the reference pixel in the dark exposure processing S102. Since the number of reference pixels is smaller than the number of effective pixels, when the average value of a plurality of reference signals is used as the exposure reference signal level, fluctuations in the signal level due to random noise may not be sufficiently suppressed. When the level of the reference signal fluctuates, the magnitude of the offset due to shading cannot be calculated correctly, so that the offset of the captured image data cannot be properly corrected. If the offset remains in the captured image data, the captured image may change in brightness or tint.

これに対し、本実施形態では、露光時基準信号レベルと遮光時基準信号レベルとの間のオフセットの算出に、ダーク露光処理S102において求められた行代表値の近似曲線が使用される。有効画素の数は、基準画素の数よりも多いため、基準画素信号のみを用いて信号レベルを算出する場合に比べて、信号レベルのランダムノイズによる変動を抑えることができる。 On the other hand, in the present embodiment, the approximate curve of the row representative value obtained in the dark exposure processing S102 is used for calculating the offset between the exposure reference signal level and the light-shielding reference signal level. Since the number of effective pixels is larger than the number of reference pixels, it is possible to suppress the fluctuation of the signal level due to random noise, as compared with the case where the signal level is calculated using only the reference pixel signal.

なお、本処理ステップS103では、シェーディングによって撮影画像データ全体に発生しているオフセットが補正されるが、シェーディング自体は補正されない。オフセットが補正された撮影画像データは、図4や図5に示すような形状のシェーディングが重畳している。この撮影画像データに重畳するシェーディングは、後述するダーク画像減算処理S104で除去される。 In this processing step S103, the offset generated in the entire captured image data by shading is corrected, but the shading itself is not corrected. The shading of the shape as shown in FIGS. 4 and 5 is superimposed on the captured image data whose offset is corrected. The shading superimposed on the captured image data is removed in dark image subtraction processing S104 described later.

また、画素信号に図4に示すようなシェーディングが発生している場合、1行目からp行目の基準画素領域130B(即ち、本露光処理S101で算出された露光時基準信号レベル)にはシェーディングによるオフセットが発生していない。そのため、本処理ステップS103を実行する前の時点で、遮光時基準信号レベルと露光時基準信号レベルとの間のシェーディングによるオフセットはゼロと見做すことができる。また、シェーディングが発生するか否か、及び、どのような形状のシェーディングが発生するかは撮影装置1jの駆動モード等によって変化する。そのため、駆動モードが、露光時基準信号レベルにシェーディングが発生しない設定である場合は、このオフセット補正処理S103の実行は省略してもよい。 In addition, when shading as shown in FIG. 4 occurs in the pixel signal, the reference pixel area 130B in the first row to the p-th row (that is, the exposure reference signal level calculated in the main exposure processing S101) No offset due to shading has occurred. Therefore, before the execution of this processing step S103, the offset due to shading between the light-shielding reference signal level and the exposure-time reference signal level can be regarded as zero. In addition, whether or not shading occurs and what shape of shading occurs depends on the driving mode of the image capturing apparatus 1j and the like. Therefore, when the drive mode is set such that shading does not occur in the reference signal level during exposure, execution of this offset correction processing S103 may be omitted.

[処理ステップS104(ダーク画像データ減算処理)]
本処理ステップS104では、ダーク画像データを用いて、オフセットが補正された撮影画像データが補正される。詳しくは、撮影画像データからダーク画像データが減算されることにより、撮影画像データに含まれる暗電流ノイズやシェーディングが除去される。
[Processing Step S104 (Dark Image Data Subtraction Process)]
In this processing step S104, the captured image data whose offset has been corrected is corrected using the dark image data. Specifically, the dark current noise and shading included in the captured image data are removed by subtracting the dark image data from the captured image data.

暗電流ノイズは、撮像素子112内の画素の暗電流のムラによって生じる。暗電流ノイズの大きさ(振幅)は、撮像素子112の積分時間、温度又は感度などの撮影条件に依存して変化する。また、暗電流ノイズは、撮影条件に依存してパターン(撮影画像内におけるノイズの出現分布)が変化する成分と、パターンが変化しない成分とを含んでいる。このうち、暗電流ノイズのパターンが変化しない成分は固定パターンノイズとも呼ばれる。暗電流ノイズのパターンには、例えば、撮像面130の上下方向や左右方向に伸びる縞状のノイズや、撮像面130上に離散的に発生するスポット状のノイズがある。この暗電流ノイズは、撮影画像とダーク画像の両方に含まれる。そのため、撮影画像データからダーク画像データを減算することにより、撮影画像データに含まれる暗電流ノイズのうち、パターンの変化しない成分(固定パターンノイズ)を除去することができる。 Dark current noise is caused by unevenness of dark current of pixels in the image sensor 112. The magnitude (amplitude) of the dark current noise changes depending on the imaging conditions such as the integration time of the image sensor 112, temperature, or sensitivity. Further, the dark current noise includes a component in which the pattern (noise appearance distribution in the captured image) changes depending on the shooting conditions and a component in which the pattern does not change. Of these, the component of the dark current noise pattern that does not change is also called fixed pattern noise. The dark current noise pattern includes, for example, striped noise that extends in the vertical direction and the horizontal direction of the imaging surface 130, and spot-shaped noise that discretely occurs on the imaging surface 130. This dark current noise is included in both the captured image and the dark image. Therefore, by subtracting the dark image data from the captured image data, it is possible to remove the component (fixed pattern noise) in which the pattern does not change, from the dark current noise included in the captured image data.

また、撮影画像データとダーク画像データは、シェーディングを含んでいる。このシェーディングも、撮影画像データからダーク画像データを減算することによって除去される。 Moreover, the captured image data and the dark image data include shading. This shading is also removed by subtracting the dark image data from the captured image data.

[処理ステップS105(画像処理)]
本処理ステップS105では、暗電流ノイズ及びシェーディングが補正された撮影画像データに対して、ガンマ補正やホワイトバランス補正などの所定の画像処理が施される。画像処理が施された撮影画像データは、所定のフォーマットで圧縮されてメモリカード200や撮影装置1の内蔵メモリに保存される。
[Processing Step S105 (Image Processing)]
In this processing step S105, predetermined image processing such as gamma correction and white balance correction is performed on the captured image data in which dark current noise and shading have been corrected. The photographed image data that has undergone image processing is compressed in a predetermined format and stored in the memory card 200 or the built-in memory of the photographing apparatus 1.

このように、本実施形態では、有効画素領域130Aを含む領域(参照領域)から出力される画素信号を使用して、ダーク画像データの遮光時基準信号レベルが算出される。有効画素領域130Aは、基準画素領域130Bに比べて多くの画素から構成されている。遮光時基準信号レベルを、この多数の画素から出力される画素信号を用いて算出することにより、遮光時基準信号レベルへのランダムノイズの影響が抑えられる。これにより、ダーク画像データに対して、適正な信号レベルを用いたクランプ補正処理を施すことができる。 As described above, in the present embodiment, the shading reference signal level of dark image data is calculated using the pixel signals output from the area (reference area) including the effective pixel area 130A. The effective pixel area 130A includes more pixels than the reference pixel area 130B. By calculating the light-shielding reference signal level using the pixel signals output from the large number of pixels, the influence of random noise on the light-shielding reference signal level can be suppressed. As a result, the clamp correction process using an appropriate signal level can be performed on the dark image data.

また、本実施形態では、有効画素領域130Aから出力される画素信号を使用して、シェーディングによって発生する撮影画像データの露光時基準信号レベルとダーク画像データの露光時基準信号レベルとの差(オフセット)が算出される。これにより、シェーディングによって発生している撮影画像データのオフセットを適正に補正することができる。 Further, in the present embodiment, the difference (offset) between the exposure reference signal level of the captured image data and the exposure reference signal level of the dark image data generated by shading is used by using the pixel signal output from the effective pixel area 130A. ) Is calculated. This makes it possible to properly correct the offset of the captured image data caused by shading.

なお、本実施形態では、処理ステップS103でオフセットが補正された撮影画像データから、処理ステップS102で生成されたダーク画像データが減算されるが、本発明はこれに限定されない。例えば、処理ステップS102でダーク画像データが生成された後、このダーク画像データに対してオフセット補正処理が施されてもよい。この場合、撮影画像データからダーク画像データを減算することによって、撮影画像データのオフセットが補正される。 In addition, in the present embodiment, the dark image data generated in the processing step S102 is subtracted from the captured image data whose offset is corrected in the processing step S103, but the present invention is not limited to this. For example, the offset correction processing may be performed on the dark image data after the dark image data is generated in the processing step S102. In this case, the offset of the captured image data is corrected by subtracting the dark image data from the captured image data.

また、撮影画像データ又はダーク画像データに対して、ランダムノイズを除去するフィルタ処理が施されてもよい。撮影画像データやダーク画像データは、暗電流ノイズ、シェーディング、ランダムノイズ等のノイズ成分を含む。このうちランダムノイズは、通常、暗電流ノイズやシェーディングよりも高い周波数を有する。そのため、撮影画像データやダーク画像データに対してローパスフィルタ処理等のフィルタ処理を施すことにより、これらの画像データに含まれるランダムノイズのみを低減することができる。例えば、撮影画像データに対してフィルタ処理を施すことにより、撮影画像データの露光時基準信号レベルのオフセットを抑制することができる。また、撮影画像データとダーク画像データの少なくとも何れか一方に対してフィルタ処理を施すことにより、撮影画像データからダーク画像データを減算する際に、撮影画像データとダーク画像データに含まれるランダムノイズが足し合わされて、ランダムノイズの振幅が増大することを抑制することができる。 Further, the captured image data or the dark image data may be subjected to a filter process for removing random noise. The captured image data and dark image data include noise components such as dark current noise, shading, and random noise. Of these, random noise usually has a higher frequency than dark current noise and shading. Therefore, by performing a filtering process such as a low-pass filtering process on the captured image data or the dark image data, it is possible to reduce only random noise included in these image data. For example, by performing a filtering process on the captured image data, it is possible to suppress the offset of the exposure reference signal level of the captured image data. Further, by performing filtering processing on at least one of the captured image data and the dark image data, when subtracting the dark image data from the captured image data, random noise included in the captured image data and the dark image data is generated. It is possible to suppress the increase in the amplitude of the random noise due to the addition.

(第2の実施形態)
次に、本発明の第2の実施形態の撮影装置について説明する。第2の実施形態では、第1の実施形態とは異なり、ダーク露光処理は本露光処理の前に実行される。以下では、第2に実施形態における、ダーク露光処理、及び、ダーク画像データ減算処理について説明することとし、説明の便宜の為、第1の実施形態と同等の構成要素には同一の符号を用いることとする。なお、ダーク露光処理は、本露光処理の前に実行されていればよく、その実行タイミングは、例えば、撮影装置1の工場出荷前の段階や、ユーザの所望のタイミングである。
(Second embodiment)
Next, an image pickup apparatus according to the second embodiment of the present invention will be described. In the second embodiment, unlike the first embodiment, the dark exposure processing is executed before the main exposure processing. In the following, the dark exposure processing and the dark image data subtraction processing in the second embodiment will be described, and for convenience of description, the same reference numerals are used for the same components as those in the first embodiment. I will. The dark exposure process may be executed before the main exposure process, and its execution timing is, for example, a stage before factory shipment of the image capturing apparatus 1 or a timing desired by the user.

撮影画像データやダーク画像データに含まれるシェーディングは、撮影条件(温度、感度、露光時間等)に依らず変化しない成分(以下、「固定シェーディング」と記す。)と、撮影条件に応じて変化する成分(以下、「変動シェーディング」と記す。)を含む。そのため、撮影画像データの露光時基準信号レベルには、固定シェーディングに起因するオフセットと、変動シェーディングに起因するオフセットの両方が含まれる。変動シェーディングに起因するオフセットは、撮像素子112の積分時間(露光時間)が長く、温度が高く、感度が高く設定されているほどオフセット量が大きくなる。 The shading included in the captured image data or the dark image data changes depending on the capturing condition (hereinafter referred to as “fixed shading”), which does not change regardless of the capturing condition (temperature, sensitivity, exposure time, etc.). Including a component (hereinafter referred to as “variable shading”). Therefore, the exposure reference signal level of the captured image data includes both an offset caused by fixed shading and an offset caused by variable shading. The offset caused by the variable shading becomes larger as the integration time (exposure time) of the image sensor 112 is longer, the temperature is higher, and the sensitivity is set higher.

第1の実施形態では、ダーク露光処理は、本露光処理と同じ撮影条件で実行されるため、一つのダーク画像信号を用いて、固定シェーディングに起因するオフセットと、変動シェーディングに起因するオフセットの両方を補正することができる。これに対し、第2の実施形態では、ダーク露光処理の撮影条件は、本露光処理の撮影条件と同じとは限らない。そのため、第2実施形態では、本露光処理が行われる前に、固定シェーディングに起因するオフセットの補正に使用するダーク画像データと、変動シェーディングに起因するオフセットの補正に使用するダーク画像データが生成される。 In the first embodiment, since the dark exposure process is executed under the same shooting conditions as the main exposure process, one dark image signal is used to perform both the offset caused by the fixed shading and the offset caused by the variable shading. Can be corrected. On the other hand, in the second embodiment, the shooting conditions of the dark exposure process are not necessarily the same as the shooting conditions of the main exposure process. Therefore, in the second embodiment, before the main exposure processing is performed, dark image data used to correct the offset caused by the fixed shading and dark image data used to correct the offset caused by the variable shading are generated. It

固定シェーディングに起因するオフセットの補正に使用するダーク画像データ(以下、「固定ダーク画像データ」と記す。)に含まれるシェーディングは、固定シェーディングのみを含んでいることが望ましい。そのため、固定ダーク画像データを生成するためのダーク露光処理は、変動シェーディングが発生し難い撮影条件、すなわち撮像素子112の積分時間が短く、温度が低く、感度が低く設定されている条件で実行される。生成された固定ダーク画像データは、メモリ118に保存される。 It is desirable that the shading included in the dark image data (hereinafter, referred to as “fixed dark image data”) used to correct the offset caused by the fixed shading includes only the fixed shading. Therefore, the dark exposure processing for generating the fixed dark image data is executed under the shooting conditions in which the variable shading is unlikely to occur, that is, the conditions in which the integration time of the image sensor 112 is short, the temperature is low, and the sensitivity is low. It The generated fixed dark image data is stored in the memory 118.

変動シェーディングに起因するオフセットの補正に使用するダーク画像データ(以下、「変動ダーク画像データ」と記す。)には、変動シェーディングは大きく含まれていることが望ましい。具体的には、変動ダーク画像データの変動シェーディングの大きさは、固定シェーディングと同程度、又は、それ以上である。そのため、変動ダーク画像データを生成するためのダーク露光処理は、変動シェーディングが発生し易い撮影条件、すなわち撮像素子112の積分時間が長く、温度が高く、感度が高く設定されている条件で実行される。生成された変動ダーク画像データは、メモリ118に保存される。また、メモリ118には、変動ダーク画像データを生成するためのダーク露光処理における撮影条件、すなわち、画素信号の増幅処理におけるゲインGd、露光時間ITd、環境温度Tdも保存される。 It is desirable that dark shading is largely included in dark image data (hereinafter, referred to as “varying dark image data”) used for correcting an offset caused by the variable shading. Specifically, the size of the variable shading of the variable dark image data is about the same as or larger than the fixed shading. Therefore, the dark exposure processing for generating the variable dark image data is executed under the photographing condition in which the variable shading is likely to occur, that is, the condition in which the integration time of the image sensor 112 is long, the temperature is high, and the sensitivity is set high. It The generated variable dark image data is stored in the memory 118. The memory 118 also stores shooting conditions in dark exposure processing for generating variable dark image data, that is, gain Gd in pixel signal amplification processing, exposure time ITd, and ambient temperature Td.

なお、固定ダーク画像データ及び変動ダーク画像データは、第1の実施形態におけるダーク画像データと同様に、暗電流ノイズを含んでいる。そのため、固定ダーク画像データ及び変動ダーク画像データを用いて、撮影画像データに含まれる暗電流ノイズを除去することができる。以下では、第2の実施形態における画像処理エンジン116による撮影処理のうち、撮影画像データの暗電流ノイズの除去処理について詳細に説明する。図6は、暗電流ノイズの除去処理に関する処理のフローチャートを示す。図6に示す処理は、ユーザによってレリーズスイッチが操作されることによって実行される処理である。 Note that the fixed dark image data and the variable dark image data include dark current noise, like the dark image data in the first embodiment. Therefore, the dark current noise included in the captured image data can be removed by using the fixed dark image data and the variable dark image data. In the following, of the shooting processing by the image processing engine 116 according to the second embodiment, the dark current noise removal processing of the shot image data will be described in detail. FIG. 6 shows a flowchart of processing relating to dark current noise removal processing. The process shown in FIG. 6 is a process executed by the user operating the release switch.

[処理ステップS201(本露光処理)]
本処理ステップS201では、ユーザによって設定された撮影設定により、本露光処理が行われる。本露光処理は、レリーズスイッチが操作されることによって開始される。第2の実施形態の本露光処理は、第1の実施形態の本露光処理と同じである。詳しくは、有効画素信号に基づいて撮影画像データが生成される。また、基準画素信号に基づいて露光時基準信号レベルが算出されて、メモリ118に記憶される。露光時基準信号レベルが記憶されると、この露光時基準信号レベルを用いて、撮影画像データに対するクランプ補正処理が行われる。
[Processing Step S201 (Main Exposure Processing)]
In the main processing step S201, main exposure processing is performed according to the shooting settings set by the user. The main exposure process is started by operating the release switch. The main exposure process of the second embodiment is the same as the main exposure process of the first embodiment. Specifically, the captured image data is generated based on the effective pixel signal. Further, the exposure reference signal level is calculated based on the reference pixel signal and stored in the memory 118. When the exposure reference signal level is stored, clamp correction processing is performed on the captured image data using the exposure reference signal level.

なお、第2の実施形態における本露光処理S201では、本露光処理時の撮影条件がメモリ118に保存される。記憶される撮影条件は、画素信号の増幅処理におけるゲインGe、露光時間ITe、環境温度Teである。 In the main exposure processing S201 according to the second embodiment, the shooting conditions at the time of the main exposure processing are stored in the memory 118. The stored shooting conditions are the gain Ge in the pixel signal amplification processing, the exposure time ITe, and the environmental temperature Te.

[処理ステップS202(固定シェーディングによるオフセットの補正処理)]
本処理ステップS202では、撮影画像データに含まれる、固定シェーディングに起因するオフセットの補正処理が行われる。固定シェーディングに起因するオフセットの大きさは、予めメモリ118に保存されている固定ダーク画像データを用いて算出される。詳しくは、第1の実施形態の処理ステップS102と同様に、固定ダーク画像データの有効画素及び基準画素の各行について、画素信号の行代表値が算出される。次いで、行番号を変数とする行代表値の近似曲線が求められる。また、第1の実施形態の処理ステップS103と同様に、近似曲線により、固定シェーディングに起因する露光時基準信号レベルと遮光時基準信号レベルとの差(オフセット)が算出される。このオフセットに基づいて、撮影画像データの信号レベルが補正される。
[Processing Step S202 (Offset Correction Processing by Fixed Shading)]
In this processing step S202, the correction processing of the offset included in the captured image data due to the fixed shading is performed. The magnitude of the offset caused by the fixed shading is calculated by using the fixed dark image data stored in the memory 118 in advance. Specifically, similar to the processing step S102 of the first embodiment, a row representative value of pixel signals is calculated for each row of effective pixels and reference pixels of fixed dark image data. Then, an approximate curve of the row representative value with the row number as a variable is obtained. Further, similar to the processing step S103 of the first embodiment, the difference (offset) between the exposure-time reference signal level and the light-shielding reference signal level due to the fixed shading is calculated by the approximation curve. The signal level of the captured image data is corrected based on this offset.

[処理ステップS203(変動シェーディングによるオフセットの補正処理)]
本処理ステップS203では、撮影画像データに含まれる、変動シェーディングに起因するオフセットの補正処理が行われる。変動シェーディングに起因するオフセットの大きさは、予めメモリ118に保存されている変動ダーク画像データと、変動ダーク画像データの取得時(ダーク露光処理時)の撮影条件を用いて算出される。詳しくは、第1の実施形態の処理ステップS102と同様に、変動ダーク画像データの有効画素及び基準画素の各行について、画素信号の行代表値が算出される。次いで、行番号を変数とする行代表値の近似曲線が求められる。また、第1の実施形態の処理ステップS103と同様に、近似曲線により、露光時基準信号レベルと遮光時基準信号レベルとの差(オフセット)が算出される。
[Processing Step S203 (Offset Correction Processing by Variable Shading)]
In this processing step S203, the correction processing of the offset included in the captured image data due to the variable shading is performed. The magnitude of the offset caused by the variable shading is calculated using the variable dark image data stored in advance in the memory 118 and the shooting condition when the variable dark image data is acquired (at the time of dark exposure processing). Specifically, similar to the processing step S102 of the first embodiment, a row representative value of pixel signals is calculated for each row of effective pixels and reference pixels of the variable dark image data. Then, an approximate curve of the row representative value with the row number as a variable is obtained. Further, similar to the processing step S103 of the first embodiment, the difference (offset) between the exposure-time reference signal level and the light-shielding reference signal level is calculated by the approximation curve.

変動ダーク画像データを用いて算出されたオフセットには、固定シェーディングに起因するオフセットと、変動シェーディングに起因するオフセットの両方が含まれる。また、変動シェーディングに起因するオフセットは撮影条件に応じて変化するが、変動ダーク画像データの取得時(ダーク露光時)の撮影条件は、撮影画像データの取得時(本露光時)の撮影条件と同じであるとは限らない。そのため、本処理ステップでは、変動ダーク画像データを用いて算出されたオフセットが、撮影画像データに含まれる変動シェーディングに起因するオフセットと同じになるように、オフセットの調整処理が実行される。 The offset calculated using the variable dark image data includes both the offset caused by the fixed shading and the offset caused by the variable shading. Although the offset caused by the variable shading changes according to the shooting conditions, the shooting conditions at the time of acquiring the variable dark image data (at the time of dark exposure) are the same as the shooting conditions at the time of acquiring the captured image data (at the main exposure). Not necessarily the same. Therefore, in this processing step, the offset adjustment processing is executed so that the offset calculated using the variable dark image data becomes the same as the offset caused by the variable shading included in the captured image data.

オフセットの調整処理では、まず、変動ダーク画像データを用いて算出されたオフセットから、処理ステップS202で算出された固定シェーディングに起因するオフセットが減算される。これにより、変動シェーディングに起因するオフセットのみが取得される。 In the offset adjustment processing, first, the offset resulting from the fixed shading calculated in processing step S202 is subtracted from the offset calculated using the variable dark image data. As a result, only the offset caused by the variable shading is acquired.

次に、撮影条件に基づいて、変動シェーディングに起因するオフセットを調整する調整係数kが算出される。調整係数kの算出式は、次式(1)で表される。
(数1)
k=α×(Ge/Gd)×(ITe/ITd)×(2(Te−Td)/KT
ここで、係数αは、オフセットが正確に調整されるように自動又は手動で設定される定数である。
Next, the adjustment coefficient k for adjusting the offset caused by the variable shading is calculated based on the shooting conditions. The formula for calculating the adjustment coefficient k is represented by the following formula (1).
(Equation 1)
k=α×(Ge/Gd)×(ITe/ITd)×(2 (Te-Td)/KT )
Here, the coefficient α is a constant that is set automatically or manually so that the offset is accurately adjusted.

式(1)に示されるように、調整係数kは、変動ダーク画像データ及び撮影画像データの増幅処理のゲインについての項(Ge/Gd)、積分時間についての項(ITe/ITd)、温度についての項(2(Te−Td)/KT)及び係数αの積で表される。撮影画像データに含まれる変動シェーディングに起因するオフセットの大きさは、積分時間が長いほど増加し、温度が高いほど増加する。また、変動シェーディングに起因するオフセットは、ゲインに応じて増幅される。そのため、調整係数kは、実質的に撮影画像データと変動ダーク画像データに含まれる変動シェーディングに起因するオフセットの大きさの比を表している。 As shown in the equation (1), the adjustment coefficient k is a term for the gain of the amplification processing of the fluctuation dark image data and the captured image data (Ge/Gd), a term for the integration time (ITe/ITd), and a temperature. (2 (Te−Td)/KT ) and the coefficient α. The magnitude of the offset caused by the variable shading included in the captured image data increases as the integration time increases, and increases as the temperature increases. Further, the offset caused by the variable shading is amplified according to the gain. Therefore, the adjustment coefficient k substantially represents the ratio of the magnitude of the offset caused by the variation shading included in the captured image data and the variation dark image data.

次に、変動シェーディングに起因するオフセットに対し、調整係数kが乗算される。この調整係数kが乗算されたオフセットに基づいて、撮影画像データの信号レベルが補正される。 Next, the adjustment factor k is multiplied by the offset caused by the variable shading. The signal level of the captured image data is corrected based on the offset multiplied by the adjustment coefficient k.

処理ステップS202及びS203の処理により、撮影画像データ、固定ダーク画像データ及び変動ダーク画像データの基準信号レベルが、シェーディングによるオフセットのないものに揃えられる。 Through the processing of processing steps S202 and S203, the reference signal levels of the captured image data, the fixed dark image data, and the variable dark image data are made uniform so as to have no offset due to shading.

[処理ステップS204(ダーク画像データ減算処理)]
本処理ステップS204では、撮影画像データに対する暗電流ノイズ及びシェーディングの除去処理が施される。具体的には、撮影画像データから、固定ダーク画像データ及び変動ダーク画像データが減算される。
[Processing Step S204 (Dark Image Data Subtraction Process)]
In this processing step S204, dark current noise and shading removal processing is performed on the captured image data. Specifically, the fixed dark image data and the variable dark image data are subtracted from the captured image data.

撮影画像データ及び固定ダーク画像データは、固定シェーディングを含んでいる。そのため、撮影画像データから固定ダーク画像データを減算することにより、撮影画像データに含まれる固定シェーディングが除去される。 The captured image data and the fixed dark image data include fixed shading. Therefore, the fixed shading included in the captured image data is removed by subtracting the fixed dark image data from the captured image data.

また、撮影画像データ及び変動ダーク画像データは、固定パターンの暗電流ノイズ及び変動シェーディングを含んでいる。暗電流ノイズ及び変動シェーディングの大きさは、撮影条件に応じて変化する。詳しくは、暗電流ノイズ及び変動シェーディングは何れも、露光時間が長く、環境温度が高く、ISO感度が高く設定されているほど大きくなる。そのため、変動ダーク画像データは、撮影画像データから減算される前に、撮影条件に応じて調整される。 Also, the captured image data and the variable dark image data include dark current noise and variable shading of a fixed pattern. The dark current noise and the magnitude of the variable shading change according to the shooting conditions. Specifically, both dark current noise and variable shading become larger as the exposure time is longer, the environmental temperature is higher, and the ISO sensitivity is set higher. Therefore, the variable dark image data is adjusted according to the shooting conditions before being subtracted from the shot image data.

変動ダーク画像データの調整には、固定ダーク画像データ及び処理ステップS203において算出された調整係数kが使用される。変動ダーク画像データには、変動シェーディング及び固定シェーディングが含まれる。そのため、変動ダーク画像データから固定ダーク画像データを減算することにより、固定シェーディングを含まない変動ダーク画像データが得られる。また、固定シェーディングを含まない変動ダーク画像データに対し、調整係数kを乗算することにより、変動ダーク画像データに含まれる暗電流ノイズ及び変動シェーディングの大きさが、撮影画像データに含まれる暗電流ノイズ及び変動シェーディングの大きさに揃えられる。この調整された変動ダーク画像データを撮影画像データから減算することにより、撮影画像データに含まれる暗電流ノイズ及び変動シェーディングが除去される。 The fixed dark image data and the adjustment coefficient k calculated in the processing step S203 are used for the adjustment of the variable dark image data. The variable dark image data includes variable shading and fixed shading. Therefore, by subtracting the fixed dark image data from the changed dark image data, the changed dark image data that does not include fixed shading can be obtained. Further, by multiplying the variable dark image data that does not include fixed shading by the adjustment coefficient k, the dark current noise included in the variable dark image data and the magnitude of the variable shading can be calculated as the dark current noise included in the captured image data. And variable shading size. By subtracting the adjusted varying dark image data from the captured image data, dark current noise and varying shading included in the captured image data are removed.

[処理ステップS205(画像処理)]
本処理ステップS205では、暗電流ノイズが除去された撮影画像データに対して、ガンマ補正やホワイトバランス補正などの所定の画像処理が施される。画像処理が施された撮影画像データは、所定のフォーマットで圧縮されてメモリカード200や撮影装置1の内蔵メモリに保存される。
[Processing Step S205 (Image Processing)]
In this processing step S205, predetermined image processing such as gamma correction and white balance correction is performed on the captured image data from which dark current noise has been removed. The photographed image data that has undergone image processing is compressed in a predetermined format and stored in the memory card 200 or the built-in memory of the photographing apparatus 1.

このように、第2の実施形態では、予めメモリ118に保存されたダーク画像データを使用して暗電流ノイズを除去するため、本露光処理を行う毎にダーク露光処理を行う必要が無い。これにより、短時間で暗電流ノイズを除去することができる。 As described above, in the second embodiment, since dark current noise is removed by using dark image data stored in the memory 118 in advance, it is not necessary to perform dark exposure processing every time main exposure processing is performed. As a result, dark current noise can be removed in a short time.

また、第2の実施形態において、ダーク露光処理を行う際の撮影条件は、任意に設定することができる。そのため、ダーク露光処理及び本露光処理の撮影条件によっては、撮影画像データに含まれる暗電流ノイズの大きさが、ダーク画像データに含まれる暗電流ノイズの大きさよりも大きくなる場合がある。この場合、ダーク画像データ補正処理S205において算出される調整係数kを1よりも大きくすることにより、撮影画像データの暗電流ノイズを除去することができる。 In addition, in the second embodiment, the shooting conditions for performing the dark exposure processing can be set arbitrarily. Therefore, the dark current noise included in the captured image data may be larger than the dark current noise included in the dark image data depending on the shooting conditions of the dark exposure process and the main exposure process. In this case, the dark current noise of the captured image data can be removed by making the adjustment coefficient k calculated in the dark image data correction processing S205 larger than 1.

また、従来技術のように、基準画素信号を用いて遮光時基準信号レベルを算出した場合、この基準信号レベルはランダムノイズによって変動するという問題がある。また、基準画素信号を用いて遮光時基準信号レベルを算出し、且つ、調整係数kが1よりも大きい場合、このランダムノイズによる遮光時基準信号レベルの変動も増加してしまう。しかし、本実施形態では、有効画素信号に基づいて求めた近似曲線を使用して遮光時基準信号レベルを算出している。この遮光時基準信号レベルはランダムノイズによる変動が抑えられているため、調整係数kが1よりも大きい場合においても、遮光時基準信号レベルの変動が増加することを防止することができる。 Further, when the light-shielding reference signal level is calculated using the reference pixel signal as in the conventional technique, there is a problem that the reference signal level fluctuates due to random noise. In addition, when the light-shielding reference signal level is calculated using the reference pixel signal and the adjustment coefficient k is larger than 1, the fluctuation of the light-shielding reference signal level due to this random noise also increases. However, in the present embodiment, the light-shielding reference signal level is calculated using the approximate curve obtained based on the effective pixel signal. Since fluctuations in the light-shielding reference signal level due to random noise are suppressed, it is possible to prevent the fluctuations in the light-shielding reference signal level from increasing even when the adjustment coefficient k is larger than 1.

以上が本発明の例示的な実施形態の説明である。本発明の実施形態は、上記に説明したものに限定されず、本発明の技術的思想の範囲において様々な変形が可能である。例えば明細書中に例示的に明示される実施形態等又は自明な実施形態等を適宜組み合わせた内容も本願の実施形態に含まれる。 The above is a description of exemplary embodiments of the present invention. The embodiments of the present invention are not limited to those described above, and various modifications are possible within the scope of the technical idea of the present invention. For example, the contents of a combination of the embodiments exemplarily described in the specification or the obvious embodiments are appropriately included in the embodiments of the present application.

例えば、第1の実施形態のダーク露光処理S102は、シャッタが閉じられていること以外は、本露光処理S101と同じ撮影設定で実行されるが、本発明はこれに限定されない。例えば、ダーク露光処理S102における露光時間は、本露光処理S101の露光時間よりも短く設定されてもよい。これにより、ダーク露光処理S102を短縮することができる。なお、この場合、撮影画像データとダーク画像データとの間で、シェーディングや暗電流ノイズの大きさが異なるため、撮影画像データに含まれるオフセットの補正や、シェーディング及び暗電流ノイズの除去が適切に行われない可能性がある。そのため、本露光処理S101とダーク露光処理S102との間で露光時間を変更する場合、オフセット補正処理S103やダーク画像デー減算処理S104では、第2の実施形態と同様に、調整係数kによってオフセットやシェーディング、暗電流ノイズの大きさが調整される。 For example, the dark exposure process S102 of the first embodiment is executed with the same shooting settings as the main exposure process S101 except that the shutter is closed, but the present invention is not limited to this. For example, the exposure time in the dark exposure process S102 may be set shorter than the exposure time in the main exposure process S101. As a result, the dark exposure process S102 can be shortened. In this case, since the magnitude of shading and dark current noise is different between the captured image data and the dark image data, it is appropriate to correct the offset contained in the captured image data and remove shading and dark current noise. May not be done. Therefore, when the exposure time is changed between the main exposure processing S101 and the dark exposure processing S102, the offset correction processing S103 and the dark image data subtraction processing S104 are performed by the adjustment coefficient k in the same manner as in the second embodiment. The magnitude of shading and dark current noise is adjusted.

また、第1の実施形態におけるダーク露光処理S102では、撮像素子112の全ての行の行代表値を用いて近似曲線が算出されるが、本発明はこれに限定されない。例えば、シェーディングのおおよその形状が事前に分かっている場合は、近似曲線は、一部の行の行代表値のみを用いて算出されてもよい。この場合、近似曲線の算出に使用されなかった行の行代表値は、近似曲線を内挿又は外挿することによって求めることができる。例えば、画素信号が図5に示すシェーディングを有している場合、行代表値の近似曲線はq+1行目からm行目までの有効画素領域130Aの行代表値を用いて算出されてもよい。この場合、1行目からp行目の基準画素領域130Bの行代表値は、近似曲線を外挿することによって算出される。 Further, in the dark exposure processing S102 in the first embodiment, the approximate curve is calculated using the row representative values of all the rows of the image sensor 112, but the present invention is not limited to this. For example, when the approximate shape of shading is known in advance, the approximation curve may be calculated using only the row representative values of some rows. In this case, the row representative value of the row not used for calculating the approximate curve can be obtained by interpolating or extrapolating the approximate curve. For example, when the pixel signal has the shading shown in FIG. 5, the approximate curve of the row representative value may be calculated using the row representative value of the effective pixel region 130A from the (q+1)th row to the mth row. In this case, the row representative value of the reference pixel region 130B in the first row to the p-th row is calculated by extrapolating the approximate curve.

また、第2の実施形態において、メモリ118に保存されるダーク画像データ(固定ダーク画像データ及び変動ダーク画像データ)に対して圧縮処理が施されてもよい。圧縮処理では、主にダーク画像データのうち周波数の高い成分が除去されてデータ容量が縮小される。この圧縮処理により、ダーク画像データから周波数の比較的高いランダムノイズ成分が除去される。なお、暗電流ノイズは周波数が比較的低いため、圧縮処理によって除去される暗電流ノイズが失われることが抑えられる。また、ダーク画像データが圧縮されてメモリ118に保存されている場合、処理ステップS202、S203でメモリ118からダーク画像データが読み出される際に、撮影画像データの大きさに合うようにダーク画像データに対して伸長処理が施される。 Further, in the second embodiment, compression processing may be performed on the dark image data (fixed dark image data and variable dark image data) stored in the memory 118. In the compression process, the high-frequency component of the dark image data is mainly removed to reduce the data capacity. By this compression processing, a random noise component having a relatively high frequency is removed from the dark image data. Since the dark current noise has a relatively low frequency, it is possible to suppress the loss of the dark current noise removed by the compression process. Further, when the dark image data is compressed and stored in the memory 118, when the dark image data is read from the memory 118 in processing steps S202 and S203, the dark image data is converted to the size of the captured image data. On the other hand, extension processing is performed.

また、第2の実施形態のオフセットの補正処理S202、S203では、ダーク画像データを用いてオフセットが算出されるが、本発明はこれに限定されない。例えば、撮影装置1は、シェーディングの形状および大きさを表すシェーディングデータを予めメモリ118に保存しておいてもよい。シェーディングデータは、ダーク画像データから求められる画素信号の行代表値の近似曲線に相当する。シェーディングデータを予め保存しておくことにより、本露光処理S201を行う毎に、オフセットの補正処理S202、S203で近似曲線を求める必要がなくなり、撮影装置1の処理負荷を低減することができる。また、ダーク画像データが、2次元的に配列された複数の画素のシェーディングの大きさに関する情報を含んでいるのに対し、シェーディングデータは、有効画素及び基準画素の各行のシェーディングの大きさに関する情報のみを含んでいるため、ダーク画像データに比べてデータ量は小さい。そのため、シェーディングデータを予めメモリ118に保存したとしても、メモリ118の記憶領域を圧迫することはない。 Further, in the offset correction processing S202 and S203 of the second embodiment, the offset is calculated using the dark image data, but the present invention is not limited to this. For example, the image capturing apparatus 1 may store shading data representing the shape and size of shading in the memory 118 in advance. The shading data corresponds to an approximate curve of row representative values of pixel signals obtained from dark image data. By storing the shading data in advance, it is not necessary to obtain an approximate curve in the offset correction processing S202 and S203 each time the main exposure processing S201 is performed, and the processing load of the image capturing apparatus 1 can be reduced. Further, the dark image data includes information about the shading size of a plurality of pixels arranged two-dimensionally, whereas the shading data includes information about the shading size of each row of effective pixels and reference pixels. The data amount is smaller than that of the dark image data because it includes only the image data. Therefore, even if the shading data is stored in the memory 118 in advance, the storage area of the memory 118 is not pressed.

また、第2の実施形態において、メモリ118には、撮影設定に応じた複数のダーク画像データが予め保存されていてもよい。撮影画像データやダーク画像データに含まれるシェーディングは、撮影装置1の撮影設定に応じて変化する場合がある。ここで、撮影設定は、例えば、撮像素子112の駆動モードである。撮像素子112にCMOSイメージセンサが使用されている場合、駆動モードを、全ての画素から画素信号を同時に読み出すグローバルシャッタ方式と、画素を複数の領域に分けて、画素信号を領域毎に読み出すローリングシャッタ方式との間で切り替え可能なものがある。このような駆動モードの切り替えによって、撮影画像内におけるシェーディングが発生する位置、即ちシェーディングの形状が変化する場合がある。そのため、予め撮影設定(駆動モード)に応じた複数のダーク画像データをメモリ118に保存しておくことにより、本露光処理S201がどのような撮影条件で実行されたとしても、撮影画像データのシェーディングによるオフセットの補正及び撮影画像データからのシェーディングの除去を行うことができる。また、ISO感度や露光時間などの撮影条件毎や、AE制御やAF制御などの撮影モードの設定毎に、複数のダーク画像データを予めメモリ118に保存しておいてもよい。 Further, in the second embodiment, the memory 118 may previously store a plurality of dark image data according to the shooting setting. The shading included in the captured image data or the dark image data may change depending on the capturing settings of the capturing device 1. Here, the shooting setting is, for example, a drive mode of the image sensor 112. When a CMOS image sensor is used for the image sensor 112, the drive mode is a global shutter method for simultaneously reading pixel signals from all pixels, and a rolling shutter for reading pixel signals for each area by dividing the pixels into a plurality of areas. There are some that can be switched between methods. Such switching of drive modes may change the position where shading occurs in a captured image, that is, the shape of shading. Therefore, by preliminarily storing a plurality of dark image data corresponding to the shooting setting (driving mode) in the memory 118, shading of the shot image data is performed no matter what shooting conditions the main exposure process S201 is performed. It is possible to correct the offset and remove the shading from the captured image data. Further, a plurality of dark image data may be stored in the memory 118 in advance for each shooting condition such as ISO sensitivity and exposure time, or for each shooting mode setting such as AE control and AF control.

1 撮影装置
100 システムコントローラ
102 操作部
104 絞り・シャッタ駆動回路
106 撮影レンズ
108 絞り
110 シャッタ
112 撮像素子
114 撮像素子駆動回路
116 画像処理エンジン
118 メモリ
120 カード用インタフェース
122 LCD制御回路
124 LCD
126 ROM
130 撮像面
200 メモリカード
1 Imaging Device 100 System Controller 102 Operation Unit 104 Aperture/Shutter Drive Circuit 106 Imaging Lens 108 Aperture 110 Shutter 112 Image Sensor 114 Image Sensor Drive Circuit 116 Image Processing Engine 118 Memory 120 Card Interface 122 LCD Control Circuit 124 LCD
126 ROM
130 Image plane 200 Memory card

Claims (10)

被写体からの光束に応じた信号を出力する複数の有効画素からなる有効画素領域と、前記光束に対して遮光された複数の基準画素からなる基準画素領域とを有する撮像素子と、
前記有効画素が前記光束に対して露光されている露光状態のときに、前記有効画素領域から出力された信号に基づいて撮影画像データを生成するとともに前記基準画素領域のうち、シェーディングが発生する領域から出力された信号に基づいて露光時基準信号レベルを算出する、撮影画像生成手段と、
前記有効画素が前記光束に対して遮光されている遮光状態のときに、前記有効画素領域から出力された信号に基づいてダーク画像データを生成するとともに、前記有効画素領域及び前記基準画素領域のうち、シェーディングが発生していない領域から出力された信号に基づいて遮光時基準信号レベルを算出する、ダーク画像生成手段と、
前記遮光時基準信号レベルと前記露光時基準信号レベルとの信号レベル差を算出し、前記信号レベル差に基づいて前記撮影画像データの信号レベルを補正する、基準信号補正手段と、
前記信号レベルの補正後の撮影画像データを前記遮光時基準信号レベルを用いて補正する撮影画像補正手段と、
を備える、
撮影装置。
An imaging device having an effective pixel region comprising a plurality of effective pixels for outputting a signal corresponding to the light flux from the object, and a reference pixel region composed of a plurality of reference pixels is shielded against the light flux,
When the effective pixel exposure condition being exposed to the light beam, generates the photographed image data on the basis of a signal output from the effective pixel area, among the reference pixel region, shading occurs A captured image generating means for calculating the exposure reference signal level based on the signal output from the area ;
When the light shielding state in which the effective pixel is blinded to the light beam, generates the dark image data based on the signal output from the effective pixel area, among the effective pixel region and the reference pixel region A dark image generating means for calculating a light-shielding reference signal level based on a signal output from a region where shading has not occurred ,
Reference signal correction means for calculating a signal level difference between the light-shielding reference signal level and the exposure reference signal level, and correcting the signal level of the photographed image data based on the signal level difference,
A photographic image correction means for correcting the photographic image data after the signal level correction by using the light-shielding reference signal level;
With
Imaging device.
前記撮影画像補正手段は、前記信号レベルの補正後の撮影画像データから前記ダーク画像データを所定の割合で減算することにより、前記撮影画像データを補正する、
請求項1に記載の撮影装置。
The photographed image correction means corrects the photographed image data by subtracting the dark image data from the photographed image data after correction of the signal level at a predetermined ratio.
The image capturing apparatus according to claim 1.
前記ダーク画像生成手段は、前記有効画素領域から出力された信号の平均値、中央値、最頻値の何れかを算出することにより、前記遮光時基準信号レベルを決定する、
請求項1又は請求項2に記載の撮影装置。
The dark image generating means determines the light-shielding reference signal level by calculating one of an average value, a median value, and a mode value of the signals output from the effective pixel area,
The image capturing apparatus according to claim 1 .
前記基準信号補正手段は、
前記複数の有効画素が前記遮光状態のときに、前記有効画素領域から出力された信号を用いて前記有効画素領域内の遮光時基準信号レベルの分布を表す近似曲線を算出し、
前記近似曲線を用いて前記信号レベル差を算出する、
請求項1から請求項3の何れか一項に記載の撮影装置。
The reference signal correction means,
When the plurality of effective pixels of the light shielding state, and calculates an approximate curve representing the distribution of the light blocking during the reference signal level of the effective pixel region by using the signal outputted from the effective pixel region,
Calculating the signal level difference using the approximation curve,
The image capturing apparatus according to claim 1 .
前記基準信号補正手段は、
前記複数の有効画素が前記遮光状態のときに、前記有効画素領域及び前記基準画素領域から出力された信号を用いて、前記有効画素領域内及び前記基準画素領域内の信号レベルの分布を表す近似曲線を算出し、
前記近似曲線を用いて前記信号レベル差を算出する、
請求項1から請求項3の何れか一項に記載の撮影装置。
The reference signal correction means,
When the plurality of effective pixels of the light shielding state, the effective pixel area and using the signal output from the reference pixel region, approximation representing the distribution of the signal level of the effective pixel region and the reference pixel region Calculate the curve,
Calculating the signal level difference using the approximation curve,
The image capturing apparatus according to claim 1 .
前記ダーク画像生成手段は、前記基準信号補正手段によって算出された近似曲線を用いて、前記遮光時基準信号レベルを算出する、
請求項又は請求項に記載の撮影装置。
The dark image generating means calculates the light-shielding reference signal level by using the approximate curve calculated by the reference signal correcting means,
The imaging device according to claim 4 or claim 5 .
前記撮影画像生成手段は、前記基準画素領域から出力された信号の平均値、中央値、最頻値の何れかを算出することにより、前記露光時基準信号レベルを決定する、
請求項から請求項の何れか一項記載の撮影装置。
The photographed image generating means determines the exposure reference signal level by calculating one of an average value, a median value, and a mode value of the signals output from the reference pixel area.
Imaging device according to any one of claims 1 to 6.
前記ダーク画像生成手段は、前記有効画素が前記露光状態のときの撮影条件に基づいて、前記有効画素領域のうち、前記遮光時基準信号レベルの算出に使用する信号を出力する領域を変更する、
請求項1から請求項の何れか一項に記載の撮影装置。
The dark image generating means changes an area for outputting a signal used for calculating the light-shielding reference signal level in the effective pixel area, based on a photographing condition when the effective pixel is in the exposure state,
Imaging device according to any one of claims 1 to 7.
前記ダーク画像データを記憶するダーク画像記憶手段を更に備え、
前記撮影画像補正手段は、予め前記ダーク画像記憶手段に記憶された前記ダーク画像データを用いて前記撮影画像データを補正する、
請求項1から請求項の何れか一項に記載の撮影装置。
Further comprising dark image storage means for storing the dark image data,
The captured image correction means corrects the captured image data using the dark image data stored in advance in the dark image storage means,
Imaging device according to any one of claims 1 to 8.
被写体からの光束に応じた信号を出力する複数の有効画素からなる有効画素領域と、前記光束に対して遮光された複数の基準画素からなる基準画素領域とを有する撮像素子を備える撮影装置において実行される撮影方法であって、
前記有効画素が前記光束に対して露光されている露光状態のときに、前記有効画素領域から出力された信号に基づいて撮影画像データを生成するとともに前記基準画素領域のうち、シェーディングが発生する領域から出力された信号に基づいて露光時基準信号レベルを算出するステップと、
前記有効画素が前記光束に対して露光されていない遮光状態のときに、前記有効画素領域から出力された信号に基づいてダーク画像データを生成するとともに、前記有効画素領域及び前記基準画素領域のうち、シェーディングが発生していない領域から出力された信号に基づいて遮光時基準信号レベルを算出するステップと
前記遮光時基準信号レベルと前記露光時基準信号レベルとの信号レベル差を算出し、前記信号レベル差に基づいて前記撮影画像データの信号レベルを補正するステップと、
前記信号レベルの補正後の撮影画像データを前記遮光時基準信号レベルを用いて補正するステップと、
を含む、
撮影方法。
Run in the imaging apparatus including an imaging device having an effective pixel region comprising a plurality of effective pixels and the reference pixel region composed of a plurality of reference pixels is shielded against the light flux for outputting a signal corresponding to the light flux from the object The shooting method is
When the effective pixel exposure condition being exposed to the light beam, generates the photographed image data on the basis of a signal output from the effective pixel area, among the reference pixel region, shading occurs Calculating a reference signal level during exposure based on the signal output from the area ,
When the light shielding state in which the effective pixel is not exposed to the light beam, generates the dark image data based on the signal output from the effective pixel area, among the effective pixel region and the reference pixel region A step of calculating a light-shielding reference signal level based on a signal output from a region where shading has not occurred ,
Calculating a signal level difference between the light-shielding reference signal level and the exposure reference signal level, and correcting the signal level of the captured image data based on the signal level difference,
Correcting the captured image data after the correction of the signal level using the light-shielding reference signal level ,
including,
How to shoot.
JP2016043985A 2016-03-08 2016-03-08 Imaging device and imaging method Active JP6704611B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016043985A JP6704611B2 (en) 2016-03-08 2016-03-08 Imaging device and imaging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016043985A JP6704611B2 (en) 2016-03-08 2016-03-08 Imaging device and imaging method

Publications (2)

Publication Number Publication Date
JP2017163233A JP2017163233A (en) 2017-09-14
JP6704611B2 true JP6704611B2 (en) 2020-06-03

Family

ID=59857250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016043985A Active JP6704611B2 (en) 2016-03-08 2016-03-08 Imaging device and imaging method

Country Status (1)

Country Link
JP (1) JP6704611B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7313800B2 (en) 2018-05-11 2023-07-25 キヤノン株式会社 Radiation imaging apparatus, control device and control method for radiation imaging apparatus, and program

Also Published As

Publication number Publication date
JP2017163233A (en) 2017-09-14

Similar Documents

Publication Publication Date Title
US8508619B2 (en) High dynamic range image generating apparatus and method
JP6116301B2 (en) Imaging apparatus and control method thereof
US9838625B2 (en) Image processing apparatus and control method for image processing apparatus for controlling correction of a black level in a combined image signal
US11838649B2 (en) Image capturing device and control method thereof and medium
JP6312487B2 (en) Image processing apparatus, control method therefor, and program
US10623674B2 (en) Image processing device, image processing method and computer readable recording medium
US9654668B2 (en) Image composition apparatus and image composition method
CN102572273A (en) Imaging device
US20170318208A1 (en) Imaging device, imaging method, and image display device
US9892497B2 (en) Image processing apparatus, imaging apparatus, and image processing method
US20090052801A1 (en) Image processing apparatus, camera, image processing program product and image processing method
US9191573B2 (en) Image capturing apparatus for determining an exposure condition by calculating aphotmetric value for each object region and method of controlling the same
US20100245590A1 (en) Camera sensor system self-calibration
US20090015691A1 (en) Image pickup apparatus and method for controlling the same
JP6704611B2 (en) Imaging device and imaging method
JP7134786B2 (en) Imaging device and control method
US12086959B2 (en) Image processing apparatus capable of ensuring wide dynamic range while reducing strangeness generated due to moving body, method of controlling same, and image capturing apparatus
US10425602B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP6149615B2 (en) Imaging device
US8121473B2 (en) Imaging apparatus
JP2017143585A (en) Imaging device
US9549131B2 (en) Imaging apparatus and imaging method using independently corrected color values
JP2018147417A (en) Image processor, image processing method, and program
JP3938097B2 (en) Correction apparatus, imaging apparatus, correction method, computer-readable storage medium, and program
JP6242156B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170718

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191111

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200107

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200426

R150 Certificate of patent or registration of utility model

Ref document number: 6704611

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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