JP3749038B2 - Solid-state imaging device - Google Patents

Solid-state imaging device Download PDF

Info

Publication number
JP3749038B2
JP3749038B2 JP18614499A JP18614499A JP3749038B2 JP 3749038 B2 JP3749038 B2 JP 3749038B2 JP 18614499 A JP18614499 A JP 18614499A JP 18614499 A JP18614499 A JP 18614499A JP 3749038 B2 JP3749038 B2 JP 3749038B2
Authority
JP
Japan
Prior art keywords
correction
flicker
value
unit
line
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.)
Expired - Fee Related
Application number
JP18614499A
Other languages
Japanese (ja)
Other versions
JP2001016508A (en
Inventor
星 利 弘 諸
田 昌 文 梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP18614499A priority Critical patent/JP3749038B2/en
Publication of JP2001016508A publication Critical patent/JP2001016508A/en
Application granted granted Critical
Publication of JP3749038B2 publication Critical patent/JP3749038B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Solid State Image Pick-Up Elements (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Studio Devices (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、X−Yアドレス方式の固体撮像素子、例えばCMOS(Complementary Metal Oxide Semiconductor)型撮像素子を用いた固体撮像装置に係り、特に電源周期と同期して点滅する蛍光灯等のように交流点滅する電灯の下で撮像画面の輝度や色相が変化するいわゆるフリッカを改善した固体撮像装置に関する。
【0002】
【従来の技術】
従来より蛍光灯照明の下でテレビジョンカメラによる撮影を行なうと、テレビジョンカメラの垂直同期周波数と蛍光灯の明滅周波数の間のずれにより干渉が生じ、蛍光灯フリッカと呼ばれる現象が発生している。CCD(Charge Coupled Device)型撮像装置を用いたカメラにおいては、1フレームあるいは1フィールド単位にて電荷の蓄積を行なうためにフリッカの影響はフレームあるいはフィールド間において生じている。したがって、CCD型撮像装置においては、蛍光灯フリッカの補正を比較的簡単に行なうことができ、既に実用化されている。
【0003】
IT型CCDイメージセンサを例にとって説明すると、フォトダイオードで同一期間に露光された信号の全画面分を一旦、素子上の垂直転送CCDに転送し、1水平ライン分ずつを読み出している。つまり、IT型CCDイメージセンサは素子上にアナログのフレームまたはフィールドメモリを有している。このため、IT型CCDイメージセンサを用いたNTSC(National Television System Committee)方式のカメラを用いて、50Hzで交流点灯する照明の下で撮影を行なった場合、略々3フィールド周期の画面全体の輝度および色相変化となる。
【0004】
IT型CCDイメージセンサにおいてこのフリッカを補正する手段としては、電子シャッタのモードで露光時間を1/100秒に設定してフィールド毎の露光時間を等しくする方法と、フリッカが略々3フィールド周期で発生することを利用して、各フィールドの映像信号の平均値が一定になるように、3フィールド前の映像信号から現在の輝度および色相の変動を予測して補正値を生成し、フリッカを抑圧する方法が用いられている。
【0005】
これに対し、例えばCMOS型撮像装置はX−Yアドレス走査型で、画素毎に露光期間が読み出しクロック周期ずつ順次移動していくため、すべての画素で露光しているタイミングが異なっている。このため、各画素が蓄積期間に積分する蛍光灯照明の光量に違いが生じることになり、これが1画面内においてフリッカとして表れることになる。このことを式を用いて表わすと、1周期がTの蛍光灯明滅する波形f(t)を時間xから期間Xだけ積分することになるので、
【数1】

Figure 0003749038
と書ける。
【0006】
図42(a)にはフリッカ発生モデルの一例を示してある。ここでは説明を簡略化するため蛍光灯明滅波形およびその周期、蓄積期間をそれぞれ
【数2】
Figure 0003749038
とし、また同一水平ライン上の画素が同じ露光タイミングを持っているCMOS型撮像素子を使用した場合のフリッカ生成モデルである。ここで撮像素子出力である
【数3】
Figure 0003749038
を、蛍光灯明滅波形の2つの山に跨らない▲1▼のような蓄積期間の場合と2つの山に跨る▲2▼のような蓄積期間の場合とのそれぞれについて考えると、▲1▼となる最初の区間「0<x<5ms(0<x<π/2)」では、
【数4】
Figure 0003749038
となり、▲2▼となる最初の区間「5ms<x<10ms(π/2<x<π)」では
【数5】
Figure 0003749038
となる。10ms以降は▲1▼と▲2▼の繰り返しなので、図42(a)に示すように、イメージセンサ出力波形S(i)は正弦波に類似すると共に周期がTの波形となる。
【0007】
因みに、図42におけるiとxの間にはx=T×i(Tは1水平ライン読み出し時間)の関係が成り立っている。このフリッカは蛍光灯の明滅周期と露光タイミングのずれを原因として生じるため、CCD型撮像装置とは違って電灯線のサイクルが50Hz,60Hzいずれの場合でも生じる。前述したように、ここでは1水平ライン分ずつを纏めて読み出す撮像装置に限定して考えると、この場合は同一水平ライン上の画素の露光期間が同じなので横縞状の蛍光灯フリッカ波形が垂直方向に表れる。
【0008】
蛍光灯フリッカを補正する1つの手段としては、図42(b)に示すように、露光時間を蛍光灯の明滅周期の1周期あるいはその整数倍に設定する方式が考えられる。このようにして蓄積時間を設定すると、たとえ蛍光灯が明滅していてもすべての画素における蛍光灯波形の積分量が同じになるため蛍光灯フリッカを抑圧できる。これを上述の式を用いて説明する。一例として、「X=10ms」の場合について考えると、この時
【数6】
Figure 0003749038
はx=n×10ms(nは任意の自然数)を除いて常に▲2▼の状態になるので、まず▲2▼式について考える。この時X=10msが蛍光灯の明滅周期T(=π)であることから、cos(X/2)=cos(π/2)=0となり、▲2▼式は常に一定値となることがわかる。「x=n×10ms」においては、
【数7】
Figure 0003749038
となる。以上より積分値は常に2となりxによらず一定であるので、蛍光灯明滅の影響を受けていないということができる。しかしながら、この方式の問題点は任意の蓄積時間に設定することができないことにある。
【0009】
露光時間を任意に設定できる別の補正方法として、撮像素子の出力あるいはこの出力を信号処理した映像信号からフリッカ成分を抽出し、このフリッカ変動パターンを抑えるように輝度信号や色信号の利得を画像フレーム内の場所毎に制御してフリッカを補正する方式や、フリッカ波形をメモリにテンプレートとして記憶し、外部センサにより検出した蛍光灯の明滅タイミングによって、このテンプレートとイメージセンサ出力との同期を得て補正する方式も考案されている。
【0010】
しかしながら、映像信号からフレーム内のフリッカ波形を検出するのは白い壁のような無彩色かつ絵柄のない画像を撮影する場合を除いて一般的に非常に困難である。映像信号からフレーム内のフリッカ成分を抽出するにはフレーム内およびフレーム間での積分によるローパス効果あるいはアナログあるいはデジタルのローパスフィルタを用いてフリッカ成分以外を取り除く方法が取られている。
【0011】
しかし、撮影被写体中にもフリッカ成分と略々同じ周波数帯域のパターンが混在していることは往々にしてあり、これにより正確なフリッカ波形の抽出が妨害されることになる。特に、撮像装置の画角を固定した場合、50Hzの周波数により点灯されている蛍光灯下においてフレーム間でのフリッカの周期が3フレームなので、時定数を長く取ってフレーム間で平均を求めても3フレーム周期でフリッカ波形が同じ場所に来るため、絵柄の影響を取り除くことはできない。
【0012】
一方のフリッカ波形をテンプレートとしてメモリに記憶させておく方式については、蛍光灯の明滅波形は蛍光灯の点灯器毎に特有であることが良く知られている。このためフリッカ補正システムを構築するために、非常に多くのフリッカ波形を調査しこれをデータベースとして用意しなければならず、実際に多数のフリッカは径パターンをデータベース化できたとしても、将来開発される蛍光灯用の点灯器に対しては対応することができない。このように、X−Yアドレス方式による固体撮像装置においては、フリッカ波形の抽出がCCD固体撮像装置のように簡単には予測できないため、これまで有効な補正手段がなく、蛍光灯フリッカが画像内に残留して画質を劣化させているという問題があった。
【0013】
【発明が解決しようとする課題】
上述したように、従来は画素単位あるいはライン単位で蓄積期間の異なる読み出しを行なうX−Yアドレス方式による固体撮像装置を用いて蛍光灯照明下において撮像した場合、撮像面の場所毎に露光量が異なることになり、いわゆる蛍光灯フリッカが発生するという問題があった。本発明は上記事情に鑑み、蛍光灯の照明下において任意の蓄積時間で撮像した場合、垂直方向において輝度および色相が変化するような横縞状蛍光灯フリッカを十分に抑圧して画質を向上させることが可能なX−Yアドレス方式の固体撮像装置を提供することを目的とする。
【0014】
【課題を解決するための手段】
本発明の第1の構成に係る固体撮像装置は、所定の条件を満たす電子シャッタ値により、直交する2方向に画面をアドレス走査して対象を撮像する固体撮像素子と、前記固体撮像素子の前記電子シャッタ値を所定の値に設定する電子シャッタ値設定手段と、前記固体撮像素子の出力信号をアナログ信号からデジタル信号へと変換するA/D変換手段と、前記A/D変換手段の出力信号を所定の単位で記憶する記憶手段と、前記記憶手段に記憶された所定の単位の信号に対し、外光条件に適した第1の電子シャッタ値と蛍光灯明滅周期と所定関係となる蛍光灯条件下での第2の電子シャッタ値の2条件による画像の信号波形をそれぞれ求め、2つの信号を比較して蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すような補正信号値を演算する補正演算手段と、前記補正演算手段により演算された前記補正信号値を用いて蛍光灯照明下における画像の波形を打ち消すことにより横縞状蛍光灯フリッカを補正する補正手段と、を備えることを特徴としている。
【0015】
本発明の第2の構成に係る固体撮像装置は、X−Yアドレス方式の撮像素子と、前記固体撮像素子の電子シャッタ値を設定する電子シャッタ設定部と、前記固体撮像素子が出力するアナログ映像信号をデジタル信号に変換するA/D変換器と、前記A/D変換器によりデジタル信号に変換された映像信号を記録する複数個のフレームメモリと、前記電子シャッタ設定部の電子シャッタ値を外光条件に適した第1の電子シャッタ値から蛍光灯条件下での第2の電子シャッタ値へと変更すると共に、変更されたシャッタ値に基づいて前記フレームメモリヘの記録出力を設定するモード設定部と、前記複数のフレームメモリより入力される映像信号と前記モード設定部で設定されたそれぞれのフレームにおける電子シャッタ値とを用いて前記映像信号のフリッカを抑圧するための演算処理を行ない、フリッカ補正値を算出する補正テーブル算出部と、前記補正テーブル算出部にて作成された補正テーブルを記録保存する補正テーブル記録部と、前記補正テーブル記録部に保存されている補正テーブルを用いて前記撮像素子からの映像信号である前記A/D変換手段の出力信号の利得を制御することによりフリッカを抑圧する補正演算部と、を備えることを特徴とする。
【0016】
前記固体撮像装置は、前記補正テーブル算出部から出力された補正テーブルを画像フレ一ムの水平方向において平均する処理を行なう水平ライン平均値算出部をさらに備え、水平方向において平均化された値を前記補正テーブル記録部に保存するものであってよい。前記固体撮像装置は、前記補正演算部の出力を入力とし補正された映像信号にフリッカ成分が含まれているかの検出を行なうフリッカ検出器をさらに備え、フリッカが検出されたときには、前記モード設定部に補正テーブルの再生成を促すものであってよい。
【0017】
前記フレームメモリは複数個備えており、この複数のフレームメモリに記録された画像を平均化するフレーム平均算出部をさらに備えるものであってもよい。前記補正テーブル記録部は、複数個備えられて、複数個の補正テーブルを記録保存すると共に、これら複数個の補正テーブルから必要とされる補正テーブルを選び出す補正テーブル選択部をさらに備えるものであっても良い。前記補正テーブル記録部はフリッカ波形の1周期のみを保存し、また現在の画像フレームに含まれるフリッカの位相を計測する位相計測部をさらに備え、この1周期分のフリッカ波形と位相情報から補正テーブルを生成する補正テーブル生成部をさらに備えるものであってもよい。
【0018】
また、本発明の第3の構成に係る固体撮像装置は、X−Yアドレス走査型固体撮像素子と、前記固体撮像素子の出力信号をデジタル信号に変換するA/D変換手段と、前記A/D変換手段の出力信号を記憶保持するフレームメモリと、各スキャンライン毎にそのラインの周辺の領域を選択する領域選択部と、前記領域選択部によって選択された領域を読み出しこのデータの平均値を算出する領域平均値算出部と、前記領域平均値算出部の出力を保持するラインメモリと、複数の前記ラインメモリの1つを選択し、そのラインメモリとの間でデータを入出力するラインメモリ管理部と、前記ラインメモリに保持されている領域平均値を複数のラインメモリから選択し平均演算を行なうライン間平均値算出部と、前記領域平均値を保存するラインメモリの1つと前記ライン間平均値を保存するラインメモリそれぞれから前記領域平均値と前記ライン間平均値とを選択しこれらの領域平均値とライン間平均値を比較して蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すフリッカ抑圧係数を算出する補正係数算出部と、前記フレームメモリより出力されるフリッカ補正を行なう領域内の現在補正しようとしているラインのデータを読み出すと共に、前記補正係数算出部の前記フリッカ抑圧係数の係数値に比例して前記フレームメモリから出力される前記A/D変換手段の出力信号のゲインをライン毎に制御する補正演算部と、を備えることを特徴とする。
【0019】
また、上記構成において、前記領域平均値算出部は、前記領域平均値を保存するラインメモリの何れかより任意のデータを呼び出すデータ呼び出し部と、この呼び出したデータと現在の選択領域での平均値との間で平均を算出する時間平均算出部と、を備えるようにしても良い。
【0020】
また、本発明の第4の構成に係る固体撮像装置は、X−Yアドレス走査型固体撮像素子と、前記固体撮像素子の出力信号をデジタル信号に変換するA/D変換手段と、前記A/D変換手段の出力信号を記憶保持するフレームメモリと、各スキャンライン毎にこのスキャンライン内において必要とするデータの範囲を選択する範囲選択部と、前記範囲選択部によって選択された領域を読み出し、このデータの平均値を算出するライン内平均値算出部と、前記領域平均値算出部の出力を保持するラインメモリと、複数の前記ラインメモリの1つを選択し、そのラインメモリからデータを入出力するラインメモリ管理部と、前記ラインメモリに保持されているライン内平均値を複数のラインメモリから選択し平均演算を行なってライン間平均値を算出するライン間平均値算出部と、前記ラインメモリに保存されているライン内平均値から複数個を選択し、かつこれらの読み出しを前記ラインメモリ管理部に命令する窓幅選択部と、前記窓幅選択部の命令により読み出されたライン内平均値のうちの選択された複数個の平均を演算して窓内平均値を算出する窓内平均値算出部と、前記ライン間平均値と前記窓内平均値算とのそれぞれの間で比較演算を行なって蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すフリッカ抑圧係数を算出する補正係数算出部と、前記フレームメモリより出力されるフリッカ補正を行なう領域内の現在補正しようとしているラインのデータを読み出すと共に、前記補正係数算出部の前記フリッカ抑圧係数の係数値に比例して前記フレームメモリから出力される前記A/D変換手段の出力信号のゲインをライン毎に制御する補正演算部と、を備えることを特徴とする。
【0021】
また、上記構成において、前記補正係数算出部の出力を保持するラインメモリを備えるようにしても良い。
【0022】
また、上記ように構成された固体撮像装置は、撮像装置周辺の光量の変化を計測する外部測光素子と、前記外部測光素子の出力を現在の電子シャッタ設定値によって決定される蓄積時間にて積分する積分器と、前記積分器出力の振幅を前記補正テーブル記憶部に保存された補正テーブルの振幅と比較して補正するゲイン補正部とをさらに備え、前記ゲイン補正部出力によりフリッカ抑圧処理を行なうものであっても良い。前記外部測光素子は、撮像素子により確保されている画角による領域と同じ領域の光量の変化を検出するために、その上部に撮像レンズおよびレンズ駆動部をさらに備えるものであっても良い。
【0023】
【発明の実施の形態】
以下、本発明の好適な実施形態について添付図面を参照しながら詳細に説明する。まず、本発明の基本概念を示す第1実施形態について図1を参照して説明する。
【0024】
図1において、第1実施形態に係る固体撮像装置は、所定の条件を満たす電子シャッタ値により、直交する2方向に画面をアドレス走査して対象を撮像する固体撮像素子1と、前記固体撮像素子1の前記電子シャッタ値を所定の値に設定する電子シャッタ値設定手段2と、固体撮像素子1の出力信号をアナログ信号からデジタル信号へと変換するA/D変換手段3と、A/D変換手段3の出力信号を所定の単位で記憶する記憶手段4と、記憶手段4に記憶された所定の単位の信号に対し、外光条件に適した第1の電子シャッタ値と蛍光灯明滅周期と所定関係となる第2の電子シャッタ値の2条件による画像の信号波形をそれぞれ求め、2つの信号を比較することにより蛍光灯フリッカを補正した補正信号値を演算する補正演算手段10と、を備えている。
【0025】
通常、固体撮像装置において、フリッカ補正を行なおうとする場合、電子シャッタ設定値を電灯線用明滅周期の整数倍に設定するとフリッカが発生しないことを利用している。任意の電子シャッタ設定値において撮影する場合、まず電子シャッタ設定値をこの任意の値より短い電灯線明滅周期の整数倍に電子シャッタを設定して撮影する。この場合に露光時間が所定の時間よりも短いためゲインが不足するので、この不足分を増幅して出力することによりフリッカを抑えている。これに対して、本発明においては、撮影時にリアルタイム或いは準リアルタイムにてフリッカ波形を推定し、この波形に応じてそれぞれのライン毎にゲインを調節することによりフリッカ補正を実現しようとしており、本発明の基本概念としては、外光条件下の第1の電子シャッタ値による画像の信号波形と、蛍光灯条件下での第2の電子シャッタ値による画像の信号波形とを比較して蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すような補正信号値を演算してフリッカを補正するようにしている。以下、上記基本概念をより具体的に示す実施形態について説明する。
【0026】
本発明の第2実施形態による固体撮像装置は、図2に示されるように、MOS型固体撮像素子101、電子シャッタ設定部102、A/D変換器103、フレームメモリ1041,1042、補正テーブル算出部105、モード設定部106、補正テーブル記録部107、補正演算部108、同期信号発生部109を備えている。図1に示す基本概念図からも明らかなように、フレームメモリ1041および1042が図1における記憶手段4に相当しており、補正テーブル算出部105,補正テーブル記録部107,補正演算部108により第1実施形態における補正演算手段10が構成されている。
【0027】
MOS型固体撮像素子101は、この上にマトリクス状に配置された画素により入射光を信号電荷に変換する。この電荷は、順次走査されて画素から読み出された後、撮像素子101内においてアナログ信号処理され、映像信号として固体撮像素子101より出力されるものである。
【0028】
電子シャッタ設定部102は、固体撮像素子101から出力された信号量に基づいて電子シャッタ値を設定する。またモード設定部106から入力されるコマンドにより、任意の電子シャッタ値に設定することも可能である。この電子シャッタ設定値は、固体撮像素子101とモード設定部106とに出力されている。A/D変換器103は、固体撮像素子101から出力される映像信号をデジタル信号に変換した後、フレームメモリ1041,1042、補正演算部108に出力している。
【0029】
記憶手段4としてのフレームメモリ1041,1042は、A/D変換器103によってデジタル信号に変換された映像信号を1フレーム分保存する。このフレームメモリ1041,1042への書き込み、読み出しはモード設定部106からのコマンドにより制御されている。補正テーブル算出部105は、フレームメモリ1041,1042より入力される映像信号と、モード設定部内のレジスタに保存されているそれぞれのフレームにおける電子シャッタ設定値とを用いて後述する処理を行なうことにより、フリッカを抑圧する補正テーブルを算出し、補正テーブル記録部107に出力するものである。
【0030】
モード設定部106は、電子シャッタ設定部102の設定値の変更、A/D変換器103出力のフレームメモリ1041,1042への書き込みおよび読み出しを制御すると共に、内部レジスタヘ変更前後の電子シャッタ設定値を保存し、必要なタイミングで補正テーブル算出部105へこれらの電子シャッタ値の出力を行なうものである。
【0031】
補正テーブル記録部107は、補正テーブル算出部105により算出され、補正演算部108において使用されるフリッカ抑圧テーブルを記録保持すると共にこの補正テーブルを同期信号発生部109から与えられるタイミング信号に合わせて補正演算部108に出力するものである。
【0032】
補正演算部108は、補正テーブル記録部107から必要なタイミングにより入力される補正テーブルを用いて、A/D変換器103からのデジタル映像信号のゲインを画素単位あるいはライン単位で変動させることにより、フレーム内に見られるフリッカを抑圧するものである。
【0033】
このような構成を備えた本実施形態によるフリッカ抑制機能を有する固体撮像装置は、次のように動作する。固体撮像素子101によって取り込まれた映像信号は、A/D変換器103に入力されると同時に、電子シャッタ設定を行なうために電子シャッタ設定部102に渡される。電子シャッタ設定部ではこの入力を受けて、適正な電子シャッタ値(第1の電子シャッタ値)を決める。
【0034】
ここでモード設定部106の現在のモードがフリッカ補正準備モードであるとき、電子シャッタ値はモード設定部106にも入力される。モード設定部106では、この第1の電子シャッタ値を内部レジスタに保存すると共に、現在の電子シャッタ設定値が蛍光灯明滅周期の整数倍であるかどうかのチェックを行なう。整数倍である場合には蛍光灯フリッカは生じないのでフリッカ補正準備モードをフリッカ補正非適用モードとしてフリッカ補正準備の処理を終了する。
【0035】
整数倍でない場合には、まず現在の電子シャッタ設定値をこの値に最も近い蛍光灯明滅周期の整数倍値(第2の電子シャッタ値)あるいは現在の電子シャッタ設定値より短くかつ最も近い蛍光灯明滅周期の整数倍値の何れかに変更すると同時に、この値をモード設定部106内のレジスタに記録される。
【0036】
この後、フレームメモリ1042(第2のフレームメモリ)が書き込み可能状態にされる。ここで、第2の電子シャッタ値に設定された固体撮像素子101は映像の取り込みを行ない、A/D変換後フレームメモリ2に保存し、モード設定部はこのフレームメモリを書き込み禁止、読み出し可能状態にされる。
【0037】
次に、モード設定部106は、電子シャッタ値を元の第1の電子シャッタ値に戻すため、内部レジスタに保存してある第1の電子シャッタ値を電子シャッタ設定部102に送ると同時に、フレームメモリ1041(第1のフレームメモリ)のステータスを書き込み可能状態に変更される。第1の電子シャッタ値に設定された固体撮像素子101は1フレーム取り込みを行ない、A/D変換後フレームメモリ2に保存する。保存が完了した時点で第1のフレームメモリ1041はモード設定部109により書き込み禁止で、読み出し可能状態にされる。
【0038】
第1のフレームメモリ1041と第2のフレームメモリ1402それぞれが読み出し可能状態になった時点で、モード設定部106は補正テーブル算出部105に補正テーブルの作成を開始させるコマンドと内部レジスタに保存してある第1の電子シャッタ値と第2の電子シャッタ値を補正テーブル算出部105に送る。第1のフレームメモリ1041と第2のフレームメモリ1042の画像はそれぞれ第1の電子シャッタ値と第2の電子シャッタ値にて撮影されており平均輝度レベルに違いがあるので、第2のフレームメモリ1042の平均輝度レベルを第1のフレームメモリ1041のレベルに合わせる。
【0039】
次に、第1のフレームメモリ1041と第2のフレームメモリ1042のそれぞれの画素位置毎に割り算を行ない、フリッカ成分あるいはフリッカ成分を補正する係数を算出する。ただし、2つのフレーム間で割り算をすることでフリッカ成分を推定するには、2つのフレームの絵柄成分が同じである必要がある。その必要性について式を用いて説明する。フリッカ成分を含まないフレーム2の信号をS2(x、y)、フリッカ成分を含むフレーム1の信号をS1’(x,y)=S1(x,y)×F(x,y)と表す。ここでxは画像フレームの水平方向の座標、yは垂直方向の座標、Sn(x,y)はフリッカのない映像信号、F(x,y)はフリッカ信号である。ここで撮像装置を固定した状態で、動きのないものを撮影すれば、
S1(x,y)≒S2(x,y)×C (ただしCは比例定数)
という関係が成り立つはずで、この条件下でS1’(x,y)をS2(x,y)により除すると、
{S1(x,y)×F(x,y)}/{S2(x,y)×C}≒F(x,y)
となりフリッカ波形を推定することが出来る。因みにS2(x,y)をS1’(x、y)で割ると1/F(x,y)となるが、これはフリッカ補正係数であり、つまりフリッカ波形とフリッカ補正係数は逆数の関係にある。
【0040】
もしこの時カメラを固定しないで撮影を行なったとすると、手ぶれなどによりS1’(x,y)とS2(x,y)の間に微小な画角の移動が起こりうる。この場合には、S1’(x,y)とS2(x,y)の間で空間的に相互相関関数を取ることでその移動量を求め、フリッカを持たないS2をこの移動量だけ平行移動してこのずれを補正した上で、上記の補正テーブル算出を行なえばよい。あるいは、第1のフレームメモリ1041と第2のフレームメモリ1042への書き込みの間が短ければ、この平行移動を行なわなくても補正テーブルの算出を充分に行なうことができる。
【0041】
補正テーブル算出部105にて作成した補正テーブルは補正テーブル記録部107に保存される。補正テーブルのメモリヘの保存が終了した時点で、補正テーブル記録部107はモード設定部106へ通知を行ない、内部モードをフリッカ補正準備モードからフリッカ補正モードに切り替え、フレームメモリ1041,1042、補正テーブル算出部105の機能を停止させる。以後、補正演算部108は補正テーブル算出部105から適正なタイミングにて送られてくる補正テーブルに基づいてフリッカを打ち消す処理を実行する。
【0042】
上記の処理においては、第2の電子シャッタ値にて1フレーム分の画像を取り込んだ後、第1の電子シャッタ値に戻しているが、この順序については第1の電子シャッタ値の後に第2の電子シャッタ値にて撮影を行なっても何ら問題はない。上記の処理により生成された補正テーブルは、電子シャッタ設定値が変更されるまで有効である。もし電子シャッタ値が変更された際には、電子シャッタ設定部102がモード設定部106に変更があったことを通知し、これを受けてモード設定部106は、補正テーブルの生成を再び行なえば良い。
【0043】
ここまでの説明において補正テーブル記録部はフレーム構造を持ち、各画素毎に補正値を有していたが、MOS型固体撮像素子101が水平ライン単位読み出し構造ならば、同一水平ライン上のすべての画素が同じ蓄積タイミングを持つことから、各行に1つのフリッカ補正値を持てば十分であり、抽正テーブル記録部を1次元のカラム型メモリとすることが可能である。例えば図3に示すように、補正テーブル算出部105の出力を水平ライン平均値算出部111において画像フレームの水平方向において平均化処理を行ない1行に対して1つの補正係数を割り当ててこれを補正テーブル記録部107に保存すれば良い。
【0044】
さらに、図4に示すように、A/D変換器103の出力を水平方向において平均化すれば、第1の電子シャッタ値と第2のシャッタ値のそれぞれの設定における参照画像を一時的に保存するメモリを2次元のフレーム型メモリから1次元のカラム型メモリ1181,1182に置き換えることが可能となり、必要とされるメモリ容量を減らすことが可能である。
【0045】
この撮像装置に必要とされるメモリの量を減らす別の方法として、図5に示すような構成とすることにより、補正テーブル算出のために一時的にフレーム画像を保存するフレームメモリを1つに減らすことが可能である。ここでは、まず第2の電子シャッタ値にて取り込んだ画像は補正テーブル算出部105に入力され、補正テーブル算出部105が管理するフレームメモリ104に一時保存される。
【0046】
次に、電子シャッタ設定部102により設定値を第1の電子シャッタ値に戻して次のフレーム画像を撮影する。このフレーム画像は固体撮像素子101からは順次走査によりシーケンシャルに読み出され、A/D変換した後、補正テーブル算出部105に入力される。補正テーブル算出部105ではこのシーケンシャルに入力される画像の画素位置と対応する画素情報をフレームメモリ104から読み出して、順次補正値算出を行ない、その結果を補正テーブル記録部107に保存している。
【0047】
さらに、図6に示すように、A/D変換されたデジタル信号を水平ライン平均値算出部111を解して補正テーブル算出部105に供給すると共にフレームメモリ104をカラム型平均値記憶部118により構成すると、水平ライン平均値算出部111によって1行に対して1個のデータとすることができるので、一時保存のためのメモリを1次元のカラム型メモリによる簡易な構成で実現することが可能である。
【0048】
また、必要とされるメモリの量を減らす別の手段として、図7に示すように、補正テーブル算出のために画像フレームを一時保存するメモリと補正テーブルを記録するためのメモリを共通化したフレーム型データ記憶部119を用いることでも可能である。この場合フリッカ補正テーブルは以下のような手順にて算出される。まず第2の電子シャッタ値において取り込んだ画像は補正テーブル算出部105経由でフレーム型データ記憶部119に保存される。
【0049】
次に、モード設定部106が固体撮像素子101の電子シャッタ設定を第1の電子シャッタ値に変更後画像の撮影を行なう。このフレーム画像は固体撮像素子101から順次走査によりシーケンシャルに読み出され、A/D変換後補正テーブル算出部105内のレジスタに一時保存される。補正テーブル算出部105はレジスタにあるデータの画素位置(x,y)と同じ位置にある画素データをフレーム型データ記憶部119から読み出し補正値算出の演算を行なう。こうして算出された補正値はフレーム型データ記憶部119の(x,y)に上書き保存される。
【0050】
フリッカ補正テーブルの精度を確認するために、図8のように補正演算部108の出力にフリッカ成分が含まれてないかを検出するフリッカ検出器112を置くことも考えられる。X−Yアドレス走査型固体撮像装置におけるフリッカは、時間領域、空間領域いずれにおいてもある一定の周波数を持つ。フリッカ検出器112では、画像フレーム中の1点あるいは数点の時間的変化を周波数領域にて調べると共に、垂直方向に走るある任意の1ライン分のデータあるいは水平方向において平均された1ライン分のデータを同様に周波数領域にて解析し、もしフリッカ特有の周波数成分が検出されたときには、モード設定部106に通知し補正テーブルの再生成を行なう。
【0051】
本発明の第3実施形態は図9に示されたような構成を備え、補正テーブルの算出に使用する参照画像として複数のフレームの平均を使用する点に特徴がある。平均化した参照画像を使用することによりノイズレベルが抑えられ、補正テーブルの精度を向上させることが可能である。必要とするフレームの数については特に制限はないが、この例においては3フレームの平均としている。
【0052】
撮像装置が起動され撮影が開始されると、まず電子シャッタ設定部102が固体撮像素子101からの信号を受けて第1の電子シャッタ値に設定する。この設定値が蛍光灯明滅周波数の整数倍でない場合、モード設定部106はそのモードをフリッカ補正準備モードとし、電子シャッタ設定値を第2の電子シャッタ値へ変更すると共に、複数用意されているフレームメモリ2(フレームメモリ2群)の1つ(フレームメモリ2−1)のステータスを書き込み可能状態へと変更する。
【0053】
この第2の電子シャッタ値にて撮影した映像はフレームメモリ2−1に保存される。モード設定部はこのフレームメモリ2−1を書き込み禁止にした後、第1の電子シャッタ値への変更と第1のフレームメモリ群の1つ(フレームメモリ1−1)のステータスを書き込み可能状態ヘと変更し、第1の電子シャッタ値での映像をフレームメモリ1−1に保存する。そして再び、電子シャッタ設定の第2の電子シャッタ値への変更と、第2のフレームメモリ群の1つ(フレームメモリ2−2)のステータスの書き込み可能状態ヘの変更、そして映像の取り込みと保存を行なう。以後この処理をフレームメモリ群に属するフレームメモリの数だけ繰り返す。
【0054】
3フレーム画像が準備できた時点で、これらのフレーム画像はそれぞれの毎に平均値算出部113へと渡されて第1のフレームメモリ群、第2のフレームメモリ群それぞれの平均が算出される。そしてこの平均化されたそれぞれの電子シャッタ値設定でのフレーム画像は補正テーブル算出部105へと入力されて、補正テーブルが算出される。
【0055】
この例ではフレーム画像の取り込みを電子シャッタ値を交互に変えて行なったが、始めに第1の電子シャッタ値にて連続して3フレーム分の取り込みを行ない、その後第2の電子シャッタ値に変えて同様に3フレームの取り込みを行なうことも可能である。これとは別に図10にあるような構造にすることにより、必要とされるフレームメモリの数を減らすことも可能である。
【0056】
ここでは一例として第1の電子シャッタ値、第2の電子シャッタ値それぞれにおいて4つのフレームを加算して平均を求める場合について説明する。ここで、まずこれら4つのフレームを、取り込んだ順にD1,D2,D3,D4とする。まず最初に、D1を取り込みフレームメモリ104に保存する。次に、D2を取り込んだとき、フレーム平均順次算出部114では、フレームメモリ104の座標(x,y)にある画素値D1(x,y)を読み出し、
D2(x,y)/2+D1(x,y)/2=Ave1(x,y)
を実行し、フレームメモリのそれぞれの所定位置に上書きしていく。
【0057】
これ以降は順番に、D3を取り込んだときは、
D3(x,y)/3+Ave1(x,y)×(2/3)=Ave2(x,y)
の演算を行ない、フレームメモリのそれぞれの画素位置に上書きし、D4の場合は、
D4(x,y)/4+Ave2(x,y)×(3/4)=Ave3(x,y)
の演算を行ない、フレームメモリのそれぞれの画素位置に上書きする。この方式により必要とするメモリの量を減らすことが可能である。
【0058】
本発明の第4実施形態は、図11に示されたような構成を備え、複数の補正テーブル記録部と、これらの補正テーブル記憶部のうちの1つを選択する補正テーブル選択部を持つことに特徴がある。これまで述べてきた第1、2の実施の形態においては補正テーブルが1つしか用意されてなかったが、補正テーブルが1つで済むのは、白黒カメラでかつ撮像フレームレートと電灯線のサイクルとの比が整数倍である時のみで、これ以外の場合には複数の補正テーブルを用意する必要がある。
【0059】
複数の補正テーブル記録部が必要なケースとしてまず挙げられるのが、その上にカラーフィルタが配置された撮像素子を使用する場合である。蛍光灯から放射される光の振幅および波形の特性はその色毎によって異なるため、それぞれの色毎にフリッカ補正テーブルを用意するのが、正確でかつ簡便な補正となる。3板式カラーカメラのようにそれぞれの撮像素子毎に別のカラーフィルタが配置されている場合ならば、それぞれの撮像素子出力毎に補正テーブルを算出し、フレーム構造を持つ補正テーブル記録部に画素配列そのままを保存するかあるいは水平ライン毎にテーブルを平均化してコラム型の補正テーブル記録部に保存すればよい。
【0060】
単板カラーカメラにおいては補正テーブルをその画素配列そのままにフレーム構造の補正テーブル記録部に保存するか、あるいは図12に示すようにフレーム構造の補正テーブルをそれぞれの色毎に分離してから水平方向において平均化処理を行ない、ライン別色別に用意した補正テーブル記憶部1076に保存すればよい。上述したように、水平方向において平均化できるのは撮像素子が水平ライン単位読み出し構造を持っているときのみである。
【0061】
次のケースとして挙げられるのが撮像フレームレートと電灯線のサイクルとの比が整数倍でない場合である。この場合フリッカ波形はある一定の位相速度を持って画面内を移動する。図13には、撮像フレームレートが毎秒30フレーム(30fps)の撮像装置を50Hzの電灯線のもとで使用した場合のフレーム間でのフリッカ周期について示している。50Hzの電灯線のもとでの蛍光灯の明滅周期は100Hzであり、1周期は10msとなる。一方の30fpsの撮像装置は1フレーム期間は33.3ms(=100/3ms)なので、画像フレームに表れるフリッカの周期は3フレームとなる。したがってこの場合、連続する3フレーム分の補正テーブルを用意しておけば良いことが分かる。
【0062】
ここで図11の動作について説明する。まず第2の電子シャッタ値にてフリッカを含まないリファレンス画像を取り込み、第2のフレームメモリ1042に保存する。次に電子シャッタ設定値を電子シャッタ1に戻し、フリッカを含む参照画像を取り込み第1のフレームメモリ1041に保存する。
【0063】
次に、これらの参照画像を用いて補正テーブルを算出し、順次補正テーブル記録部1(1071)に保存する。補正テーブル選択部115はテーブルの保存が終わった時点で保存の終了をモード設定部106に知らせる。モード設定部106では取り込む画像のphaseを、補正テーブルの算出が垂直ブランキング期間に終わっていればphase2とし、次のフレーム期間まで掛かってしまった場合にはphase3と決め、このphase値を補正テーブル選択部115に知らせると同時に第1のフレームメモリ1041を書き込み可能状態にされる。
【0064】
補正テーブル算出部105は、ここで新たに取り込んだ第1のフレームメモリ1041の画像と既に取り込んである第2のフレームメモリ1042の画像から補正テーブルを算出し、補正テーブル選択部115によって現在のphaseが2ならば補正テーブル記録部(1072)へ、3ならば補正テーブル記録部(1073)へと保存する。この後、残りのphaseでの補正テーブルの生成を同様手順で行なう。このようにして連続する3フレームそれぞれに補正テーブルを用意する。
【0065】
フリッカ補正処理においては、モード設定部106から現在のphaseを入力として受けた補正テーブル選択部115が、そのphaseにおける補正テーブルのデータを補正演算部108へと送り、フリッカ補正処理が実行される。このように補正テーブル記憶部1から3を順に算出するのとは別の構成例として、図14のように第1のフレームメモリ1041を3つ用意しておき、第1の電子シャッタ値において連続する3フレームを順に1−1,1−2,1−3に保存した後、補正テーブル算出を行なうことも可能である。
【0066】
また、ここではそれぞれの補正テーブル記録部はフレーム構造を有しているが、図11の手法により3フレーム分の補正テーブルそれぞれをライン別色別に4つのテーブルに置き換えることも可能である。補正テーブル選択部115は同期信号にてタイミングを取りつつ、必要とされる色と位相のテーブルから補正を行なう位置のデータを選択し補正演算部108に送るか、あるいは図15に示すように、補正演算部108が補正テーブル選択部115に必要な色・位相・位置のデータを要求し、補正テーブル選択部115が補正テーブルからこのデータを読み出し、補正演算部108に送ることも可能である。
【0067】
また、図16に示すように、第1の電子シャッタ値と第2の電子シャッタ値で撮影したリファレンス画像それぞれを水平方向において平均化することにより第1のフレームメモリ1041,2をカラム型平均値記憶部115に置き換えることも可能である。次に撮像フレームレートと電灯線のサイクルとの比が整数倍でない撮影条件において、図9と同様に参照画像を平均化する構成を図17に示す。ここにおいても必要とするフレームの数については特に制限はないが、この例においては3フレームの平均としている。
【0068】
ここで、第1のフレームメモリ1041群には1から3までのグループが用意されている。第1のフレームメモリ1041群の第1グループ(フレームメモリ1−1)が図12におけるphase1における画像を、第2グループ(フレームメモリ1−2)がphase2、第3グループ(フレームメモリ1−3)がphase3をそれぞれ保存する。撮像装置はまず電子シャッタ設定値を第2の電子シャッタ値へ変更し連続する3フレームを取り込み、それぞれをフレームメモリ2−1から2−3へ順に保存する。次に第1の電子シャッタ値へと変更後、連続する9フレームを1−1−1,1−2−1,1−3−1,1−1−2,1−2−2,1−3−2,1−1−3,1−2−3,1−3−3の順に保存する。
【0069】
これらすべてが取り終えたら、フレーム平均算出部1132はフリッカを含まないフレームの平均を算出し、フレームメモリ2−1に上書き保存する。このデータは補正テーブル算出部によって必要な時に呼び出される。次にフレーム平均算出部1131はフレームメモリ1−1の平均を算出する。補正テーブル算出部ではフレームメモリ2の平均とフレームメモリ1−1の平均からphase1でのフリッカ補正テーブルを算出し、補正テーブル記録部1に保存する。以下同様の処理をフレームメモリ1−2と1−3において行ない、それぞれphase2とphase3における補正テーブルを求め、補正テーブル記録部に保存すればよい。
【0070】
また、本構成のフレームメモリの部分を図10に示したフレームメモリ構成に置き換えれば、補正テーブル算出に使用するフレームメモリ104の量を半分に減らすことも可能である。フレーム内に表れるフリッカの位相毎にテーブルを用意する方法とは別に、基本的にフリッカ波形が同じ形状の波の繰り返しであることを利用してフリッカ波形1周期分のみのフリッカ補正テーブルからそれぞれの位相条件におけるテーブルを算出することも可能である。100Hzで点滅する蛍光灯下で30fpsにて撮影する場合、図13からわかるように電灯線の1周期を2πとすると、その位相速度はπ/3となっているので、フリッカ波形1周期分の波形をフレーム毎にπ/3づつ進めて補正テーブルを算出すればよい。位相速度が一定でない場合には図18に示すように位相計測部116がそれぞれのフレームにおけるフリッカの位相を同期信号を使って算出し、補正テーブル生成部117にてこの位相値と基本フリッカ波形から補正テーブルを生成すればよい。
【0071】
次に、本発明の第5実施形態に係る固体撮像装置について説明する。本発明の第5実施形態による蛍光灯フリッカ抑圧機能を有する固体撮像装置は、図19に示されるように、MOS型撮像素子101、A/D変換器103、フレームメモリ104、領域選択部130、領域平均値算出部105、ラインメモリ管理部107、ラインメモリ106、ライン平均値算出部108、補正係数算出部109、補正演算部110、を備えている。
【0072】
MOS型固体撮像素子101は、この上にマトリクス状に配置された画素により入射光を信号電荷に変換する。この電荷は順次走査されて画素から読み出された後、撮像素子内にてアナログ信号処理され映像信号として撮像素子外に出力するものである。
【0073】
A/D変換器103は、固体撮像素子101から出力される映像信号をデジタル信号に変換した後、フレームメモリ104に出力するものである。フレームメモリ104は、A/D変換器103によってデジタル信号に変換された映像信号を1フレーム分保存するものである。領域選択部130は、フリッカ補正を行なうフレーム内のある領域内に属する1ラインにおいてその周辺の領域を選択するものである。
【0074】
領域平均値算出部131は、領域選択部130によって指定された領域をフレームメモリ104より読み出し、この領域内のデータの平均値を算出するものである。ラインメモリ136は、領域平均値算出部にて求めた値を一時的に保存するものである。ラインメモリ管理部132は、領域平均値算出部131にて求められた値をいずれのラインメモリ136に保存するか選択し、さらにそのラインメモリ136のどの位置に保存するかを決めその場所にこの平均値を保存するようラインメモリ136に命令するものであると同時に他の機能ブロックからの要求に応じて必要とされる領域平均値をラインメモリ136から取り出すものでもある。
【0075】
ライン間平均値算出部133はラインメモリ136に保存されている領域平均値を複数のラインメモリの任意の位置から呼び出し、これら複数の領域平均値の平均を求めるものである。補正係数算出部134はフリッカ補正対象のフレームと同じフリッカ位相を有するラインメモリ106からターゲットラインにおける領域平均値を呼び出すとともに、ライン間平均値算出部133にて算出されたターゲットラインでのライン間平均値との間で演算を行い補正係数を算出するものである。
【0076】
補正演算部110はフレームメモリ104よりフリッカ補正を行なう領域内の現在補正しようとしているラインのデータを読み出すとともに、補正係数によってこのラインのゲインを制御して出力するものである。
【0077】
ここはまずこのような構成を備えた本実施形態によるフリッカ抑制機能を有する固体撮像装置の原理を簡単に説明する。任意のフレームにおけるフリッカを含まない信号をS(x,y)、フリッカをF(x,y)とすると、フリッカを含む映像信号はS(x,y)・F(x,y)と書ける。ここでxは画像フレームにおける水平方向の座標を、yは垂直方向の座標をあらわす。MOS型固体撮像装置の場合、フリッカはy方向において周期性を有する波形として表れるのでF(y)と簡略化する。もしx方向での変動を考慮する必要がある場合には、処理領域を別に設定して処理する。フリッカ補正を実現するにはF(y)を推定すれば良い。ここでは50Hzの照明下にて毎秒30フレーム取り込む固体撮像装置について考えると、この時、フリッカは図20に示すようにフレーム間周期が3フレームで、位相速度が10/3msの波形として表れる。ここでフレーム内のある点(x1,y1)においてその信号S(x1,y1)がフレーム間において一定であり、かつ1周期分のフリッカ値の合計が常に一定であると仮定する。これを式で表わすならばS1(x1,y1)=S2(x1,y1)=S3(x1,y1)=S(x1,y1)であり、かつ、F1(y1)+F2(y1)+F3(y1)=Cとなる。ここでCは定数を意味する。この仮定において最初のフレームにおける任意の座標(x1,y1)での値を連続する3フレームでの平均で割る次式の計算を行なう。
【0078】
S(x1,y1)・F1(y1)/{S(x1,y1)F1(y1)+S(x1,y1)・F2(y1)+S(x1,y1)・F3(yl)}=S(x1,y1)・F1(y1)/S(x1,y1)・C=F1(y1)・C’となりy1でのフリッカ値が推定できる。この方式を実際の撮像装置に用いる場合、最も問題となるのが「フレーム内のある点(x1,y1)における信号S(x1,y1)がフレーム間においては一定である」という仮定である。撮影対象は常に動いているため、S(x1,y1)はフレーム間において一定とならない。
【0079】
この問題を解消するために、ここでは(x1,y1)の周辺の領域を選定し、この領域の平均値をこの座標の最尤値とする方法を用いている。「1周期分のフリッカ値の合計が常に一定」という仮定に関しては、蛍光灯波形がサイン波形の絶対値に近似できることから略々問題ないとみなすことができる。
【0080】
このような構成を備えた第5実施例形態によるフリッカ抑制機能を有する固体撮像装置は、次のように動作する。固体撮像素子101によって取り込まれた映像信号は、A/D変換器103にてディジタル信号に変換され、フレームメモリ104に保存される。領域選択部130ではユーザあるいはシステムによって指定されたフリッカ補正指定領域内のある1ラインの周辺を選択する。この選択領域は例えば図21のように指定ラインを中心としてその前後nラインの領域やその領域から動きのある領域を削除したものなど任意の形状が考えられる。この領域指定は領域平均値算出部105に渡され、ここではフレームメモリからこの指定領域内のデータを読み出すとともにこれらのデータの平均値を算出する。この値は先ほど選択されたあるラインの最尤値として用いられる。
【0081】
この算出値はラインメモリ管理部132によってラインメモリ106に保存される。このラインメモリ管理部132では、複数用意されているラインメモリ136のうちの1つを選択し、このラインメモリ136の任意の位置にこの平均値を保存する。この処理はフリッカ補正を行なう領域内のラインの数だけ繰り返し行なわれる。ここで使用するラインメモリ136の数だが、システムの構成に依存する。例えば毎秒30フレームにて取り込みを行なう撮像システムならば、50Hzの蛍光灯下において図2のようにフレーム間におけるフリッカの周期は3フレームとなるので図19のように3つのラインメモリ1361〜1363を有する構成とすればよい。15fps,60fpsの場合も同様にフレーム間フリッカの周期は3フレームなので3つのラインメモリが必要である。
【0082】
また、この撮像素子上にカラーフィルタが設けられている場合には、フリッカ補正を信号処理の前に行なうならば、色フィルタの種類毎にフレーム間フリッカ周期分のラインメモリが必要となる。また、フリッカ補正を信号処理の後に行なうならば、図22に示すように、信号処理部にてYC分離した後にフリッカ補正をY信号のみにおいて行なえば良いので、必要とされるラインメモリは白黒センサの場合と同じくフレーム間フリッカ周期分、この場合ならば3本だけ用意すれば良いことになる。
【0083】
これら複数本のラインメモリ136の内容はラインメモリ管理部132により管理される。ラインメモリ1061,1062,1063には連続するフレームにおける領域平均値が保存されているが、この内容の更新は1062を1063に、1061をl062に順次移動して1061を常に最新のフレームにおいて使用するか、あるいは最も古い内容を持つラインメモリを最新のフレーム用に割り当てこれに上書きすれば良い。
【0084】
現在のフレームにおいて補正領域内のすべてのラインにおいて領域平均が求められたら、ラインメモリ1062に1つ前のフレームでの領域平均値、ラインメモリ1063に2つ前のフレームでの領域平均値が記録されているか確認する。もしされてない場合には、これらがすべて用意できるまで領域平均算出のみを繰り返す。既に用意されている場合には、補正係数算出処理を行なう。
【0085】
補正係数算出処理部139はまずこれから補正係数を求めようとしているターゲットラインにおけるラインメモリ1061,1062,1063の平均をライン間平均値算出部108にて求める。この値は補正係数算出部134へと渡される。次にラインメモリ管理部132はラインメモリ1061からターゲットラインにおける領域平均値を呼び出しこれを補正係数算出部134へと渡す。補正係数算出部134ではライン間平均値算出部133からの値を領域平均値にて割りフリッカ補正係数を算出する。この補正係数は補正演算部110に渡され、フレームメモリ104から読み出されるターゲットライン上のデータのゲインを変えてフリッカを抑圧する。
【0086】
補正係数算出部134では補正係数を算出するとともに補正係数の良否の判定も同時に行なう。まずこの判断基準としてフリッカ補正係数の振幅を検査する。フリッカの振幅は撮像素子の蓄積時間設定によってどの程度であるか原理的かつ実験的にある程度決まってくる。図19の場合ならば、蛍光灯が50Hzにて点灯しているので、その1周期は10msとなる。蓄積時間がこれよりも長い場合には、図42(a)における積分区間が蛍光灯波形の1周期以上となるためその振幅が小さくなり、フリッカ振幅対ダイナミックレンジ幅が数パーセント程度となる。これに対して10ms以下の場合、積分波形
【数8】
Figure 0003749038
はその積分区間が蛍光灯波形のどの部分を積分しているかにより大きく変動し、10数パーセント程度となる。
【0087】
ここでの補正係数推定では平均する領域を調節し絵柄の影響を減らして、S1(x,y)=S2(x,y)=S3(x,y)が成り立つようにしているが、撮像装置が大きく動いた場合あるいは撮影対象が移動した場合にはこの仮定が成り立たなくなり、補正係数に誤差が生じることになる。これを検出するために補正係数算出部では蓄積時間によって決定される上記のフリッカ振幅を閾値とし、これよりも大きい値になってしまった場合には、領域選択部130に設定領域が適正でないことを知らせる。また別の判定方法としては、推定されたフリッカ補正係数のラインメモリ上での波形をチェックすることでも可能である。このフリッカ補正係数波形はフリッカ波形の逆数であるので、基本的にはその基となる蛍光灯波形の周期性をそのまま持っているはずなので、図23(a)の右側のようにその周期性が損なわれている部分がないかを調べることによりその適性度を検査できる。
【0088】
この通知を受けて領域選択部130はその平均領域を変更したり、あるいは動きのある部分を検出しその部分を除くように変更し、領域平均値を計算し直す。ここでの構成例では選択された領域において平均値を算出し、その値を任意の行の代表値としていたが、このターゲットライン周辺の値を重視するように重み付けしたりするなどして最尤値算出の精度を向上させることも可能である。
【0089】
本発明の第6実施形態は、図24に示されたような構成を備え、時間平均値算出部135を持つことに特徴がある。前述の第5実施形態においては絵柄の影響あるいはノイズの影響を減らすために、フレーム内においてあるターゲットライン周辺にて平均化していた。しかしながらフレーム内を移動するものがあった時などはこれの影響がラインメモリ1361,1362,1362にそれぞれ独立に乗るため補正係数の推定値にこの物体の影響を及ぼしてしまう。この問題については時間的に平滑化する手法が有効である。
【0090】
図24において平均値算出部135は領域平均値算出部131の他に、ラインメモリに保存されているデータを呼び出すデータ呼び出し部1351このデータと現在のフレームにおいて得られた平均値との間で平均を求める時間平均値算出部1352とを備えている。あるフリッカ補正領域内のあるターゲットラインにおいて、その周辺領域から求められた領域平均値Am(t)とラインメモリのいずれかに保存されているフリッカ周期1周期前での領域平均値A’m(t−1)の間で平均を算出した後、A’m(t−1)が保存されていた位置に保存する。この処理は次のように表される。
【0091】
【数9】
Figure 0003749038
つまり、フレーム間において回帰的に平均を求めていることになるので、ある任意のフレームに表れた移動する対象からの影響を小さくすることができる。この時間方向での平均化を加えることにより補正係数推定の推定誤りを減らすことが可能となる。
【0092】
本発明の第7実施形態は図25に示されたような構成を備え、画像フレーム内に設定したフリッカ補正領域内の任意の水平ラインにおいて、一定範囲を選択する範囲選択部140と、その選択された範囲内の平均を算出するライン内平均算出部139と、ラインメモリに保存されているある任意のライン内平均データにおけるそのデータ周辺のデータを取り出す窓の幅を決める窓幅選択部138と、窓幅選択部によって設定された窓領域内のデータを読み出し平均値を算出する窓内平均値算出部137とを有することに特徴がある。
【0093】
これまで述べてきた第5,第6実施形態においては、図20に示すように、任意の範囲を有する選択領域における平均を求めて、これをあるターゲットラインにおける最尤値としていたが、領域の設定の自由度が高いためその設定に手間がかかる場合があり得る。
【0094】
ここでは、まずフリッカ補正を行なう領域を図26の補正領域#1あるいは#2のように、縦方向において区切り、その領域内においてまず各行の平均を求め、これを一旦ラインメモリに保存しておき、次に窓幅選択部138によって設定された窓領域内のデータを読み出して平均化する構成となっている。これはあるターゲットラインの周辺に長方形の領域を割り当てこの領域内において平均化しているのと同じことである。補正領域は#1のように画像フレーム全体に渡るものであっても良いし、#2のように1部分であってもよい。このようにあらかじめ区切っておくことで平均化に用いる領域の選択の自由度を減らし処理を簡略化するものである。区切り方は画像フレームを等分割したり、照明条件の分かれ目を検出し分割するなどの方法で行なう。
【0095】
範囲選択部140では補正領域内のターゲットラインが画像フレームのどの行のどの範囲に相当するかライン内平均値算出部139に指定し、ライン内平均値算出部139はフレームメモリ104からデータを読み出した後平均を求める。このデータはラインメモリ136に一旦保存される。補正領域内すべての行において平均値を求め終えると、窓幅選択部138は図27のように現在必要としている位置の前後のデータを選択し、このデータの読み出しをラインメモリ管理部132に指示し、読み出されたデータは窓内平均値算出部137に渡される。
【0096】
またラインメモリ管理部132はラインメモリ1361,1362,1363から現在のターゲットライン位置mでのデータをそれぞれから読み出し、ライン間平均値算出部133にてこれらの平均を求める。フリッカ補正係数の算出および補正は前述の第1実施形態での処理と同じで良い。補正係数算出部134では前述の例と同様に補正係数の良否を判定し、良くなければ窓幅選択部138にこれをフィードバックし再度係数を算出する。平均窓幅選択部が設定する範囲の幅は、はじめ1あるいは実験的に求めた適当な値に設定し以降は補正係数算出部134でのフリッカ係数の判定によって動的に変更させるか、あるいは処理を簡略化する意味でこれを固定にすることも可能である。
【0097】
図25においては平均値算出部を2つ持っているが、図28のようにこれを共有化しライン間平均値と窓内平均値を交互に計算する構成とすれば、回路規模を小さくすることが可能である。また図29のようにフレーム間において平均を取る処理を持たせることによりフレーム内を移動する物体などによる影響を減らすことが可能である。
【0098】
本発明の第8実施形態は、図30に示されたような構成を備え、補正係数算出部134が推定した補正係数を一時保持するラインメモリ1364を持つことに特徴がある、画像フレームの1部分において被写体が動いていたりした場合は、その部分においてのみ補正係数の推定に失敗することがある。この場合は、図30のように補正係数を一旦ラインメモリに保存しておき、係数の推定がうまくいかなかった範囲を良好な係数推定ができた範囲のもので置き換えることにより、補正の効果を上げることができる。例えば、図23のようにある範囲において係数の推定に失敗した時には、フリッカ波形の前あるいは後の周期のデータにて置きかえることで良好なフリッカ補正が可能となる。
【0099】
画像フレーム全体に渡って動きがあった場合などは、図30の方式でも十分でない。この場合に対処するには図31のような構成が有効である。この構成では品質の良いフリッカ推定係数が得られたときには、これをラインメモリ1365に保存しておく。係数推定が略々全域に渡って失敗したときあるいはその品質が悪いときには、ラインメモリからフリッカ係数を読み出しこれと置き換えている。フリッカ推定波形の品質の良否は、図19の補正係数算出部における補正係数の良否判定に使用したアルゴリズムを用いれば良い。フリッカ補正係数波形の振れ幅が基準値以下であり、かつ、その波形にフリッカ波形と同じ波長を有する周期性が見られるならば、推定波形の品質が高いと考えるのが適当である。
【0100】
これまでの例においてはMOS型固体撮像素子の出力は一旦フレームメモリに保存されていたが、フレームメモリを使用することは本撮像装置を実現する際にコスト上問題となる。これを解消する構成として図32が挙げられる。この構成は前述のいづれの構成例とも異なり、フリッカ補正係数はこれを算出したそのフレームにおいて使用されるのではなく、フレーム間フリッカ周期の1周期後に、この構成例ならば3フレーム後に使用する方式を用いている。
【0101】
この処理手順は以下の通りである。まず撮像素子出力はそのライン毎に順次読み出され、ラインメモリに一旦保存される。このラインメモリにおいて必要な範囲のみを読み出しライン内平均を算出し、一旦ラインメモリ136に保存する。その後、ターゲットライン位置における3つのラインメモリ間での平均値とターゲットのフレームと同じ位相のラインメモリにおいて算出した平均値との比から補正係数を求める。この係数はラインメモリ管理部132によって係数保存用ラインメモリ1361から1362のいずれかの適切な位置に保存される。このデータはフレーム間フリッカ周期において1周期後に補正演算部110にロードされフリッカ補正に使用される。
【0102】
図32の構成においては、フレーム間フリッカ周期分だけラインメモリを備えているが、フリッカ波形はフレーム内のいずれの場所でも略々同様の形状を有しているものと仮定して、この波形のうち1波長分だけを記録しておき、補正演算部110はこの1波長分の波形から各フレーム毎のフリッカ補正波形を算出するように構成しても良い。ここまでの構成例では画像フレームのある領域を選択し、その部分においてのみフリッカ補正を行なっているが、図33あるいは図34のような構成とすることで、複数の領域を選択し、それぞれの領域毎に最適なパラメータを設定することで補正効率を上げることが可能である。特に、この方式は蛍光灯照明の照明条件が非均一的であるとき有効である。例えば画像フレームのある一部分のみ蛍光灯照明が使用されているときに、すべての領域が蛍光灯にて照明されているとの仮定で補正を行なうと、蛍光灯が当たっている領域は問題ないが、それ以外の蛍光灯フリッカがない部分に逆にフリッカを作ってしまうことにもなる。これを防ぐ方法としては画像フレームを図35のように分割し、それぞれの領域毎にフリッカ補正係数の算出とその係数波形の振幅の検査を行なってフリッカがあるかを検出し、もしなければその領域は補正対象から外せば良い。 図33においては、係数推定およびフリッカ補正をそれぞれ別個のモジュールにより行なっている。それぞれの領域において補正された画像データは画像マッピング処理部141により1つに合成される。また、図34に示すように、それぞれの領域を順番に1つのフリッカ補正処理モジュールにて処理し、画像マッピング処理部141にて順次合成する構成も可能である。
【0103】
ここまでの構成例においてはいずれも画像フレーム全体ではなく一部分のみを補正しているため、補正領域とそれ以外の領域との境界で不連続が生じ見苦しくなる可能性がある。この問題を解消するする手段としてその境界において補正係数を抑圧する図36のような方法が考えられる。例えば、図35(a)において、#1と#3は補正処理を必要とせず、#2のみを補正するような場合、その境界を目立たなくするためは補正係数をその境界付近において抑圧すればよい。その抑圧方法はいろいろ考えられるが、例えばある任意のラインy1における補正係数C(y1)を図36(a)のように、「く」の字型に折り曲げたり、あるいは図36(b)のように階段状したりすれば良い。図35(a)において、#1、#2において補正処理が必要な場合、補正領域が隣接しているので、2つの補正領域をオーバーラップさせ、それぞれの境界において図36(c)のようにそれぞれの領域の補正係数C1(y1)とC2(y2)を抑圧すれば良い。
【0104】
また、複数の領域を補正する方法として、図37のような構成も可能である。この構成では補正係数算出部134は1つだけで、それぞれのフリッカ領域は同じ係数テーブルを参照し補正を行なう。この構成では、フリッカ係数を算出するのに使用した領域以外でフリッカ補正が十分でない可能性はあるが、いずれの蛍光灯も同じ電灯周期にて動作しているのでフリッカ位相がずれる可能性はないことから極端な補正誤差が生じることはなく、撮像装置の簡略化に適した構成となる。
【0105】
またこの構成のもう1つの特徴は、一旦フリッカ補正テーブルを作成したらこのフリッカ推定および補正部の機能を止めてフリッカ補正部のみを駆動させるようにし、後は数秒に一回フリッカ推定および補正部を動作させてフリッカテーブルを更新するようにすれば、撮像装置の低消費電力化が図れる。
【0106】
本発明の第9実施形態は、図38に示されたような構成を備え、MOS型固体撮像素子101の周辺に測光素子201を配置させている点に特徴がある。上記第1、2および3実施形態では予め補正テーブルを算出してフリッカ抑圧を行なっているため、照明条件が変わった場合には、画像の取り込みを中断して再度このテーブルを作り直す必要がある。
【0107】
これに対し、この第9実施形態においては、固体撮像素子101による画像の取り込みと平行して、撮像素子101の周辺に配置された測光素子201が常にフリッカの状態を観測し、この観測データに基づいてフリッカ抑圧を実現する方式である。
【0108】
外部に設けた測光素子を用いてフリッカ補正を行なう場合、一番の問題点は撮像素子101との感度の違いの補正にある。測光素子の感度特性が撮像素子の画素の感度特性と異なるばかりでなく、撮像素子はその前面にあるレンズ系の特性や設定により撮像素子面が受ける光量の条件が一定ではない。
【0109】
この問題点を解決するためにここでは第2ないし第4実施形態に使われている補正テーブルを用いる。前記実施形態における補正テーブルは画像フレーム内に表れるフリッカF(y)の逆数であるので、外部測光系204の出力波形の振幅を補正テーブルを利用して合わせれば良い。この処理は以下の順序により行なわれる。まず外部測光素子201により撮像装置周辺の光量の変動を計測する。この計測波形L(t)から映像の垂直方向に表れるフリッカF(y)を得るには、それぞれの画素において、それぞれの画素の電荷蓄積期間分だけ計測波形L(t)を積分する必要がある。
【0110】
ここでは説明を簡略化するために、水平方向での電荷蓄積のタイミングが同じ、すべての行で電荷蓄積時間が同じであるとする。この条件のもとで撮像素子101のy行目の画素が電荷蓄積を開始した時刻Tsから蓄積を終了する時刻Teまで計測波形を積分すると、この積分値I(y)
【数10】
Figure 0003749038
と書くことができ、また、
F(y)=I(y)×C
(Cは撮像素子の画素と測光素子の感度の違いによって決定される比例定数)の関係が成り立っている。
【0111】
次にこの比例定数Cを求める必要がある。ここではF(y)が補正テーブルという形で分かっているので、補正テーブルの逆数をI(y)で割ることによりこの比例係数Cが求められる。この計算はゲイン補正部203にて行われ、この結果はゲイン補正部203内のレジスタに保存される。これ以降の動作は外部測光系204から得られるフリッカ波形I(y)と比例係数Cから補正テーブルを作りフリッカ抑圧を行なえばよいので、比例係数Cが求められた時点でモード設定部106はフリッカ補正準備モードをフリッカ補正モードに変更すると共に、フレームメモリ104や補正テーブル算出部105を停止できる。
【0112】
また、図39に示すように外部測光素子201の上にレンズとレンズ設定部207を設置することにより、撮像素子が取り込んでいる画角における光量の変化を測定することが可能である。レンズ設定部207は、撮像素子101のレンズ設定部2071からレンズ設定値あるいは設定コマンドを受け、測光素子用のレンズの設定を変更すればよい。これにより例えば、蛍光灯照明と太陽光が混在するような環境において、太陽光を受けている領域を撮影している場合、外部測光素子が蛍光灯フリッカを誤って測定してしまうことを防ぐことができる。
【0113】
図39の場合、撮像素子用撮像レンズと外部測光素子用撮像レンズの2つの光学系を必要とするためコストが高くなる。これを低減し構成を簡略化するために、図40にあるように撮像素子用レンズと撮像素子の間にハーフミラー等の光路を2つのパスに分ける分光器208を置いたり、図41のように測光素子を撮像素子の近傍に設置することで、レンズを共用させることも可能である。図41においては、測光素子が撮像素子と同じレンズの下に設置されているため絵柄成分の影響を受けやすいので、測光素子上部にすりガラスのような光を散乱させる構造物を設置したり、測光素子それ自体が広い領域から集光するような構造にしたり、あるいはその設置位置を撮像素子面より前後にずらして非焦点位置になるようにしたりすることで絵柄成分の影響を排除することが可能である。
【0114】
なお、図示詳細説明は省略するが、この第8実施形態に係る固体撮像装置は、第2ないし第4実施形態に係るフリッカ補正演算手段を備えたもののみに適用を限定されることなく、第1および第5ないし第8実施形態に係るフリッカ補正演算手段を備えたものにも適用可能である。したがって、図19ないし図37を用いて説明した固体撮像装置に外部光量測定計204を組み合わせて適用することにより本発明のより好適な実施形態とすることもできる。
【0115】
また、第8実施形態に係る固体撮像装置においては、光学系を通して得られる光量データのみを制御要素として取り込んでいるが、本発明はこれにも限定されず、外部測光のみに依存するのではなく電子シャッタ設定手段により得られた電子シャッタ値により外部光量を推定して用いるようにしても良い。
【0116】
【発明の効果】
上述したように本発明によれば、推定したフリッカ波形に基づいて撮像素子から出力される映像信号の利得を制御することにより、蛍光灯照明下における蛍光灯フリッカを抑圧し高画質を実現することが可能である。
【図面の簡単な説明】
【図1】本発明の第1実施形態による固体撮像装置の構成を示すブロック図。
【図2】本発明の第2実施形態による固体撮像装置の構成を示すブロック図。
【図3】同固体撮像装置のフレーム構造を持った補正テーブルをライン構造に変換する水平ライン平均値算出部を備える構成を示すブロック図。
【図4】同固体撮像装置のA/D変換出力を水平ラインにおいて平均化する水平ライン平均値算出部を備える構成を示すブロック図。
【図5】同固体撮像装置の2つのフレームメモリを1つにし、簡略化された構成であることを示すブロック図。
【図6】第2実施形態におけるA/D変換出力を水平ラインにおいて平均化する水平ライン平均値算出部を備える構成を示すブロック図。
【図7】第2実施形態においてフレームメモリと補正テーブル記憶部の機能をフレーム型データ記録部に置き換えた構成を示すブロック図。
【図8】同固体撮像装置のフリッカ補正出力の補正度を検査するフリッカ検出器を備える構成を示すブロック図。
【図9】本発明の第3実施形態による平均化されたフレームメモリにより補正テーブルを算出する構成を示すフロック図。
【図10】第3実施形態において1つのフレームメモリにより画像フレームの平均を算出する構成を示すブロック図。
【図11】本発明の第4実施形態による複数の補正テーブル記憶部とこれらの1つを選択する補正テーブル選択部を備える構成を示すフロック図。
【図12】第4実施形態において水平ライン平均値算出部を備える構成を示すブロック図。
【図13】固体撮像装置において蛍光灯フリッカのフレーム間での周期性を示す説明図。
【図14】上記第4実施形態のフレームテーブルにおいて、フリッカの周期分だけフレームメモリを備える構成を示すブロック図。
【図15】第4の実施の形態の補正テーブル選択部において、補正演算部からの要求によって補正テーブルを選択する構成を示すブロック図。
【図16】第4実施形態においてA/D変換出力を水平ラインにおいて平均化する水平ライン平均値算出部を備える構成を示すブロック図。
【図17】第4実施形態において平均化されたフレームメモリにより補正テーブルを算出する構成を示すブロック図。
【図18】上記第4実施形態において、位相計測部と補正テーブル生成部とを備える構成を示すブロック図。
【図19】本発明の第5実施形態による固体撮像装置の構成を示すブロック図。
【図20】MOS型撮像素子におけるフリッカ発生の原理を示す説明図。
【図21】任意のターゲットラインにおける最尤値推定に使用する領域を示す説明図。
【図22】同固体撮像装置において、フリッカ補正処理を行なう前に、映像信号処理を行なう構成を示すブロック図。
【図23】フリッカ補正係数波形に関する説明図。
【図24】本発明の第6実施形態による平均値算出部に時間平均算出部を具備づる構成を示すブロック図。
【図25】本発明の第7実施形態によるライン平均値算出部、窓幅選択部と窓内平均値算出部を備える構成を示すブロック図。
【図26】第7実施形態のフリッカ補正を行なう領域とその領域内の任意のターゲットラインにおけるライン平均値算出の構成を示す説明図。
【図27】上記第7実施形態において、窓内平均値とライン間平均値それぞれの算出方法を示す説明図。
【図28】上記第7実施形態において、窓内平均値とライン間平均値両方を算出する平均値算出部を備える構成を示すブロック図。
【図29】上記第7実施形態における時間平均算出部を備える構成を示すブロック図。
【図30】本発明の第8実施形態による補正係数を保持するラインメモリを備える構成を示すブロック図。
【図31】上記第8実施形態における補正係数を保持するラインメモリを備える別の構成を示すブロック図。
【図32】同固体撮像装置において、MOS型撮像素子出力を保持するラインメモリを備える構成を示すブロック図。
【図33】同固体撮像装置において、複数のフリッカ補正処理部を備える構成を示すブロック図。
【図34】同固体撮像装置における1つのフリッカ補正処理部が複数の領域のフリッカを補正する構成を示すブロック図。
【図35】フリッカ検出検査における検査領域の設定方法に関する説明図。
【図36】同固体撮像装置において、フリッカ補正領域と非フリッカ補正領域との境界における処理に関する説明図。
【図37】同固体撮像装置におけるフリッカ補正部を備える構成を示すブロック図。
【図38】本発明の第9実施形態による外部測光系を備える構成を示すブロック図。
【図39】上記第9実施形態における外部測光系に撮像レンズを備える構成を 示すブロック図
【図40】上記第9実施形態における外部測光系に備える撮像レンズを固体撮像素子に使用するものと共有する構成を示すブロック図。
【図41】上記第9の実施の形態における外部測光系を固体撮像素子の近傍に設置する構成を示すブロック図。
【図42】MOS型撮像素子における電荷蓄積時間とフリッカの関係を示す説明図。
【符号の説明】
1 固体撮像素子
2 電子シャッタ値設定手段
3 A/D変換手段
4 記憶手段
10 補正演算手段
101 MOS型固体撮像素子
102 電子シャッタ設定部
103 A/D変換器
104,1041,1042 フレームメモリ
105 補正テーブル算出部
106 モード設定部
107,1071,1072,1073 補正テーブル記録部
1075 カラム型補正テーブル記憶部
1076 ライン別色別補正テーブル記憶部
108 補正演算部
109 同期信号発生部
111 水平ライン平均値算出部
112 フリッカ検出器
113,1131,1132 フレーム平均算出部
114 フレーム平均順次算出部
115 補正テーブル選択部
116 位相計測部
117 補正テーブル生成部
118,1181,1182 カラム型平均値記憶部
119 フレーム型データ記憶部
130 領域選択部
201 外部測光素子
202 積分器
203 ゲイン補正部
204 外部測光系
205 補正値生成部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a solid-state image pickup device using an XY address type solid-state image pickup device, for example, a CMOS (Complementary Metal Oxide Semiconductor) type image pickup device, and in particular, an alternating current such as a fluorescent lamp flashing in synchronization with a power cycle. The present invention relates to a solid-state imaging device that improves so-called flicker in which the luminance and hue of an imaging screen change under a flashing light.
[0002]
[Prior art]
Conventionally, when shooting with a television camera under fluorescent lighting, interference occurs due to a shift between the vertical synchronization frequency of the television camera and the flickering frequency of the fluorescent lamp, and a phenomenon called fluorescent lamp flicker occurs. . In a camera using a CCD (Charge Coupled Device) type imaging device, the effect of flicker occurs between frames or fields because charges are accumulated in units of one frame or one field. Therefore, in the CCD type image pickup device, the correction of the fluorescent lamp flicker can be performed relatively easily and has already been put into practical use.
[0003]
Taking an IT type CCD image sensor as an example, the entire screen of the signal exposed in the same period by the photodiode is once transferred to the vertical transfer CCD on the element, and one horizontal line is read out. In other words, the IT CCD image sensor has an analog frame or field memory on the element. For this reason, when photographing is performed under an illumination that is AC-lit at 50 Hz using a NTSC (National Television System Committee) type camera using an IT type CCD image sensor, the brightness of the entire screen with a period of approximately three fields. And hue change.
[0004]
As a means for correcting this flicker in the IT type CCD image sensor, the exposure time is set to 1/100 second in the electronic shutter mode and the exposure time for each field is made equal, and the flicker is approximately three field cycles. By using this phenomenon, the current luminance and hue fluctuations are predicted from the video signal three fields before so that the average value of the video signal in each field becomes constant, and flicker is suppressed. Method is used.
[0005]
On the other hand, for example, a CMOS type image pickup apparatus is an XY address scanning type, and since the exposure period sequentially moves for each pixel by the read clock cycle, the exposure timings of all the pixels are different. For this reason, a difference occurs in the amount of light of the fluorescent lamp illumination that each pixel integrates during the accumulation period, and this appears as flicker in one screen. If this is expressed using an equation, the waveform f (t) of one cycle of T, which is flickering, is integrated from time x to period X.
[Expression 1]
Figure 0003749038
Can be written.
[0006]
FIG. 42A shows an example of a flicker generation model. In order to simplify the explanation here, the fluorescent lamp flickering waveform, its cycle, and the accumulation period are each shown.
[Expression 2]
Figure 0003749038
And a flicker generation model in the case of using a CMOS type image sensor in which pixels on the same horizontal line have the same exposure timing. Here is the image sensor output
[Equation 3]
Figure 0003749038
Considering each of the case of the accumulation period such as (1) that does not straddle two peaks of the fluorescent light flickering waveform and the case of the accumulation period such as (2) that straddles two peaks, (1) In the first interval “0 <x <5 ms (0 <x <π / 2)”,
[Expression 4]
Figure 0003749038
Then, in the first section “5 ms <x <10 ms (π / 2 <x <π)” where {circle over (2)}
[Equation 5]
Figure 0003749038
It becomes. Since 10 ms and later are repeated (1) and (2), the image sensor output waveform S (i) is similar to a sine wave and has a period T waveform as shown in FIG.
[0007]
Incidentally, x = T between i and x in FIG. s Xi (T s 1 horizontal line readout time). Since the flicker is caused by the difference between the blinking cycle of the fluorescent lamp and the exposure timing, the flicker occurs regardless of whether the cycle of the power line is 50 Hz or 60 Hz, unlike the CCD type imaging device. As described above, here, considering only the image pickup apparatus that reads out one horizontal line at a time, in this case, since the exposure period of pixels on the same horizontal line is the same, the horizontal stripe-like fluorescent lamp flicker waveform is in the vertical direction. Appear in
[0008]
As one means for correcting the fluorescent lamp flicker, as shown in FIG. 42 (b), a method of setting the exposure time to one cycle of the blinking cycle of the fluorescent lamp or an integral multiple thereof is conceivable. When the accumulation time is set in this way, even if the fluorescent lamp is flickering, the fluorescent lamp flicker can be suppressed because the integral amount of the fluorescent lamp waveform is the same in all pixels. This will be described using the above formula. As an example, consider the case of “X = 10 ms”.
[Formula 6]
Figure 0003749038
Is always in the state (2) except for x = n × 10 ms (n is an arbitrary natural number). At this time, since X = 10 ms is the flickering cycle T (= π) of the fluorescent lamp, cos (X / 2) = cos (π / 2) = 0, and equation (2) can always be a constant value. Recognize. In “x = n × 10 ms”,
[Expression 7]
Figure 0003749038
It becomes. From the above, since the integral value is always 2 and is constant regardless of x, it can be said that it is not affected by the blinking of the fluorescent lamp. However, the problem with this method is that it cannot be set to an arbitrary accumulation time.
[0009]
As another correction method that can arbitrarily set the exposure time, the flicker component is extracted from the output of the image sensor or a video signal obtained by signal processing of this output, and the gain of the luminance signal and color signal is imaged so as to suppress this flicker fluctuation pattern. Control the flicker by controlling each location in the frame, and store the flicker waveform as a template in the memory, and obtain the synchronization between this template and the image sensor output by the blinking timing of the fluorescent lamp detected by the external sensor A correction method has also been devised.
[0010]
However, it is generally very difficult to detect a flicker waveform in a frame from a video signal except when shooting an achromatic image such as a white wall and having no picture. In order to extract a flicker component in a frame from a video signal, a method of removing components other than the flicker component by using a low pass effect by integration within a frame or between frames or using an analog or digital low pass filter is employed.
[0011]
However, it is often the case that a pattern of substantially the same frequency band as the flicker component is mixed in the photographic subject, and this interferes with accurate flicker waveform extraction. In particular, when the field angle of the imaging device is fixed, the flicker cycle between frames is 3 frames under a fluorescent lamp that is lit at a frequency of 50 Hz. Since the flicker waveform comes to the same place every three frames, the influence of the pattern cannot be removed.
[0012]
As for the method of storing one flicker waveform in a memory as a template, it is well known that the flickering waveform of the fluorescent lamp is unique to each lighting device of the fluorescent lamp. For this reason, in order to construct a flicker correction system, it is necessary to investigate a large number of flicker waveforms and prepare them as a database. It cannot respond to the lighting device for fluorescent lamps. As described above, in the solid-state imaging device based on the XY address method, flicker waveform extraction cannot be easily predicted as in the case of the CCD solid-state imaging device. There is a problem that the image quality is deteriorated.
[0013]
[Problems to be solved by the invention]
As described above, conventionally, when an image is taken under fluorescent lamp illumination using a solid-state imaging device of the XY address method that performs readout with different accumulation periods in units of pixels or lines, the exposure amount is different for each location on the imaging surface. There is a problem that so-called fluorescent flicker occurs. In view of the above circumstances, the present invention improves image quality by sufficiently suppressing horizontal stripe-like fluorescent lamp flicker in which luminance and hue change in the vertical direction when imaging is performed with an arbitrary accumulation time under the illumination of a fluorescent lamp. An object of the present invention is to provide an XY address type solid-state imaging device capable of performing the above.
[0014]
[Means for Solving the Problems]
Of the present invention First The solid-state imaging device according to the configuration has a solid-state imaging device that images an object by address scanning the screen in two orthogonal directions according to an electronic shutter value that satisfies a predetermined condition, and the electronic shutter value of the solid-state imaging device is a predetermined value. Electronic shutter value setting means for setting the value, A / D conversion means for converting the output signal of the solid-state imaging device from an analog signal to a digital signal, and the output signal of the A / D conversion means are stored in predetermined units And a second unit under a fluorescent lamp condition having a predetermined relationship between a first electronic shutter value suitable for an external light condition and a fluorescent lamp blinking period, with respect to a predetermined unit of signal stored in the storage unit. A signal waveform of an image according to two conditions of the electronic shutter value of each is obtained, a signal waveform affected by fluorescent lamp flicker is obtained by comparing the two signals, and a correction signal value that cancels this is calculated. Computation means and correction means for correcting horizontal stripe-like fluorescent lamp flicker by canceling the waveform of an image under fluorescent lamp illumination using the correction signal value calculated by the correction calculation means. .
[0015]
Of the present invention Second Solid-state imaging device according to configuration X A Y-address image sensor, an electronic shutter setting unit that sets an electronic shutter value of the solid-state image sensor, an A / D converter that converts an analog video signal output from the solid-state image sensor into a digital signal, and A plurality of frame memories for recording video signals converted into digital signals by an A / D converter, and an electronic shutter value of the electronic shutter setting unit from a first electronic shutter value suitable for an external light condition to a fluorescent lamp condition A mode setting unit for setting a recording output to the frame memory based on the changed shutter value, and a video signal input from the plurality of frame memories; An arithmetic process for suppressing flicker of the video signal is performed using the electronic shutter value in each frame set by the mode setting unit. A correction table calculation unit that calculates a flicker correction value, a correction table recording unit that records and saves the correction table created by the correction table calculation unit, and a correction table that is stored in the correction table recording unit. A correction calculation unit that suppresses flicker by controlling a gain of an output signal of the A / D conversion unit that is a video signal from the image pickup device.
[0016]
The solid-state imaging device further includes a horizontal line average value calculation unit that performs a process of averaging the correction table output from the correction table calculation unit in the horizontal direction of the image frame, and calculates a value averaged in the horizontal direction. It may be stored in the correction table recording unit. The solid-state imaging device further includes a flicker detector that detects whether a flicker component is included in the corrected video signal using the output of the correction calculation unit as an input, and when the flicker is detected, the mode setting unit It is also possible to prompt the regeneration of the correction table.
[0017]
A plurality of the frame memories may be provided, and a frame average calculating unit that averages images recorded in the plurality of frame memories may be further provided. The correction table recording unit is provided with a plurality, and further includes a correction table selection unit that records and saves a plurality of correction tables and selects a necessary correction table from the plurality of correction tables. Also good. The correction table recording unit stores only one cycle of the flicker waveform and further includes a phase measurement unit for measuring the phase of the flicker included in the current image frame, and the correction table is obtained from the flicker waveform and phase information for the one cycle. A correction table generation unit that generates
[0018]
In addition, the present invention Third Solid-state imaging device according to configuration X -Y address scanning type solid-state imaging device, A / D conversion means for converting the output signal of the solid-state imaging device into a digital signal, a frame memory for storing and holding the output signal of the A / D conversion means, and each scan line An area selection unit that selects an area around the line every time, an area average value calculation unit that reads an area selected by the area selection unit and calculates an average value of the data, and an output of the area average value calculation unit A line memory that stores data, a line memory management unit that selects one of the line memories and inputs / outputs data to / from the line memory, and a plurality of area average values held in the line memory An interline average value calculation unit that performs an average operation by selecting from the line memory, a line memory that stores the area average value, and a line that stores the interline average value Flicker suppression coefficient for selecting the area average value and the interline average value from each memory and comparing the area average value and the interline average value to obtain a signal waveform affected by fluorescent flicker and canceling the signal waveform A correction coefficient calculation unit that calculates the value of the flicker correction coefficient that is output from the frame memory and that is currently proportional to the coefficient value of the flicker suppression coefficient of the correction coefficient calculation unit. And a correction operation unit for controlling the gain of the output signal of the A / D conversion means output from the frame memory for each line.
[0019]
Further, in the above configuration, the area average value calculation unit includes a data calling unit that calls arbitrary data from any of the line memories that store the area average value, and the called data and the average value in the currently selected area And a time average calculation unit that calculates an average between the time average and the time average.
[0020]
In addition, the present invention 4th Solid-state imaging device according to configuration X -Y address scanning type solid-state imaging device, A / D conversion means for converting the output signal of the solid-state imaging device into a digital signal, a frame memory for storing and holding the output signal of the A / D conversion means, and each scan line A range selection unit that selects a range of data required in the scan line every time, an area selected by the range selection unit, an average value calculation unit in a line that calculates an average value of the data, A line memory that holds the output of the area average value calculation unit, a line memory management unit that selects one of the plurality of line memories and inputs / outputs data from the line memory, and a line held in the line memory An interline average value calculating unit that calculates an average value between lines by selecting an average value from a plurality of line memories and performing an average operation, and the line memory A plurality of existing average values within the line, and a window width selection unit that instructs the line memory management unit to read these, and an average value within the line read by the command of the window width selection unit An average value calculation unit for calculating an average value in a window by calculating an average of a plurality of selected ones, and a comparison operation between each of the average value between lines and the average value calculation in a window A correction coefficient calculation unit that calculates a flicker suppression coefficient that obtains a signal waveform affected by fluorescent light flicker and cancels it, and a line that is currently being corrected in a region where flicker correction is output from the frame memory And the gain of the output signal of the A / D conversion means output from the frame memory in proportion to the coefficient value of the flicker suppression coefficient of the correction coefficient calculation unit. Characterized in that it comprises a correction arithmetic unit for controlling each in the.
[0021]
In the above configuration, a line memory that holds the output of the correction coefficient calculation unit may be provided.
[0022]
Further, the solid-state imaging device configured as described above integrates an external photometric element that measures a change in the amount of light around the imaging apparatus, and an output of the external photometric element with an accumulation time determined by a current electronic shutter setting value. And a gain correction unit that corrects the amplitude of the integrator output by comparing it with the amplitude of the correction table stored in the correction table storage unit, and performs flicker suppression processing by the output of the gain correction unit. It may be a thing. The external photometric element may further include an imaging lens and a lens driving unit on the upper part in order to detect a change in the amount of light in the same area as the area based on the angle of view secured by the imaging element.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the accompanying drawings. First, a first embodiment showing the basic concept of the present invention will be described with reference to FIG.
[0024]
In FIG. 1, the solid-state imaging device according to the first embodiment includes a solid-state imaging device 1 that images an object by address-scanning a screen in two orthogonal directions with an electronic shutter value that satisfies a predetermined condition, and the solid-state imaging device. Electronic shutter value setting means 2 for setting the electronic shutter value of 1 to a predetermined value, A / D conversion means 3 for converting the output signal of the solid-state imaging device 1 from an analog signal to a digital signal, and A / D conversion A storage unit 4 for storing the output signal of the unit 3 in a predetermined unit; a first electronic shutter value suitable for an external light condition and a fluorescent lamp blinking cycle for the signal of the predetermined unit stored in the storage unit 4; Correction calculating means 10 for calculating a correction signal value for correcting fluorescent lamp flicker by obtaining signal waveforms of images according to two conditions of the second electronic shutter value having a predetermined relationship, respectively, and comparing the two signals; Eteiru.
[0025]
Normally, in a solid-state imaging device, when flicker correction is to be performed, it is used that flicker does not occur when the electronic shutter setting value is set to an integral multiple of the flashing cycle for the power line. When shooting with an arbitrary electronic shutter setting value, first, the electronic shutter setting value is set to an integral multiple of the power line blinking cycle shorter than the arbitrary value, and shooting is performed. In this case, since the exposure time is shorter than the predetermined time, the gain is insufficient. Flicker is suppressed by amplifying and outputting the shortage. On the other hand, in the present invention, flicker waveform is estimated in real time or near real time at the time of photographing, and the flicker correction is realized by adjusting the gain for each line according to this waveform. As a basic concept, the signal waveform of the image based on the first electronic shutter value under the external light condition is compared with the signal waveform of the image based on the second electronic shutter value under the fluorescent light condition, and Flicker is corrected by calculating a correction signal value that obtains an affected signal waveform and cancels it. Hereinafter, an embodiment that more specifically shows the basic concept will be described.
[0026]
As shown in FIG. 2, the solid-state imaging device according to the second embodiment of the present invention includes a MOS solid-state imaging device 101, an electronic shutter setting unit 102, an A / D converter 103, frame memories 1041, 1042, and correction table calculation. Unit 105, mode setting unit 106, correction table recording unit 107, correction calculation unit 108, and synchronization signal generation unit 109. As is clear from the basic conceptual diagram shown in FIG. 1, the frame memories 1041 and 1042 correspond to the storage means 4 in FIG. 1, and the correction table calculation unit 105, the correction table recording unit 107, and the correction calculation unit 108 The correction calculation means 10 in 1 embodiment is comprised.
[0027]
The MOS type solid-state imaging device 101 converts incident light into signal charges by pixels arranged in a matrix on the MOS type solid-state imaging device 101. This electric charge is sequentially scanned and read out from the pixel, and then analog signal processing is performed in the image sensor 101 and is output from the solid-state image sensor 101 as a video signal.
[0028]
The electronic shutter setting unit 102 sets an electronic shutter value based on the signal amount output from the solid-state image sensor 101. Also, an arbitrary electronic shutter value can be set by a command input from the mode setting unit 106. This electronic shutter setting value is output to the solid-state imaging device 101 and the mode setting unit 106. The A / D converter 103 converts the video signal output from the solid-state imaging device 101 into a digital signal, and then outputs the digital signal to the frame memories 1041 and 1042 and the correction calculation unit 108.
[0029]
Frame memories 1041 and 1042 serving as the storage means 4 store one frame of the video signal converted into a digital signal by the A / D converter 103. Writing to and reading from the frame memories 1041 and 1042 are controlled by commands from the mode setting unit 106. The correction table calculation unit 105 performs processing to be described later by using the video signal input from the frame memories 1041 and 1042 and the electronic shutter setting value in each frame stored in the register in the mode setting unit. A correction table for suppressing flicker is calculated and output to the correction table recording unit 107.
[0030]
The mode setting unit 106 controls the change of the setting value of the electronic shutter setting unit 102, the writing and reading of the output of the A / D converter 103 to the frame memories 1041 and 1042, and the electronic shutter setting value before and after the change to the internal register. The electronic shutter values are stored and output to the correction table calculation unit 105 at a necessary timing.
[0031]
The correction table recording unit 107 records and holds the flicker suppression table calculated by the correction table calculation unit 105 and used in the correction calculation unit 108, and corrects the correction table in accordance with the timing signal provided from the synchronization signal generation unit 109. This is output to the calculation unit 108.
[0032]
The correction calculation unit 108 uses the correction table input from the correction table recording unit 107 at a necessary timing to vary the gain of the digital video signal from the A / D converter 103 in units of pixels or lines. This is to suppress the flicker seen in the frame.
[0033]
The solid-state imaging device having such a configuration and having a flicker suppressing function according to the present embodiment operates as follows. The video signal captured by the solid-state image sensor 101 is input to the A / D converter 103 and is simultaneously passed to the electronic shutter setting unit 102 for electronic shutter setting. The electronic shutter setting unit receives this input and determines an appropriate electronic shutter value (first electronic shutter value).
[0034]
Here, when the current mode of the mode setting unit 106 is the flicker correction preparation mode, the electronic shutter value is also input to the mode setting unit 106. The mode setting unit 106 saves the first electronic shutter value in an internal register and checks whether the current electronic shutter setting value is an integral multiple of the fluorescent lamp blinking cycle. If it is an integral multiple, no flickering occurs in the fluorescent lamp, so the flicker correction preparation mode is set to the flicker correction non-applied mode, and the flicker correction preparation process is terminated.
[0035]
If it is not an integer multiple, first, the current electronic shutter setting value is set to an integer multiple value (second electronic shutter value) of the fluorescent lamp blinking cycle closest to this value or the fluorescent lamp shorter and closest to the current electronic shutter setting value. At the same time as changing to any integer multiple of the blink cycle, this value is recorded in the register in the mode setting unit 106.
[0036]
Thereafter, the frame memory 1042 (second frame memory) is made writable. Here, the solid-state imaging device 101 set to the second electronic shutter value captures an image and stores it in the frame memory 2 after A / D conversion, and the mode setting unit prohibits writing to this frame memory and allows reading. To be.
[0037]
Next, in order to return the electronic shutter value to the original first electronic shutter value, the mode setting unit 106 sends the first electronic shutter value stored in the internal register to the electronic shutter setting unit 102, and at the same time, The status of the memory 1041 (first frame memory) is changed to a writable state. The solid-state imaging device 101 set to the first electronic shutter value captures one frame and stores it in the frame memory 2 after A / D conversion. When the saving is completed, the first frame memory 1041 is set in a readable state by the mode setting unit 109 in which writing is prohibited.
[0038]
When the first frame memory 1041 and the second frame memory 1402 are ready to be read, the mode setting unit 106 stores the command in the internal register and a command that causes the correction table calculation unit 105 to start creating the correction table. A first electronic shutter value and a second electronic shutter value are sent to the correction table calculation unit 105. Since the images of the first frame memory 1041 and the second frame memory 1042 are respectively taken with the first electronic shutter value and the second electronic shutter value and there is a difference in the average luminance level, the second frame memory The average luminance level of 1042 is adjusted to the level of the first frame memory 1041.
[0039]
Next, division is performed for each pixel position in the first frame memory 1041 and the second frame memory 1042 to calculate a flicker component or a coefficient for correcting the flicker component. However, in order to estimate a flicker component by dividing between two frames, the picture components of the two frames need to be the same. The necessity will be described using equations. The signal of frame 2 that does not include the flicker component is represented as S2 (x, y), and the signal of frame 1 that includes the flicker component is represented as S1 ′ (x, y) = S1 (x, y) × F (x, y). Here, x is the horizontal coordinate of the image frame, y is the vertical coordinate, Sn (x, y) is a video signal without flicker, and F (x, y) is a flicker signal. If you shoot something that doesn't move with the imaging device fixed,
S1 (x, y) ≈S2 (x, y) × C (where C is a proportional constant)
If S1 ′ (x, y) is divided by S2 (x, y) under this condition,
{S1 (x, y) × F (x, y)} / {S2 (x, y) × C} ≈F (x, y)
Thus, the flicker waveform can be estimated. Incidentally, dividing S2 (x, y) by S1 ′ (x, y) gives 1 / F (x, y), which is a flicker correction coefficient, that is, the flicker waveform and the flicker correction coefficient have a reciprocal relationship. is there.
[0040]
If photographing is performed without fixing the camera at this time, a small movement of the angle of view may occur between S1 ′ (x, y) and S2 (x, y) due to camera shake or the like. In this case, the amount of movement is obtained by spatially taking a cross-correlation function between S1 ′ (x, y) and S2 (x, y), and S2 having no flicker is translated by this amount of movement. Then, the correction table may be calculated after correcting the deviation. Alternatively, if the time between writing to the first frame memory 1041 and the second frame memory 1042 is short, the correction table can be sufficiently calculated without performing this parallel movement.
[0041]
The correction table created by the correction table calculation unit 105 is stored in the correction table recording unit 107. When the correction table is stored in the memory, the correction table recording unit 107 notifies the mode setting unit 106, switches the internal mode from the flicker correction preparation mode to the flicker correction mode, and calculates the frame memories 1041 and 1042 and the correction table. The function of the unit 105 is stopped. Thereafter, the correction calculation unit 108 executes a process of canceling flicker based on the correction table sent from the correction table calculation unit 105 at an appropriate timing.
[0042]
In the above processing, an image for one frame is captured with the second electronic shutter value and then returned to the first electronic shutter value. In this order, the second electronic shutter value is followed by the second electronic shutter value. There is no problem even if shooting is performed with the electronic shutter value. The correction table generated by the above processing is valid until the electronic shutter setting value is changed. If the electronic shutter value is changed, the electronic shutter setting unit 102 notifies the mode setting unit 106 that there has been a change, and in response to this, the mode setting unit 106 regenerates the correction table. good.
[0043]
In the description so far, the correction table recording unit has a frame structure and has a correction value for each pixel. However, if the MOS type solid-state image pickup device 101 has a horizontal line unit readout structure, all corrections on the same horizontal line are used. Since the pixels have the same accumulation timing, it is sufficient to have one flicker correction value for each row, and the extraction table recording unit can be a one-dimensional column type memory. For example, as shown in FIG. 3, the horizontal line average value calculation unit 111 averages the output of the correction table calculation unit 105 in the horizontal direction of the image frame, assigns one correction coefficient to one line, and corrects this. What is necessary is just to preserve | save in the table recording part 107. FIG.
[0044]
Furthermore, as shown in FIG. 4, if the output of the A / D converter 103 is averaged in the horizontal direction, the reference image for each setting of the first electronic shutter value and the second shutter value is temporarily stored. It is possible to replace the memory to be replaced with the one-dimensional column type memories 1181 and 1182 from the two-dimensional frame type memory, and the required memory capacity can be reduced.
[0045]
As another method for reducing the amount of memory required for this image pickup apparatus, by adopting a configuration as shown in FIG. 5, a single frame memory for temporarily storing frame images for correction table calculation is provided. It is possible to reduce. Here, first, the image captured with the second electronic shutter value is input to the correction table calculation unit 105 and temporarily stored in the frame memory 104 managed by the correction table calculation unit 105.
[0046]
Next, the electronic shutter setting unit 102 returns the setting value to the first electronic shutter value and captures the next frame image. The frame image is sequentially read out from the solid-state imaging device 101 by sequential scanning, A / D converted, and then input to the correction table calculation unit 105. The correction table calculation unit 105 reads out pixel information corresponding to the pixel positions of the sequentially input image from the frame memory 104, sequentially calculates correction values, and stores the results in the correction table recording unit 107.
[0047]
Further, as shown in FIG. 6, the A / D converted digital signal is supplied to the correction table calculation unit 105 through the horizontal line average value calculation unit 111 and the frame memory 104 is stored in the column type average value storage unit 118. If configured, the horizontal line average value calculation unit 111 can make one data for one row, so that a memory for temporary storage can be realized with a simple configuration using a one-dimensional column type memory. It is.
[0048]
As another means for reducing the amount of memory required, as shown in FIG. 7, a frame in which a memory for temporarily storing an image frame for calculating a correction table and a memory for recording the correction table are used in common. It is also possible to use the mold data storage unit 119. In this case, the flicker correction table is calculated by the following procedure. First, an image captured at the second electronic shutter value is stored in the frame type data storage unit 119 via the correction table calculation unit 105.
[0049]
Next, the mode setting unit 106 captures an image after changing the electronic shutter setting of the solid-state imaging device 101 to the first electronic shutter value. This frame image is sequentially read out from the solid-state imaging device 101 by sequential scanning, and is temporarily stored in a register in the correction table calculation unit 105 after A / D conversion. The correction table calculation unit 105 calculates the pixel position (x n , Y n ) Is read out from the frame-type data storage unit 119 and the calculation of the correction value is performed. The correction value calculated in this way is stored in the frame type data storage unit 119 (x n , Y n ) Is overwritten and saved.
[0050]
In order to confirm the accuracy of the flicker correction table, it is conceivable to place a flicker detector 112 for detecting whether or not a flicker component is included in the output of the correction calculation unit 108 as shown in FIG. Flicker in the XY address scanning solid-state imaging device has a certain frequency in both the time domain and the spatial domain. The flicker detector 112 checks temporal changes of one point or several points in the image frame in the frequency domain, and data for one arbitrary line running in the vertical direction or one line averaged in the horizontal direction. The data is similarly analyzed in the frequency domain, and if a frequency component peculiar to flicker is detected, the mode setting unit 106 is notified and the correction table is regenerated.
[0051]
The third embodiment of the present invention has a configuration as shown in FIG. 9 and is characterized in that an average of a plurality of frames is used as a reference image used for calculation of a correction table. By using the averaged reference image, the noise level can be suppressed and the accuracy of the correction table can be improved. There is no particular limitation on the number of frames required, but in this example, the average of three frames is used.
[0052]
When the imaging apparatus is activated and shooting is started, first, the electronic shutter setting unit 102 receives a signal from the solid-state imaging device 101 and sets the first electronic shutter value. If this set value is not an integral multiple of the fluorescent lamp blinking frequency, the mode setting unit 106 sets the mode to the flicker correction preparation mode, changes the electronic shutter set value to the second electronic shutter value, and prepares a plurality of prepared frames. The status of one of the memories 2 (frame memory 2 group) (frame memory 2-1) is changed to a writable state.
[0053]
An image shot with the second electronic shutter value is stored in the frame memory 2-1. After the mode setting unit prohibits writing to the frame memory 2-1, the change to the first electronic shutter value and the status of one of the first frame memory groups (the frame memory 1-1) are changed to the writable state. And the video with the first electronic shutter value is stored in the frame memory 1-1. Then, again, the electronic shutter setting is changed to the second electronic shutter value, the status of one of the second frame memory groups (frame memory 2-2) is changed to the writable state, and the video is captured and stored. To do. Thereafter, this process is repeated for the number of frame memories belonging to the frame memory group.
[0054]
When 3 frame images are ready, these frame images are group The first frame memory group and the second frame memory group are passed to the average value calculation unit 113 every time. of The average of each is calculated. And , The averaged frame image at each electronic shutter value setting is input to the correction table calculation unit 105. And A correction table is calculated.
[0055]
In this example , Change the electronic shutter value alternately to capture the frame image Line However, it is also possible to capture three frames continuously at the first electronic shutter value first, and then capture three frames in the same manner by changing to the second electronic shutter value. Aside from this , With the structure as shown in FIG. 10, the number of frame memories required can be reduced.
[0056]
Here, as an example, a case where an average is obtained by adding four frames in each of the first electronic shutter value and the second electronic shutter value will be described. Here, first, these four frames are set as D1, D2, D3, and D4 in the order of taking them. First, D1 is captured and stored in the frame memory 104. Next, when D2 is captured, the frame average sequential calculation unit 114 reads the pixel value D1 (x, y) at the coordinates (x, y) of the frame memory 104, and
D2 (x, y) / 2 + D1 (x, y) / 2 = Ave1 (x, y)
To overwrite each predetermined position in the frame memory.
[0057]
After this, in order, when D3 is imported,
D3 (x, y) / 3 + Ave1 (x, y) × (2/3) = Ave2 (x, y)
Is overwritten on each pixel position in the frame memory, and in the case of D4,
D4 (x, y) / 4 + Ave2 (x, y) × (3/4) = Ave3 (x, y)
The above calculation is performed to overwrite each pixel position in the frame memory. This method can reduce the amount of memory required.
[0058]
The fourth embodiment of the present invention has a configuration as shown in FIG. 11, and has a plurality of correction table recording units and a correction table selection unit that selects one of these correction table storage units. There is a feature. In the first and second embodiments described so far, only one correction table is prepared. However, only one correction table is required for a monochrome camera and an imaging frame rate and a power line cycle. Only when the ratio is an integer multiple, in other cases it is necessary to prepare a plurality of correction tables.
[0059]
A case in which a plurality of correction table recording units are necessary is a case where an image sensor having a color filter disposed thereon is used. Since the amplitude and waveform characteristics of the light emitted from the fluorescent lamp vary depending on the color, it is accurate and simple correction to prepare a flicker correction table for each color. If a separate color filter is arranged for each image sensor as in a three-plate color camera, a correction table is calculated for each image sensor output, and a pixel array is arranged in a correction table recording unit having a frame structure. What is necessary is just to preserve | save as it is or to average a table for every horizontal line and to preserve | save it in a column type correction table recording part.
[0060]
In a single-panel color camera, the correction table is stored in the correction table recording unit of the frame structure as it is in the pixel arrangement, or the correction table of the frame structure is separated for each color as shown in FIG. Then, the averaging process may be performed and stored in the correction table storage unit 1076 prepared for each line color. As described above, averaging in the horizontal direction is possible only when the image sensor has a horizontal line unit readout structure.
[0061]
The next case is when the ratio between the imaging frame rate and the power line cycle is not an integral multiple. In this case, the flicker waveform moves in the screen with a certain phase velocity. FIG. 13 shows a flicker cycle between frames when an imaging apparatus having an imaging frame rate of 30 frames per second (30 fps) is used under a 50 Hz electric power line. The blinking cycle of the fluorescent lamp under the 50 Hz power line is 100 Hz, and one cycle is 10 ms. On the other hand, the 30 fps imaging device has a frame period of 33.3 ms (= 100/3 ms), and thus the flicker cycle appearing in the image frame is 3 frames. Therefore, in this case, it is understood that it is sufficient to prepare a correction table for three consecutive frames.
[0062]
Here, the operation of FIG. 11 will be described. First, a reference image that does not include flicker is captured using the second electronic shutter value, and is stored in the second frame memory 1042. Next, the electronic shutter setting value is returned to the electronic shutter 1 and a reference image including flicker is captured and stored in the first frame memory 1041.
[0063]
Next, a correction table is calculated using these reference images, and sequentially stored in the correction table recording unit 1 (1071). The correction table selection unit 115 notifies the mode setting unit 106 of the end of the storage when the table is stored. In the mode setting unit 106, the phase of the image to be captured is determined as phase 2 when the calculation of the correction table ends in the vertical blanking period, and is determined as phase 3 when the calculation is performed until the next frame period, and the phase value is determined as the correction table. Simultaneously with the selection unit 115, the first frame memory 1041 is made writable.
[0064]
Correction table The calculation unit 105 The newly captured image of the first frame memory 1041 has already been captured. Second Frame memory 1042 From images Correction table The current phase is calculated by the correction table selection unit 115. , If 2 Correction table recording section 2 (1072) If 3 Correction table recording section 3 (1073) Save to. After this, the generation of the correction table in the remaining phase is the same of Follow the procedure. In this way , 3 consecutive frames of A correction table is prepared for each.
[0065]
In the flicker correction process, the correction table selection unit 115 that has received the current phase from the mode setting unit 106 as an input sends the correction table data in the phase to the correction calculation unit 108, and the flicker correction process is executed. As a configuration example different from the calculation of the correction table storage units 1 to 3 in this way, three first frame memories 1041 are prepared as shown in FIG. It is also possible to calculate the correction table after sequentially saving the three frames to 1-1, 1-2, and 1-3.
[0066]
In addition, although each correction table recording unit has a frame structure here, the correction table for three frames can be replaced with four tables for each line color by the method of FIG. The correction table selection unit 115 selects the data of the position to be corrected from the required color and phase table while taking the timing with the synchronization signal and sends it to the correction calculation unit 108, or as shown in FIG. The correction calculation unit 108 may request the correction table selection unit 115 for necessary color / phase / position data, and the correction table selection unit 115 may read this data from the correction table and send it to the correction calculation unit 108.
[0067]
In addition, as shown in FIG. 16, the first frame memories 1041 and 1042 are column-type average values by averaging the reference images taken with the first electronic shutter value and the second electronic shutter value in the horizontal direction. It is also possible to replace the storage unit 115. Next, FIG. 17 shows a configuration in which the reference image is averaged in the same manner as in FIG. 9 under imaging conditions where the ratio between the imaging frame rate and the power line cycle is not an integral multiple. Here, the number of necessary frames is not particularly limited, but in this example, the average of three frames is used.
[0068]
Here, groups 1 to 3 are prepared in the first frame memory 1041 group. The first group (frame memory 1-1) of the first frame memory 1041 group is the image in phase 1 in FIG. 12, the second group (frame memory 1-2) is phase 2, and the third group (frame memory 1-3). Stores phase 3 respectively. First, the imaging apparatus changes the electronic shutter setting value to the second electronic shutter value, takes in three consecutive frames, and stores them sequentially in the frame memories 2-1 to 2-3. Next, after changing to the first electronic shutter value, successive nine frames are converted into 1-1-1, 1-2-1, 1-3-1, 1-1-2, 1-2-2, 1-. Save in the order of 3-2, 1-1-3, 1-2-3, and 1-3-3.
[0069]
When all of these have been taken, the frame average calculation unit 1132 calculates the average of frames not including flicker and overwrites and saves them in the frame memory 2-1. This data is called up when necessary by the correction table calculation unit. Next, the frame average calculation unit 1131 calculates the average of the frame memory 1-1. The correction table calculation unit calculates a flicker correction table in phase 1 from the average of the frame memory 2 and the average of the frame memory 1-1 and stores it in the correction table recording unit 1. Thereafter, the same processing is performed in the frame memories 1-2 and 1-3, the correction tables in phase 2 and phase 3 are obtained, and stored in the correction table recording unit.
[0070]
If the frame memory portion of this configuration is replaced with the frame memory configuration shown in FIG. 10, the amount of the frame memory 104 used for correction table calculation can be reduced to half. Apart from the method of preparing a table for each phase of the flicker appearing in the frame, each flicker waveform from the flicker correction table for only one cycle of the flicker waveform is basically utilized by utilizing the fact that the flicker waveform is a repetition of the wave having the same shape. It is also possible to calculate a table for the phase condition. When shooting at 30 fps under a fluorescent lamp flashing at 100 Hz, as can be seen from FIG. 13, if one period of the power line is 2π, the phase speed is π / 3, and therefore one period of flicker waveform. The correction table may be calculated by advancing the waveform by π / 3 for each frame. When the phase velocity is not constant, as shown in FIG. 18, the phase measurement unit 116 calculates the phase of flicker in each frame using the synchronization signal, and the correction table generation unit 117 calculates the phase value and the basic flicker waveform. A correction table may be generated.
[0071]
Next, a solid-state imaging device according to a fifth embodiment of the present invention will be described. As shown in FIG. 19, a solid-state imaging device having a fluorescent lamp flicker suppression function according to a fifth embodiment of the present invention includes a MOS imaging device 101, an A / D converter 103, a frame memory 104, a region selection unit 130, An area average value calculation unit 105, a line memory management unit 107, a line memory 106, a line average value calculation unit 108, a correction coefficient calculation unit 109, and a correction calculation unit 110 are provided.
[0072]
The MOS type solid-state imaging device 101 converts incident light into signal charges by pixels arranged in a matrix on the MOS type solid-state imaging device 101. The electric charges are sequentially scanned and read out from the pixels, and then analog signals are processed in the image sensor and output as an image signal outside the image sensor.
[0073]
The A / D converter 103 converts the video signal output from the solid-state imaging device 101 into a digital signal, and then outputs the digital signal to the frame memory 104. The frame memory 104 stores the video signal converted into the digital signal by the A / D converter 103 for one frame. The area selection unit 130 selects a peripheral area of one line belonging to a certain area in the frame on which flicker correction is performed.
[0074]
The area average value calculation unit 131 reads the area designated by the area selection unit 130 from the frame memory 104 and calculates the average value of data in this area. The line memory 136 temporarily stores values obtained by the area average value calculation unit. The line memory management unit 132 selects in which line memory 136 the value obtained by the area average value calculation unit 131 is to be stored, decides in which position in the line memory 136 it is to be stored, and places this in this place. In addition to instructing the line memory 136 to store the average value, it also takes out from the line memory 136 the area average value required in response to a request from another functional block.
[0075]
The inter-line average value calculation unit 133 calls an area average value stored in the line memory 136 from an arbitrary position in a plurality of line memories, and obtains an average of the plurality of area average values. The correction coefficient calculation unit 134 calls the area average value in the target line from the line memory 106 having the same flicker phase as the flicker correction target frame, and the interline average in the target line calculated by the interline average value calculation unit 133. The correction coefficient is calculated by calculating between the values.
[0076]
The correction calculation unit 110 reads out data of a line to be corrected currently in the area where flicker correction is performed from the frame memory 104, and controls and outputs the gain of the line by a correction coefficient.
[0077]
First, the principle of the solid-state imaging device having such a configuration and having the flicker suppressing function according to the present embodiment will be briefly described. If a signal not including flicker in an arbitrary frame is S (x, y) and flicker is F (x, y), a video signal including flicker can be written as S (x, y) · F (x, y). Here, x represents the horizontal coordinate in the image frame, and y represents the vertical coordinate. In the case of a MOS type solid-state imaging device, flicker appears as a waveform having periodicity in the y direction, and is thus simplified to F (y). If it is necessary to consider the fluctuation in the x direction, the processing area is set separately and processed. To realize flicker correction, F (y) may be estimated. Here, considering a solid-state imaging device that captures 30 frames per second under illumination of 50 Hz, at this time, flicker appears as a waveform with a period between frames of 3 frames and a phase speed of 10/3 ms as shown in FIG. Here, it is assumed that the signal S (x1, y1) is constant between frames at a certain point (x1, y1) in the frame, and the total flicker value for one period is always constant. If this is expressed by an equation, S1 (x1, y1) = S2 (x1, y1) = S3 (x1, y1) = S (x1, y1) and F1 (y1) + F2 (y1) + F3 (y1 ) = C. Here, C means a constant. Under this assumption, the following equation is calculated by dividing the value at an arbitrary coordinate (x1, y1) in the first frame by the average of three consecutive frames.
[0078]
S (x1, y1) .F1 (y1) / {S (x1, y1) F1 (y1) + S (x1, y1) .F2 (y1) + S (x1, y1) .F3 (yl)} = S (x1 , Y1) · F1 (y1) / S (x1, y1) · C = F1 (y1) · C ′, and the flicker value at y1 can be estimated. When this method is used in an actual imaging apparatus, the most serious problem is the assumption that “the signal S (x1, y1) at a certain point (x1, y1) in the frame is constant between frames”. Since the shooting target is constantly moving, S (x1, y1) is not constant between frames.
[0079]
In order to solve this problem, here, a region around (x1, y1) is selected, and the average value of this region is used as the maximum likelihood value of this coordinate. Regarding the assumption that “the total flicker value for one period is always constant”, the fluorescent lamp waveform can be approximated to the absolute value of the sine waveform, so that it can be regarded as almost no problem.
[0080]
The solid-state imaging device having the flicker suppressing function according to the fifth embodiment having such a configuration operates as follows. The video signal captured by the solid-state image sensor 101 is converted into a digital signal by the A / D converter 103 and stored in the frame memory 104. The area selection unit 130 selects the periphery of one line in the flicker correction designated area designated by the user or the system. For example, as shown in FIG. 21, the selected area may have an arbitrary shape such as an area of n lines before and after the designated line, or an area in which movement is removed from the area. This area designation is transferred to the area average value calculation unit 105. Here, the data in the designated area is read from the frame memory and the average value of these data is calculated. This value is used as the maximum likelihood value of a certain line selected earlier.
[0081]
This calculated value is stored in the line memory 106 by the line memory management unit 132. The line memory management unit 132 selects one of a plurality of prepared line memories 136 and stores the average value at an arbitrary position in the line memory 136. This process is repeated for the number of lines in the area where flicker correction is performed. The number of line memories 136 used here depends on the system configuration. For example, in an imaging system that captures images at 30 frames per second, the flicker cycle between frames is 3 frames as shown in FIG. 2 under a 50 Hz fluorescent lamp, so three line memories 1361 to 1363 are stored as shown in FIG. What is necessary is just to have the structure which has. Similarly, in the case of 15 fps and 60 fps, since the cycle of the inter-frame flicker is 3 frames, three line memories are required.
[0082]
If a color filter is provided on the image sensor, a line memory corresponding to the inter-frame flicker period is required for each type of color filter if flicker correction is performed before signal processing. Further, if flicker correction is performed after signal processing, as shown in FIG. 22, the flicker correction may be performed only on the Y signal after YC separation in the signal processing unit. In the same way as in the case of the above, it is necessary to prepare only three inter-frame flicker cycles.
[0083]
The contents of the plurality of line memories 136 are managed by the line memory management unit 132. The line memories 1061, 1062, and 1063 store area average values in consecutive frames. To update the contents, 1062 is moved to 1063, 1061 is moved to l062, and 1061 is always used in the latest frame. Alternatively, the line memory having the oldest contents may be allocated for the latest frame and overwritten.
[0084]
When the area average is obtained for all the lines in the correction area in the current frame, the area average value in the previous frame is recorded in the line memory 1062, and the area average value in the previous frame is recorded in the line memory 1063. Check if it is. If not, only the area average calculation is repeated until all of them are prepared. If already prepared, a correction coefficient calculation process is performed.
[0085]
The correction coefficient calculation processing unit 139 first obtains the average of the line memories 1061, 1062, and 1063 in the target line for which a correction coefficient is to be obtained from the average value calculation unit 108 between lines. This value is passed to the correction coefficient calculation unit 134. Next, the line memory management unit 132 calls the area average value in the target line from the line memory 1061 and passes it to the correction coefficient calculation unit 134. The correction coefficient calculation unit 134 divides the value from the interline average value calculation unit 133 by the area average value to calculate a flicker correction coefficient. This correction coefficient is passed to the correction calculation unit 110, and flicker is suppressed by changing the gain of data on the target line read from the frame memory 104.
[0086]
The correction coefficient calculation unit 134 calculates the correction coefficient and simultaneously determines whether the correction coefficient is good or bad. First, the flicker correction coefficient amplitude is inspected as a criterion for this determination. The magnitude of the flicker amplitude is determined to some extent in principle and experimentally by the setting of the accumulation time of the image sensor. In the case of FIG. 19, since the fluorescent lamp is lit at 50 Hz, one cycle is 10 ms. When the accumulation time is longer than this, the integration interval in FIG. 42 (a) becomes one cycle or more of the fluorescent lamp waveform, so that the amplitude becomes small, and the flicker amplitude vs. dynamic range width becomes about several percent. On the other hand, in the case of 10 ms or less, the integrated waveform
[Equation 8]
Figure 0003749038
Varies greatly depending on which part of the fluorescent lamp waveform is integrated, and is about a dozen percent.
[0087]
In this correction coefficient estimation, the area to be averaged is adjusted to reduce the influence of the picture so that S1 (x, y) = S2 (x, y) = S3 (x, y) holds. This assumption does not hold when the subject moves greatly or the object to be photographed moves, and an error occurs in the correction coefficient. In order to detect this, the correction coefficient calculation unit uses the flicker amplitude determined by the accumulation time as a threshold, and if the value is larger than this, the setting region is not appropriate for the region selection unit 130. To inform. As another determination method, it is also possible to check the waveform of the estimated flicker correction coefficient on the line memory. Since this flicker correction coefficient waveform is the reciprocal of the flicker waveform, it should basically have the periodicity of the fluorescent lamp waveform that is the basis thereof, so that the periodicity is as shown on the right side of FIG. The suitability can be inspected by checking for any damaged parts.
[0088]
Upon receiving this notification, the area selection unit 130 changes the average area, or detects a moving part and changes it so as to remove the part, and recalculates the area average value. In the configuration example here, the average value is calculated in the selected area and the value is used as the representative value of an arbitrary row. However, the maximum likelihood is obtained by weighting the values around the target line. It is also possible to improve the accuracy of value calculation.
[0089]
The sixth embodiment of the present invention is characterized by having a configuration as shown in FIG. 24 and having a time average value calculation unit 135. In the fifth embodiment described above, averaging is performed around a certain target line in the frame in order to reduce the influence of the pattern or noise. However, when there is something that moves within the frame, the influence of this object is applied to the line memories 1361, 1362, and 1362 independently, and therefore this object affects the estimated value of the correction coefficient. For this problem, a temporal smoothing technique is effective.
[0090]
In FIG. , The average value calculation unit 135 is , In addition to the area average value calculation unit 131, a data calling unit for calling data stored in the line memory 1351 When , A time average value calculating unit 1352 that calculates an average between this data and the average value obtained in the current frame. And with Yes. A target line in a flicker correction area To The average between the area average value Am (t) obtained from the peripheral area and the area average value A′m (t−1) one cycle before the flicker period stored in one of the line memories. Is calculated, and A′m (t−1) is stored at the position where it was stored. This process is expressed as follows.
[0091]
[Equation 9]
Figure 0003749038
That is, since the average is obtained recursively between frames, the influence from the moving object appearing in a certain arbitrary frame can be reduced. By adding the averaging in the time direction, it is possible to reduce the estimation error of the correction coefficient estimation.
[0092]
The seventh embodiment of the present invention has a configuration as shown in FIG. 25, and a range selection unit 140 that selects a certain range in an arbitrary horizontal line in a flicker correction area set in an image frame, and its selection An in-line average calculating unit 139 for calculating an average within the range, and a window width selecting unit 138 for determining a width of a window for extracting data around the data in any arbitrary in-line average data stored in the line memory; And an average value calculation unit 137 for reading out data in the window area set by the window width selection unit and calculating an average value.
[0093]
In the fifth and sixth embodiments described so far, as shown in FIG. 20, the average in a selected area having an arbitrary range is obtained and set as the maximum likelihood value in a certain target line. Since the degree of freedom of setting is high, it may take time and effort.
[0094]
Here, first, the area to be subjected to flicker correction is divided in the vertical direction as in correction area # 1 or # 2 in FIG. 26, and the average of each row is first obtained within that area, and this is temporarily stored in the line memory. Next, the data in the window region set by the window width selection unit 138 is read and averaged. This is the same as assigning a rectangular area around a target line and averaging within this area. The correction area may cover the entire image frame as in # 1, or may be one part as in # 2. By dividing in advance in this way, the degree of freedom in selecting an area used for averaging is reduced and the processing is simplified. Separation is performed by dividing the image frame equally or by detecting and dividing the lighting condition.
[0095]
In the range selection unit 140, the in-line average value calculation unit 139 specifies which range in which row of the image frame the target line in the correction area corresponds to, and the in-line average value calculation unit 139 reads the data from the frame memory 104. After that, find the average. This data is temporarily stored in the line memory 136. When the average value has been obtained for all the rows in the correction area, the window width selection unit 138 selects data before and after the currently required position as shown in FIG. 27 and instructs the line memory management unit 132 to read this data. The read data is passed to the window average value calculation unit 137.
[0096]
The line memory management unit 132 reads data at the current target line position m from the line memories 1361, 1362, and 1363, respectively, and an average between these values is calculated by the interline average value calculation unit 133. The calculation and correction of the flicker correction coefficient may be the same as the processing in the first embodiment described above. The correction coefficient calculation unit 134 determines whether or not the correction coefficient is good in the same manner as in the above example. If not, the correction coefficient calculation unit 134 feeds back the correction coefficient to the window width selection unit 138 and calculates the coefficient again. The width of the range set by the average window width selection unit is initially set to 1 or an appropriate value obtained experimentally and thereafter is dynamically changed by the flicker coefficient determination by the correction coefficient calculation unit 134 or processed. It is also possible to fix this for the purpose of simplifying.
[0097]
In FIG. 25, there are two average value calculation units. However, if this is shared and the average value between lines and the average value in the window are calculated alternately as shown in FIG. 28, the circuit scale can be reduced. Is possible. Further, by giving a process of taking an average between frames as shown in FIG. 29, it is possible to reduce the influence of an object moving in the frame.
[0098]
The eighth embodiment of the present invention has a configuration as shown in FIG. 30 and is characterized by having a line memory 1364 that temporarily stores the correction coefficient estimated by the correction coefficient calculation unit 134. If the subject moves in a portion, the estimation of the correction coefficient may fail only in that portion. In this case, as shown in FIG. 30, the correction coefficient is temporarily stored in the line memory, and the correction effect is obtained by replacing the range where the coefficient estimation is not successful with the range where the coefficient estimation is good. Can be raised. For example, when the coefficient estimation fails in a certain range as shown in FIG. 23, it is possible to correct the flicker by replacing the data with the period before or after the flicker waveform.
[0099]
When there is a movement over the entire image frame, the method of FIG. 30 is not sufficient. In order to cope with this case, the configuration as shown in FIG. 31 is effective. With this configuration, when a flicker estimation coefficient with good quality is obtained, it is stored in the line memory 1365. When the coefficient estimation fails over almost the entire area or when the quality is poor, the flicker coefficient is read from the line memory and replaced with this. The quality of the flicker estimation waveform may be determined by using the algorithm used for determining the quality of the correction coefficient in the correction coefficient calculation unit in FIG. If the fluctuation width of the flicker correction coefficient waveform is equal to or smaller than the reference value and the waveform has periodicity having the same wavelength as the flicker waveform, it is appropriate to consider that the quality of the estimated waveform is high.
[0100]
In the examples so far, the output of the MOS type solid-state imaging device is once stored in the frame memory. However, the use of the frame memory is a problem in terms of cost when realizing the imaging apparatus. FIG. 32 shows a configuration for solving this problem. This configuration is different from any of the above-described configuration examples, and the flicker correction coefficient is not used in the frame in which it is calculated, but is used after one cycle of the inter-frame flicker cycle, and in this configuration example, after 3 frames. Is used.
[0101]
This processing procedure is as follows. First, the image sensor output is sequentially read out for each line and temporarily stored in the line memory. Only the necessary range in this line memory is read out, the average in the line is calculated, and once stored in the line memory 136. Thereafter, a correction coefficient is obtained from the ratio between the average value between the three line memories at the target line position and the average value calculated in the line memory having the same phase as the target frame. The coefficient is stored in an appropriate position in the coefficient storage line memories 1361 to 1362 by the line memory management unit 132. This data is loaded into the correction calculation unit 110 after one cycle in the inter-frame flicker cycle and used for flicker correction.
[0102]
In the configuration of FIG. 32, the line memory is provided for the inter-frame flicker cycle, but the flicker waveform is assumed to have substantially the same shape everywhere in the frame. Of these, only one wavelength may be recorded, and the correction calculation unit 110 may be configured to calculate a flicker correction waveform for each frame from the waveform for one wavelength. In the configuration examples so far, a certain area of the image frame is selected and flicker correction is performed only on that area. However, by adopting a configuration as shown in FIG. 33 or FIG. It is possible to increase the correction efficiency by setting optimum parameters for each region. In particular, this method is effective when the illumination conditions of the fluorescent lamp illumination are non-uniform. For example, when the fluorescent lamp illumination is used only for a certain part of the image frame, if correction is performed on the assumption that all the areas are illuminated by the fluorescent lamp, the area hit by the fluorescent lamp is not a problem. On the other hand, flicker is also produced in the part where there is no other fluorescent light flicker. As a method for preventing this, the image frame is divided as shown in FIG. 35, and the flicker correction coefficient is calculated for each area and the amplitude of the coefficient waveform is checked to detect whether there is flicker. The region may be excluded from the correction target. In FIG. 33, coefficient estimation and flicker correction are performed by separate modules. The image data corrected in each region is combined into one by the image mapping processing unit 141. Further, as shown in FIG. 34, a configuration is possible in which each region is processed in order by one flicker correction processing module and then sequentially combined by the image mapping processing unit 141.
[0103]
In all of the configuration examples so far, only a part of the image frame is corrected instead of the entire image frame, so that there is a possibility that discontinuity occurs at the boundary between the correction region and the other region, and it becomes unsightly. As a means for solving this problem, a method as shown in FIG. 36 for suppressing the correction coefficient at the boundary can be considered. For example, in FIG. 35A, when correction processing is not required for # 1 and # 3 and only # 2 is corrected, in order to make the boundary inconspicuous, the correction coefficient is suppressed in the vicinity of the boundary. Good. Various suppression methods can be considered. For example, the correction coefficient C (y1) in an arbitrary line y1 is bent into a “<” shape as shown in FIG. 36A, or as shown in FIG. Or just step up. In FIG. 35 (a), when correction processing is required in # 1 and # 2, the correction regions are adjacent to each other. Therefore, the two correction regions are overlapped with each other as shown in FIG. 36 (c). The correction coefficients C1 (y1) and C2 (y2) for the respective regions may be suppressed.
[0104]
Further, as a method for correcting a plurality of regions, a configuration as shown in FIG. 37 is also possible. In this configuration, there is only one correction coefficient calculation unit 134, and each flicker area is corrected by referring to the same coefficient table. In this configuration, there is a possibility that the flicker correction is not sufficient outside the region used to calculate the flicker coefficient, but there is no possibility that the flicker phase shifts because all the fluorescent lamps are operating in the same lamp cycle. Therefore, an extreme correction error does not occur, and the configuration is suitable for simplification of the imaging apparatus.
[0105]
Another feature of this configuration is that once the flicker correction table is created, the function of the flicker estimation / correction unit is stopped and only the flicker correction unit is driven. If the flicker table is updated by operating it, the power consumption of the imaging apparatus can be reduced.
[0106]
The ninth embodiment of the present invention has a configuration as shown in FIG. 38 and is characterized in that a photometric element 201 is arranged around the MOS type solid-state imaging element 101. In the first, second, and third embodiments, the correction table is calculated in advance and flicker suppression is performed. Therefore, when the illumination condition changes, it is necessary to interrupt the image capture and recreate this table again.
[0107]
On the other hand, in the ninth embodiment, in parallel with the image capture by the solid-state image sensor 101, the photometric element 201 arranged around the image sensor 101 always observes the flicker state, and the observation data This is a method for realizing flicker suppression based on this.
[0108]
When flicker correction is performed using a photometric element provided outside, the biggest problem is correction of the difference in sensitivity with the image sensor 101. In addition to the sensitivity characteristics of the photometric element differing from the sensitivity characteristics of the pixels of the image sensor, the condition of the amount of light received by the image sensor surface is not constant due to the characteristics and settings of the lens system on the image sensor.
[0109]
In order to solve this problem, the correction table used in the second to fourth embodiments is used here. Since the correction table in the embodiment is the reciprocal of the flicker F (y) appearing in the image frame, the amplitude of the output waveform of the external photometric system 204 may be adjusted using the correction table. This process is performed in the following order. First, a change in the amount of light around the imaging device is measured by the external photometric element 201. In order to obtain the flicker F (y) appearing in the vertical direction of the video from the measurement waveform L (t), it is necessary to integrate the measurement waveform L (t) in each pixel for the charge accumulation period of each pixel. .
[0110]
Here, in order to simplify the description, it is assumed that the charge accumulation timing in the horizontal direction is the same and the charge accumulation time is the same in all rows. Under this condition, when the measurement waveform is integrated from the time Ts at which the pixel in the y-th row of the image sensor 101 starts the charge accumulation to the time Te at which the accumulation ends, this integral value I (y)
[Expression 10]
Figure 0003749038
And can also be written
F (y) = I (y) × C
(C is a proportionality constant determined by the difference in sensitivity between the pixels of the image sensor and the photometric element).
[0111]
Next, it is necessary to obtain this proportionality constant C. Since F (y) is known in the form of a correction table here, this proportionality coefficient C can be obtained by dividing the reciprocal of the correction table by I (y). This calculation is performed by the gain correction unit 203, and the result is stored in a register in the gain correction unit 203. In the subsequent operations, the flicker waveform I (y) obtained from the external metering system 204 and the proportional coefficient C may be used to create a correction table and perform flicker suppression. While changing the correction preparation mode to the flicker correction mode, the frame memory 104 and the correction table calculation unit 105 can be stopped.
[0112]
Also, as shown in FIG. 39, by installing a lens and a lens setting unit 207 on the external photometric element 201, it is possible to measure a change in the amount of light at the angle of view captured by the image sensor. The lens setting unit 207 may receive the lens setting value or the setting command from the lens setting unit 2071 of the image sensor 101 and change the setting of the lens for the photometric element. This prevents, for example, an external photometric element from measuring fluorescent flicker by mistake when shooting an area receiving sunlight in an environment where fluorescent lighting and sunlight are mixed. Can do.
[0113]
In the case of FIG. 39, since two optical systems, that is, an imaging lens for an imaging element and an imaging lens for an external photometric element are required, the cost increases. In order to reduce this and simplify the configuration, as shown in FIG. 40, a spectroscope 208 that divides an optical path such as a half mirror into two paths is placed between the imaging element lens and the imaging element, as shown in FIG. It is also possible to share a lens by installing a photometric element in the vicinity of the image sensor. In FIG. 41, since the photometric element is installed under the same lens as the image sensor, it is easily affected by the pattern component. Therefore, a structure that scatters light, such as ground glass, is installed on the upper part of the photometric element. It is possible to eliminate the influence of the pattern component by making the element itself collect light from a wide area, or shifting the installation position back and forth from the image sensor surface so that it becomes a non-focus position. It is.
[0114]
Although not shown in the drawings, the solid-state imaging device according to the eighth embodiment is not limited to the one provided with the flicker correction calculating means according to the second to fourth embodiments, and the application is not limited. The present invention is also applicable to those provided with flicker correction calculation means according to the first and fifth to eighth embodiments. Therefore, by applying the external light quantity meter 204 in combination to the solid-state imaging device described with reference to FIGS. 19 to 37, a more preferable embodiment of the present invention can be obtained.
[0115]
In the solid-state imaging device according to the eighth embodiment, only the light amount data obtained through the optical system is captured as a control element. However, the present invention is not limited to this, and does not depend only on external photometry. The external light quantity may be estimated and used based on the electronic shutter value obtained by the electronic shutter setting means.
[0116]
【The invention's effect】
As described above, according to the present invention, by controlling the gain of the video signal output from the imaging device based on the estimated flicker waveform, fluorescent light flicker under fluorescent light illumination is suppressed and high image quality is realized. Is possible.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a solid-state imaging device according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of a solid-state imaging device according to a second embodiment of the present invention.
FIG. 3 is a block diagram showing a configuration including a horizontal line average value calculation unit that converts a correction table having a frame structure of the solid-state imaging device into a line structure;
FIG. 4 is a block diagram showing a configuration including a horizontal line average value calculation unit that averages A / D conversion outputs of the solid-state imaging device in horizontal lines.
FIG. 5 is a block diagram showing a simplified configuration in which two frame memories of the solid-state imaging device are combined into one;
FIG. 6 is a block diagram showing a configuration including a horizontal line average value calculation unit that averages A / D conversion outputs in a horizontal line in the second embodiment.
FIG. 7 is a block diagram showing a configuration in which functions of a frame memory and a correction table storage unit are replaced with a frame type data recording unit in the second embodiment.
FIG. 8 is a block diagram showing a configuration including a flicker detector for inspecting the correction degree of the flicker correction output of the solid-state imaging device.
FIG. 9 is a block diagram showing a configuration for calculating a correction table by using an averaged frame memory according to the third embodiment of the present invention.
FIG. 10 is a block diagram showing a configuration for calculating an average of image frames by one frame memory in the third embodiment.
FIG. 11 is a block diagram showing a configuration including a plurality of correction table storage units and a correction table selection unit for selecting one of them according to a fourth embodiment of the present invention.
FIG. 12 is a block diagram showing a configuration including a horizontal line average value calculation unit in the fourth embodiment.
FIG. 13 is an explanatory diagram showing periodicity between frames of fluorescent lamp flicker in a solid-state imaging device.
FIG. 14 is a block diagram showing a configuration including frame memories for flicker periods in the frame table of the fourth embodiment.
FIG. 15 is a block diagram showing a configuration for selecting a correction table in response to a request from a correction calculation unit in a correction table selection unit according to the fourth embodiment.
FIG. 16 is a block diagram showing a configuration including a horizontal line average value calculation unit that averages A / D conversion outputs in horizontal lines in the fourth embodiment.
FIG. 17 is a block diagram showing a configuration for calculating a correction table by using an averaged frame memory in the fourth embodiment.
FIG. 18 is a block diagram showing a configuration including a phase measurement unit and a correction table generation unit in the fourth embodiment.
FIG. 19 is a block diagram showing a configuration of a solid-state imaging apparatus according to a fifth embodiment of the present invention.
FIG. 20 is an explanatory diagram illustrating the principle of flicker generation in a MOS image sensor.
FIG. 21 is an explanatory diagram showing a region used for maximum likelihood estimation in an arbitrary target line.
FIG. 22 is a block diagram showing a configuration for performing video signal processing before performing flicker correction processing in the solid-state imaging device;
FIG. 23 is an explanatory diagram regarding flicker correction coefficient waveforms.
FIG. 24 is a block diagram showing a configuration in which a time average calculation unit is included in an average value calculation unit according to a sixth embodiment of the present invention.
FIG. 25 is a block diagram showing a configuration including a line average value calculation unit, a window width selection unit, and an in-window average value calculation unit according to the seventh embodiment of the present invention.
FIG. 26 is an explanatory diagram showing a configuration for calculating line average values in a region where flicker correction is performed and an arbitrary target line in the region according to the seventh embodiment;
FIG. 27 is an explanatory diagram showing a calculation method for each of the average value in the window and the average value between lines in the seventh embodiment.
FIG. 28 is a block diagram showing a configuration including an average value calculation unit for calculating both an average value in a window and an average value between lines in the seventh embodiment.
FIG. 29 is a block diagram showing a configuration including a time average calculation unit in the seventh embodiment.
FIG. 30 is a block diagram showing a configuration including a line memory for holding a correction coefficient according to an eighth embodiment of the present invention.
FIG. 31 is a block diagram showing another configuration including a line memory for holding correction coefficients in the eighth embodiment.
FIG. 32 is a block diagram showing a configuration including a line memory for holding a MOS type image sensor output in the solid-state imaging device.
FIG. 33 is a block diagram showing a configuration including a plurality of flicker correction processing units in the solid-state imaging device.
FIG. 34 is a block diagram showing a configuration in which one flicker correction processing unit corrects flicker in a plurality of areas in the solid-state imaging device.
FIG. 35 is an explanatory diagram relating to an inspection area setting method in flicker detection inspection;
FIG. 36 is an explanatory diagram regarding processing at the boundary between the flicker correction area and the non-flicker correction area in the solid-state imaging device.
FIG. 37 is a block diagram showing a configuration including a flicker correction unit in the solid-state imaging device.
FIG. 38 is a block diagram showing a configuration including an external photometry system according to a ninth embodiment of the present invention.
FIG. 39 is a block diagram showing a configuration including an imaging lens in the external photometry system in the ninth embodiment.
FIG. 40 is a block diagram showing a configuration in which an imaging lens provided in an external photometry system in the ninth embodiment is shared with that used for a solid-state imaging device.
FIG. 41 is a block diagram showing a configuration in which an external photometric system in the ninth embodiment is installed in the vicinity of a solid-state image sensor.
FIG. 42 is an explanatory diagram showing a relationship between charge accumulation time and flicker in a MOS type image pickup device.
[Explanation of symbols]
1 Solid-state image sensor
2 Electronic shutter value setting means
3 A / D conversion means
4 storage means
10 Correction calculation means
101 MOS solid-state image sensor
102 Electronic shutter setting unit
103 A / D converter
104, 1041, 1042 Frame memory
105 Correction table calculation unit
106 Mode setting section
107, 1071, 1072, 1073 Correction table recording unit
1075 Column type correction table storage unit
1076 Line-specific color correction table storage unit
108 Correction calculation unit
109 Sync signal generator
111 Horizontal line average value calculator
112 Flicker detector
113, 1131, 1132 Frame average calculation unit
114 frame average sequential calculation unit
115 Correction table selection unit
116 Phase measurement unit
117 Correction table generation unit
118,1181,1182 Column type average value storage unit
119 Frame type data storage unit
130 Area selection part
201 External photometric element
202 integrator
203 Gain correction unit
204 External metering system
205 Correction value generator

Claims (9)

所定の条件を満たす電子シャッタ値により、直交する2方向に画面をアドレス走査して対象を撮像する固体撮像素子と、
前記固体撮像素子の前記電子シャッタ値を所定の値に設定する電子シャッタ値設定手段と、
前記固体撮像素子の出力信号をアナログ信号からデジタル信号へと変換するA/D変換手段と、
前記A/D変換手段の出力信号を所定の単位で記憶する記憶手段と、
前記記憶手段に記憶された所定の単位の信号に対し、外光条件に適した第1の電子シャッタ値と蛍光灯明滅周期と所定関係となる蛍光灯条件下での第2の電子シャッタ値の2条件による画像の信号波形をそれぞれ求め、2つの信号を比較して蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すような補正信号値を演算する補正演算手段と、
前記補正演算手段により演算された前記補正信号値を用いて蛍光灯照明下における画像の波形を打ち消すことにより横縞状蛍光灯フリッカを補正する補正手段と、
を備えることを特徴とする固体撮像装置。
A solid-state image sensor that images an object by address scanning the screen in two orthogonal directions with an electronic shutter value that satisfies a predetermined condition;
Electronic shutter value setting means for setting the electronic shutter value of the solid-state imaging device to a predetermined value;
A / D conversion means for converting the output signal of the solid-state imaging device from an analog signal to a digital signal;
Storage means for storing an output signal of the A / D conversion means in a predetermined unit;
A second electronic shutter value under a fluorescent lamp condition having a predetermined relationship with a first electronic shutter value suitable for an external light condition and a fluorescent lamp blinking period is obtained for a signal of a predetermined unit stored in the storage means. Correction calculation means for calculating the signal waveform of the image under the two conditions, calculating the correction signal value so as to calculate the signal waveform affected by the fluorescent lamp flicker by comparing the two signals,
Correction means for correcting horizontal stripe fluorescent lamp flicker by canceling the waveform of the image under fluorescent lamp illumination using the correction signal value calculated by the correction calculation means;
A solid-state imaging device comprising:
X−Yアドレス走査型固体撮像素子と、
前記固体撮像素子の電子シャッタ値を設定する電子シャッタ設定部と、
前記固体撮像素子の出力信号をデジタル信号に変換するA/D変換器と、
前記A/D変換手段の出力信号を記憶保持する複数のフレームメモリと、
前記電子シャッタ設定部の電子シャッタ値を外光条件に適した第1の電子シャッタ値から蛍光灯条件下での第2の電子シャッタ値へと変更すると共に、変更されたシャッタ値に基づいて前記フレームメモリヘの記録出力を設定するモード設定部と、
前記複数のフレームメモリより入力される映像信号と前記モード設定部で設定されたそれぞれのフレームにおける電子シャッタ値とを用いて前記映像信号のフリッカを抑圧するための演算処理を行ない、フリッカ補正値としての補正テーブルを算出する補正テーブル算出部と、
前記補正テーブル算出部の出力としての補正テーブルを記憶保持する補正テーブル記憶部と、
前記補正テーブルを用いて前記A/D変換手段の出力信号の利得を制御することによりフリッカを抑圧する補正演算部と、
を備えることを特徴とする固体撮像装置。
An XY address scanning solid-state imaging device;
An electronic shutter setting unit for setting an electronic shutter value of the solid-state imaging device;
An A / D converter that converts an output signal of the solid-state imaging device into a digital signal;
A plurality of frame memories for storing and holding output signals of the A / D conversion means;
The electronic shutter value of the electronic shutter setting unit is changed from a first electronic shutter value suitable for an external light condition to a second electronic shutter value under a fluorescent lamp condition, and based on the changed shutter value A mode setting unit for setting the recording output to the frame memory;
A calculation process for suppressing flicker of the video signal is performed using a video signal input from the plurality of frame memories and an electronic shutter value in each frame set by the mode setting unit, and is used as a flicker correction value. A correction table calculation unit for calculating the correction table of
A correction table storage unit that stores and holds a correction table as an output of the correction table calculation unit;
A correction calculation unit that suppresses flicker by controlling the gain of the output signal of the A / D conversion means using the correction table;
Solid-state image sensor you comprising: a.
前記フレームメモリは、電子シャッタ設定部によって設定された複数の電子シャッタ値毎にそれぞれ複数のフレームメモリを備え、電子シャッタそれぞれの値毎に割り当てられている前記複数個のフレームメモリの平均値を算出する平均値算出部とをさらに備えることを特徴とする請求項2に記載の固体撮像装置。  The frame memory includes a plurality of frame memories for each of a plurality of electronic shutter values set by the electronic shutter setting unit, and calculates an average value of the plurality of frame memories allocated for each value of the electronic shutter. The solid-state imaging device according to claim 2, further comprising an average value calculation unit that performs the calculation. 前記補正テーブル記憶部は、複数個の補正テーブル記憶部からなり、この複数個の補正テーブルから任意の補正テーブルを1つあるいは複数個選択する補正テーブル選択部をさらに備えることを特徴とする請求項2および3の何れかに記載の固体撮像装置。  The correction table storage unit includes a plurality of correction table storage units, and further includes a correction table selection unit that selects one or a plurality of arbitrary correction tables from the plurality of correction tables. The solid-state imaging device according to any one of 2 and 3. X−Yアドレス走査型固体撮像素子と、
前記固体撮像素子の出力信号をデジタル信号に変換するA/D変換手段と、
前記A/D変換手段の出力信号を記憶保持するフレームメモリと、
各スキャンライン毎にそのラインの周辺の領域を選択する領域選択部と、
前記領域選択部によって選択された領域を読み出しこのデータの平均値を算出する領域平均値算出部と、
前記領域平均値算出部の出力を保持するラインメモリと、
複数の前記ラインメモリの1つを選択し、そのラインメモリとの間でデータを入出力するラインメモリ管理部と、
前記ラインメモリに保持されている領域平均値を複数のラインメモリから選択し平均演算を行なうライン間平均値算出部と、
前記領域平均値を保存するラインメモリの1つと前記ライン間平均値を保存するラインメモリそれぞれから前記領域平均値と前記ライン間平均値とを選択しこれらの領域平均値とライン間平均値を比較して蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すフリッカ抑圧係数を算出する補正係数算出部と、
前記フレームメモリより出力されるフリッカ補正を行なう領域内の現在補正しようとしているラインのデータを読み出すと共に、前記補正係数算出部の前記フリッカ抑圧係数の係数値に比例して前記フレームメモリから出力される前記A/D変換手段の出力信号のゲインをライン毎に制御する補正演算部と、
を備えることを特徴とする固体撮像装置。
An XY address scanning solid-state imaging device;
A / D conversion means for converting the output signal of the solid-state imaging device into a digital signal;
A frame memory for storing and holding the output signal of the A / D conversion means;
An area selection unit that selects an area around the line for each scan line;
An area average value calculation unit that reads an area selected by the area selection unit and calculates an average value of the data;
A line memory for holding the output of the area average value calculation unit;
A line memory management unit that selects one of the plurality of line memories and inputs / outputs data to / from the line memory;
An interline average value calculation unit that selects an area average value held in the line memory from a plurality of line memories and performs an average operation;
The area average value and the interline average value are selected from one of the line memories storing the area average value and the line memory storing the interline average value, and the area average value and the interline average value are compared. A correction coefficient calculation unit that calculates a flicker suppression coefficient that obtains a signal waveform affected by the fluorescent light flicker and cancels the signal waveform;
The data of the line to be corrected currently in the flicker correction area output from the frame memory is read out and output from the frame memory in proportion to the coefficient value of the flicker suppression coefficient of the correction coefficient calculation unit. A correction calculation unit for controlling the gain of the output signal of the A / D conversion means for each line;
Solid-state image sensor you comprising: a.
前記領域平均値算出部は、前記領域平均値を保存するラインメモリの何れかより任意のデータを呼び出すデータ呼び出し部と、この呼び出したデータと現在の選択領域での平均値との間で平均を算出する時間平均算出部と、を備えることを特徴とする請求項5に記載の固体撮像装置。  The area average value calculation unit is configured to calculate an average between the data calling unit that calls arbitrary data from any of the line memories that store the area average value, and the average value in the currently selected area. The solid-state imaging device according to claim 5, further comprising: a time average calculating unit that calculates. X−Yアドレス走査型固体撮像素子と、
前記固体撮像素子の出力信号をデジタル信号に変換するA/D変換手段と、
前記A/D変換手段の出力信号を記憶保持するフレームメモリと、
各スキャンライン毎にこのスキャンライン内において必要とするデータの範囲を選択する範囲選択部と、
前記範囲選択部によって選択された領域を読み出し、このデータの平均値を算出するライン内平均値算出部と、
前記領域平均値算出部の出力を保持するラインメモリと、
複数の前記ラインメモリの1つを選択し、そのラインメモリからデータを入出力するラインメモリ管理部と、
前記ラインメモリに保持されているライン内平均値を複数のラインメモリから選択し平均演算を行なってライン間平均値を算出するライン間平均値算出部と、
前記ラインメモリに保存されているライン内平均値から複数個を選択し、かつこれらの読み出しを前記ラインメモリ管理部に命令する窓幅選択部と、
前記窓幅選択部の命令により読み出されたライン内平均値のうちの選択された複数個の平均を演算して窓内平均値を算出する窓内平均値算出部と、
前記ライン間平均値と前記窓内平均値算とのそれぞれの間で比較演算を行なって蛍光灯フリッカの影響を受けた信号波形を求めてこれを打ち消すフリッカ抑圧係数を算出する補正係数算出部と、
前記フレームメモリより出力されるフリッカ補正を行なう領域内の現在補正しようとしているラインのデータを読み出すと共に、前記補正係数算出部の前記フリッカ抑圧係数の係数値に比例して前記フレームメモリから出力される前記A/D変換手段の出力信号のゲインをライン毎に制御する補正演算部と、
を備えることを特徴とする固体撮像装置。
An XY address scanning solid-state imaging device;
A / D conversion means for converting the output signal of the solid-state imaging device into a digital signal;
A frame memory for storing and holding the output signal of the A / D conversion means;
A range selection unit for selecting a range of data required in the scan line for each scan line;
Read the area selected by the range selection unit, and calculate the average value of this data, the in-line average value calculation unit,
A line memory for holding the output of the area average value calculation unit;
A line memory management unit that selects one of the plurality of line memories and inputs / outputs data from the line memory;
An average value between lines calculating an average value between lines by selecting an average value within a line held in the line memory from a plurality of line memories and performing an average calculation; and
A window width selection unit for selecting a plurality of average values in the line stored in the line memory and instructing the line memory management unit to read them;
An average value calculation unit in the window that calculates an average value in the window by calculating an average of a plurality of selected average values in the line read by the command of the window width selection unit;
A correction coefficient calculation unit that performs a comparison operation between the average value between lines and the average value calculation within the window to obtain a signal waveform affected by fluorescent flicker and calculate a flicker suppression coefficient that cancels the signal waveform; ,
The data of the line to be corrected currently in the flicker correction area output from the frame memory is read out and output from the frame memory in proportion to the coefficient value of the flicker suppression coefficient of the correction coefficient calculation unit. A correction calculation unit for controlling the gain of the output signal of the A / D conversion means for each line;
Solid-state image sensor you comprising: a.
前記補正係数算出部の出力を保持するラインメモリを備えることを特徴とする請求項5ないし7の何れかに記載の固体撮像装置。  The solid-state imaging device according to claim 5, further comprising a line memory that holds an output of the correction coefficient calculation unit. 光電変換を行なって光量波形を出力する測光素子と、
前記撮像素子の露光期間と、前記測光素子から出力された光量波形とに基づいて、撮像装置周辺の光量の変動を検出する光量変動算出部と、
前記補正テーブル記憶部に保持されているフリッカ補正値と前記光量変動算出部から出力された光量変動波形とに基づいて、フリッカ補正値を算出する動的補正テーブル算出部と、
をさらに備えることを特徴とする請求項1ないし8の何れかに記載の固体撮像装置。
A photometric element that performs photoelectric conversion and outputs a light intensity waveform;
A light amount fluctuation calculating unit that detects fluctuations in the amount of light around the imaging device based on an exposure period of the image pickup element and a light amount waveform output from the photometric element;
A dynamic correction table calculation unit that calculates a flicker correction value based on a flicker correction value held in the correction table storage unit and a light amount fluctuation waveform output from the light amount fluctuation calculation unit;
The solid-state imaging device according to claim 1, further comprising:
JP18614499A 1999-06-30 1999-06-30 Solid-state imaging device Expired - Fee Related JP3749038B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18614499A JP3749038B2 (en) 1999-06-30 1999-06-30 Solid-state imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18614499A JP3749038B2 (en) 1999-06-30 1999-06-30 Solid-state imaging device

Publications (2)

Publication Number Publication Date
JP2001016508A JP2001016508A (en) 2001-01-19
JP3749038B2 true JP3749038B2 (en) 2006-02-22

Family

ID=16183160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18614499A Expired - Fee Related JP3749038B2 (en) 1999-06-30 1999-06-30 Solid-state imaging device

Country Status (1)

Country Link
JP (1) JP3749038B2 (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4416959B2 (en) * 2001-04-26 2010-02-17 富士通マイクロエレクトロニクス株式会社 Flicker noise reduction method for XY address type solid-state imaging device
JP4736239B2 (en) * 2001-05-25 2011-07-27 大日本印刷株式会社 Pattern image creating method and apparatus
JP3826904B2 (en) * 2003-07-08 2006-09-27 ソニー株式会社 Imaging apparatus and flicker reduction method
JP4106554B2 (en) * 2003-09-08 2008-06-25 ソニー株式会社 Imaging environment determination method and imaging apparatus
JP4487640B2 (en) 2004-06-01 2010-06-23 ソニー株式会社 Imaging device
JP4646655B2 (en) * 2005-03-01 2011-03-09 キヤノン株式会社 Solid-state imaging device, driving method thereof, and imaging system
JP4207926B2 (en) 2005-05-13 2009-01-14 ソニー株式会社 Flicker correction method, flicker correction apparatus, and imaging apparatus
JP4908939B2 (en) * 2005-06-24 2012-04-04 キヤノン株式会社 Imaging device
JP4483744B2 (en) 2005-08-26 2010-06-16 ソニー株式会社 Imaging apparatus and imaging control method
JP4904749B2 (en) * 2005-09-08 2012-03-28 ソニー株式会社 Flicker reduction method, flicker reduction circuit, and imaging apparatus
JP4757013B2 (en) * 2005-12-19 2011-08-24 キヤノン株式会社 Imaging apparatus, control method therefor, computer program, and storage medium
JP4739998B2 (en) * 2006-03-16 2011-08-03 三洋電機株式会社 Imaging device
JP2008109370A (en) * 2006-10-25 2008-05-08 Sanyo Electric Co Ltd Image correcting device and method, and imaging apparatus
KR101085802B1 (en) * 2007-03-05 2011-11-22 르네사스 일렉트로닉스 가부시키가이샤 Imaging apparatus and flicker detection method
JP4101281B1 (en) 2007-03-15 2008-06-18 キヤノン株式会社 Solid-state imaging device and driving method of solid-state imaging device
JP2009017214A (en) * 2007-07-04 2009-01-22 Canon Inc Flicker detection device, and flicker detection method
JP5022802B2 (en) * 2007-07-23 2012-09-12 キヤノン株式会社 Imaging apparatus and control method thereof
JP4626689B2 (en) * 2008-08-26 2011-02-09 ソニー株式会社 Imaging apparatus, correction circuit, and correction method
JP2010114674A (en) 2008-11-06 2010-05-20 Sanyo Electric Co Ltd Video camera
JP2011030093A (en) 2009-07-28 2011-02-10 Sanyo Electric Co Ltd Video camera
JP5625371B2 (en) 2010-01-29 2014-11-19 ソニー株式会社 Image processing apparatus, signal processing method, and program
JP2012109794A (en) * 2010-11-17 2012-06-07 Toshiba Corp Solid state image pickup device
JP5616861B2 (en) * 2011-08-31 2014-10-29 富士通フロンテック株式会社 Image capturing apparatus and method
JP6060824B2 (en) * 2013-06-20 2017-01-18 株式会社Jvcケンウッド Imaging apparatus and flicker reduction method
US11368639B2 (en) 2019-09-30 2022-06-21 Canon Kabushiki Kaisha Photoelectric conversion apparatus, image capturing system, method for driving photoelectric conversion apparatus, and moving object

Also Published As

Publication number Publication date
JP2001016508A (en) 2001-01-19

Similar Documents

Publication Publication Date Title
JP3749038B2 (en) Solid-state imaging device
US7546026B2 (en) Camera exposure optimization techniques that take camera and scene motion into account
US7602418B2 (en) Digital image with reduced object motion blur
US8823808B2 (en) Method for improved digital video image quality
US7995097B2 (en) Techniques of motion estimation when acquiring an image of a scene that may be illuminated with a time varying luminance
JP4840578B2 (en) Flicker detection method and apparatus for imaging apparatus
US20110149111A1 (en) Creating an image using still and preview
KR20090008139A (en) Image pickup apparatus, image processing method, and computer program
JP2007174678A (en) Flicker detecting circuit and method in image sensor
JP2006245784A (en) Solid-state imaging apparatus and driving method thereof, and imaging system
US8842195B2 (en) Image pickup apparatus having image pickup element that includes pixels used as both focus detection pixels and image pickup pixels
US9979876B2 (en) Imaging apparatus, imaging method, and storage medium
JP2000023040A (en) Solid-state image pickup device and system on-chip solid- state image pickup device
WO2019225071A1 (en) Signal processing device, signal processing method, and imaging device
JP2011030207A (en) Imaging device, and flash determining method and program
JP4378599B2 (en) Imaging apparatus and control method thereof
JPS63308484A (en) Solid-state image pickup device
JP2008113237A (en) Flicker detecting method and device in imaging apparatus
JP4908939B2 (en) Imaging device
CN111131667B (en) Image pickup apparatus that performs flicker detection, control method therefor, and storage medium
KR20040095249A (en) Imager and stripe noise removing method
JP2016096551A (en) Imaging device
JP2007329604A (en) Fluorescent light flicker detection circuit
JP3796421B2 (en) Imaging apparatus and imaging method
JP2018050346A (en) Imaging apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040805

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051031

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051130

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

Free format text: PAYMENT UNTIL: 20091209

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091209

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101209

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111209

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121209

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees