JP2018160740A - Signal processing circuit, imaging device, and signal processing method - Google Patents

Signal processing circuit, imaging device, and signal processing method Download PDF

Info

Publication number
JP2018160740A
JP2018160740A JP2017055840A JP2017055840A JP2018160740A JP 2018160740 A JP2018160740 A JP 2018160740A JP 2017055840 A JP2017055840 A JP 2017055840A JP 2017055840 A JP2017055840 A JP 2017055840A JP 2018160740 A JP2018160740 A JP 2018160740A
Authority
JP
Japan
Prior art keywords
data
black level
line
signal
line data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017055840A
Other languages
Japanese (ja)
Other versions
JP6887840B2 (en
Inventor
雄一 平井
Yuichi Hirai
雄一 平井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2017055840A priority Critical patent/JP6887840B2/en
Publication of JP2018160740A publication Critical patent/JP2018160740A/en
Application granted granted Critical
Publication of JP6887840B2 publication Critical patent/JP6887840B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a signal processing circuit capable of suppressing occurrence of horizontal stripes.SOLUTION: A signal processing circuit inputs frame data including first line data having a plurality of pieces of first optical black pixel data and a plurality of pieces of first effective pixel data and second line data having a plurality of pieces of second optical black pixel data and a plurality of pieces of second effective pixel data includes first black level estimating means (201 to 203) that estimate a black level of the first line data based on the plurality of pieces of first optical black pixel data of the first line data and second black level estimating means (205 and 206) that estimate the black level of the second line data based on the plurality of pieces of second optical black pixel data of the second line data and the black level of the first line data estimated by the first black level estimating means.SELECTED DRAWING: Figure 11

Description

本発明は、信号処理回路、撮像装置及び信号処理方法に関する。   The present invention relates to a signal processing circuit, an imaging device, and a signal processing method.

各画素にマイクロレンズが形成されたイメージセンサを用いて、瞳分割方式の焦点検出を行う撮像装置が知られている。特許文献1には、瞳分割方式位相差検出が可能な撮像装置が開示されている。特許文献1では、撮像素子の1つの画素は2つのフォトダイオード(以下、分割画素という)を有しており、各フォトダイオードは1つのマイクロレンズによって撮影レンズの異なる瞳を通過した光を受光する。このような分割画素を持つ撮像素子において、2つのフォトダイオードからの出力信号の波形を比較することで、撮像面位相差AF(オートフォーカス)が可能となる。また、2つのフォトダイオードからの出力信号を加算することで、通常の撮影画像を得ることができる。   2. Description of the Related Art An imaging device that performs pupil division type focus detection using an image sensor in which a microlens is formed in each pixel is known. Patent Document 1 discloses an imaging apparatus capable of detecting a pupil division type phase difference. In Patent Document 1, one pixel of an image sensor has two photodiodes (hereinafter referred to as divided pixels), and each photodiode receives light that has passed through a different pupil of a photographing lens by one microlens. . In an imaging device having such divided pixels, imaging surface phase difference AF (autofocus) can be performed by comparing the waveforms of output signals from two photodiodes. Moreover, a normal captured image can be obtained by adding the output signals from the two photodiodes.

特開2001−83407号公報JP 2001-83407 A

記録用通常撮影画像取得のために、全画素(2つのフォトダイオード出力信号の加算状態)読み出しが行われる。これに対して、任意のライン分を撮像面位相差AFのための分割画素読み出しを実施するように制御して、撮像面位相差AF兼記録画像取得走査を行う撮像制御は、例えば動画撮影やミラーレスカメラによる静止画撮影時の合焦動作に有効である。2つのフォトダイオード出力信号を加算した状態で読み出した通常撮影画素取得ライン(以下、通常行という)と、合焦用に分割画素単位での信号読み出しを含むライン(以下、AF行という)とがある。通常行とAF行とで、画素回路部の暗電流や信号読み出しタイミングの相違によるオフセット段差が発生する。オフセット段差は、横縞の原因となり画質低下を招く。また、オフセット段差は、温度特性を持つので、リアルタイム検出・補正を必要とする。撮像装置においては、イメージセンサ読み出し信号をデジタル化し、信号処理、画像処理して記録する際に、記録データの処理フローとしては途中で分割画素データを取り除いた状態でフレームデータ処理を行うが、オフセット段差を含む場合がある。その場合には、フレームデータ処理中において、オフセット段差補正が必要となる。   All pixels (addition state of two photodiode output signals) are read in order to obtain a normal captured image for recording. On the other hand, the imaging control for performing imaging pixel phase difference AF and recording image acquisition scanning by controlling division line readout for an arbitrary line for imaging surface phase difference AF is, for example, moving image shooting or This is effective for focusing when shooting a still image with a mirrorless camera. A normal photographing pixel acquisition line (hereinafter referred to as a normal row) read out in a state where two photodiode output signals are added, and a line including a signal readout in divided pixel units for focusing (hereinafter referred to as an AF row). is there. An offset step due to a difference in dark current and signal readout timing of the pixel circuit portion occurs between the normal row and the AF row. The offset step causes horizontal stripes and causes image quality degradation. Moreover, since the offset step has temperature characteristics, real-time detection and correction are required. In the imaging device, when the image sensor readout signal is digitized, signal processing, image processing, and recording, the recording data processing flow performs frame data processing with the divided pixel data removed in the middle, but offset There may be steps. In that case, offset step correction is required during the frame data processing.

本発明の目的は、横縞の発生を抑制することができる信号処理回路、撮像装置及び信号処理方法を提供することである。   The objective of this invention is providing the signal processing circuit, imaging device, and signal processing method which can suppress generation | occurrence | production of a horizontal stripe.

本発明の信号処理回路は、複数の第1の光学的黒画素データ及び複数の第1の有効画素データを含む第1のラインデータと、複数の第2の光学的黒画素データ及び複数の第2の有効画素データを含む第2のラインデータとを有するフレームデータを入力する信号処理回路であって、前記第1のラインデータの複数の第1の光学的黒画素データを基に、前記第1のラインデータの黒レベルを推定する第1の黒レベル推定手段と、前記第2のラインデータの複数の第2の光学的黒画素データと前記第1の黒レベル推定手段により推定された前記第1のラインデータの黒レベルとを基に、前記第2のラインデータの黒レベルを推定する第2の黒レベル推定手段とを有する。   The signal processing circuit according to the present invention includes first line data including a plurality of first optical black pixel data and a plurality of first effective pixel data, a plurality of second optical black pixel data, and a plurality of first optical pixel data. A signal processing circuit for inputting frame data having second line data including two effective pixel data, wherein the first line data is based on a plurality of first optical black pixel data of the first line data. The first black level estimating means for estimating the black level of one line data; the plurality of second optical black pixel data of the second line data; and the first black level estimating means estimated by the first black level estimating means. Second black level estimating means for estimating the black level of the second line data based on the black level of the first line data.

本発明によれば、横縞の発生を抑制することができる。   According to the present invention, generation of horizontal stripes can be suppressed.

撮像装置の構成例を示す図である。It is a figure which shows the structural example of an imaging device. 撮像素子の構成例を示す図である。It is a figure which shows the structural example of an image pick-up element. 撮像素子の画素アレイの構成例を示す平面図及び断面図である。It is the top view and sectional drawing which show the structural example of the pixel array of an image pick-up element. 撮像装置の1フレームの読み出しを示すタイミングチャートである。It is a timing chart which shows reading of one frame of an imaging device. 撮像装置の駆動方法を示すタイミングチャートである。6 is a timing chart illustrating a method for driving the imaging apparatus. 撮像装置の異なる駆動方法を示すタイミングチャートである。It is a timing chart which shows the drive method from which an imaging device differs. 撮像装置の駆動方法を示すタイミングチャートである。6 is a timing chart illustrating a method for driving the imaging apparatus. 撮像素子のフレーム読み出しデータ状態を示す図である。It is a figure which shows the frame read-out data state of an image pick-up element. クランプ処理回路の処理のフレーム状態を示す図である。It is a figure which shows the frame state of a process of a clamp process circuit. 検出領域の抽出黒レベルを示す図である。It is a figure which shows the extraction black level of a detection area. クランプ処理回路の構成例を示す図である。It is a figure which shows the structural example of a clamp process circuit. 代表黒レベル及び温度補償係数のテーブルを示す図である。It is a figure which shows the table of a representative black level and a temperature compensation coefficient. CPUの温度補償処理のフローチャートである。It is a flowchart of the temperature compensation process of CPU. フィルタ回路の構成例を示す図である。It is a figure which shows the structural example of a filter circuit. フィルタ回路の処理を示すタイミングチャートである。It is a timing chart which shows the process of a filter circuit. 平均化手段の構成例を示す図である。It is a figure which shows the structural example of an averaging means. 平均化手段の処理を示すタイミングチャートである。It is a timing chart which shows the process of an averaging means. クランプ処理回路の処理を示すタイミングチャートである。It is a timing chart which shows the process of a clamp process circuit. クランプ処理回路の他の構成例を示す図である。It is a figure which shows the other structural example of a clamp process circuit.

図1は、本発明の実施形態による撮像装置1の構成例を示す図である。撮像装置1は、デジタルカメラ、ビデオカメラの他、スマートフォン、タブレット、工業用カメラ、医療用カメラ等に適用可能である。撮像装置1は、CPU100と、SSG101と、光学系102と、撮像素子103と、信号処理回路104と、画像処理回路105と、ROM106とを有する。さらに、撮像装置1は、符号化処理手段107と、記録処理手段108と、記録メディア109と、表示処理手段110と、表示デバイス111と、TG112と、デフォーカス量計算手段113とを有する。光学系102は、フォーカスレンズ及びズームレンズを有し、光学像を撮像素子103上に結像させる。撮像素子103は、光電変換により画像信号を生成し、画像信号をアナログからデジタルに変換し、デジタルの画像信号を出力する。   FIG. 1 is a diagram illustrating a configuration example of an imaging apparatus 1 according to an embodiment of the present invention. The imaging device 1 can be applied to a smartphone, a tablet, an industrial camera, a medical camera, and the like in addition to a digital camera and a video camera. The imaging apparatus 1 includes a CPU 100, an SSG 101, an optical system 102, an imaging element 103, a signal processing circuit 104, an image processing circuit 105, and a ROM 106. The imaging apparatus 1 further includes an encoding processing unit 107, a recording processing unit 108, a recording medium 109, a display processing unit 110, a display device 111, a TG 112, and a defocus amount calculation unit 113. The optical system 102 includes a focus lens and a zoom lens, and forms an optical image on the image sensor 103. The image sensor 103 generates an image signal by photoelectric conversion, converts the image signal from analog to digital, and outputs a digital image signal.

信号処理回路104は、撮像素子103から出力される画像信号の補正と、合焦制御用の評価値の取得を行う。信号処理回路104は、像データ分離部1040と、クランプ処理手段1041と、シェーディング補正手段1042と、傷補正手段1043と、レベル整合手段1044と、シェーディング補正手段1045と、相関演算手段1046とを有する。像データ分離部1040は、視差画像としての分割画素信号を撮像面位相差AF用の信号処理パスのレベ整合手段1044に出力し、全画素信号を記録系の信号処理パスのクランプ処理手段1041に出力する。記録系の信号処理パスは、黒レベルを再現するクランプ処理手段(クランプ処理回路)1041と、シェーディングを補正するシェーディング補正手段1042と、撮像素子103の画素欠陥を補正する傷補正手段1043を含む。AF用の信号処理パスは、左右(上下でも良いが、図3の撮像素子103の構成では左右を扱う)の視差画像を入力し、レベル整合手段1044と、シェーディング補正手段1045と、相関演算手段1046とを含む。レベル整合手段1044は、この視差画像対の黒レベルを整合する手段であり、左右(または上下)毎のクランプ処理を実施し、ペデスタルレベルの共通化を図る手段である。シェーディング補正手段1045は、視差画像対の夫々のシェーディング補正を行う。相関演算手段1046は、任意の測距枠中の視差画像の夫々の相関関係を評価する。相関演算手段1046は、視差画像の領域の夫々をずらしながら、測距枠中の相関演算を行う。また、相関演算手段1046は、1画素以下の分解能に対する相関値の推定(サブピクセル推定)の処理も行う。デフォーカス量計算手段113は、画素間の相関値を、レンズ繰り出し量の情報へ変換し、光学系102へフィードバックする。デフォーカス量計算手段113は、相関演算結果のレンズ繰り出し量への変換係数として、事前の工程で取得した調整値を保持しておく。光学系102は、レンズ繰り出し量に応じて、フォーカスレンズを駆動し、オートフォーカスを実現する。   The signal processing circuit 104 corrects the image signal output from the image sensor 103 and acquires an evaluation value for focusing control. The signal processing circuit 104 includes an image data separation unit 1040, a clamp processing unit 1041, a shading correction unit 1042, a flaw correction unit 1043, a level matching unit 1044, a shading correction unit 1045, and a correlation calculation unit 1046. . The image data separation unit 1040 outputs the divided pixel signal as the parallax image to the level matching unit 1044 of the signal processing path for the imaging plane phase difference AF, and all the pixel signals to the clamp processing unit 1041 of the signal processing path of the recording system. Output. The signal processing path of the recording system includes a clamp processing unit (clamp processing circuit) 1041 that reproduces a black level, a shading correction unit 1042 that corrects shading, and a flaw correction unit 1043 that corrects pixel defects of the image sensor 103. The signal processing path for AF inputs left and right (upper and lower, but handles left and right in the configuration of the image sensor 103 in FIG. 3), and inputs level matching means 1044, shading correction means 1045, and correlation calculation means. 1046. The level matching unit 1044 is a unit that matches the black level of the parallax image pair, and is a unit that performs clamp processing for each of the left and right (or top and bottom) to make the pedestal level common. The shading correction unit 1045 performs each shading correction of the parallax image pair. The correlation calculation unit 1046 evaluates the correlation between the parallax images in any distance measurement frame. The correlation calculation unit 1046 performs correlation calculation in the distance measurement frame while shifting each of the parallax image areas. In addition, the correlation calculation unit 1046 also performs correlation value estimation (subpixel estimation) processing for a resolution of one pixel or less. The defocus amount calculation means 113 converts the correlation value between the pixels into lens extension amount information and feeds it back to the optical system 102. The defocus amount calculation unit 113 holds the adjustment value acquired in the previous step as a conversion coefficient for converting the correlation calculation result into the lens extension amount. The optical system 102 drives the focus lens in accordance with the lens extension amount to realize autofocus.

画像処理回路105は、ノイズリダクション(NR)1050と、光学回復処理手段1051と、現像処理手段1052とを有する。ノイズリダクション(NR)1050は、傷補正手段1043により補正された画像信号に対して、ノイズ抑制処理を行う。本実施形態のノイズリダクション(NR)の位置は一例であり、信号処理の一環として事前に実施しても良いし、現像後の色データに対して実施しても良い。光学回復処理手段1051は、回折による画質低下を回復する。現像処理手段1052は、色データの処理(同時化、偽色処理、ガンマ補正等)を行う。   The image processing circuit 105 includes a noise reduction (NR) 1050, an optical recovery processing unit 1051, and a development processing unit 1052. The noise reduction (NR) 1050 performs noise suppression processing on the image signal corrected by the scratch correction unit 1043. The position of noise reduction (NR) in the present embodiment is an example, and may be performed in advance as part of signal processing or may be performed on color data after development. The optical recovery processing unit 1051 recovers the deterioration in image quality due to diffraction. The development processing unit 1052 performs color data processing (synchronization, false color processing, gamma correction, etc.).

符号化処理手段107は、現像処理手段1052が出力する画像信号を記録用に圧縮する。記録処理手段108は、圧縮された画像信号を記録メディア109に記録する。記録メディア109は、メモリカード等である。表示処理手段110は、現像処理手段1052が出力する画像信号を基に表示用の画像を生成して表示デバイス111に転送する。表示デバイス111は、液晶ディスプレイ(LCD)等であり、画像を表示する。   The encoding processing unit 107 compresses the image signal output from the development processing unit 1052 for recording. The recording processing unit 108 records the compressed image signal on the recording medium 109. The recording medium 109 is a memory card or the like. The display processing unit 110 generates a display image based on the image signal output from the development processing unit 1052 and transfers the image to the display device 111. The display device 111 is a liquid crystal display (LCD) or the like, and displays an image.

ROM106は、プログラムを記憶する。CPU100は、ROM106に記憶されているプログラムを実行することにより、撮像装置1の全体の処理を制御する。SSG(Synchronous Signal Generator)101は、同期信号生成手段であり、撮像タイミングを制御する。また、SSG101は、信号処理回路104にフレーム制御タイミングを出力し、TG112にフレーム同期信号を出力する。TG(Timing Generator)112は、タイミングジェネレータであり、撮像素子103の駆動タイミングを制御する。該SSG101、TG112は、撮像素子103の転送データをオンフライで信号処理回路104が処理するための一例である。   The ROM 106 stores a program. The CPU 100 controls the overall processing of the imaging apparatus 1 by executing a program stored in the ROM 106. An SSG (Synchronous Signal Generator) 101 is a synchronization signal generation unit that controls imaging timing. The SSG 101 outputs frame control timing to the signal processing circuit 104 and outputs a frame synchronization signal to the TG 112. A TG (Timing Generator) 112 is a timing generator and controls the drive timing of the image sensor 103. The SSG 101 and TG 112 are an example for the signal processing circuit 104 to process the transfer data of the image sensor 103 on the fly.

図2は、図1の撮像素子103の構成例を示す図である。撮像素子103は、単位画素10、垂直走査回路12、水平走査回路14、列読み出し回路16、メモリ18、ランプ信号発生器20、カウンタ22を有する。複数の単位画素10は、行方向及び列方向に沿って2次元行列状に配列され、撮像領域である画素アレイを構成する。図2には図面の簡略化のために2行2列の単位画素10のみを示しているが、行方向及び列方向に配置される単位画素10の数は特に限定されるものではない。なお、本明細書では、行方向とは図面において横方向を示し、列方向とは図面において縦方向を示すものとする。また、本実施形態では、行方向が撮像装置1における水平方向に対応し、列方向が撮像装置1における垂直方向に対応する。   FIG. 2 is a diagram illustrating a configuration example of the image sensor 103 of FIG. The image sensor 103 includes a unit pixel 10, a vertical scanning circuit 12, a horizontal scanning circuit 14, a column readout circuit 16, a memory 18, a ramp signal generator 20, and a counter 22. The plurality of unit pixels 10 are arranged in a two-dimensional matrix along the row direction and the column direction, and constitute a pixel array that is an imaging region. In FIG. 2, only the unit pixels 10 in 2 rows and 2 columns are shown for simplification of the drawing, but the number of unit pixels 10 arranged in the row direction and the column direction is not particularly limited. In the present specification, the row direction indicates the horizontal direction in the drawing, and the column direction indicates the vertical direction in the drawing. In the present embodiment, the row direction corresponds to the horizontal direction in the imaging apparatus 1, and the column direction corresponds to the vertical direction in the imaging apparatus 1.

複数の単位画素10の各々は、各々が光を電荷に変換する複数の光電変換素子24A及び24Bを有する瞳分割型の焦点検出用画素である。複数の単位画素10の各々は、受光部24、転送MOSトランジスタ26A、26B、リセットMOSトランジスタ28、増幅MOSトランジスタ30、選択MOSトランジスタ32を有する。図2では、図面の簡略化のため、1つの単位画素10についてのみ具体的な回路構成の一例を示している。受光部24は、複数の光電変換素子24A及び24Bを有する。光電変換素子24A、24Bは、例えば、フォトダイオードであり、光を電荷に変換する光電変換ユニットである。光電変換素子24Aは、アノードが接地電圧線に接続され、カソードが転送MOSトランジスタ26Aのソースに接続されている。光電変換素子24Bは、アノードが接地電圧線に接続され、カソードが転送MOSトランジスタ26Bのソースに接続されている。転送MOSトランジスタ26A及び26Bのドレインは、リセットMOSトランジスタ28のソース及び増幅MOSトランジスタ30のゲートに接続されている。転送MOSトランジスタ26A及び26Bのドレイン、リセットMOSトランジスタ28のソース及び増幅MOSトランジスタ30のゲートの接続ノードは、フローティングディフュージョン領域(Floating Diffusion。以下、FD領域という)34を構成する。   Each of the plurality of unit pixels 10 is a pupil division type focus detection pixel having a plurality of photoelectric conversion elements 24A and 24B each converting light into electric charge. Each of the plurality of unit pixels 10 includes a light receiving unit 24, transfer MOS transistors 26A and 26B, a reset MOS transistor 28, an amplification MOS transistor 30, and a selection MOS transistor 32. FIG. 2 shows an example of a specific circuit configuration for only one unit pixel 10 for simplification of the drawing. The light receiving unit 24 includes a plurality of photoelectric conversion elements 24A and 24B. The photoelectric conversion elements 24A and 24B are, for example, photodiodes, and are photoelectric conversion units that convert light into electric charges. The photoelectric conversion element 24A has an anode connected to the ground voltage line and a cathode connected to the source of the transfer MOS transistor 26A. The photoelectric conversion element 24B has an anode connected to the ground voltage line and a cathode connected to the source of the transfer MOS transistor 26B. The drains of the transfer MOS transistors 26 A and 26 B are connected to the source of the reset MOS transistor 28 and the gate of the amplification MOS transistor 30. The connection nodes of the drains of the transfer MOS transistors 26A and 26B, the source of the reset MOS transistor 28, and the gate of the amplification MOS transistor 30 constitute a floating diffusion region (hereinafter referred to as FD region) 34.

リセットMOSトランジスタ28及び増幅MOSトランジスタ30のドレインは、電源電圧線に接続されている。増幅MOSトランジスタ30のソースは、選択MOSトランジスタ32のドレインに接続されている。転送MOSトランジスタ26A及び26B、リセットMOSトランジスタ28、増幅MOSトランジスタ30、選択MOSトランジスタ32は、光電変換素子24A及び24Bで生成された電荷に基づく画素信号を読み出すための画素内読み出し回路を構成する。なお、トランジスタのソースとドレインの呼称は、トランジスタの導電型や着目する機能等に応じて異なることがあり、上述のソースとドレインとは逆の名称で呼ばれることもある。   The drains of the reset MOS transistor 28 and the amplification MOS transistor 30 are connected to the power supply voltage line. The source of the amplification MOS transistor 30 is connected to the drain of the selection MOS transistor 32. The transfer MOS transistors 26A and 26B, the reset MOS transistor 28, the amplification MOS transistor 30, and the selection MOS transistor 32 constitute an in-pixel readout circuit for reading out pixel signals based on the charges generated by the photoelectric conversion elements 24A and 24B. Note that the names of the source and the drain of the transistor may differ depending on the conductivity type of the transistor, the function of interest, and the like, and the above-described source and drain may be referred to as opposite names.

図3(a)及び(b)は、撮像素子103の画素アレイの構成例を示す平面図及び断面図である。図3(a)は画素アレイの上面図であり、図3(b)は図3(a)のA−A’線に沿った断面図である。図2に示す画素アレイは、特に限定されるものではないが、例えば図3(a)に示す平面レイアウトによって実現することができる。図3(a)において点線で囲まれた単位領域が単位画素10である。各単位画素10上には、1個のマイクロレンズ38がそれぞれ配置されている。光電変換素子24A、24Bとマイクロレンズ38との間には、図3(b)に示すように、カラーフィルタ36が配置されている。   FIGS. 3A and 3B are a plan view and a cross-sectional view illustrating a configuration example of a pixel array of the image sensor 103. FIG. 3A is a top view of the pixel array, and FIG. 3B is a cross-sectional view taken along the line A-A ′ of FIG. The pixel array shown in FIG. 2 is not particularly limited, but can be realized by, for example, the planar layout shown in FIG. A unit area surrounded by a dotted line in FIG. One microlens 38 is arranged on each unit pixel 10. As shown in FIG. 3B, a color filter 36 is disposed between the photoelectric conversion elements 24A, 24B and the microlens 38.

本明細書において、1つの単位画素10が有する複数の光電変換素子24A、24Bを一括して示す際は、受光部24と表記するものとする。1つのマイクロレンズ38は、1つの受光部24上に配置され、光束を受光部24に集光する。つまり、1つのマイクロレンズ38は1つの受光部24に対応して設けられている。1つのマイクロレンズ38によって集光された入射光は、そのマイクロレンズ38に対応して設けられた単位画素10の受光部24を構成する光電変換素子24A、24Bに入射する。光電変換素子24A、24Bは、一対の瞳分割方式の焦点検出画素を構成する。   In this specification, when the plurality of photoelectric conversion elements 24 </ b> A and 24 </ b> B included in one unit pixel 10 are collectively shown, the light receiving unit 24 is used. One micro lens 38 is disposed on one light receiving unit 24 and condenses the light beam on the light receiving unit 24. That is, one microlens 38 is provided corresponding to one light receiving unit 24. Incident light collected by one microlens 38 enters the photoelectric conversion elements 24A and 24B constituting the light receiving unit 24 of the unit pixel 10 provided corresponding to the microlens 38. The photoelectric conversion elements 24A and 24B constitute a pair of pupil division type focus detection pixels.

図2において、単位画素10の各行には、行方向に延在して、信号線TXA、信号線TXB、信号線RES、信号線SELが、それぞれ配置されている。信号線TXAは、行方向に並ぶ単位画素10の転送MOSトランジスタ26Aのゲートにそれぞれ接続され、これら単位画素10に共通の信号線をなしている。信号線TXBは、行方向に並ぶ単位画素10の転送MOSトランジスタ26Bのゲートにそれぞれ接続され、これら単位画素10に共通の信号線をなしている。信号線RESは、行方向に並ぶ単位画素10のリセットMOSトランジスタ28のゲートにそれぞれ接続され、これら単位画素10に共通の信号線をなしている。信号線SELは、行方向に並ぶ単位画素10の選択MOSトランジスタ32のゲートにそれぞれ接続され、これら単位画素10に共通の信号線をなしている。図2では、図面の簡略化のため、1つの単位画素10に接続される信号線TXA、TXB、RES、SELのみを示している。   In FIG. 2, a signal line TXA, a signal line TXB, a signal line RES, and a signal line SEL are arranged in each row of the unit pixels 10 so as to extend in the row direction. The signal line TXA is connected to the gates of the transfer MOS transistors 26A of the unit pixels 10 arranged in the row direction, and forms a signal line common to the unit pixels 10. The signal lines TXB are respectively connected to the gates of the transfer MOS transistors 26B of the unit pixels 10 arranged in the row direction, and form a common signal line for these unit pixels 10. The signal lines RES are respectively connected to the gates of the reset MOS transistors 28 of the unit pixels 10 arranged in the row direction, and form a common signal line for these unit pixels 10. The signal lines SEL are respectively connected to the gates of the selection MOS transistors 32 of the unit pixels 10 arranged in the row direction, and form a signal line common to the unit pixels 10. In FIG. 2, only signal lines TXA, TXB, RES, and SEL connected to one unit pixel 10 are shown for simplification of the drawing.

垂直走査回路12は、TG110からの所定のタイミング信号に基づき、単位画素10を行ごとに選択して、単位画素10から画素信号を出力させるためのものである。信号線TXA、信号線TXB、信号線RES、信号線SELは、垂直走査回路12に接続されている。信号線TXAには、垂直走査回路12から、転送MOSトランジスタ26Aを駆動するための転送パルス信号PTXAが出力される。信号線TXBには、垂直走査回路12から、転送MOSトランジスタ26Bを駆動するための転送パルス信号PTXBが出力される。信号線RESには、垂直走査回路12から、リセットMOSトランジスタ28を駆動するためのリセットパルス信号PRESが出力される。信号線SELには、垂直走査回路12から、選択MOSトランジスタ32を駆動するための選択パルス信号PSELが出力される。ここでは、これら信号線にハイレベルの信号が印加されると、対応するトランジスタが導通状態(オン状態)になるものとする。また、ローレベルの信号が印加されると、対応するトランジスタが非導通状態(オフ状態)になるものとする。   The vertical scanning circuit 12 is for selecting a unit pixel 10 for each row based on a predetermined timing signal from the TG 110 and outputting a pixel signal from the unit pixel 10. The signal line TXA, signal line TXB, signal line RES, and signal line SEL are connected to the vertical scanning circuit 12. A transfer pulse signal PTXA for driving the transfer MOS transistor 26A is output from the vertical scanning circuit 12 to the signal line TXA. A transfer pulse signal PTXB for driving the transfer MOS transistor 26B is output from the vertical scanning circuit 12 to the signal line TXB. A reset pulse signal PRES for driving the reset MOS transistor 28 is output from the vertical scanning circuit 12 to the signal line RES. A selection pulse signal PSEL for driving the selection MOS transistor 32 is output from the vertical scanning circuit 12 to the signal line SEL. Here, when a high-level signal is applied to these signal lines, the corresponding transistor is assumed to be in a conductive state (on state). In addition, when a low-level signal is applied, the corresponding transistor is turned off (off state).

単位画素10の各列には、列方向に延在して、列信号線40がそれぞれ配置されている。列信号線40は、列方向に並ぶ単位画素10のそれぞれの選択MOSトランジスタ32のソースに接続され、これら単位画素10に共通の信号線をなしている。各列の列信号線40には、列読み出し回路16と電流源42とが、それぞれ接続されている。列読み出し回路16は、単位画素10から読み出された信号を処理するためのものである。列読み出し回路16は、図2に示すように、増幅器44と、アナログデジタル変換部52とを有している。   In each column of the unit pixels 10, column signal lines 40 are arranged extending in the column direction. The column signal line 40 is connected to the source of each selection MOS transistor 32 of the unit pixels 10 arranged in the column direction, and forms a signal line common to the unit pixels 10. A column readout circuit 16 and a current source 42 are connected to the column signal line 40 of each column. The column readout circuit 16 is for processing a signal read out from the unit pixel 10. As shown in FIG. 2, the column readout circuit 16 includes an amplifier 44 and an analog / digital conversion unit 52.

増幅器44は、演算増幅器(差動増幅器)46と、スイッチ48と、入力容量C0と、負荷容量Cfとを有し、単位画素10の信号を増幅する。演算増幅器46の反転入力端子は、入力容量C0を介して列信号線40に接続されている。演算増幅器46の非反転入力端子には、基準電圧が与えられている。演算増幅器46の反転入力端子と出力端子との間には、負荷容量Cfとスイッチ48とが並列に接続されている。スイッチ48は、制御ノードに印加される信号PC0Rにより駆動される。ここでは、信号PC0Rがハイレベルのときにスイッチ48は導通状態(オン状態)となり、信号PC0Rがローレベルのときにスイッチ48は非導通状態(オフ状態)となる。   The amplifier 44 includes an operational amplifier (differential amplifier) 46, a switch 48, an input capacitor C0, and a load capacitor Cf, and amplifies the signal of the unit pixel 10. The inverting input terminal of the operational amplifier 46 is connected to the column signal line 40 via the input capacitor C0. A reference voltage is applied to the non-inverting input terminal of the operational amplifier 46. A load capacitor Cf and a switch 48 are connected in parallel between the inverting input terminal and the output terminal of the operational amplifier 46. The switch 48 is driven by a signal PC0R applied to the control node. Here, when the signal PC0R is at a high level, the switch 48 is turned on (on state), and when the signal PC0R is at a low level, the switch 48 is turned off (off state).

アナログデジタル変換部52は、バッファ回路を構成する演算増幅器54と、コンパレータを構成する演算増幅器56とを有している。演算増幅器54の非反転入力端子は、演算増幅器46の出力端子に接続されている。演算増幅器54の反転入力端子は、演算増幅器54の出力端子に接続されている。演算増幅器54の出力端子は、演算増幅器56の非反転入力端子に接続されている。演算増幅器56の反転入力端子は、ランプ信号発生器20に接続されている。演算増幅器56の出力端子には、メモリ18が接続されている。メモリ18には、水平走査回路14と、カウンタ22とが接続されている。   The analog-to-digital converter 52 includes an operational amplifier 54 that forms a buffer circuit and an operational amplifier 56 that forms a comparator. The non-inverting input terminal of the operational amplifier 54 is connected to the output terminal of the operational amplifier 46. The inverting input terminal of the operational amplifier 54 is connected to the output terminal of the operational amplifier 54. The output terminal of the operational amplifier 54 is connected to the non-inverting input terminal of the operational amplifier 56. The inverting input terminal of the operational amplifier 56 is connected to the ramp signal generator 20. The memory 18 is connected to the output terminal of the operational amplifier 56. A horizontal scanning circuit 14 and a counter 22 are connected to the memory 18.

ランプ信号発生器20は、時間と共にレベルが上昇するランプ信号を生成する。演算増幅器56は、演算増幅器54が出力する画素信号とランプ信号発生器20が出力するランプ信号を比較し、画素信号とランプ信号の大小関係が逆転すると、出力信号を反転させる。カウンタ22は、ランプ信号のレベル変化が開始すると、カウンタ値のカウントを開始する。メモリ18は、演算増幅器56の出力信号が反転すると、カウンタ22のカウンタ値を記憶する。このカウンタ値は、デジタルの画素信号である。水平走査回路14は、メモリ18に記憶されている各列のデジタルの画素信号を順次外部に出力する。   The ramp signal generator 20 generates a ramp signal whose level increases with time. The operational amplifier 56 compares the pixel signal output from the operational amplifier 54 with the ramp signal output from the ramp signal generator 20, and inverts the output signal when the magnitude relationship between the pixel signal and the ramp signal is reversed. The counter 22 starts counting the counter value when the level change of the ramp signal starts. The memory 18 stores the counter value of the counter 22 when the output signal of the operational amplifier 56 is inverted. This counter value is a digital pixel signal. The horizontal scanning circuit 14 sequentially outputs the digital pixel signals of each column stored in the memory 18 to the outside.

図4は、撮像装置1の1フレームの読み出しを示すタイミングチャートである。撮像装置1の駆動方法では、図4に示すように、垂直同期信号VDを基準として、シャッター走査と読み出し走査とを、撮像素子103の行毎に順次行う。シャッター走査では、垂直走査回路12は、行毎に順次、該当する行に属する複数の単位画素10の光電変換素子24A、24Bの保持電荷のリセットを行う。読み出し走査では、垂直走査回路12は、行毎に順次、該当する行に属する複数の単位画素10から光電変換素子24A、24Bの蓄積電荷に基づく信号を読み出す。シャッター走査の開始から読み出し走査の開始までの時間が、光電変換素子24A、24Bへの信号電荷の蓄積期間となる。   FIG. 4 is a timing chart showing reading of one frame of the imaging apparatus 1. In the driving method of the imaging apparatus 1, as shown in FIG. 4, shutter scanning and readout scanning are sequentially performed for each row of the imaging elements 103 with the vertical synchronization signal VD as a reference. In the shutter scanning, the vertical scanning circuit 12 sequentially resets the held charges of the photoelectric conversion elements 24A and 24B of the plurality of unit pixels 10 belonging to the corresponding row for each row. In the readout scanning, the vertical scanning circuit 12 sequentially reads out signals based on the accumulated charges of the photoelectric conversion elements 24A and 24B from the plurality of unit pixels 10 belonging to the corresponding row for each row. The time from the start of shutter scanning to the start of readout scanning is the accumulation period of signal charges in the photoelectric conversion elements 24A and 24B.

図5は、撮像装置1の駆動方法を示すタイミングチャートであり、各行の読み出し動作をより具体的に示す。図5において、上述のシャッター走査の動作は、概ね時刻t1〜時刻t3の期間に該当する。また、上述の読み出し走査の動作は、概ね時刻t10〜時刻t15の期間に該当する。   FIG. 5 is a timing chart showing the driving method of the imaging apparatus 1, and more specifically shows the read operation of each row. In FIG. 5, the above-described shutter scanning operation generally corresponds to the period from time t1 to time t3. Further, the above-described readout scanning operation generally corresponds to a period from time t10 to time t15.

まず、水平同期信号HDに同期して、時刻t1において、信号PRESがハイレベル、信号PTXA及び信号PTXBがハイレベルとなり、リセットMOSトランジスタ28及び転送MOSトランジスタ26A、26Bがオン状態となる。これにより、光電変換素子24A、24Bの蓄積電荷が転送MOSトランジスタ26A、26B及びリセットMOSトランジスタ28を介して排出される。すなわち、光電変換素子24A、24Bのリセット動作が行われる。このように、本実施形態の駆動方法では、電子シャッターパルスとして信号PRES、信号PTXA及び信号PTXBをハイレベルにすることで光電変換素子24A、24Bを同時にリセットする。電子シャッター駆動を行う場合、上述のように、読み出し走査に先行して単位画素10のリセットを行う。   First, in synchronization with the horizontal synchronization signal HD, at time t1, the signal PRES is at a high level, the signals PTXA and PTXB are at a high level, and the reset MOS transistor 28 and the transfer MOS transistors 26A and 26B are turned on. As a result, the charges accumulated in the photoelectric conversion elements 24A and 24B are discharged through the transfer MOS transistors 26A and 26B and the reset MOS transistor 28. That is, the reset operation of the photoelectric conversion elements 24A and 24B is performed. As described above, in the driving method of the present embodiment, the photoelectric conversion elements 24A and 24B are simultaneously reset by setting the signal PRES, the signal PTXA, and the signal PTXB to the high level as the electronic shutter pulse. When electronic shutter driving is performed, the unit pixel 10 is reset prior to readout scanning as described above.

次に、時刻t2において、信号PTXA及び信号PTXBがローレベルとなり、転送MOSトランジスタ26A、26Bがオフ状態となる。このタイミングで、光電変換素子24A、24Bのリセット動作が終了し、光電変換素子24A、24Bの電荷蓄積期間が開始する。転送MOSトランジスタ26A、26Bがオフ状態となった後、時刻t3において、信号PRESがハイレベルとなり、リセットMOSトランジスタ28がオフ状態となる。これにより、一連のシャッター走査の動作が完了する。   Next, at time t2, the signals PTXA and PTXB become low level, and the transfer MOS transistors 26A and 26B are turned off. At this timing, the reset operation of the photoelectric conversion elements 24A and 24B ends, and the charge accumulation period of the photoelectric conversion elements 24A and 24B starts. After the transfer MOS transistors 26A and 26B are turned off, at time t3, the signal PRES goes high and the reset MOS transistor 28 is turned off. This completes a series of shutter scanning operations.

この状態で、光電変換素子24A、24Bへの所定期間の電荷蓄積を行った後、1行毎に若しくは複数行毎に、単位画素10から光電変換素子24A、24Bの蓄積電荷に基づく信号の読み出し、すなわち読み出し走査を行う。水平同期信号HDに同期して、時刻t4において、信号PRESがハイレベルとされ、リセットMOSトランジスタ28がオン状態となる。これにより、増幅MOSトランジスタ30の入力ノードでもあるFD領域34がリセットMOSトランジスタ28を介して電源電圧線に電気的に接続され、増幅MOSトランジスタ30の入力ノードがリセットレベルの電位にリセットされる。同じく時刻t4において、信号PC0Rがハイレベルとされ、スイッチ48が導通状態となる。これにより、演算増幅器46の出力端子と反転入力端子とを短絡して演算増幅器46をバッファ状態とする。   In this state, after the charge is accumulated in the photoelectric conversion elements 24A and 24B for a predetermined period, the signal based on the accumulated charges of the photoelectric conversion elements 24A and 24B is read from the unit pixel 10 for each row or for every plurality of rows. That is, reading scanning is performed. In synchronization with the horizontal synchronization signal HD, at time t4, the signal PRES is set to the high level, and the reset MOS transistor 28 is turned on. As a result, the FD region 34, which is also the input node of the amplification MOS transistor 30, is electrically connected to the power supply voltage line via the reset MOS transistor 28, and the input node of the amplification MOS transistor 30 is reset to the reset level potential. Similarly, at time t4, the signal PC0R is set to the high level, and the switch 48 is turned on. As a result, the output terminal and the inverting input terminal of the operational amplifier 46 are short-circuited to put the operational amplifier 46 in a buffer state.

時刻t5において、信号PSELがハイレベルとされ、選択MOSトランジスタ32がオン状態となる。これにより、増幅MOSトランジスタ30は、ソースには列信号線40を介して電流源42からバイアス電流が供給された状態となり、ソースフォロワ回路を構成する。そして、これによって、列読み出し回路16には、増幅MOSトランジスタ30の入力ノードがリセットレベルの電位であるときの信号(リセット信号)が、選択MOSトランジスタ32及び列信号線40を介して出力される。列読み出し回路16に入力されたリセット信号は、入力容量C0を介して、基準電圧の出力をバッファする状態となっている演算増幅器46の反転入力端子に入力される。   At time t5, the signal PSEL is set to the high level, and the selection MOS transistor 32 is turned on. As a result, the amplifying MOS transistor 30 is in a state where a bias current is supplied to the source from the current source 42 via the column signal line 40, and constitutes a source follower circuit. As a result, a signal (reset signal) when the input node of the amplification MOS transistor 30 is at the reset level is output to the column readout circuit 16 via the selection MOS transistor 32 and the column signal line 40. . The reset signal input to the column readout circuit 16 is input to the inverting input terminal of the operational amplifier 46 that is in a state of buffering the output of the reference voltage via the input capacitor C0.

時刻t6において、信号PRESがローレベルとなり、リセットMOSトランジスタ28がオフ状態となる。これにより、増幅MOSトランジスタ30の入力ノードのリセット動作を解除する。   At time t6, the signal PRES goes low, and the reset MOS transistor 28 is turned off. Thereby, the reset operation of the input node of the amplification MOS transistor 30 is released.

時刻t7において、信号PC0Rがローレベルとなり、スイッチ48が非導通状態となる。これにより、演算増幅器46の帰還経路には負荷容量Cfが接続された状態となり、入力容量C0と負荷容量Cfとの比(C0/Cf)によって決定されるゲインに応じて増幅されたリセット信号が、演算増幅器46の出力端子から出力される。   At time t7, the signal PC0R becomes low level, and the switch 48 is turned off. As a result, the load capacitance Cf is connected to the feedback path of the operational amplifier 46, and the reset signal amplified according to the gain determined by the ratio (C0 / Cf) of the input capacitance C0 to the load capacitance Cf is received. , And output from the output terminal of the operational amplifier 46.

次いで、時刻t10において、信号PTXAがハイレベルとなり、転送MOSトランジスタ26Aがオン状態となる。これにより、電荷蓄積期間に光電変換素子24Aにおいて光電変換によって生成された信号電荷がFD領域34に転送される。そして、列信号線40には、光電変換素子24Aから転送された信号電荷の量に応じた増幅MOSトランジスタ30の入力ノードの電位に基づく画素信号が、選択MOSトランジスタ32を介して出力される。   Next, at time t10, the signal PTXA becomes high level, and the transfer MOS transistor 26A is turned on. Thereby, the signal charge generated by the photoelectric conversion in the photoelectric conversion element 24 </ b> A during the charge accumulation period is transferred to the FD region 34. A pixel signal based on the potential of the input node of the amplification MOS transistor 30 corresponding to the amount of signal charge transferred from the photoelectric conversion element 24A is output to the column signal line 40 via the selection MOS transistor 32.

単位画素10から列信号線40を介して画素信号を列読み出し回路16に出力した後、時刻t11において、信号PTXAがローレベルとなる。演算増幅器46は、単位画素10から入力容量C0を介して入力された画素信号を、入力容量C0と負荷容量Cfとの比(C0/Cf)によって決定されるゲインに応じて増幅し、出力端子から出力する。この画素信号を、以下、「A信号」と表記する。   After outputting the pixel signal from the unit pixel 10 to the column readout circuit 16 via the column signal line 40, the signal PTXA becomes low level at time t11. The operational amplifier 46 amplifies the pixel signal input from the unit pixel 10 via the input capacitor C0 according to the gain determined by the ratio (C0 / Cf) of the input capacitor C0 and the load capacitor Cf, and outputs an output terminal. Output from. This pixel signal is hereinafter referred to as “A signal”.

次いで、時刻t14において、信号PTXBがハイレベルとなり、転送MOSトランジスタ26Bがオン状態となる。これにより、FD領域34には、光電変換素子24Bにおいて光電変換によって生成された信号電荷がFD領域34に転送され、その結果、光電変換素子24A、24Bの信号電荷総量が前記FD領域34に蓄積される。列信号線40には、この光電変換素子24A、24Bの信号電荷の総量に応じた増幅MOSトランジスタ30の入力ノードの電位に基づく画素信号が、選択MOSトランジスタ32を介して出力される。   Next, at time t14, the signal PTXB becomes high level, and the transfer MOS transistor 26B is turned on. As a result, the signal charges generated by the photoelectric conversion in the photoelectric conversion element 24B are transferred to the FD area 34, and as a result, the total signal charges of the photoelectric conversion elements 24A and 24B are accumulated in the FD area 34. Is done. A pixel signal based on the potential of the input node of the amplification MOS transistor 30 corresponding to the total amount of signal charges of the photoelectric conversion elements 24A and 24B is output to the column signal line 40 via the selection MOS transistor 32.

単位画素10から列信号線40を介して画素信号を列読み出し回路16に出力した後、時刻t15において、信号PTXBがローレベルとなる。演算増幅器46は、単位画素10から入力容量C0を介して入力された画素信号を、入力容量C0と負荷容量Cfとの比(C0/Cf)によって決定されるゲインに応じて増幅し、出力端子から出力する。この画素信号を、以下、「A+B信号」と表記する。A+B信号は、複数の光電変換素子24A及び24Bの電荷に基づくデータが合成されたデータである。   After the pixel signal is output from the unit pixel 10 to the column readout circuit 16 via the column signal line 40, the signal PTXB becomes low level at time t15. The operational amplifier 46 amplifies the pixel signal input from the unit pixel 10 via the input capacitor C0 according to the gain determined by the ratio (C0 / Cf) of the input capacitor C0 and the load capacitor Cf, and outputs an output terminal. Output from. This pixel signal is hereinafter referred to as “A + B signal”. The A + B signal is data obtained by combining data based on the charges of the plurality of photoelectric conversion elements 24A and 24B.

増幅器44から出力されたリセット信号、A信号及びA+B信号は、アナログデジタル変換部52によりデジタル信号に変換された後、メモリ18に蓄積される。メモリ18に蓄積された各列のこれらデジタル信号は、水平走査回路14からの制御信号に従って順次読み出される。列読み出し回路16がアナログデジタル変換部52を有していない場合は、出力アンプ若しくはバッファを通して、各列の信号が順次読み出される。   The reset signal, the A signal, and the A + B signal output from the amplifier 44 are converted into digital signals by the analog / digital conversion unit 52 and then stored in the memory 18. These digital signals in each column stored in the memory 18 are sequentially read according to a control signal from the horizontal scanning circuit 14. When the column readout circuit 16 does not have the analog-digital conversion unit 52, signals of each column are sequentially read out through an output amplifier or a buffer.

焦点検出用の信号には、このようにして読み出された光電変換素子24Aの信号電荷に基づくA信号と、光電変換素子24Bの信号電荷に基づくB信号とが用いられる。B信号は、光電変換素子24A及び光電変換素子24Bの信号電荷に基づく信号(A+B信号)からA信号を差し引くことにより算出される。   As the focus detection signal, the A signal based on the signal charge of the photoelectric conversion element 24A read out in this way and the B signal based on the signal charge of the photoelectric conversion element 24B are used. The B signal is calculated by subtracting the A signal from the signal (A + B signal) based on the signal charges of the photoelectric conversion element 24A and the photoelectric conversion element 24B.

しかしながら、図5に示すように、A信号を取得する時刻(時刻t10〜時刻t11)と、A+B信号を取得する時刻(時刻t14〜時刻t15)とは、異なっている。また、光電変換素子24Aの信号電荷をFD領域34に転送してから光電変換素子24A、24Bの信号電荷をFD領域34に転送するまでの間に、増幅MOSトランジスタ30の入力ノードのリセットは行われない。このため、A信号を取得するまでの光電変換素子24A、24Bの露光時間と、A+B信号を取得するまでの光電変換素子24A、24Bの露光時間との間には、時間差dtが存在する(図5参照)。したがって、時刻t14〜時刻t15において読み出すA+B信号には、時間差dtの間に増加したFD領域34の暗電流成分が重畳されることになる。   However, as shown in FIG. 5, the time for acquiring the A signal (time t10 to time t11) is different from the time for acquiring the A + B signal (time t14 to time t15). In addition, the reset of the input node of the amplification MOS transistor 30 is performed after the signal charge of the photoelectric conversion element 24A is transferred to the FD region 34 until the signal charge of the photoelectric conversion elements 24A and 24B is transferred to the FD region 34. I will not. Therefore, there is a time difference dt between the exposure time of the photoelectric conversion elements 24A and 24B until the A signal is acquired and the exposure time of the photoelectric conversion elements 24A and 24B until the A + B signal is acquired (FIG. 5). Therefore, the dark current component of the FD region 34 increased during the time difference dt is superimposed on the A + B signal read from time t14 to time t15.

以上は、焦点検出用信号(A信号)と画像形成用信号(A+B信号)とを取得する場合についての説明であるが、2つの焦点検出用信号(A信号及びB信号)を独立して読み出す場合がある。その場合、撮像素子103から取得したA信号とB信号を後程デジタル信号処理で画像形成用信号(A+B信号)に生成する場合と、前記FD領域34で電荷の状態で蓄積して得る場合と、その両方をライン単位で混成してフレーム画像を得る場合がある。その場合には、同様の信号レベル補正が必要である。2つの焦点検出用信号(A信号及びB信号)を独立して読み出す場合には、例えば図6に示すように、最初の1水平周期で光電変換素子24Aの信号電荷から前記A信号を取得し、つづく1水平周期で光電変換素子24Bの信号電荷からB信号を取得する。このようにすることで、A信号、B信号夫々の読み出しに対する増幅MOSトランジスタ30の入力ノードのリセット状態を等しくすることが出来る。図6中の1水平周期中の時刻t4〜t11と、つづく1水平周期中の時刻t4'〜t11’とは、起点となる夫々のHDに対しては同時刻である。A信号及びB信号を夫々読み出して、撮像素子103の後段でデジタル信号処理として画像形成用信号(A+B)を取得することができる。その場合、信号処理回路104内の像データ分離部1040等に、A信号とB信号を合成する手段が必要となり、処理実施時には暗電流成分は2倍に悪化する。   The above is a description of the case where the focus detection signal (A signal) and the image formation signal (A + B signal) are acquired, but the two focus detection signals (A signal and B signal) are read independently. There is a case. In that case, the case where the A signal and the B signal acquired from the image sensor 103 are generated into a signal for image formation (A + B signal) later by digital signal processing, the case where the signal is accumulated in the state of charge in the FD region 34, and There are cases where both are mixed in line units to obtain a frame image. In that case, similar signal level correction is required. When reading two focus detection signals (A signal and B signal) independently, as shown in FIG. 6, for example, the A signal is acquired from the signal charge of the photoelectric conversion element 24A in the first one horizontal cycle. Then, the B signal is acquired from the signal charge of the photoelectric conversion element 24B in one horizontal cycle. By doing in this way, the reset state of the input node of the amplification MOS transistor 30 with respect to reading of the A signal and the B signal can be made equal. The times t4 to t11 in one horizontal cycle and the subsequent times t4 ′ to t11 ′ in one horizontal cycle in FIG. 6 are the same time for each HD that is the starting point. The A signal and the B signal can be read out respectively, and an image forming signal (A + B) can be acquired as digital signal processing after the image sensor 103. In that case, a means for synthesizing the A signal and the B signal is required in the image data separation unit 1040 and the like in the signal processing circuit 104, and the dark current component deteriorates twice when the processing is performed.

これら図5、図6に記載の読み出し制御によって得た際の暗電流成分の悪影響は、例えばオフセット成分のクランプ処理において横縞の発生原因となり、記録画像の画質を低下させる。本実施形態では、フレームデータ内の黒レベルの異なるラインを含む要因として、撮像面位相差AF向けの駆動・制御を例示しているが、他の要因によるものであっても適用できるものである。   The adverse effect of the dark current component when obtained by the readout control shown in FIGS. 5 and 6 causes, for example, horizontal stripes in the offset component clamping process, and reduces the image quality of the recorded image. In the present embodiment, the driving / control for the imaging plane phase difference AF is illustrated as a factor including lines with different black levels in the frame data, but the present invention can be applied even if it is due to other factors. .

図7は、光電変換素子24A、24Bの信号電荷を同時にFD領域34に取得した場合の、本実施形態の撮像装置1の画像形成用信号読み出し駆動方法を示すタイミングチャートである。時刻t1〜t7の動作は、図5の動作と同じである。そして、時刻t10において、信号PTXA、PTXBがハイレベルとなり、転送MOSトランジスタ26A、26Bがオン状態となる。そして、時刻t11において、信号PTXA、PTXBがローレベルとなり、転送MOSトランジスタ26A、26Bがオフ状態となる。これにより、画像形成用信号(A+B信号)を得ることができる。   FIG. 7 is a timing chart showing an image forming signal readout driving method of the imaging apparatus 1 of the present embodiment when the signal charges of the photoelectric conversion elements 24A and 24B are simultaneously acquired in the FD region 34. The operation from time t1 to t7 is the same as the operation in FIG. At time t10, the signals PTXA and PTXB become high level, and the transfer MOS transistors 26A and 26B are turned on. At time t11, the signals PTXA and PTXB become low level, and the transfer MOS transistors 26A and 26B are turned off. Thereby, an image forming signal (A + B signal) can be obtained.

ここで、記録用フレームデータを撮像中に、焦点検出用信号(A信号)を取得して、記録動作と合焦制御とを並行して行う場合を考える。このときに、図1の撮像素子103と信号処理回路104との転送帯域を抑えるために、焦点検出用信号(A信号)を全ライン転送しないで任意のラインでのみ転送する制御を考える。図8はそのような制御状態での撮像素子103のフレーム読み出しのデータ状態を示す。図8は、横方向のライン800,801,802等が図5(図6、図7等)の信号HDの1周期中に読み出される1ライン分のデータを表し、それを垂直方向に連続したフレームデータとして表現している。   Here, let us consider a case where a focus detection signal (A signal) is acquired while recording frame data is being imaged, and a recording operation and focus control are performed in parallel. At this time, in order to suppress the transfer band between the image sensor 103 and the signal processing circuit 104 in FIG. 1, a control for transferring the focus detection signal (A signal) only on an arbitrary line without transferring all lines is considered. FIG. 8 shows a data state of frame reading of the image sensor 103 in such a control state. FIG. 8 shows the data for one line read out in one cycle of the signal HD of FIG. 5 (FIG. 6, FIG. 7, etc.) in the horizontal lines 800, 801, 802, etc. Expressed as frame data.

図8のnライン目(図8の<line n>と記載)から、n+4ライン目(図8の<line n+4>と記載)のデータについて説明する。図8のライン800は、図7に記載の駆動方法で取得された画像形成用信号(A+B信号)の読み出しライン(以下、通常ラインと表記)であり、ライン800のデータは信号処理回路104内のAF用信号処理パスには使用されない。図8のライン801は、図5に記載の駆動方法で取得された焦点検出用信号(A信号)の読み出しライン(以下、第1の視差ラインと表記)であり、AF用信号処理パスを通る信号である。図8のライン802は、図5に記載の駆動方法で取得された画像形成用信号(A+B信号)の読み出しライン(以下、第2の視差ラインと表記)である。   Data from the nth line (denoted <line n> in FIG. 8) to the n + 4th line (denoted <line n + 4> in FIG. 8) will be described. A line 800 in FIG. 8 is a readout line (hereinafter referred to as a normal line) of an image forming signal (A + B signal) acquired by the driving method illustrated in FIG. 7, and data in the line 800 is stored in the signal processing circuit 104. It is not used for the AF signal processing path. A line 801 in FIG. 8 is a focus detection signal (A signal) readout line (hereinafter referred to as a first parallax line) acquired by the driving method shown in FIG. 5 and passes through the AF signal processing path. Signal. A line 802 in FIG. 8 is a readout line (hereinafter referred to as a second parallax line) of an image forming signal (A + B signal) acquired by the driving method illustrated in FIG.

垂直走査回路12は、読み出し手段であり、通常ライン800に対応する単位画素10と、第2の視差ライン802に対応する単位画素10とを異なる駆動方法で読み出す。垂直走査回路12は、図7の駆動方法により、通常ライン800に対応する単位画素10では、複数の光電変換素子24A及び24Bの電荷に基づくデータを合成したA+B信号のみを読み出す。これに対し、垂直走査回路12は、図5の駆動方法により、第2の視差ライン802に対応する単位画素10では、一部の光電変換素子24Aの電荷に基づくA信号と、複数の光電変換素子24A及び24Bの電荷に基づくデータを合成したA+B信号を読み出す。通常ライン800は第1のラインデータであり、第2の視差ライン802は第2のラインデータである。   The vertical scanning circuit 12 is a reading unit, and reads the unit pixel 10 corresponding to the normal line 800 and the unit pixel 10 corresponding to the second parallax line 802 by different driving methods. The vertical scanning circuit 12 reads out only the A + B signal obtained by combining the data based on the charges of the plurality of photoelectric conversion elements 24A and 24B in the unit pixel 10 corresponding to the normal line 800 by the driving method of FIG. On the other hand, in the unit pixel 10 corresponding to the second parallax line 802, the vertical scanning circuit 12 uses the driving method of FIG. 5 to generate an A signal based on the charges of some of the photoelectric conversion elements 24A and a plurality of photoelectric conversions. An A + B signal obtained by combining data based on the charges of the elements 24A and 24B is read out. The normal line 800 is first line data, and the second parallax line 802 is second line data.

像データ分離部1040は、第1の視差ライン801のA信号と、第2の視差ライン802のA+B信号とを差分処理し(実際には輝度飽和信号に対する対策等を含む)、B信号を生成して、A信号及びB信号を、AF用信号処理パスに向けて出力する。記録系画像信号としては、像データ分離部1040は、通常ライン800のA+B信号と第2の視差ライン802であるA+B信号とを図1のクランプ処理回路1041へと出力する。このとき、該クランプ処理回路1041が受信するフレームデータは、図9のようになる。   The image data separation unit 1040 differentially processes the A signal of the first parallax line 801 and the A + B signal of the second parallax line 802 (actually includes measures against the luminance saturation signal) to generate a B signal. Then, the A signal and the B signal are output toward the AF signal processing path. As the recording system image signal, the image data separation unit 1040 outputs the A + B signal of the normal line 800 and the A + B signal of the second parallax line 802 to the clamp processing circuit 1041 in FIG. At this time, the frame data received by the clamp processing circuit 1041 is as shown in FIG.

図9は、撮像素子103の画素アレイに対応し、図1のクランプ処理回路1041が受信する処理フレームの状態を示す。フレームデータ900は、クランプ処理回路1041が受信するフレームデータである。領域901は、受光部24を光学的に遮光したOB画素(基準画素)が配置されたOB画素領域(基準画素領域)中の黒レベル推定のための検出領域である。OB画素は、光学的黒画素である。領域902は、光学的に遮光されていない記録画像としての有効画素の領域である。複数の単位画素10は、領域901のOB画素と領域902の有効画素に分けられる。ライン800は、図8の通常ライン800として取得した画像形成用信号(A+B信号)データのラインである。OB画素データ(光学的黒画素データ)810は、通常ライン800の読み出し時の黒レベル推定のための検出領域901中のOB画素(A+B信号)データである。ライン802は、図8の第2の視差ライン802として取得した画像形成用信号(A+B信号)データのラインである。OB画素データ812は、第2の視差ライン802中の黒レベル推定のための検出領域901中のOB画素(A+B信号)データである。   FIG. 9 shows the state of a processing frame corresponding to the pixel array of the image sensor 103 and received by the clamp processing circuit 1041 of FIG. Frame data 900 is frame data received by the clamp processing circuit 1041. A region 901 is a detection region for black level estimation in an OB pixel region (reference pixel region) in which an OB pixel (reference pixel) optically shielded from the light receiving unit 24 is arranged. The OB pixel is an optical black pixel. A region 902 is a region of effective pixels as a recorded image that is not optically shielded from light. The plurality of unit pixels 10 are divided into OB pixels in the region 901 and effective pixels in the region 902. A line 800 is a line of image forming signal (A + B signal) data acquired as the normal line 800 in FIG. The OB pixel data (optical black pixel data) 810 is OB pixel (A + B signal) data in the detection area 901 for black level estimation when the normal line 800 is read. A line 802 is a line of image forming signal (A + B signal) data acquired as the second parallax line 802 in FIG. The OB pixel data 812 is OB pixel (A + B signal) data in the detection area 901 for black level estimation in the second parallax line 802.

図10は、図9のフレームデータ900の検出領域901において垂直方向に画素信号レベルの一次元写像として求めた抽出黒レベルの例を示す。目標黒レベルは、クランプ処理回路1041でクランプした補正結果がそれに近付くように期待する値である。図10では、フレームデータ900に対して垂直方向のシェーディングの存在を想定して、検出領域901のOB画素データ(黒レベル)として図中の曲線を例示する。また、第2の視差ライン802のOB画素データ(黒レベル)812は、通常ライン800のOB画素データ(黒レベル)810に対して、オフセット段差が存在する。このオフセット段差は、実際の記録画像においても図9のフレームデータ900のように横縞となって画質の低下を招く。   FIG. 10 shows an example of the extracted black level obtained as a one-dimensional mapping of the pixel signal level in the vertical direction in the detection area 901 of the frame data 900 of FIG. The target black level is a value that the correction result clamped by the clamp processing circuit 1041 is expected to approach. In FIG. 10, assuming the presence of shading in the vertical direction with respect to the frame data 900, the curve in the figure is illustrated as the OB pixel data (black level) in the detection area 901. The OB pixel data (black level) 812 of the second parallax line 802 has an offset step with respect to the OB pixel data (black level) 810 of the normal line 800. This offset step becomes a horizontal stripe in the actual recorded image as in the frame data 900 of FIG.

図11は、クランプ処理回路1041の構成例を示す図である。以下、クランプ処理回路1041の信号処理方法を説明する。クランプ処理回路1041は、黒レベル推定のための検出領域901を走査し、OB画素データ810及び812の夫々の黒レベルを推定し、有効領域902の有効画素を補正する。積算器201は、加算器とレジスタを有し、検出領域901の通常ライン800の複数のOB画素データ810の値を積算する。通常ライン800のOB画素データ810の画素の位置認識は、図11のSSG(Synchronous Signal Generator)210の指示による。SSG210は、入力フレームデータの有効状態を計数して、フレーム入力の水平・垂直方向の処理位置を把握する。SSG210は、フレーム状態を把握することで、ライン処理や領域処理の変更のためのイベントやステータス信号を生成・出力する。パラメータのマスク状態(図11中AND素子213、214)及び、出力切替セレクタ209の制御指示以外のSSG210出力信号線は、図が煩雑になるので不図示とする。   FIG. 11 is a diagram illustrating a configuration example of the clamp processing circuit 1041. Hereinafter, a signal processing method of the clamp processing circuit 1041 will be described. The clamp processing circuit 1041 scans the detection area 901 for black level estimation, estimates the black level of each of the OB pixel data 810 and 812, and corrects the effective pixels in the effective area 902. The accumulator 201 includes an adder and a register, and accumulates values of a plurality of OB pixel data 810 on the normal line 800 in the detection area 901. The position recognition of the pixel of the OB pixel data 810 on the normal line 800 is in accordance with an instruction of an SSG (Synchronous Signal Generator) 210 in FIG. The SSG 210 counts the valid state of the input frame data and grasps the processing position of the frame input in the horizontal and vertical directions. By grasping the frame state, the SSG 210 generates and outputs an event and a status signal for changing the line process and the area process. The SSG 210 output signal lines other than the parameter mask state (AND elements 213 and 214 in FIG. 11) and the control instruction of the output switching selector 209 are not shown because the figure becomes complicated.

除算器202は、積算器201の積算結果値を通常ライン800の複数のOB画素データ810の数で除算することにより正規化する。ここでの除算は、除数が2のべき乗であれば、信号ビットの右シフトで実現できる。除算器202は、OB画素データ810の1ライン分の積算器201の積算結果を除算し、1ライン毎の黒レベル推定値の代表値を得る。本実施形態では、図10のような垂直方向にシェーディングを持つ黒レベル推定として例示する。この場合、垂直シェーディングを鑑み、ライン平均の履歴をある程度の範囲で抑えたいので、図11のクランプ処理回路1041の構成としては、シェーディングの影響を履歴として長引かせないような移動平均値として取得する回路構成を例示する。平均化手段203は、除算器202で得た1ラインの黒レベル代表値を、直前までの各ライン代表値との移動平均をとる。すなわち、平均化手段203は、フレームデータの中の複数の通常ライン800に対して、除算器202により除算されたデータを平均化し、推定の黒レベルsig_203を出力する。積算器201と除算器202と平均化手段203は、第1の黒レベル推定手段であり、通常ライン800の黒レベルsig_203を推定する。   The divider 202 normalizes by dividing the integration result value of the integrator 201 by the number of the plurality of OB pixel data 810 on the normal line 800. The division here can be realized by a right shift of the signal bit if the divisor is a power of two. The divider 202 divides the integration result of the integrator 201 for one line of the OB pixel data 810 to obtain a representative value of the black level estimated value for each line. In this embodiment, it is exemplified as black level estimation having shading in the vertical direction as shown in FIG. In this case, in view of vertical shading, it is desired to suppress the line average history within a certain range. Therefore, the configuration of the clamp processing circuit 1041 in FIG. 11 is acquired as a moving average value that does not prolong the influence of shading as the history. The circuit configuration is illustrated. The averaging means 203 takes a moving average of the black level representative value of one line obtained by the divider 202 with each line representative value until immediately before. That is, the averaging means 203 averages the data divided by the divider 202 with respect to a plurality of normal lines 800 in the frame data, and outputs an estimated black level sig_203. The accumulator 201, the divider 202, and the averaging means 203 are first black level estimation means, and estimate the black level sig_203 of the normal line 800.

図9の有効領域902における通常ライン800の有効画素データ処理では、以下の処理を行う。減算器204は、補正手段であり、通常ライン800の有効画素データsig_216から平均化手段203が出力する黒レベルsig_203を減算することにより、通常ライン800の補正された有効画素データを出力する。すなわち、減算器204は、平均化手段203が出力する黒レベルsig_203を基に、通常ライン800の有効画素データsig_216を補正する。遅延素子216は、入力データと補正パラメータ更新タイミングとを整合させるための遅延素子であり、シフトレジスタ等で構成される。論理素子213は、SSG210指示により有効領域902中の通常ライン800の時に平均化手段203の結果値を減算器204へと伝達し、それ以外のときには0値にマスクする動作を行うAND素子である。加算器208は、減算器204の出力値に対して、ペデスタルレベルとしてレジスタ212に設定したポストセットアップ値を加算し、通常ライン800の補正された有効画素データsig_208を出力する。   In the effective pixel data processing of the normal line 800 in the effective area 902 of FIG. 9, the following processing is performed. The subtractor 204 is a correction unit, and outputs the corrected effective pixel data of the normal line 800 by subtracting the black level sig_203 output from the averaging unit 203 from the effective pixel data sig_216 of the normal line 800. That is, the subtractor 204 corrects the effective pixel data sig_216 of the normal line 800 based on the black level sig_203 output from the averaging unit 203. The delay element 216 is a delay element for matching the input data and the correction parameter update timing, and includes a shift register or the like. The logical element 213 is an AND element that transmits the result value of the averaging means 203 to the subtractor 204 when the normal line 800 in the effective area 902 is instructed by the SSG 210 instruction, and masks it to 0 value in other cases. . The adder 208 adds the post setup value set in the register 212 as the pedestal level to the output value of the subtracter 204, and outputs the corrected effective pixel data sig_208 of the normal line 800.

第2の視差ライン802のデータ入力時には、SSG210は、フィルタ回路206の処理を進捗するように指示信号を出力する。フィルタ回路206は、巡回型(IIR)のローパスフィルタ(LPF)を例示し、その時定数はCPU100経由のレジスタ設定で変更できるように構成しても良い。減算器205は、第2の視差ライン802の検出領域901上のOB画素データ812と、平均化手段203が出力するOB画素データ810の黒レベルsig_203との差分sig_205を演算する。そして、減算器205は、その差分(オフセット段差)sig_205をフィルタ回路206へ出力する。フィルタ回路206は、減算器205により演算された差分sig_205を入力し、第2の視差ライン802の黒レベルsig_206を出力する。フィルタ回路206の詳細は、後に図14を参照しながら説明する。遅延素子215、減算器205及びフィルタ回路206は、黒レベル推定手段であり、第2の視差ライン802の黒レベルsig_206を推定する。   When data is input to the second parallax line 802, the SSG 210 outputs an instruction signal so that the processing of the filter circuit 206 proceeds. The filter circuit 206 exemplifies a cyclic (IIR) low-pass filter (LPF), and its time constant may be changed by register setting via the CPU 100. The subtractor 205 calculates a difference sig_205 between the OB pixel data 812 on the detection region 901 of the second parallax line 802 and the black level sig_203 of the OB pixel data 810 output from the averaging unit 203. Then, the subtracter 205 outputs the difference (offset step) sig_205 to the filter circuit 206. The filter circuit 206 receives the difference sig_205 calculated by the subtractor 205 and outputs the black level sig_206 of the second parallax line 802. Details of the filter circuit 206 will be described later with reference to FIG. The delay element 215, the subtractor 205, and the filter circuit 206 are black level estimation means, and estimate the black level sig_206 of the second parallax line 802.

有効領域902における第2の視差ライン802の有効画素データ処理では、以下の処理を行う。減算器207は、補正手段であり、第2の視差ライン802の有効画素データsig_217から、フィルタ回路206が出力する黒レベルsig_206を減算し、第2の視差ライン802の補正された有効画素データsig_207を出力する。減算器207は、フィルタ回路206が出力する黒レベルsig_206を基に、第2の視差ライン802の有効画素データsig_217を補正する。論理素子214は、第2の視差ライン802における有効領域902中の有効画素データ処理時に、フィルタ回路206の出力値を減算器207に伝達し、それ以外のときには0値にマスクする動作を行うAND素子である。遅延素子217は、入力データと補正パラメータ更新タイミングとを整合させるための遅延素子であり、シフトレジスタ等で構成される。また、遅延素子215は、入力データを遅延して減算器205に出力する。遅延素子217の遅延量は、遅延素子215の遅延量とフィルタ回路206の遅延量の総和に等しく設定される。また、遅延素子217の遅延量と遅延素子216の遅延量とを等価にすることで、通常ライン800と第2の視差ライン802との切り替え時に水平方向のデータの出現位置は同一となり、フレームデータ900として成立する。また、AND素子213,214は、有効領域902中の切り替えを制御したが、クランプ処理回路1041以降でOB画素データを用いる場合には、検出領域901中のOB画素データに対して直近の値で補正をかけるようなSSG210の構成を採用してもよい。   In the effective pixel data processing of the second parallax line 802 in the effective area 902, the following processing is performed. The subtractor 207 is a correction unit, and subtracts the black level sig_206 output from the filter circuit 206 from the effective pixel data sig_217 of the second parallax line 802 to correct the corrected effective pixel data sig_207 of the second parallax line 802. Is output. The subtractor 207 corrects the effective pixel data sig_217 of the second parallax line 802 based on the black level sig_206 output from the filter circuit 206. The logic element 214 transmits the output value of the filter circuit 206 to the subtractor 207 when processing the effective pixel data in the effective region 902 in the second parallax line 802, and performs an operation of masking to 0 value otherwise. It is an element. The delay element 217 is a delay element for matching the input data and the correction parameter update timing, and includes a shift register or the like. The delay element 215 delays input data and outputs the delayed input data to the subtracter 205. The delay amount of the delay element 217 is set equal to the sum of the delay amount of the delay element 215 and the delay amount of the filter circuit 206. Further, by making the delay amount of the delay element 217 equal to the delay amount of the delay element 216, the appearance position of the horizontal data becomes the same when switching between the normal line 800 and the second parallax line 802, and the frame data It is established as 900. In addition, the AND elements 213 and 214 controlled switching in the effective area 902. However, when OB pixel data is used in the clamp processing circuit 1041 and later, the AND elements 213 and 214 have values closest to the OB pixel data in the detection area 901. A configuration of the SSG 210 that applies correction may be adopted.

セレクタ209は、選択手段であり、通常ライン800の補正された有効画素データsig_208又は第2の視差ライン802の補正された有効画素データsig_207を選択する。SSG210は有効データを認識する手段とその認識サイクルを計数する手段を具備(不図示)する。そして、SSG210は、フレームデータ900の入力量を計数し、その計数の値に応じて、通常ライン800のタイミングでは指示値0をセレクタ209に出力し、第2の視差ライン802のタイミングでは指示値1をセレクタ209に出力する。セレクタ209は、指示値0では通常ライン800の補正された有効画素データsig_208を選択し、指示値1では第2の視差ライン802の補正された有効画素データsig_207を選択して、出力sig_209を得る。レジスタ211は、フィルタ回路206の結果値を一時記憶する記憶手段である。レジスタ211は、フィルタ回路206によるOB画素データ812の黒レベル推定値を1フレームの完了時に更新し、次期フレーム走査開始時にフィルタ回路206に初期値として書き戻すように用いる。また、レジスタ211は、CPU100から初期値を更新することも可能である。   The selector 209 is a selection unit and selects the corrected effective pixel data sig_208 of the normal line 800 or the corrected effective pixel data sig_207 of the second parallax line 802. The SSG 210 includes means for recognizing valid data and means for counting the recognition cycles (not shown). Then, the SSG 210 counts the input amount of the frame data 900, and outputs an instruction value 0 to the selector 209 at the timing of the normal line 800 and the instruction value at the timing of the second parallax line 802 according to the count value. 1 is output to the selector 209. The selector 209 selects the corrected effective pixel data sig_208 of the normal line 800 at the instruction value 0, and selects the corrected effective pixel data sig_207 of the second parallax line 802 at the instruction value 1 to obtain the output sig_209. . The register 211 is a storage unit that temporarily stores the result value of the filter circuit 206. The register 211 is used to update the estimated black level of the OB pixel data 812 by the filter circuit 206 when one frame is completed, and to write it back to the filter circuit 206 as an initial value at the start of the next frame scan. The register 211 can also update the initial value from the CPU 100.

図18は、図11のクランプ処理回路1041の処理を示すタイミングチャートである。信号sig_200は、クランプ処理回路1041への入力画像信号であり、図9のフレームデータ900の転送状態である。信号sig_200には、図9のフレーム構成の通常ライン800のOB画素データ810、通常ライン800の画像形成用データ、第2の視差ライン802のOB画素データ812、第2の視差ライン802の画像形成用データを含む。信号sig_201は、積算器201の出力信号であり、検出領域901の右端の処理後は次期ラインの検出開始までは値を保持する。信号sig_202は、除算器202の出力信号であり、信号sig_201を被除数として、事前に決定した除数で除算した結果値を示す。信号sig_201,sig_202は、第2の視差ライン802の走査時には参照しない(don't care扱い)。信号sig_203は、平均化手段203の出力信号であり、任意のラインの検出領域901の完了毎に除算器202の結果の垂直ライン平均値を演算し出力した結果値を示す。信号sig_203は、第2の視差ライン802の走査時には更新しない。   FIG. 18 is a timing chart showing processing of the clamp processing circuit 1041 of FIG. A signal sig_200 is an input image signal to the clamp processing circuit 1041, and is a transfer state of the frame data 900 of FIG. The signal sig_200 includes the OB pixel data 810 of the normal line 800, the image formation data of the normal line 800, the OB pixel data 812 of the second parallax line 802, and the image formation of the second parallax line 802 in the frame configuration of FIG. Includes data. The signal sig_201 is an output signal of the accumulator 201, and holds a value until the detection of the next line is started after the processing of the right end of the detection area 901. The signal sig_202 is an output signal of the divider 202, and indicates a result value obtained by dividing the signal sig_201 by a divisor determined in advance with the signal sig_201 as a dividend. The signals sig_201 and sig_202 are not referred to when the second parallax line 802 is scanned (handled as don't care). A signal sig_203 is an output signal of the averaging means 203, and indicates a result value obtained by calculating and outputting the average value of the vertical line of the result of the divider 202 every completion of the detection area 901 of an arbitrary line. The signal sig_203 is not updated when the second parallax line 802 is scanned.

信号sig_206は、フィルタ回路206の出力信号である。信号sig_206は、第2の視差ライン802の走査時に更新する。信号sig_216,sig_217は、前述のような遅延関係を持った信号sig_200の遅延データである。両信号の出力タイミングは揃えられ、図18のように、同一の信号状態となる。信号sig_213,sig_214は、SSG210が発行する補正パラメータマスク用のステータス信号である。信号sig_213は、通常ライン800の画像形成用データにオフセット補正をするように状態を制御する。ここでは、信号sig_213が1値状態で補正パラメータ有効と定義し、信号sig_213が0値状態で補正パラメータは0値にマスクされオフセット補正は行わない。同様に、信号sig_214は、第2の視差ライン802の画像形成用データにオフセット補正をするように状態を制御し、信号sig_213と同様に、0値状態で補正パラメータは0値にマスクされオフセット補正は行わない。   The signal sig_206 is an output signal of the filter circuit 206. The signal sig_206 is updated when the second parallax line 802 is scanned. Signals sig_216 and sig_217 are delay data of the signal sig_200 having the delay relationship as described above. The output timings of both signals are aligned, and the same signal state is obtained as shown in FIG. Signals sig_213 and sig_214 are status signals for correction parameter mask issued by the SSG 210. The signal sig_213 controls the state so that the image forming data of the normal line 800 is offset-corrected. Here, it is defined that the correction parameter is valid when the signal sig_213 is in the 1 value state, and the correction parameter is masked to 0 value when the signal sig_213 is in the 0 value state, and offset correction is not performed. Similarly, the signal sig_214 controls the state so that the image forming data of the second parallax line 802 is offset-corrected, and the correction parameter is masked to 0 value and offset correction is performed in the 0-value state, similarly to the signal sig_213. Do not do.

信号sig_208は、通常ライン800の処理時の補正結果信号であり、信号sig_207は、第2の視差ライン802の処理時の補正結果信号である。信号sig_210は、SSG210により生成される補正ラインのスタータス信号である。信号sig_210が1値のときに第2の視差ライン802の走査としてセレクタ209は信号sig_207を信号sig_209として出力し、それ以外では信号sig_208を信号sig_209として出力する。この信号sig_209がクランプ処理回路1041の出力信号になる。   The signal sig_208 is a correction result signal when the normal line 800 is processed, and the signal sig_207 is a correction result signal when the second parallax line 802 is processed. The signal sig_210 is a correction line status signal generated by the SSG 210. The selector 209 outputs the signal sig_207 as the signal sig_209 as scanning of the second parallax line 802 when the signal sig_210 is 1, and otherwise outputs the signal sig_208 as the signal sig_209. This signal sig_209 becomes an output signal of the clamp processing circuit 1041.

クランプ処理回路1041の黒レベル推定値は、図2の増幅器44のゲイン値の変更時にレベル変動する。図12(a)は、増幅器44のゲイン値1201とそのときの代表黒レベル1202との関係を示す。代表黒レベル1202は、任意に設定した温度環境下での事前に複数取得した工程値の平均値であり、ROM106に保持しておく。増幅器44のゲイン値が切り替わると、フレームを跨いで安定していたフィルタ回路206の黒レベル推定値は、新たな目標値に向かって、回路の時定数に係る時間経過を要して、レベル変動する。時定数分の不安定な期間を短縮するためには、レジスタ211に対して、増幅器44の次期設定ゲイン値に対応した代表黒レベルをCPU100経由で書き込むことで対応する。   The black level estimated value of the clamp processing circuit 1041 varies when the gain value of the amplifier 44 in FIG. 2 is changed. FIG. 12A shows the relationship between the gain value 1201 of the amplifier 44 and the representative black level 1202 at that time. The representative black level 1202 is an average value of a plurality of process values acquired in advance under an arbitrarily set temperature environment, and is stored in the ROM 106. When the gain value of the amplifier 44 is switched, the black level estimation value of the filter circuit 206 that has been stable across the frames requires a lapse of time according to the time constant of the circuit toward the new target value, and the level fluctuation To do. In order to shorten the unstable period corresponding to the time constant, a representative black level corresponding to the next set gain value of the amplifier 44 is written to the register 211 via the CPU 100.

ここで、代表黒レベル1202は、事前に設定した任意の温度(常温等)時の代表値である。暗電流起因の黒レベルの温度特性を加味しなければいけないときに、実動作時の撮像素子103の温度と乖離している代表黒レベル1202をそのまま適用するのでは、撮像素子103の温度特性追従を果たさない。そこで、本実施形態の特徴である温度特性追従をするための補償パラメータとして、図12(b)に示すように、増幅器44のゲイン値1203に対する温度補償係数1204〜1208を提供する。ここで、フィルタ回路206における黒レベル推定値の増幅器44のゲイン値変更に対する温度特性追従の継承について説明する。   Here, the representative black level 1202 is a representative value at an arbitrary temperature (such as room temperature) set in advance. When the black level temperature characteristic due to dark current must be taken into account, if the representative black level 1202 that is different from the temperature of the image sensor 103 during actual operation is applied as it is, the temperature characteristic tracking of the image sensor 103 is followed. Does not fulfill. Therefore, temperature compensation coefficients 1204 to 1208 for the gain value 1203 of the amplifier 44 are provided as compensation parameters for following the temperature characteristics, which is a feature of this embodiment, as shown in FIG. Here, the inheritance of the temperature characteristic tracking to the gain value change of the amplifier 44 of the black level estimation value in the filter circuit 206 will be described.

前述のように、本実施形態では、クランプ処理回路1041の構成、通常ライン800の黒レベル推定は1フレーム完結するように、また、第2の視差ライン802の黒レベル推定は複数フレームで継承するように構成している。黒レベル検出領域901において、第2の視差ライン802は出現頻度が低く、フィルタ回路206はIIRフィルタ構成である。図10の黒レベルはオフセット性の暗電流成分を含み、温度特性(温度上昇で黒レベルも大きくなる)を持つ。   As described above, in this embodiment, the configuration of the clamp processing circuit 1041 and the black level estimation of the normal line 800 are completed by one frame, and the black level estimation of the second parallax line 802 is inherited by a plurality of frames. It is configured as follows. In the black level detection region 901, the appearance frequency of the second parallax line 802 is low, and the filter circuit 206 has an IIR filter configuration. The black level in FIG. 10 includes an offset dark current component and has a temperature characteristic (the black level increases as the temperature rises).

図13は、フィルタ回路206の連続フレーム処理において、CPU100が行う温度補償処理のフローチャートである。温度補償処理は、ROM106に格納されたプログラムの1処理として実施される。本実施形態では、CPU100は、フレーム処理終了時にレジスタ211にフィルタ回路206の黒レベル推定値を格納し、次期フレーム開始時に読み出してフィルタ回路206へ再設定する。このときのレジスタ211の更新及びフィルタ回路206への書き戻しは、SSG210が行えば良い。レジスタ211に対する温度補償用の初期値格納・更新は、SSG210によるレジスタ211値更新からフィルタ206への書き戻しの間に、CPU100がプログラムを実施する。   FIG. 13 is a flowchart of temperature compensation processing performed by the CPU 100 in the continuous frame processing of the filter circuit 206. The temperature compensation process is performed as one process of the program stored in the ROM 106. In the present embodiment, the CPU 100 stores the estimated black level value of the filter circuit 206 in the register 211 at the end of the frame processing, reads it out at the start of the next frame, and resets it in the filter circuit 206. The updating of the register 211 and the writing back to the filter circuit 206 at this time may be performed by the SSG 210. The initial value storage / update for temperature compensation in the register 211 is executed by the CPU 100 between the update of the register 211 value by the SSG 210 and the writing back to the filter 206.

ステップS100では、CPU100は、次期フレーム撮像における増幅器44のゲイン値の変更があるか否かを判定し、変更があると判定した場合にはステップS101に処理を進め、変更がないと判定した場合には温度補償処理を終了する。ステップS101では、CPU100は、レジスタ211の格納値を読み出す。次に、ステップS102では、CPU100は、現フレーム処理に用いたゲイン値(変更前のゲイン値)1201に対する代表黒レベル1202を図12(a)のテーブルから読み出す。次に、ステップS103では、CPU100は、レジスタ211の値及び代表黒レベル1202の比率ratioを計算する。次に、ステップS104では、CPU100は、増幅器44に設定する次期ゲイン値(変更後のゲイン値)1201に対応した代表黒レベル1202を図12(a)のテーブルから読み出す。   In step S100, the CPU 100 determines whether or not there is a change in the gain value of the amplifier 44 in the next frame imaging. When it is determined that there is a change, the process proceeds to step S101, and when it is determined that there is no change. The temperature compensation process ends. In step S101, the CPU 100 reads the stored value of the register 211. Next, in step S102, the CPU 100 reads the representative black level 1202 for the gain value (gain value before change) 1201 used for the current frame processing from the table of FIG. Next, in step S103, the CPU 100 calculates the ratio ratio of the value of the register 211 and the representative black level 1202. Next, in step S104, the CPU 100 reads the representative black level 1202 corresponding to the next gain value (changed gain value) 1201 set in the amplifier 44 from the table of FIG.

次に、ステップS105〜S115では、CPU100は、温度補償係数の決定処理を実行する。図12(c)は、温度変化指標1209を示し、先程計算した比率ratioの大小関係から現在温度と基準温度との乖離を関係付けたものであり、次期ゲイン値によるフレーム処理時の代表黒レベルの初期値の温度補償係数を推定するのに用いる。本実施形態では、この温度変化指標1209は、センサー製造過程またはセンサー評価過程で取得する工程値である。プロセス上の傾向や、製造上の個体差を鑑みて、数値自体は固定されない。また、ここでは、温度変化指標1209は、div(A)〜div(E)の5領域に分割しているが、これも実情に合わせれば良い。   Next, in steps S105 to S115, the CPU 100 executes a temperature compensation coefficient determination process. FIG. 12 (c) shows a temperature change index 1209, which relates the deviation between the current temperature and the reference temperature based on the magnitude relationship of the ratio ratio calculated earlier, and represents the representative black level during frame processing with the next gain value. Is used to estimate the initial temperature compensation coefficient. In the present embodiment, the temperature change index 1209 is a process value acquired in the sensor manufacturing process or the sensor evaluation process. The numerical value itself is not fixed in view of process trends and individual differences in manufacturing. Here, the temperature change index 1209 is divided into five regions of div (A) to div (E), but this may also be matched to the actual situation.

ステップS105では、CPU100は、比率ratioが温度変化指標div(A)よりも小さいか否かを判定し、小さいと判定した場合にはステップS106に処理を進め、小さくないと判定した場合にはステップS107に処理を進める。ステップS106では、CPU100は、基準黒レベルをそのまま適用するものとして、調整値を1に設定し、ステップS116に処理を進める。調整値は、図12(b)の温度補償係数テーブルからの選択値を差すが、ステップS106の時のみ特別に参照テーブルなしで、1に設定する。   In step S105, the CPU 100 determines whether or not the ratio ratio is smaller than the temperature change index div (A). If it is determined that the ratio ratio is small, the process proceeds to step S106. The process proceeds to S107. In step S106, assuming that the reference black level is applied as it is, the CPU 100 sets the adjustment value to 1, and proceeds to step S116. The adjustment value is a value selected from the temperature compensation coefficient table of FIG. 12B, but is set to 1 without any special reference table only at step S106.

ステップS107では、CPU100は、比率ratioが温度変化指標に対して、div(A)≦ratio<div(B)の条件を満たすか否かを判定する。そして、CPU100は、条件を満たすと判定した場合にはステップS108に処理を進め、条件を満たさないと判定した場合にはステップS109に処理を進める。ステップS108では、CPU100は、調整値として、図12(b)の温度補償係数1204のうちの次期ゲイン値1203に対応する値を設定し、ステップS116に処理を進める。   In step S107, the CPU 100 determines whether or not the ratio ratio satisfies the condition of div (A) ≦ ratio <div (B) with respect to the temperature change index. If the CPU 100 determines that the condition is satisfied, the process proceeds to step S108. If the CPU 100 determines that the condition is not satisfied, the process proceeds to step S109. In step S108, the CPU 100 sets a value corresponding to the next gain value 1203 in the temperature compensation coefficient 1204 in FIG. 12B as the adjustment value, and proceeds to step S116.

ステップS109では、CPU100は、比率ratioが温度変化指標に対して、div(B)≦ratio<div(C)の条件を満たすか否かを判定する。そして、CPU100は、条件を満たすと判定した場合にはステップS110に処理を進め、条件を満たさないと判定した場合にはステップS111に処理を進める。ステップS110では、CPU100は、調整値として、図12(b)の温度補償係数1205のうちの次期ゲイン値1203に対応する値を設定し、ステップS116に処理を進める。   In step S109, the CPU 100 determines whether or not the ratio ratio satisfies the condition of div (B) ≦ ratio <div (C) with respect to the temperature change index. If the CPU 100 determines that the condition is satisfied, the CPU 100 proceeds to step S110. If the CPU 100 determines that the condition is not satisfied, the CPU 100 proceeds to step S111. In step S110, the CPU 100 sets a value corresponding to the next gain value 1203 in the temperature compensation coefficient 1205 in FIG. 12B as the adjustment value, and proceeds to step S116.

ステップS111では、CPU100は、比率ratioが温度変化指標に対して、div(C)≦ratio<div(D)の条件を満たすか否かを判定する。そして、CPU100は、条件を満たすと判定した場合にはステップS112に処理を進め、条件を満たさないと判定した場合にはステップS113に処理を進める。ステップS112では、CPU100は、調整値として、図12(b)の温度補償係数1206のうちの次期ゲイン値1203に対応する値を設定し、ステップS116に処理を進める。   In step S111, the CPU 100 determines whether or not the ratio ratio satisfies the condition of div (C) ≦ ratio <div (D) with respect to the temperature change index. If the CPU 100 determines that the condition is satisfied, the process proceeds to step S112. If the CPU 100 determines that the condition is not satisfied, the CPU 100 proceeds to step S113. In step S112, the CPU 100 sets a value corresponding to the next gain value 1203 in the temperature compensation coefficient 1206 of FIG. 12B as the adjustment value, and proceeds to step S116.

ステップS113では、CPU100は、比率ratioが温度変化指標に対して、div(D)≦ratio<div(E)の条件を満たすか否かを判定する。そして、CPU100は、条件を満たすと判定した場合にはステップS114に処理を進め、条件を満たさないと判定した場合にはステップS115に処理を進める。ステップS114では、CPU100は、調整値として、図12(b)の温度補償係数1207のうちの次期ゲイン値1203に対応する値を設定し、ステップS116に処理を進める。ステップS115では、CPU100は、div(E)≦ratioであるので、調整値として、図12(b)の温度補償係数1208のうちの次期ゲイン値1203に対応する値を設定し、ステップS116に処理を進める。   In step S113, the CPU 100 determines whether or not the ratio ratio satisfies the condition of div (D) ≦ ratio <div (E) with respect to the temperature change index. If the CPU 100 determines that the condition is satisfied, the process proceeds to step S114. If the CPU 100 determines that the condition is not satisfied, the process proceeds to step S115. In step S114, the CPU 100 sets a value corresponding to the next gain value 1203 in the temperature compensation coefficient 1207 in FIG. 12B as the adjustment value, and proceeds to step S116. In step S115, since div (E) ≦ ratio, the CPU 100 sets a value corresponding to the next gain value 1203 in the temperature compensation coefficient 1208 in FIG. 12B as the adjustment value, and the process proceeds to step S116. To proceed.

ステップS116では、CPU100は、次期フレーム処理のためのフィルタ回路206に設定する調整黒レベルとして、増幅器44の次期ゲイン値1201に対応する代表黒レベル1202と、ステップS105〜S115で求めた調整値との積を演算する。すなわち、CPU100は、制御手段であり、比率ratioに応じた調整値で、増幅器44の次期ゲイン値1201に対応する代表黒レベル1202を調整する。次に、ステップS117では、CPU100は、制御手段であり、ステップS116の演算結果の黒レベルをレジスタ211に書き込み、温度補償処理を終了する。本実施形態では、上記の処理を1フレーム撮像完了毎に実施する。本実施形態では、温度変化を代表黒レベル1202と、現レジスタ211の値との比率ratioで求めたが、温度変化が緩やかであり、ゲイン設定毎の変化が少ない場合には、両者の差で行っても良い。   In step S116, the CPU 100 sets the representative black level 1202 corresponding to the next gain value 1201 of the amplifier 44 as the adjustment black level set in the filter circuit 206 for the next frame processing, and the adjustment value obtained in steps S105 to S115. The product of is calculated. That is, the CPU 100 is a control unit and adjusts the representative black level 1202 corresponding to the next gain value 1201 of the amplifier 44 with an adjustment value corresponding to the ratio ratio. Next, in step S117, the CPU 100 is a control unit, writes the black level of the calculation result in step S116 into the register 211, and ends the temperature compensation process. In the present embodiment, the above processing is performed every time one frame is imaged. In this embodiment, the temperature change is obtained by the ratio ratio between the representative black level 1202 and the value of the current register 211. However, when the temperature change is gradual and the change for each gain setting is small, the difference between the two is obtained. You can go.

図11の積算器201は、レジスタ構成であり、指定領域の有効データをレジスタ値に積算する。また、図11の除算器202は、その構成を限定しないが、例えば検出領域901の水平方向画素数(積算画素数)が2のべき乗であれば、信号に対するビットシフトだけで構成可能である。2のべき乗ではなく、厳密な除算をする場合には、特開2013−142570号公報の図3に記載のような除算器で対応できる。そのような場合、同期回路における除算処理には複数サイクルを要するので、例えば、図11に記載の遅延素子の遅延因子としてタイミング調整を考慮する対象となる。   The accumulator 201 in FIG. 11 has a register configuration, and accumulates valid data in a designated area to a register value. Further, the configuration of the divider 202 in FIG. 11 is not limited. For example, if the number of pixels in the detection area 901 in the horizontal direction (the number of integrated pixels) is a power of 2, the divider 202 can be configured only by bit shift with respect to the signal. When a strict division is performed instead of a power of 2, a divider such as that shown in FIG. 3 of Japanese Patent Laid-Open No. 2013-142570 can be used. In such a case, the division processing in the synchronous circuit requires a plurality of cycles, and therefore, for example, timing adjustment is considered as a delay factor of the delay element illustrated in FIG.

図11のフィルタ回路206は、IIRフィルタとして一般的な構成で良いが、本実施形態では、レジスタ211の値による初期化を含むので、その説明をする。図14は、図11のフィルタ回路206の構成例を示す。IIRフィルタ206の一般式としては、入力X、出力Yに対して、任意のn番目の処理は、次式(1)で表され、式(1)を展開すると、次式(2)が得られる。入力Xは差分sig_205であり、出力Yは黒レベルsig_206である。
Yn=A・Xn+(1−A)・Yn−1 ・・・(1)
Yn=A・(Xn−Yn−1)+Yn−1 ・・・(2)
The filter circuit 206 in FIG. 11 may have a general configuration as an IIR filter, but in this embodiment, the initialization includes the initialization by the value of the register 211, which will be described. FIG. 14 shows a configuration example of the filter circuit 206 of FIG. As a general expression of the IIR filter 206, an arbitrary n-th process for the input X and the output Y is expressed by the following expression (1). When the expression (1) is expanded, the following expression (2) is obtained. It is done. The input X is the difference sig_205, and the output Y is the black level sig_206.
Yn = A.Xn + (1-A) .Yn-1 (1)
Yn = A · (Xn−Yn−1) + Yn−1 (2)

図14のフィルタ回路206は、式(2)に対応した回路である。図14の加算器303は、式(2)の加算ための加算器である。乗算器304は、係数Aをゲイン値とする乗算器である。減算器305は、式(2)の減算のための減算器である。レジスタ301は、フリップフロップ回路で構成される。レジスタ301は、クロックによる同期設計で例示する。論理素子302は、レジスタ301をリセットするためのANDゲートであり、信号sig_306が1値となったときに、クロックに同期してレジスタ301を0値に初期化する。組み合わせロジック307は、信号sig_304が1値となったときに信号sig_211の値でレジスタ301を更新する。すなわち、レジスタ301は、信号sig_304が1値となったときに、レジスタ211の黒レベルsig_211の値に更新される。組み合わせロジック306は、信号sig_306=sig_304=0値であり、かつ信号sig_303が1値の場合に、レジスタ301を入力sig_205に対して演算した値で更新する。信号sig_205,sig_206,sig_211は、図11の信号に等しい。信号sig_303,sig_304,sig_306は、図11に不図示である。以上のように、フィルタ回路206は、減算器205が出力する差分sig_205とレジスタ211に記憶されている黒レベルsig_211を基に、第2の視差ライン802の黒レベルsig_206を出力する。   The filter circuit 206 in FIG. 14 is a circuit corresponding to Expression (2). An adder 303 in FIG. 14 is an adder for the addition of Expression (2). The multiplier 304 is a multiplier that uses the coefficient A as a gain value. The subtractor 305 is a subtracter for subtraction of Expression (2). The register 301 is composed of a flip-flop circuit. The register 301 is exemplified in the synchronous design by the clock. The logic element 302 is an AND gate for resetting the register 301. When the signal sig_306 becomes 1 value, the logic element 302 initializes the register 301 to 0 value in synchronization with the clock. The combinational logic 307 updates the register 301 with the value of the signal sig_211 when the signal sig_304 becomes one value. That is, the register 301 is updated to the value of the black level sig_211 of the register 211 when the signal sig_304 becomes one value. The combinational logic 306 updates the register 301 with the value calculated for the input sig_205 when the signal sig_306 = sig_304 = 0 and the signal sig_303 is one. Signals sig_205, sig_206, and sig_211 are equal to the signals in FIG. Signals sig_303, sig_304, and sig_306 are not shown in FIG. As described above, the filter circuit 206 outputs the black level sig_206 of the second parallax line 802 based on the difference sig_205 output from the subtractor 205 and the black level sig_211 stored in the register 211.

図15は、上記の信号sig_205,sig_206,sig_211,sig_303,sig_304,sig_306のタイミングチャートである。前述のように、図14のフィルタ回路206は、クロックによる同期設計で例示する。図15のタイミングチャートでは、クロック表記を省略しているが、各信号はクロック同期した同相転送が成立しているものとする。   FIG. 15 is a timing chart of the signals sig_205, sig_206, sig_2211, sig_303, sig_304, and sig_306. As described above, the filter circuit 206 in FIG. 14 is exemplified by a synchronous design using a clock. In the timing chart of FIG. 15, clock notation is omitted, but it is assumed that in-phase transfer synchronized with the clock is established for each signal.

信号sig_206は、レジスタ301の出力信号である。信号sig_206は、信号sig_306が1値になったクロック周期で初期化(reset)される。また、フィルタ回路206の出力値を記憶するレジスタ301は、初期化時及びレジスタ211の更新(増幅器44のゲイン値の変更)時の信号sig_304が1値になったクロック周期で、レジスタ211の黒レベルsig_211の値に更新される。信号sig_211の値は、図11のレジスタ211の出力値である。レジスタ301は、信号sig_303が1値のときのクロック周期で、そのときの入力信号sig_205の値と、現在のレジスタ301の値との、式(2)の演算を実施した結果値で更新される。   The signal sig_206 is an output signal of the register 301. The signal sig_206 is initialized (reset) at a clock cycle in which the signal sig_306 becomes one value. Further, the register 301 for storing the output value of the filter circuit 206 has a clock cycle in which the signal sig_304 becomes 1 value at the time of initialization and update of the register 211 (change of the gain value of the amplifier 44). Updated to the value of level sig — 211. The value of the signal sig_211 is an output value of the register 211 in FIG. The register 301 has a clock cycle when the signal sig_303 is 1 value, and is updated with a result value obtained by performing the calculation of the expression (2) between the value of the input signal sig_205 at that time and the current value of the register 301. .

以上のように、フレームデータ900は、通常ライン800の数が第2の視差ライン802の数より多い。積算器201と除算器202と平均化手段203は、フレームデータ900の中の複数の通常ライン800に基づき、通常ライン800の黒レベルsig_203を出力する。これに対し、遅延素子215と減算器205とフィルタ回路206は、複数のフレームデータ900の第2の視差ライン802に基づき、第2の視差ライン802の黒レベルsig_206を出力する。   As described above, in the frame data 900, the number of normal lines 800 is larger than the number of second parallax lines 802. The accumulator 201, the divider 202, and the averaging means 203 output the black level sig_203 of the normal line 800 based on the plurality of normal lines 800 in the frame data 900. On the other hand, the delay element 215, the subtractor 205, and the filter circuit 206 output the black level sig_206 of the second parallax line 802 based on the second parallax line 802 of the plurality of frame data 900.

図11の平均化手段203の構成は、一般的ではないので、図16を用いて説明する。図16は、平均化手段203のデジタル回路の構成例を示し、図17はそのタイミングチャートを示す。本実施形態では、平均化手段203もシステム(少なくともクランプ処理回路1041)共通のクロックによる同期設計とする。   The configuration of the averaging means 203 in FIG. 11 is not general and will be described with reference to FIG. FIG. 16 shows a configuration example of a digital circuit of the averaging means 203, and FIG. 17 shows a timing chart thereof. In this embodiment, the averaging means 203 is also designed to be synchronized with a clock common to the system (at least the clamp processing circuit 1041).

レジスタ501〜508は、シフトレジスタ構成を有し、1ライン分の検出処理完了時の黒レベル推定代表値を1ライン検出処理完了時に更新していく。本実施形態では、平均化手段203は、8ラインの移動平均を演算するような回路構成として例示する。図16の信号sig_202は、図11の除算器202の出力値である。図16の信号sig_203は、平均化手段203の出力としての黒レベル推定値の垂直8ライン移動平均値である。   The registers 501 to 508 have a shift register configuration, and update the black level estimated representative value when the detection processing for one line is completed when the detection processing for one line is completed. In this embodiment, the averaging means 203 is exemplified as a circuit configuration that calculates a moving average of 8 lines. A signal sig_202 in FIG. 16 is an output value of the divider 202 in FIG. A signal sig_203 in FIG. 16 is a vertical 8-line moving average value of the black level estimation value as an output of the averaging means 203.

図16の信号sig_503は、検出領域901における1ライン処理完了後のイベント信号であり、除算器202の結果値が有効であることを示す。図16の信号sig_504は、8ライン平均計算時のシフトレジスタ501〜508の結果出力を選択するためのカウンタ値である。図16の信号sig_505は、シフトレジスタ501〜508の値を積算する期間を示すステータス信号である。図16の信号sig_506は、移動平均結果を更新するイベント信号である。信号sig_507は、回路全体のレジスタの初期化を行うリセット信号である。図16の信号sig_508〜sig_515は、シフトレジスタ501〜508のレジスタ値の夫々の保持値である。図16の信号sig_516は、シフトレジスタ値の信号sig_508〜sig_515の中の1つの選択結果信号である。図16の信号sig_517は、シフトレジスタ値の信号sig_508〜sig_515の積算結果値である。これら信号値は、図17に示すようなタイミング関係を持つ。   A signal sig_503 in FIG. 16 is an event signal after the completion of one line processing in the detection region 901, and indicates that the result value of the divider 202 is valid. A signal sig_504 in FIG. 16 is a counter value for selecting a result output of the shift registers 501 to 508 at the time of 8-line average calculation. A signal sig_505 in FIG. 16 is a status signal indicating a period during which the values of the shift registers 501 to 508 are integrated. A signal sig_506 in FIG. 16 is an event signal for updating the moving average result. The signal sig_507 is a reset signal that initializes the registers of the entire circuit. Signals sig_508 to sig_515 in FIG. 16 are holding values of the register values of the shift registers 501 to 508, respectively. A signal sig_516 in FIG. 16 is one selection result signal among the signals sig_508 to sig_515 of the shift register value. A signal sig_517 in FIG. 16 is an integration result value of the signals sig_508 to sig_515 of the shift register value. These signal values have a timing relationship as shown in FIG.

信号sig_503,sig_504,sig_505,sig_506,sig_507は、図11では不図示であり、図11のSSG210中でのフレームカウンタの状態からのイベント発生により生成される。また、リセット信号sig_507は、フレーム処理開始前に一度イベントを発生すれば良いので、CPU100からのレジスタ(不図示)設定値を投入しても良い。   Signals sig_503, sig_504, sig_505, sig_506, and sig_507 are not shown in FIG. 11, and are generated by the occurrence of an event from the state of the frame counter in the SSG 210 of FIG. Further, the reset signal sig_507 may generate a register (not shown) set value from the CPU 100 since it is sufficient to generate an event once before the start of frame processing.

信号sig_503は、前述のように、検出領域901の任意の1ライン完了イベントである。信号sig_505は、上記のsig_503のイベントを受けてからクロック8サイクル分の周期を得るステータス信号である。また、信号sig_505が1値状態の期間、信号sig_504のカウンタ値は1インクリメントされていき、セレクタ509の出力値選択切替を実施する。この信号sig_504を生成するカウンタ(不図示)及びsig_505の生成ロジックは、SSG210内にあっても良いし、クランプ処理回路1041中にあっても良い。   The signal sig_503 is an arbitrary one line completion event in the detection area 901 as described above. The signal sig_505 is a status signal for obtaining a period of 8 clock cycles after receiving the event of the sig_503. Further, while the signal sig_505 is in the one-value state, the counter value of the signal sig_504 is incremented by 1, and the output value selection switching of the selector 509 is performed. The counter (not shown) for generating the signal sig_504 and the generation logic of the sig_505 may be in the SSG 210 or in the clamp processing circuit 1041.

図16の加算器510は、レジスタ511に信号sig_508〜sig_515の値を積算していくために用いられる。このときの積算タイミングは、図16の信号sig_505によって与えられる(図17の信号sig_505参照)。レジスタ511は、回路全体のリセット信号sig_507による他、信号sig_503によっても初期化(0値)される(図17の信号sig_517参照)。レジスタ511に格納された信号sig_508〜sig_515の積算結果の信号sig_517は、本実施形態では、8ライン分の移動平均として例示する。そのため、信号sig_517は、1/8の演算として、信号を下位3ビット切り捨てして(図16の「R3」は右3ビットシフトを示す)、信号sig_506のタイミングで図16のレジスタ512に格納する(図17の信号sig_203参照)。   The adder 510 in FIG. 16 is used to accumulate the values of the signals sig_508 to sig_515 in the register 511. The integration timing at this time is given by the signal sig_505 in FIG. 16 (see the signal sig_505 in FIG. 17). The register 511 is initialized (0 value) not only by the reset signal sig_507 of the entire circuit but also by the signal sig_503 (see the signal sig_517 in FIG. 17). The signal sig_517 of the integration result of the signals sig_508 to sig_515 stored in the register 511 is exemplified as a moving average for 8 lines in this embodiment. Therefore, the signal sig_517 is truncated to the lower 3 bits (“R3” in FIG. 16 indicates a right 3 bit shift) as a 1/8 operation, and is stored in the register 512 in FIG. 16 at the timing of the signal sig_506. (See signal sig_203 in FIG. 17).

また、本実施形態では、フィルタ回路206をIIRフィルタで実施するように設定した。この場合、検出領域901中のOB画素データ812の右端値がライン平均と乖離したような場合(微小キズ画素に当たった等)に、そのラインの黒レベル推定値に影響を及ぼす。そのような場合を回避するためのクランプ処理回路1041を図19に示す。図19に示すように、クランプ処理回路1041は、フィルタ回路206の入力を通常ライン800の黒レベル推定値と、第2の視差ライン802のライン平均との差分で演算するようにする構成を有する。図19の積算器219は、図11の積算器201と同様の積算器である。図19の除算器220は、図11の除算器202と同様の除算器である。図19の遅延素子218の遅延量は、遅延素子218、積算器219、除算器220及びフィルタ回路206の夫々の遅延量の総和が、図19の遅延素子217の遅延量と等しくなるように設定される。   In the present embodiment, the filter circuit 206 is set to be implemented by an IIR filter. In this case, when the right end value of the OB pixel data 812 in the detection area 901 deviates from the line average (such as hitting a minute scratched pixel), the black level estimated value of the line is affected. A clamp processing circuit 1041 for avoiding such a case is shown in FIG. As shown in FIG. 19, the clamp processing circuit 1041 has a configuration in which the input of the filter circuit 206 is calculated by the difference between the black level estimated value of the normal line 800 and the line average of the second parallax line 802. . An integrator 219 in FIG. 19 is an integrator similar to the integrator 201 in FIG. A divider 220 in FIG. 19 is a divider similar to the divider 202 in FIG. The delay amount of the delay element 218 in FIG. 19 is set so that the sum of the delay amounts of the delay element 218, the integrator 219, the divider 220, and the filter circuit 206 is equal to the delay amount of the delay element 217 in FIG. Is done.

本実施形態によれば、通常ライン800と第2の視差ライン802との間のオフセット段差を含むようなフレームデータ処理においても、オフセット段差の温度特性に追従することができ、安定したオフセット補正を実現可能である。クランプ処理回路1041は、通常ライン800の黒レベルsig_203と第2の視差ライン802の黒レベルsig_206をそれぞれ推定し、通常ライン800及び第2の視差ライン802の有効画素データを補正する。これにより、横縞の発生を抑制することができる。また、クランプ処理回路1041は、第2の視差ライン802の黒レベル推定を多くのフレームから得た信号に基いて継続して実施することで、オフセット段差の温度特性に追従することができ、安定したオフセット補正を行うことができる。   According to the present embodiment, even in frame data processing including an offset step between the normal line 800 and the second parallax line 802, it is possible to follow the temperature characteristics of the offset step and perform stable offset correction. It is feasible. The clamp processing circuit 1041 estimates the black level sig_203 of the normal line 800 and the black level sig_206 of the second parallax line 802, respectively, and corrects the effective pixel data of the normal line 800 and the second parallax line 802. Thereby, generation | occurrence | production of a horizontal stripe can be suppressed. In addition, the clamp processing circuit 1041 can follow the temperature characteristics of the offset step by continuously performing the black level estimation of the second parallax line 802 based on signals obtained from many frames, and can stably Offset correction can be performed.

なお、上記実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed in a limited manner. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

1 撮像装置、104 信号処理回路、201 積算器、202 除算器、203 平均化手段、204,207 減算器、208 加算器、211,212 レジスタ、213,214 論理素子(ANDゲート)、215,216,217 遅延素子、1041 クランプ処理手段(クランプ処理回路) DESCRIPTION OF SYMBOLS 1 Imaging device, 104 Signal processing circuit, 201 Accumulator, 202 Divider, 203 Averaging means, 204,207 Subtractor, 208 Adder, 211,212 Register, 213,214 Logic element (AND gate), 215,216 , 217 Delay element, 1041 Clamp processing means (clamp processing circuit)

Claims (17)

複数の第1の光学的黒画素データ及び複数の第1の有効画素データを含む第1のラインデータと、複数の第2の光学的黒画素データ及び複数の第2の有効画素データを含む第2のラインデータとを有するフレームデータを入力する信号処理回路であって、
前記第1のラインデータの複数の第1の光学的黒画素データを基に、前記第1のラインデータの黒レベルを推定する第1の黒レベル推定手段と、
前記第2のラインデータの複数の第2の光学的黒画素データと前記第1の黒レベル推定手段により推定された前記第1のラインデータの黒レベルとを基に、前記第2のラインデータの黒レベルを推定する第2の黒レベル推定手段と
を有することを特徴とする信号処理回路。
First line data including a plurality of first optical black pixel data and a plurality of first effective pixel data, a first line data including a plurality of second optical black pixel data and a plurality of second effective pixel data. A signal processing circuit for inputting frame data having two line data,
First black level estimation means for estimating a black level of the first line data based on a plurality of first optical black pixel data of the first line data;
Based on the plurality of second optical black pixel data of the second line data and the black level of the first line data estimated by the first black level estimation means, the second line data And a second black level estimating means for estimating the black level of the signal processing circuit.
さらに、前記第1の黒レベル推定手段により推定された黒レベルを基に、前記第1のラインの複数の第1の有効画素データを補正し、前記第2の黒レベル推定手段により推定された黒レベルを基に、前記第2のラインの複数の第2の有効画素データを補正する補正手段を有することを特徴とする請求項1に記載の信号処理回路。   Further, based on the black level estimated by the first black level estimating means, the plurality of first effective pixel data of the first line is corrected and estimated by the second black level estimating means. 2. The signal processing circuit according to claim 1, further comprising correction means for correcting a plurality of second effective pixel data of the second line based on a black level. 前記第2の黒レベル推定手段は、前記第2のラインデータの複数の第2の光学的黒画素データと前記第1の黒レベル推定手段により推定された黒レベルとの差分を演算する減算手段を有することを特徴とする請求項1又は2に記載の信号処理回路。   The second black level estimation means is a subtraction means for calculating a difference between the plurality of second optical black pixel data of the second line data and the black level estimated by the first black level estimation means. The signal processing circuit according to claim 1, further comprising: 前記第2の黒レベル推定手段は、前記減算手段により演算された差分を入力するフィルタ手段を有することを特徴とする請求項3に記載の信号処理回路。   4. The signal processing circuit according to claim 3, wherein the second black level estimating means includes a filter means for inputting a difference calculated by the subtracting means. 前記第1の黒レベル推定手段は、
前記第1のラインの複数の第1の光学的黒画素データを積算する積算手段と、
前記積算手段により積算されたデータを前記複数の第1の光学的黒画素データの数で除算する除算手段と、
複数の第1のラインに対して、前記除算手段により除算されたデータを平均化する平均化手段とを有することを特徴とする請求項1乃至4のいずれか1項に記載の信号処理回路。
The first black level estimation means includes:
Integrating means for integrating a plurality of first optical black pixel data of the first line;
Division means for dividing the data accumulated by the accumulation means by the number of the plurality of first optical black pixel data;
5. The signal processing circuit according to claim 1, further comprising: averaging means for averaging data divided by the dividing means for a plurality of first lines. 6.
さらに、前記第1のラインでは、前記補正手段により補正された第1の有効画素データを選択し、前記第2のラインでは、前記補正手段により補正された第2の有効画素データを選択する選択手段と、
前記フレームデータの入力量を計数し、前記計数の値に応じて前記選択手段の選択を制御する計数手段とを有することを特徴とする請求項2に記載の信号処理回路。
In the first line, the first effective pixel data corrected by the correcting unit is selected, and in the second line, the second effective pixel data corrected by the correcting unit is selected. Means,
The signal processing circuit according to claim 2, further comprising: a counting unit that counts an input amount of the frame data and controls selection of the selection unit according to the count value.
初期値の黒レベル又は前記フィルタ手段が出力する黒レベルを記憶する記憶手段と、
前記フィルタ手段は、前記フィルタ手段の出力が前記記憶手段に記憶されている黒レベルに初期化され、前記フィルタ手段の出力と前記減算手段により演算された差分とを基に、前記第2のラインデータの黒レベルを推定することを特徴とする請求項4に記載の信号処理回路。
Storage means for storing an initial black level or a black level output by the filter means;
The filter means initializes the output of the filter means to a black level stored in the storage means, and based on the output of the filter means and the difference calculated by the subtraction means, the second line The signal processing circuit according to claim 4, wherein a black level of data is estimated.
前記フレームデータは、前記第1のラインデータの数が前記第2のラインデータの数より多いことを特徴とする請求項1乃至7のいずれか1項に記載の信号処理回路。   8. The signal processing circuit according to claim 1, wherein the frame data has a larger number of the first line data than a number of the second line data. 9. 前記第1の黒レベル推定手段は、前記フレームデータの中の複数の第1のラインデータに基づき、前記第1のラインデータの黒レベルを推定し、
前記第2の黒レベル推定手段は、複数の前記フレームデータの第2のラインデータに基づき、前記第2のラインデータの黒レベルを推定することを特徴とする請求項8に記載の信号処理回路。
The first black level estimation means estimates a black level of the first line data based on a plurality of first line data in the frame data,
9. The signal processing circuit according to claim 8, wherein the second black level estimation means estimates a black level of the second line data based on second line data of the plurality of frame data. .
請求項7に記載の信号処理回路と、
光電変換により前記フレームデータに対応するデータを生成する複数の単位画素と、
前記複数の単位画素の信号を増幅する増幅手段とを有し、
前記記憶手段は、前記増幅手段のゲイン値が変更された場合に、前記増幅手段のゲイン値に応じた黒レベルを記憶し、
前記フィルタ手段は、前記増幅手段のゲイン値が変更された場合に、前記フィルタ手段の出力が前記記憶手段に記憶されている黒レベルに初期化されることを特徴とする撮像装置。
A signal processing circuit according to claim 7;
A plurality of unit pixels for generating data corresponding to the frame data by photoelectric conversion;
Amplifying means for amplifying signals of the plurality of unit pixels,
The storage means stores a black level corresponding to the gain value of the amplification means when the gain value of the amplification means is changed;
The image pickup apparatus, wherein the filter means initializes the output of the filter means to a black level stored in the storage means when the gain value of the amplifying means is changed.
さらに、前記増幅手段のゲイン値が変更された場合に、前記記憶手段に記憶されている黒レベルと前記増幅手段の変更前のゲイン値に応じた黒レベルとに応じて、前記増幅手段の変更後のゲイン値に応じた黒レベルを調整し、前記調整した黒レベルを前記記憶手段に書き込む制御手段を有することを特徴とする請求項10に記載の撮像装置。   Further, when the gain value of the amplification unit is changed, the amplification unit is changed according to the black level stored in the storage unit and the black level according to the gain value before the amplification unit is changed. 11. The imaging apparatus according to claim 10, further comprising a control unit that adjusts a black level according to a later gain value and writes the adjusted black level in the storage unit. 前記制御手段は、前記記憶手段に記憶されている黒レベルと前記増幅手段の変更前のゲイン値に応じた黒レベルとの比率と、前記増幅手段の変更後のゲイン値とに応じて、補償係数を決定し、前記増幅手段の変更後のゲイン値に応じた黒レベルと前記補償係数との積の黒レベルを前記記憶手段に書き込むことを特徴とする請求項11に記載の撮像装置。   The control means compensates according to the ratio between the black level stored in the storage means and the black level according to the gain value before the change of the amplification means, and the gain value after the change of the amplification means. 12. The imaging apparatus according to claim 11, wherein a coefficient is determined, and a black level that is a product of a black level corresponding to the gain value after the change of the amplification unit and the compensation coefficient is written in the storage unit. 前記複数の単位画素の各々は、各々が光を電荷に変換する複数の光電変換手段を有し、
前記複数の第1の光学的黒画素データと前記複数の第1の有効画素データと前記複数の第2の光学的黒画素データと前記複数の第2の有効画素データは、前記複数の光電変換手段の電荷に基づくデータが合成されたデータであり、
さらに、前記第1のラインデータに対応する前記単位画素と前記第2のラインデータに対応する前記単位画素とを異なる方法で読み出す読み出し手段を有することを特徴とする請求項10乃至12のいずれか1項に記載の撮像装置。
Each of the plurality of unit pixels has a plurality of photoelectric conversion means each for converting light into electric charge,
The plurality of first optical black pixel data, the plurality of first effective pixel data, the plurality of second optical black pixel data, and the plurality of second effective pixel data are converted into the plurality of photoelectric conversions. The data based on the charge of the means is synthesized data,
Furthermore, it has a read-out means which reads the said unit pixel corresponding to the said 1st line data, and the said unit pixel corresponding to the said 2nd line data by a different method. The imaging apparatus according to item 1.
前記読み出し手段は、前記第1のラインデータに対応する前記単位画素では、前記複数の光電変換手段の電荷に基づくデータを合成したデータのみを読み出し、前記第2のラインデータに対応する前記単位画素では、前記複数の光電変換手段のうちの一部の光電変換手段の電荷に基づくデータと前記複数の光電変換手段の電荷に基づくデータを合成したデータを読み出すことを特徴とする請求項13に記載の撮像装置。   In the unit pixel corresponding to the first line data, the reading unit reads only data obtained by combining data based on charges of the plurality of photoelectric conversion units, and the unit pixel corresponding to the second line data Then, data obtained by combining data based on charges of some of the plurality of photoelectric conversion means and data based on charges of the plurality of photoelectric conversion means is read out. Imaging device. 複数の第1の光学的黒画素データ及び複数の第1の有効画素データを含む第1のラインデータと、複数の第2の光学的黒画素データ及び複数の第2の有効画素データを含む第2のラインデータとを有するフレームデータを入力する信号処理回路であって、
前記第1のラインデータの複数の第1の光学的黒画素データを基に、前記第1のラインデータの黒レベルを推定する第1の黒レベル推定手段と、
前記第2のラインデータの複数の第2の光学的黒画素データを基に、前記第2のラインデータの黒レベルを推定する第2の黒レベル推定手段とを有し、
前記フレームデータは、前記第1のラインデータの数が前記第2のラインデータの数より多く、
前記第1の黒レベル推定手段は、前記フレームデータの中の複数の第1のラインデータに基づき、前記第1のラインデータの黒レベルを推定し、
前記第2の黒レベル推定手段は、複数の前記フレームデータの第2のラインデータに基づき、前記第2のラインデータの黒レベルを推定することを特徴とする信号処理回路。
First line data including a plurality of first optical black pixel data and a plurality of first effective pixel data, a first line data including a plurality of second optical black pixel data and a plurality of second effective pixel data. A signal processing circuit for inputting frame data having two line data,
First black level estimation means for estimating a black level of the first line data based on a plurality of first optical black pixel data of the first line data;
Second black level estimation means for estimating a black level of the second line data based on a plurality of second optical black pixel data of the second line data;
In the frame data, the number of the first line data is larger than the number of the second line data,
The first black level estimation means estimates a black level of the first line data based on a plurality of first line data in the frame data,
The signal processing circuit, wherein the second black level estimation means estimates a black level of the second line data based on a plurality of second line data of the frame data.
複数の第1の光学的黒画素データ及び複数の第1の有効画素データを含む第1のラインデータと、複数の第2の光学的黒画素データ及び複数の第2の有効画素データを含む第2のラインデータとを有するフレームデータの処理を行う信号処理方法であって、
第1の黒レベル推定手段により、前記第1のラインデータの複数の第1の光学的黒画素データを基に、前記第1のラインデータの黒レベルを推定するステップと、
第2の黒レベル推定手段により、前記第2のラインデータの複数の第2の光学的黒画素データと前記推定された前記第1のラインデータの黒レベルとを基に、前記第2のラインデータの黒レベルを推定するステップと
を有することを特徴とする信号処理方法。
First line data including a plurality of first optical black pixel data and a plurality of first effective pixel data, a first line data including a plurality of second optical black pixel data and a plurality of second effective pixel data. A signal processing method for processing frame data having two line data,
Estimating a black level of the first line data by first black level estimating means based on a plurality of first optical black pixel data of the first line data;
Based on a plurality of second optical black pixel data of the second line data and the estimated black level of the first line data by the second black level estimation means, the second line And a method of estimating a black level of data.
複数の第1の光学的黒画素データ及び複数の第1の有効画素データを含む第1のラインデータと、複数の第2の光学的黒画素データ及び複数の第2の有効画素データを含む第2のラインデータとを有するフレームデータの処理を行う信号処理方法であって、
前記フレームデータは、前記第1のラインデータの数が前記第2のラインデータの数より多く、
第1の黒レベル推定手段により、前記フレームデータの中の複数の第1のラインデータの複数の第1の光学的黒画素データを基に、前記第1のラインデータの黒レベルを推定するステップと、
第2の黒レベル推定手段により、複数の前記フレームデータの第2のラインデータの複数の第2の光学的黒画素データを基に、前記第2のラインデータの黒レベルを推定するステップと
を有することを特徴とする信号処理方法。
First line data including a plurality of first optical black pixel data and a plurality of first effective pixel data, a first line data including a plurality of second optical black pixel data and a plurality of second effective pixel data. A signal processing method for processing frame data having two line data,
In the frame data, the number of the first line data is larger than the number of the second line data,
Estimating a black level of the first line data based on a plurality of first optical black pixel data of a plurality of first line data in the frame data by a first black level estimating means; When,
Estimating a black level of the second line data based on a plurality of second optical black pixel data of the second line data of the plurality of frame data by a second black level estimation means; A signal processing method comprising:
JP2017055840A 2017-03-22 2017-03-22 Signal processing circuit, image pickup device and signal processing method Active JP6887840B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017055840A JP6887840B2 (en) 2017-03-22 2017-03-22 Signal processing circuit, image pickup device and signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017055840A JP6887840B2 (en) 2017-03-22 2017-03-22 Signal processing circuit, image pickup device and signal processing method

Publications (2)

Publication Number Publication Date
JP2018160740A true JP2018160740A (en) 2018-10-11
JP6887840B2 JP6887840B2 (en) 2021-06-16

Family

ID=63795138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017055840A Active JP6887840B2 (en) 2017-03-22 2017-03-22 Signal processing circuit, image pickup device and signal processing method

Country Status (1)

Country Link
JP (1) JP6887840B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020167542A (en) * 2019-03-29 2020-10-08 キヤノン株式会社 Imaging apparatus and signal processor
JP7417560B2 (en) 2021-06-17 2024-01-18 キヤノン株式会社 Photoelectric conversion devices, photoelectric conversion systems, transportation equipment, and signal processing equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1079893A (en) * 1996-09-05 1998-03-24 Sony Corp Clamp circuit for video signal
JP2016220078A (en) * 2015-05-21 2016-12-22 キヤノン株式会社 Image processing apparatus and method, and imaging device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1079893A (en) * 1996-09-05 1998-03-24 Sony Corp Clamp circuit for video signal
JP2016220078A (en) * 2015-05-21 2016-12-22 キヤノン株式会社 Image processing apparatus and method, and imaging device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020167542A (en) * 2019-03-29 2020-10-08 キヤノン株式会社 Imaging apparatus and signal processor
JP7263080B2 (en) 2019-03-29 2023-04-24 キヤノン株式会社 Imaging device and signal processing device
JP7417560B2 (en) 2021-06-17 2024-01-18 キヤノン株式会社 Photoelectric conversion devices, photoelectric conversion systems, transportation equipment, and signal processing equipment

Also Published As

Publication number Publication date
JP6887840B2 (en) 2021-06-16

Similar Documents

Publication Publication Date Title
JP5852324B2 (en) Imaging apparatus, control method therefor, and program
JP5835996B2 (en) Imaging device
US20170118433A1 (en) Solid-state image sensing device and electronic device
JP5746521B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5479561B2 (en) Imaging apparatus and driving method thereof
CN109997352B (en) Imaging device, camera, and imaging method
JP5657184B2 (en) Imaging apparatus and signal processing method
JP2017216632A (en) Imaging apparatus and its control method
US10136086B2 (en) Image pickup apparatus and image pickup method
JP2018182543A (en) Imaging apparatus, imaging system, and control method for imaging element
JP6779038B2 (en) Image sensor and its control method, image sensor and its control method
JP6887840B2 (en) Signal processing circuit, image pickup device and signal processing method
JP2018019140A (en) Imaging device and control method of imaging device
JP2012175690A (en) Solid state imaging device
JP2012257025A (en) Imaging apparatus, control method thereof, and control program
JP5737921B2 (en) Solid-state imaging device, imaging system, and driving method of solid-state imaging device
JP2011151549A (en) Signal processing apparatus, imaging device, and signal processing method
JP6004656B2 (en) Imaging device, control method thereof, and control program
US10009559B2 (en) Imaging apparatus, method for controlling the same, and program
JP2016039603A (en) Solid-state imaging device, imaging system and driving method of solid-state imaging device
JP6896788B2 (en) Imaging equipment, imaging methods, computer programs and storage media
JP2014107739A (en) Imaging device and control method therefor
JP7134786B2 (en) Imaging device and control method
JP5129650B2 (en) Imaging device
JP2009302850A (en) Noise removal device of solid-state image sensor, image capturing apparatus, noise removal method of solid-state image sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201006

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201201

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210519

R151 Written notification of patent or utility model registration

Ref document number: 6887840

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151