JP3961975B2 - Signal processing apparatus and digital camera - Google Patents

Signal processing apparatus and digital camera Download PDF

Info

Publication number
JP3961975B2
JP3961975B2 JP2003078285A JP2003078285A JP3961975B2 JP 3961975 B2 JP3961975 B2 JP 3961975B2 JP 2003078285 A JP2003078285 A JP 2003078285A JP 2003078285 A JP2003078285 A JP 2003078285A JP 3961975 B2 JP3961975 B2 JP 3961975B2
Authority
JP
Japan
Prior art keywords
signal
color
pixel
processing
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003078285A
Other languages
Japanese (ja)
Other versions
JP2004289444A (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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2003078285A priority Critical patent/JP3961975B2/en
Publication of JP2004289444A publication Critical patent/JP2004289444A/en
Application granted granted Critical
Publication of JP3961975B2 publication Critical patent/JP3961975B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、信号処理装置及びデジタルカメラに係わり、特に、カラー画像を撮像するために、複数の色のカラーフィルタが所定の配列となるように画素に対して設けられた単板構成の撮像素子から読み出された各画素の色信号に所定の処理を施す信号処理装置及びデジタルカメラに関する。
【0002】
【従来の技術】
近年、CCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)イメージ・センサ等の撮像素子の高解像度化に伴い、デジタルスチルカメラやデジタルビデオカメラ等のデジタルカメラの需要が急増している。デジタルカメラでは、高品位の画像を得るために、撮像素子での撮影により得られた画像信号に対して、エッジ強調などの輪郭補正処理や、色味を調整する色補正処理といった各種の補正処理が施される。
【0003】
一般的なデジタルカメラでは、カラーで被写体を撮像する撮像素子を単板構成とし、撮像素子の各画素には、R(赤)、G(緑)、B(青)の何れかのカラーフィルタが所定の配列に従って配置されている。従って、この撮像素子から撮像画像の各画素の信号を読み出すと、R、G、Bのうちの少なくとも1色の色信号が時系列に間欠的に出力されることになり、このような状態で供給される画像信号を用いて補正処理を行っても高精度に補正することはできない。
【0004】
このため、デジタルカメラでは、各画素について、間欠した色の信号を周辺の画素の信号により補間して生成する信号処理(以下、「同時化処理」と称す)が行われている(例えば、特許文献1、2参照)。デジタルカメラで採用されるカラーフィルタの配列方式には、ベイヤー配列、RGBストライプ配列、ハニカム配列など各種の配列方式がある。同時化処理は、カラーフィルタの配列に応じて、各画素で間欠している色の信号を補間するために用いる周辺画素やその重み付け係数といった当該処理で用いるパラメータを定めて、それぞれのデジタルカメラの撮像素子で採用しているカラーフィルタの配列方式に応じて、適切な同時化処理が施されることが必要である。
【0005】
また、同時化処理を行う場合、同時化処理の前段において、撮像素子から得られた各画素の色信号に対して、撮像素子の色毎の感度差などを補正して感度調整を行う補正処理(上述した高品位の画像を得るための補正処理と区別するために、この補正処理を「前処理」、高品位の画像を得るための補正処理を「後処理」と称す)を施しておく必要がある。
【0006】
近年、デジタルカメラの低価格化に伴って、異なるカラーフィルタの配列方式、例えばハニカム配列のCCDとベイヤー配列のCCDの両方の色信号処理を1つの処理系(例えばLSI)で実現し、同一の処理系を、異なるカラーフィルタの配列方式が採用されたデジタルカメラで共通に使用可能にすることが望まれている。
【0007】
【特許文献1】
特開平11−177995号公報
【特許文献2】
特開2000−184386号公報
【0008】
【発明が解決しようとする課題】
しかしながら、カラーフィルタの配列方式によって処理系に入力される画素色順が異なるため、例えばハニカム配列とベイヤー配列とで別々の信号処理回路が必要とされ、処理系の回路規模が増大し、かえってコストが高くなってしまうという問題があった。
【0009】
本発明は上記問題点を解消するためになされたもので、小さな回路規模で、撮像素子から読み出した信号に対して、複数のカラーフィルタの配列方式に対応して所定の信号処理を行うことができる信号処理装置及びこの信号処理装置を適用可能なデジタルカメラを提供することを目的とする。
【0010】
【課題を解決するための手段】
上記目的を達成するために、請求項1に記載の信号処理装置は、カラー画像を撮像するために、複数の色のカラーフィルタが所定の配列となるように画素に対して設けられた撮像素子から読み出された撮像画像の各画素の信号に所定の処理を施して前記撮像画像の画像データを得る信号処理装置であって、予め定められた複数の前記カラーフィルタの配列方式の何れか1つを表す選択信号が入力されると共に、該選択信号が表す配列方式に基づいて、前記画素信号による各画素の色を識別するための色識別信号を生成する生成手段と、前記複数の配列方式に共通に設けられ、前記生成手段により生成された色識別信号が示す色に対応する画素信号について、オフセット補正、ゲイン補正、及びガンマ補正の内の少なくとも1つの補正を施す処理を前記所定の処理として行う処理手段と、を有することを特徴としている。
【0011】
この信号処理装置によれば、生成手段では、複数のカラーフィルタの配列方式のうち、選択信号が表すカラーフィルタの配列方式に対応して、画素信号による各画素の色を識別するための色識別信号が生成される。この色識別信号により、撮像素子から順次読み出される各画素の信号が複数の色のうち何れの色に該当するのかを識別可能になる。
【0012】
複数の配列方式に共通で設けられた処理手段では、前記所定の処理として、色識別信号が示す色に対応する画素信号について、オフセット補正、ゲイン補正、及びガンマ補正の内の少なくとも1つの補正を施す処理行われる。この処理は、例えば、色識別信号が示す色毎に処理に用いるパラメータを切換えるなどして行うことができる。
【0013】
すなわち、撮像素子から各画素の信号を読み出したときに、配列方式によって、読出した信号が該当する色の順番が異なっても、当該撮像素子で採用されている配列方式を表す選択信号を生成手段に入力させれば、当該配列方式に対応した色識別信号を生成することができ、この色識別信号により各画素の信号が該当する色を識別できるので、処理手段が複数の配列方式で共通であっても、適切に処理を行うことができる。
【0014】
このように信号処理装置では、複数の配列方式で処理手段で共通化しても、各配列方式に対応して所定の信号処理を行うことができ、回路規模を小さくすることができる。
【0015】
上記の信号処理装置においては、例えば、請求項2に記載されているように、前記処理手段は、前記複数の配列方式に応じて個別に設けられ、各画素について、周辺の画素の信号から自らの画素の各色の画像データを生成する同時化信号処理手段と、前記同時化信号処理手段の前段に備えられ、且つ前記画素信号について、オフセット補正、ゲイン補正、及びガンマ補正の内の少なくとも1つの正を施す処理を行う前処理手段と、から構成されるようにすることができる。
【0016】
請求項3に記載のデジタルカメラは、カラー画像を撮像するために、複数の色のカラーフィルタが所定の配列となるように画素に対して設けられた単板構成の撮像素子と、請求項1又は請求項2に記載の信号処理装置とを備え、前記撮像素子で撮影して得られた撮像画像の画素信号に対して前記信号処理装置により所定の処理を施して、前記撮像画像を表す画像データを取得することを特徴としている。
【0017】
このデジタルカメラによれば、上記の信号処理装置を用いて、撮像素子から得られた色信号に対して所定の処理を施して画像データを取得するので、低コスト化を図ることができる。
【0018】
【発明の実施の形態】
次に、図面を参照して本発明に係る実施形態の1例を詳細に説明する。
【0019】
まず、図1を参照して、本実施の形態に係るデジタルカメラ10の構成を説明する。同図に示すように、本実施の形態に係るデジタルカメラ10は、被写体像を結像させるための撮影レンズ12と、撮影レンズ12の光軸後方に配設された撮像素子としてのCCD14と、CCD14を駆動するCCD駆動回路16と、入力されたアナログ信号に対して所定の信号処理を行うアナログ信号処理部18と、入力されたデジタル信号に対して所定のデジタル信号処理を施す本発明の信号処理装置としてのデジタル信号処理部20と、各種タイミング信号を生成するタイミングジェネレータ(TG)22と、撮影で取得されたデジタル画像信号を記憶するメモリ24と、デジタルカメラ10の全体的な動作を司る制御部26と、カラーフィルタの配列方式を選択する選択手段として用いる切換えスイッチ28と、を含んで構成されている。
【0020】
撮影レンズ12を介してCCD14の受光面に結像された被写体像は、各センサで光の入射光量に応じた量の信号電荷に変換される。このようにして蓄積された信号電荷は、CCD駆動回路16から加えられるリードゲートパルスによってシフトレジスタに読み出され、レジスタ転送パルスによって信号電荷に応じた電圧信号(アナログ信号)として順次読み出される。尚、このCCD14は、蓄積した信号電荷をシャッタゲートパルスによって掃き出すことができ、これにより電荷の蓄積時間(シャッタスピード)を制御する、いわゆる電子シャッタ機能を有している。
【0021】
CCD14から順次読み出された電圧信号は、各画素の信号として、アナログ信号処理部18に入力される。アナログ信号処理部18では、入力された色信号に対して、所定のアナログ信号処理を施した後、デジタル信号に変換して出力する。なお、CCD駆動回路16、アナログ信号処理部18は、TG22から加えられるタイミング信号によって同期して駆動されるようになっている。
【0022】
アナログ信号処理部18から出力された信号(デジタル信号)は、一旦メモリ(図示省略)に格納され、その後、当該メモリに格納された色信号はCCD14から読み出した点順次(画素の順番)にデジタル信号処理部20に入力される。また、このときデジタル信号処理部20には、アナログ信号処理部18から画像毎の画像同期信号が入力されるようになっている。
【0023】
デジタル信号処理部20は、複数のカラーフィルタの配列方式に共通で使用可能に構成されており、本実施の形態では、一例として、ハニカム配列とベイヤー配列とで共通使用可能に構成されている。すなわち、CCD14には、ハニカム配列のCCD又はベイヤー配列のCCDを使用可能である。ただし、本発明は、カラーフィルタの配列方式の種類をこれに限定するものではない。
【0024】
なお、図2は、各画素30を表す矩形内のR/G/Bは対応するカラーフィルタの色、すなわち画素30の色を表している。
【0025】
ハニカム配列のCCD14の場合、図2(A)に示すように、実画素30Aと虚画素30Bとが市松模様を構成するように配列され、実画素について、ある行にはGのみ、次の行にはBRBR…、次の行にはGのみ、次の行にはRBRB…というように各色のカラーフィルタが配置されているかの如く、各画素の信号が読み出される。
【0026】
ベイヤー配列のCCD14の場合、図2(B)に示すように、実画素30が二次元配列され、ある行にはRGRG…、次の行にはGBGB…というように各色のカラーフィルタが配置されているかの如く、各画素の信号が読み出される。
【0027】
また、デジタル信号処理部20は、図1に示すように、信号を取り込むCCDインタフェース回路(CCDIF)50と、前処理手段として、取り込んだ信号に対して前処理を施すオフセット補正回路52、ゲイン補正回路54、及びガンマ補正回路56と、同時化処理手段として、ハニカム配列に基づいた同時化処理を行う同時化処理回路58A及びベイヤー配列に基づいた同時化処理を行う同時化処理回路58Bと、色信号に対して後処理を施すための後処理回路60と、圧縮回路62とを含んで構成されている。
【0028】
CCDIF50は、画像同期信号に同期して、CCD14から読み出した点順次に各画素の信号の取り込みを開始する。また、CCDIF50は、切換えスイッチ28と接続されており、切換えスイッチ28から配列方式の選択(ハニカム/ベイヤー)を示す選択信号が入力される。この切換えスイッチ28によるハニカム/ベイヤーの選択は、本デジタルカメラ10の組み立て時に、採用するCCD14のカラーフィルタの配列方式に従って予め実施されている。
【0029】
CCDIF50は、入力された選択信号に基づいて、CCD14から読み出した点順次に取り込んだ各信号がそれぞれRGBの何れの色の画素から得られたものであるか、すなわちRGBの何れの色の画素の信号であるのかを識別するための色識別信号を生成する。すなわち、CCDIF50が生成手段としての機能を担っている。
【0030】
本実施の形態では、一例として、表1に示すRGB信号及びRGBG信号を色識別信号として生成するようになっている。
【0031】
【表1】

Figure 0003961975
【0032】
なお、表1におけるG1、G2とは、ハニカム配列では、左上にRが隣接したG、Bが隣接したGを示し、ベイヤー配列では、水平方向にRと隣接したG、Bと隣接したGを示す。すなわち、ハニカム配列では垂直方向に隣り合うG、ベイヤー配列では、斜め方向に隣合うGが区別されるようになっている。これは、同時化処理回路58A、58Bで実行される同時化処理において、このようなG1、G2とで異なる補間演算式(すなわちパラメータ)が用いられるためである。
【0033】
また、ハニカム配列については、実画素/虚画素を識別して虚画素で得られた色信号を無効とするために、さらに表2に示す2ビットのXOS信号を色識別信号として生成するようになっている。
【0034】
【表2】
Figure 0003961975
【0035】
CCDIF50は、取り込んだ各画素の信号を色信号として、生成した色識別信号と共に後段のオフセット補正回路52へ出力する。
【0036】
オフセット補正回路52は、黒色の被写体を撮影した場合に黒色が表現されるように、CCD14の出力信号における各色のゼロ値を補正するものである。詳しくは、オフセット補正回路52では、当該回路での処理に用いるパラメータとして、RGBの各色毎に予めオフセット値が設定されており、CCDIF50から出力された色信号に対して、色識別信号が示す色のオフセットを選択し、選択したオフセット値を減算する。オフセット補正回路52は、減算後の色信号を色識別信号と共に、後段のゲイン補正回路54へ出力する。
【0037】
ゲイン補正回路54は、白色などの被写体を撮影した場合に白色が表現されるように、CCD14の出力信号における各色の最大値を補正するものである。詳しくは、ゲイン補正回路54では、当該回路での処理に用いるパラメータとして、RGBの各色毎に予めゲイン値が設定されており、オフセット補正回路52から出力された色信号に対して、色識別信号が示す色のゲイン値を選択し、選択したゲイン値を乗算する。ゲイン補正回路54は、乗算後の色信号を色識別信号と共に、後段のガンマ補正回路56へ出力する。
【0038】
ガンマ補正回路56は、各色の階調を補正するものである。詳しくは、ガンマ補正回路56では、当該回路での処理に用いるパラメータとして、RGBの各色毎に予め入出力特性(ガンマカーブ)が設定されており、ゲイン補正回路54から出力された色信号に対して、色識別信号が示す色の入出力特性(ガンマカーブ)を選択し、当該色信号を入力値として選択した入出力特性に従って変換する。ガンマ補正回路56は、変換後の色信号を色識別信号と共に、後段の同時化処理回路58A、58Bに出力する。
【0039】
同時化処理回路58A、58Bは、各画素についてRGBの3色揃った色信号が得られるように、それぞれ対応するカラーフィルタの配列方式に対応して、各画素について同時化処理を行なう。同時化処理とは、RGBの各色信号のうち間欠した色の信号を周辺の画素の色信号により補間して生成する処理である。
【0040】
例えば、図2(A)において、G色のカラーフィルタが設けられた画素30_1では、G色の色信号が得られる。したがって、この画素では、G色については得られた色信号を用いればよいが、他のB、R色については周辺画素(例えばB色については画素30_2、30_3、R色については画素30_4、30_5)により補間して色信号を生成する。なお、補間演算については、従来公知の技術と同様でよいため、ここでは詳細な説明は省略する。
【0041】
なお、本実施の形態では、ハニカム配列とベイヤー配列とでデジタル信号処理部20を共通に使用可能としたため、ハニカム用の同時化処理回路58Aとベイヤー用の同時化処理回路58Bを設けた。すなわち、同時化処理回路58は、カラーフィルタの配列方式毎に設けられるものであり、RGBストライプ配列とハニカム配列とでデジタル信号処理部20を共通に使用可能とする場合には、RGBストライプ用とハニカム用とで2つの同時化処理回路が設けられることになる。また、ハニカム配列、ベイヤー配列、及びRGBストライプ配列でデジタル信号処理部20を共通に使用可能とした場合には、ハニカム用、ベイヤー用、及びRGBストライプ用で3つの同時化処理回路が設けられることになる。
【0042】
このようにカラーフィルタの配列方式毎に同時化処理回路58を設けるのは、同時化処理に用いる補正演算式(すなわちパラメータ)がカラーフィルタの配列方式によって異なるためである。
【0043】
また、同時化処理回路58A、58Bでは、同時化処理により得られた各画素毎のRGBの色信号をYC変換し、輝度信号(Y信号)及び色差信号(Yr信号及びYb信号)を生成する。同時化処理回路58A、58Bは、画像信号として、生成した輝度信号及び色差信号を後段の後処理回路60へ出力する。
【0044】
後処理回路60には、切換えスイッチ28と接続されており、切換えスイッチ28から配列方式の選択(ハニカム/ベイヤー)を示す選択信号が入力される。後処理回路60は、入力された選択信号に基づいて、同時化処理回路58A、58Bの何れか一方から出力された画像信号を選択して取り込む。すなわち、入力された選択信号がハニカム配列の選択を示すものであれば、同時化処理回路58Aから出力された画像信号を取り込み、入力された選択信号がベイヤー配列の選択を示すものであれば、同時化処理回路58Bから出力された画像信号を取り込む。
【0045】
なお、後処理回路60で選択信号に基づいて同時化処理回路58A、58Bのうち何れか一方の出力信号を選択する代わりに、選択信号に基づいて、同時化処理回路58A、58Bのうち何れか一方のみが動作するようにしてもよい。例えば、選択信号がハニカム配列を示すものであれば、同時化処理回路58Bへの電源供給をOFFし、同時化処理回路58Aにのみに電源供給し、選択信号がベイヤー配列を示すものであれば、同時化処理回路58Aへの電源供給をOFFし、同時化処理回路58Bにのみに電源供給するようなスイッチを設けてもよい。
【0046】
後処理回路60は、取り込んだ画像信号に対して、当該信号が表す画像のエッジを強調したり、撮影環境などに応じて色補正したりするための所定の補正処理を施して、圧縮回路62へ出力する。
【0047】
圧縮回路62では、ユーザによって不図示のレリーズボタン(所謂、シャッター)が押圧操作された際に、後処理回路60から出力された画像信号を記録用の画像信号として取り込み、取り込んだ画像信号をJPEGなど所定の圧縮方式で圧縮する。圧縮された画像信号は、不図示のメモリインタフェース回路を介してメモリ24に書き込まれる。
【0048】
なお、後処理回路60から出力された各種補正処理後の信号は、デジタルカメラ10のファインダとして機能する不図示の液晶ディスプレイや電子ビューファインダへの表示用にも用いられる。
【0049】
制御部26は、CPU、RAM、ROMなどを備えて構成され、上記各部の動作を制御するために、各部に対して適宜制御信号を送出する。特に、本発明に関するものとして、制御部26は、オフセット補正回路52、ゲイン補正回路54、及びガンマ補正回路56へ、それぞれの処理で用いる各色毎のパラメータ(オフセット値、ゲイン値、入出力特性(ガンマカーブ))を示す信号を送出する。すなわち、制御部26により、オフセット補正回路52、ゲイン補正回路54、及びガンマ補正回路56で実行される前処理で用いるパラメータが設定される。なお、このパラメータは、制御部26の不図示のメモリに予め記憶していてもよいし、制御部26により演算により生成してもよい。
【0050】
なお、上記では、切換えスイッチ28から、ハニカム/ベイヤーの選択結果を示す信号がデジタル信号処理部20に入力されるように構成したが、本発明はこれに限定されるものではない。例えば、切換えスイッチ28をデジタル信号処理部20に内蔵させてもよいし、切換えスイッチ28からの選択結果を示す信号が、制御部26を介して、デジタル信号処理部20に入力されるようにしてもよい。また、切換えスイッチ28を省略し、制御部26の不図示のメモリに、当該デジタルカメラ10の組み立て製造時に、ハニカム配列であるかベイヤー配列であるかを示す情報を記憶させ、制御部26がこのメモリの記憶情報に従って、選択信号を生成して、デジタル信号処理部20に供給するようにしてもよい。
【0051】
次に、本実施の形態の作用を説明する。
【0052】
本実施形態に係るデジタルカメラ10は、ユーザによって、不図示のレリーズボタン(所謂、シャッター)が押圧操作されると、CCD14から各画素の信号が順次に読み出され、読み出された各信号は、アナログ信号処理部18で所定のアナログ信号処理が施されてデジタル信号に変換される。このデジタル信号は、CCD14から読み出した点順次にデジタル信号処理部20に入力され、デジタル信号処理部20により、前処理、同時化処理、後処理が施される。これにより、撮像画像を表す画像データを生成される。生成された画像データは圧縮されて、メモリ24に記憶される。
【0053】
次に、図3乃至図5を参照して、デジタル信号処理部20の動作を詳細に説明する。なお、デジタル信号処理部20では、制御部26からの信号に従って、前処理に用いるパラメータ、すなわちオフセット補正回路52ではオフセット値、ゲイン補正回路54ではゲイン値、及びガンマ補正回路56では入出力特性(ガンマカーブ)が各色毎に設定されている。また、デジタル信号処理部20には、切換えスイッチ28から本デジタルカメラ10で採用しているCCD14のカラーフィルタの配列方式(ハニカム/ベイヤー)を示す信号が入力されている。
【0054】
図3はデジタル信号処理部20の動作を示すフローチャートを示している。また、図4、図5はCCDのカラーフィルタの配列方式がハニカム配列の場合、ベイヤー配列の場合のデジタル信号処理部20における各種信号のタイミングチャートをそれぞれ示している。
【0055】
デジタル信号処理部20では、アナログ信号処理部18からの画像同期信号ENが入力されると図3に示す動作を開始する。デジタル信号処理部20は、画像同期信号ENが入力されると、図3に示すように、まずステップST1において、CCDIF50により、切換えスイッチ28から入力されている選択信号に基づいて、本デジタルカメラ10で採用しているCCD14のカラーフィルタの配列方式を選択信号に従って判別し、ハニカム配列であればステップST2、ベイヤー配列であればステップST3に進む。
【0056】
ステップST2ではハニカム配列に応じて、ステップST3では、ベイヤー配列に応じて、CCD14から読み出された点順次の信号の画素の色を識別する色識別信号を画像同期信号ENに同期して生成する。
【0057】
また、ステップST2又はST3における色識別信号の生成と共に、CCDIF50では、ステップST4において、画像同期信号ENに同期して、CCD14から読み出された点順次にアナログ信号処理部18で処理された信号の取り込みを開始する。
【0058】
詳しくは、図4に示すように、選択信号がハニカム配列を示す場合(同図ではHレベル)、画像同期信号ENの立下りに同期して、デジタル信号処理部20には、CCD14から読み出した順に各画素の信号が色信号として入力される。具体的には、ハニカム配列の場合、ある行の信号として、同図に示されているように、所定のクロックCLKに従って、RXBXRXBX・・・の順に各色の画素の信号が入力されることになる。なお、Xは虚画素を示す。
【0059】
これと同時に所定のクロックCLKに従って、色識別信号が順次生成され、具体的には、RGB信号は11111111・・・、RGBG信号は11001100・・・、XOS信号は10101010・・・という2ビット信号が生成される。すなわち、点順次に入力された1画素目の色信号についての色識別信号(RGB、RGBG、XOS)=(1、1、1)となり、この色識別信号から、表1、2に示したように、R色で且つ有効な画素(実画素)で得られた色信号であることが分かる。また2画素目の色信号についての色識別信号は、(RGB、RGBG、XOS)=(1、1、0)となり、この色識別信号から、RGB、RGBG信号はR色を示しているが、XOS信号から無効な画素、すなわち虚画素の色信号であることが分かる。このように色識別信号(RGB、RGBG、XOS)により、各色信号が表す色及び有効/無効が判別可能である。
【0060】
一方、図5に示すように、選択信号がベイヤー配列を示す場合(同図ではLレベル)、画像同期信号ENの立下りに同期して、デジタル信号処理部20には、CCD14から読み出した順に各画素の信号が色信号として入力される。具体的には、ベイヤー配列の場合、ある行について、同図に示されているように、所定のクロックCLKに従って、RGRGRGRG・・・の順に色信号が入力されることになる。
【0061】
これと同時に所定のクロックCLKに従って、色識別信号が順次生成され、具体的には、RGB信号は10101010・・・、RGBG信号は11001100・・・という2ビット信号が生成される。すなわち、点順次に入力された1画素目の色信号についての色識別信号(RGB、RGBG)=(1、1)となり、この色識別信号から、表1に示したように、R色の画素で得られた色信号であることが分かる。また2画素目の色信号についての色識別信号は、(RGB、RGBG)=(0、1)となり、この色識別信号から、Rの画素と隣り合うB色の画素から得られた色信号であることが分かる。
【0062】
そして、次のステップST5では、オフセット補正回路52、ゲイン補正回路54、ガンマ補正回路56のそれぞれにおいて、色識別信号として入力されたRGB信号及びRGBG信号が示す色に基づいて、パラメータを選択する。そして次のステップST6で、オフセット補正回路52、ゲイン補正回路54、ガンマ補正回路56により、選択したパラメータを用いて、オフセット補正、ゲイン補正、ガンマ補正といった前処理をそれぞれ施す。なお、ここでは、色識別信号に含まれるXOS信号については無視され、実画素/虚画素に係わらず、同一の処理がなされる。
【0063】
例えば、対応する色識別信号が(RGB、RGBG)=(1、1)とR色を表している色信号の場合は、オフセット補正回路52、ゲイン補正回路54、ガンマ補正回路56において、R色に対応して設定されているパラメータが選択されて、オフセット補正、ゲイン補正、ガンマ補正が実行される。
【0064】
このように前処理過程では、色識別信号に基づいて処理対象の色信号の色を判別し、RGBの各色毎に予め用意されたパラメータの中から、判別した色のパラメータを選択することで、各色毎に適切な前処理を行うことができる。
【0065】
このようにして前処理が施された色信号は、同時化処理回路58A、58Bの両者に入力され、次のステップST7においては、色識別信号が示す色の補間演算式に従って、それぞれでハニカム配列、ベイヤー配列に適した同時化処理がなされると共にYC変換処理して輝度信号及び色差信号に変換される。なお、同時化処理回路58Aでは、対応する色識別信号に含まれるXOS信号が0の色信号については、無効な信号であるとして、同時化処理には用いないようになっている。
【0066】
次のステップST8では、後処理回路60により、切換えスイッチ28から入力されている選択信号に基づいて、本デジタルカメラ10で採用しているCCD14のカラーフィルタの配列方式を選択信号に従って判別し、ハニカム配列であればステップST9、ベイヤー配列であればステップST10に進む。
【0067】
そして、後処理回路60により、ステップST9では同時化処理回路58Aの出力信号(輝度信号、色差信号)、ステップST10では同時化処理回路58Bの出力信号を選択し、当該選択した出力信号に対して、後処理として、エッジ強調や色補正といった所定のデジタル信号処理を施す。
【0068】
この後処理回路60による処理後の信号(輝度信号、色差信号)は、撮像画像を表すデジタル画像データとして、圧縮回路62に入力され、最後にステップST11で、JPEG方式などで圧縮した後、メモリ24に記憶させて、図3の動作は終了する。
【0069】
このように、本実施の形態では、CCD14から読み出された各画素の信号について、CCDIF50において、当該CCDのカラーフィルタの配列方式に従って各画素の信号の色(R/G/B)を識別するための色識別信号を生成し、この色識別信号に基づいて点順次の各色信号が該当する画素の色を識別して、前処理、同時化処理を行うようにした。
【0070】
これにより、デジタル信号処理部20では、配列方式毎に、前処理、同時化処理、後処理を行う処理系を設けずとも、ハニカム配列とベイヤー配列の2つの配列方式に対応してデジタル信号処理を行うことができ回路規模の増大を抑えることができる。また、特に、オフセット補正回路52、ゲイン補正回路54、ガンマ補正回路56といったカラーフィルタの配列方式によらずに同一の前処理を行うための回路については、色識別信号が示す色毎に処理に用いるパラメータを切換えるようにしたことで、カラーフィルタの配列方式によらずに共通化することができ、回路規模の増大を防止する効果がある。
【0071】
【発明の効果】
上記に示したように、本発明は、小さな回路規模で、撮像素子から読み出した信号に対して、複数のカラーフィルタの配列方式に対応して所定の信号処理を行うことができるという優れた効果を有する。
【図面の簡単な説明】
【図1】 本実施の形態に係るデジタルカメラの構成を示すブロック図である。
【図2】 (A)はハニカム配列、(B)はベイヤー配列を示す図である。
【図3】 デジタル信号処理部の動作を示すフローチャートである。
【図4】 CCDのカラーフィルタの配列方式がハニカム配列の場合のデジタル信号処理部における各種信号のタイミングチャートである。
【図5】 CCDのカラーフィルタの配列方式がベイヤー配列の場合のデジタル信号処理部における各種信号のタイミングチャートである。
【符号の説明】
10 デジタルカメラ
12 撮影レンズ
14 CCD
18 アナログ信号処理部
20 デジタル信号処理部
26 制御部
28 切換えスイッチ
30 画素
30A 実画素
30B 虚画素
52 オフセット補正回路
54 ゲイン補正回路
56 ガンマ補正回路
58A、58B 同時化処理回路
60 後処理回路
62 圧縮回路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a signal processing device and a digital camera, and in particular, for picking up a color image, an image pickup device having a single plate configuration provided for pixels so that a plurality of color filters are arranged in a predetermined arrangement. The present invention relates to a signal processing apparatus and a digital camera that perform predetermined processing on the color signal of each pixel read out from.
[0002]
[Prior art]
In recent years, the demand for digital cameras such as digital still cameras and digital video cameras has been increasing rapidly as the resolution of imaging devices such as CCD (Charge Coupled Device) and CMOS (Complementary Metal Oxide Semiconductor) image sensors has increased. In digital cameras, in order to obtain high-quality images, various correction processes, such as edge correction and edge correction, and color correction to adjust color, are performed on image signals obtained by imaging with an image sensor. Is given.
[0003]
In a general digital camera, an image pickup device that picks up an image of a subject with a color has a single plate configuration, and each pixel of the image pickup device has a color filter of R (red), G (green), or B (blue). They are arranged according to a predetermined arrangement. Therefore, when the signal of each pixel of the captured image is read from this image sensor, the color signal of at least one of R, G, and B is intermittently output in time series, and in this state Even if correction processing is performed using the supplied image signal, it cannot be corrected with high accuracy.
[0004]
For this reason, in a digital camera, signal processing (hereinafter referred to as “synchronization processing”) is performed for each pixel by interpolating intermittent color signals with peripheral pixel signals (hereinafter, referred to as “synchronization processing”). References 1 and 2). There are various color filter arrangement methods employed in digital cameras, such as Bayer arrangement, RGB stripe arrangement, and honeycomb arrangement. In the synchronization processing, parameters used in the processing such as peripheral pixels used for interpolating intermittent color signals in each pixel and weighting coefficients thereof are determined according to the arrangement of the color filters, and each digital camera It is necessary to perform an appropriate synchronization process according to the arrangement method of the color filters employed in the image sensor.
[0005]
In addition, when performing the synchronization process, a correction process for adjusting sensitivity by correcting a sensitivity difference for each color of the image sensor with respect to the color signal of each pixel obtained from the image sensor in the previous stage of the synchronization process. (In order to distinguish from the above-described correction processing for obtaining a high-quality image, this correction processing is referred to as “pre-processing”, and the correction processing for obtaining a high-quality image is referred to as “post-processing”). There is a need.
[0006]
In recent years, with the price reduction of digital cameras, different color filter arrangement methods, for example, color signal processing for both honeycomb array CCDs and Bayer array CCDs have been realized in one processing system (for example, LSI). It is desired that the processing system can be commonly used in digital cameras that employ different color filter arrangement methods.
[0007]
[Patent Document 1]
Japanese Patent Laid-Open No. 11-177995
[Patent Document 2]
JP 2000-184386 A
[0008]
[Problems to be solved by the invention]
However, since the order of the pixel colors input to the processing system differs depending on the color filter array method, for example, separate signal processing circuits are required for the honeycomb array and the Bayer array, which increases the circuit scale of the processing system, which is rather costly. There was a problem that would become high.
[0009]
The present invention has been made to solve the above problems, and can perform predetermined signal processing on a signal read from an image sensor with a small circuit scale corresponding to the arrangement method of a plurality of color filters. An object of the present invention is to provide a signal processing device that can be used and a digital camera to which the signal processing device can be applied.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, the signal processing device according to claim 1 is an image sensor provided for pixels so that a plurality of color filters are arranged in a predetermined arrangement in order to capture a color image. A signal processing apparatus that obtains image data of the captured image by performing a predetermined process on a signal of each pixel of the captured image read out from any one of a plurality of predetermined color filter arrangement methods Generating means for generating a color identification signal for identifying the color of each pixel based on the pixel signal based on the arrangement method represented by the selection signal, and the plurality of arrangement methods To the pixel signal corresponding to the color indicated by the color identification signal generated by the generating means. About at least one of offset correction, gain correction, and gamma correction And processing means for performing the processing to be performed as the predetermined processing.
[0011]
According to this signal processing device, the generation means corresponds to the color filter arrangement method represented by the selection signal among the plurality of color filter arrangement methods, and the color identification for identifying the color of each pixel by the pixel signal A signal is generated. With this color identification signal, it becomes possible to identify which of the plurality of colors corresponds to the signal of each pixel sequentially read from the image sensor.
[0012]
In the processing means provided in common for the plurality of arrangement methods, the pixel signal corresponding to the color indicated by the color identification signal is used as the predetermined processing. About at least one of offset correction, gain correction, and gamma correction Processing to apply But Done. This processing can be performed, for example, by switching parameters used for processing for each color indicated by the color identification signal.
[0013]
That is, when a signal of each pixel is read out from the image sensor, a selection signal that represents the array method employed in the image sensor is generated even if the order of the corresponding colors of the read signals differs depending on the array method. Since the color identification signal corresponding to the arrangement method can be generated and the color corresponding to the signal of each pixel can be identified by this color identification signal, the processing means is common to the plurality of arrangement methods. Even if it exists, it can process appropriately.
[0014]
Thus, in the signal processing apparatus, even if the processing means is shared by a plurality of arrangement methods, predetermined signal processing can be performed corresponding to each arrangement method, and the circuit scale can be reduced.
[0015]
In the above signal processing device, for example, as described in claim 2, the processing means includes: Provided individually according to the plurality of arrangement methods, For each pixel, a synchronization signal processing means for generating image data of each color of its own pixel from a signal of a surrounding pixel, and a stage preceding the synchronization signal processing means, and the pixel signal At least one of offset correction, gain correction, and gamma correction Supplement Positive Apply Process And pre-processing means.
[0016]
According to a third aspect of the present invention, there is provided a digital camera having a single-plate configuration in which a plurality of color filters are provided for pixels so as to form a predetermined arrangement in order to capture a color image. Alternatively, the signal processing device according to claim 2, an image representing the captured image by performing predetermined processing on the pixel signal of the captured image obtained by capturing with the image sensor by the signal processing device. It is characterized by acquiring data.
[0017]
According to this digital camera, since the image signal is obtained by performing predetermined processing on the color signal obtained from the image sensor using the above-described signal processing device, the cost can be reduced.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Next, an example of an embodiment according to the present invention will be described in detail with reference to the drawings.
[0019]
First, the configuration of the digital camera 10 according to the present embodiment will be described with reference to FIG. As shown in the figure, the digital camera 10 according to the present embodiment includes a photographing lens 12 for forming a subject image, a CCD 14 as an image pickup device disposed behind the optical axis of the photographing lens 12, A CCD driving circuit 16 for driving the CCD 14, an analog signal processing unit 18 for performing predetermined signal processing on the input analog signal, and a signal of the present invention for performing predetermined digital signal processing on the input digital signal The digital signal processing unit 20 as a processing device, a timing generator (TG) 22 that generates various timing signals, a memory 24 that stores digital image signals acquired by photographing, and the overall operation of the digital camera 10. It includes a control unit 26 and a changeover switch 28 used as a selection means for selecting a color filter arrangement method. That.
[0020]
The subject image formed on the light receiving surface of the CCD 14 via the photographing lens 12 is converted into a signal charge in an amount corresponding to the amount of incident light by each sensor. The signal charges accumulated in this way are read out to the shift register by a read gate pulse applied from the CCD drive circuit 16, and sequentially read out as a voltage signal (analog signal) corresponding to the signal charge by a register transfer pulse. The CCD 14 has a so-called electronic shutter function that can sweep out the accumulated signal charge by a shutter gate pulse and thereby control the charge accumulation time (shutter speed).
[0021]
The voltage signal sequentially read from the CCD 14 is input to the analog signal processing unit 18 as a signal of each pixel. The analog signal processing unit 18 performs predetermined analog signal processing on the input color signal, converts it to a digital signal, and outputs it. The CCD drive circuit 16 and the analog signal processing unit 18 are driven in synchronization with a timing signal applied from the TG 22.
[0022]
The signal (digital signal) output from the analog signal processing unit 18 is temporarily stored in a memory (not shown), and then the color signal stored in the memory is digitally converted in a dot-sequential order (pixel order) read from the CCD 14. The signal is input to the signal processing unit 20. At this time, an image synchronization signal for each image is input to the digital signal processing unit 20 from the analog signal processing unit 18.
[0023]
The digital signal processing unit 20 is configured to be commonly used for an arrangement method of a plurality of color filters. In the present embodiment, as an example, the digital signal processing unit 20 is configured to be commonly used for a honeycomb array and a Bayer array. That is, as the CCD 14, a honeycomb array CCD or a Bayer array CCD can be used. However, the present invention is not limited to this type of color filter arrangement method.
[0024]
In FIG. 2, R / G / B in the rectangle representing each pixel 30 represents the color of the corresponding color filter, that is, the color of the pixel 30.
[0025]
In the case of the CCD 14 having the honeycomb arrangement, as shown in FIG. 2A, the real pixels 30A and the imaginary pixels 30B are arranged so as to form a checkered pattern. The signal of each pixel is read out as if the color filters of each color were arranged such as BRBR..., Only G in the next row, and RBRB.
[0026]
In the case of the CCD 14 of the Bayer array, as shown in FIG. 2B, the actual pixels 30 are two-dimensionally arrayed, and color filters of respective colors are arranged such that RGRG... In one row and GBGB. As if, the signal of each pixel is read out.
[0027]
Further, as shown in FIG. 1, the digital signal processing unit 20 includes a CCD interface circuit (CCDIF) 50 that captures a signal, an offset correction circuit 52 that performs preprocessing on the captured signal, and gain correction as preprocessing means. A circuit 54, a gamma correction circuit 56, a synchronization processing circuit 58A that performs synchronization processing based on a honeycomb array, a synchronization processing circuit 58B that performs synchronization processing based on a Bayer array, A post-processing circuit 60 for performing post-processing on the signal and a compression circuit 62 are included.
[0028]
The CCDIF 50 starts taking in the signals of the respective pixels in dot-sequential order read from the CCD 14 in synchronization with the image synchronization signal. The CCDIF 50 is connected to the changeover switch 28, and a selection signal indicating selection of the arrangement method (honeycomb / Bayer) is input from the changeover switch 28. The selection of the honeycomb / Bayer by the changeover switch 28 is performed in advance according to the color filter arrangement method of the CCD 14 employed when the digital camera 10 is assembled.
[0029]
Based on the input selection signal, the CCDIF 50 is obtained from each color pixel of RGB in which each of the signals sequentially read out from the CCD 14 is obtained, that is, from which color pixel of RGB. A color identification signal for identifying whether the signal is a signal is generated. That is, the CCDIF 50 functions as a generation unit.
[0030]
In this embodiment, as an example, the RGB signals and RGBG signals shown in Table 1 are generated as color identification signals.
[0031]
[Table 1]
Figure 0003961975
[0032]
In Table 1, G1 and G2 indicate G adjacent to R and G adjacent to B in the upper left in the honeycomb arrangement, and G adjacent to R and G adjacent to R in the horizontal direction in the Bayer arrangement. Show. That is, the adjacent G in the vertical direction is distinguished in the honeycomb arrangement, and the adjacent G in the oblique direction is distinguished in the Bayer arrangement. This is because different interpolation calculation formulas (that is, parameters) are used for G1 and G2 in the synchronization processing executed by the synchronization processing circuits 58A and 58B.
[0033]
Further, for the honeycomb arrangement, in order to identify the real pixel / imaginary pixel and invalidate the color signal obtained from the imaginary pixel, the 2-bit XOS signal shown in Table 2 is further generated as the color identification signal. It has become.
[0034]
[Table 2]
Figure 0003961975
[0035]
The CCDIF 50 outputs the captured signal of each pixel as a color signal to the offset correction circuit 52 in the subsequent stage together with the generated color identification signal.
[0036]
The offset correction circuit 52 corrects the zero value of each color in the output signal of the CCD 14 so that black is expressed when a black subject is photographed. Specifically, in the offset correction circuit 52, an offset value is set in advance for each color of RGB as a parameter used for processing in the circuit, and the color indicated by the color identification signal with respect to the color signal output from the CCDIF 50 Select the offset and subtract the selected offset value. The offset correction circuit 52 outputs the color signal after subtraction to the subsequent gain correction circuit 54 together with the color identification signal.
[0037]
The gain correction circuit 54 corrects the maximum value of each color in the output signal of the CCD 14 so that white is expressed when a subject such as white is photographed. Specifically, in the gain correction circuit 54, a gain value is set in advance for each color of RGB as a parameter used for processing in the circuit, and a color identification signal is output for the color signal output from the offset correction circuit 52. Is selected and multiplied by the selected gain value. The gain correction circuit 54 outputs the multiplied color signal together with the color identification signal to the subsequent gamma correction circuit 56.
[0038]
The gamma correction circuit 56 corrects the gradation of each color. Specifically, in the gamma correction circuit 56, input / output characteristics (gamma curves) are set in advance for each color of RGB as parameters used for processing in the circuit, and for the color signal output from the gain correction circuit 54, Thus, the input / output characteristic (gamma curve) of the color indicated by the color identification signal is selected, and the color signal is converted according to the selected input / output characteristic as an input value. The gamma correction circuit 56 outputs the converted color signal together with the color identification signal to the subsequent synchronization processing circuits 58A and 58B.
[0039]
The synchronization processing circuits 58A and 58B perform the synchronization processing for each pixel in accordance with the corresponding color filter arrangement method so that color signals of three colors RGB can be obtained for each pixel. The synchronization processing is processing for generating an intermittent color signal among RGB color signals by interpolating with color signals of peripheral pixels.
[0040]
For example, in FIG. 2A, a G color signal is obtained in the pixel 30_1 provided with the G color filter. Therefore, in this pixel, the obtained color signal may be used for the G color, but other pixels for the B and R colors (for example, the pixels 30_2 and 30_3 for the B color and the pixels 30_4 and 30_5 for the R color). ) To generate a color signal. Since the interpolation calculation may be the same as that of a conventionally known technique, detailed description thereof is omitted here.
[0041]
In the present embodiment, since the digital signal processing unit 20 can be commonly used in the honeycomb arrangement and the Bayer arrangement, the honeycomb synchronization processing circuit 58A and the Bayer synchronization processing circuit 58B are provided. That is, the synchronization processing circuit 58 is provided for each color filter arrangement method, and when the digital signal processing unit 20 can be commonly used for the RGB stripe arrangement and the honeycomb arrangement, Two simultaneous processing circuits are provided for the honeycomb. In addition, when the digital signal processing unit 20 can be commonly used in the honeycomb arrangement, the Bayer arrangement, and the RGB stripe arrangement, three synchronization processing circuits are provided for the honeycomb, the Bayer, and the RGB stripe. become.
[0042]
The reason why the synchronization processing circuit 58 is provided for each color filter arrangement method in this way is that the correction arithmetic expression (that is, the parameter) used for the synchronization processing differs depending on the color filter arrangement method.
[0043]
Further, the synchronization processing circuits 58A and 58B perform YC conversion on the RGB color signal for each pixel obtained by the synchronization processing, and generate a luminance signal (Y signal) and a color difference signal (Yr signal and Yb signal). . The synchronization processing circuits 58A and 58B output the generated luminance signal and color difference signal as image signals to the post-processing circuit 60 at the subsequent stage.
[0044]
The post-processing circuit 60 is connected to the changeover switch 28, and receives a selection signal indicating selection of the arrangement method (honeycomb / Bayer) from the changeover switch 28. The post-processing circuit 60 selects and captures the image signal output from one of the synchronization processing circuits 58A and 58B based on the input selection signal. That is, if the input selection signal indicates selection of the honeycomb arrangement, the image signal output from the synchronization processing circuit 58A is captured, and if the input selection signal indicates selection of the Bayer arrangement, The image signal output from the synchronization processing circuit 58B is captured.
[0045]
Instead of selecting one of the output signals of the synchronization processing circuits 58A and 58B based on the selection signal in the post-processing circuit 60, either of the synchronization processing circuits 58A or 58B is selected based on the selection signal. Only one of them may operate. For example, if the selection signal indicates a honeycomb arrangement, the power supply to the synchronization processing circuit 58B is turned OFF, the power supply is supplied only to the synchronization processing circuit 58A, and the selection signal indicates a Bayer arrangement. Alternatively, a switch may be provided that turns off the power supply to the synchronization processing circuit 58A and supplies power only to the synchronization processing circuit 58B.
[0046]
The post-processing circuit 60 performs a predetermined correction process on the captured image signal to enhance the edge of the image represented by the signal, or to perform color correction according to the shooting environment, and the like. Output to.
[0047]
In the compression circuit 62, when a release button (so-called shutter) (not shown) is pressed by the user, the image signal output from the post-processing circuit 60 is captured as an image signal for recording, and the captured image signal is converted into JPEG. Compress with a predetermined compression method. The compressed image signal is written into the memory 24 via a memory interface circuit (not shown).
[0048]
The signals after various correction processes output from the post-processing circuit 60 are also used for display on a liquid crystal display (not shown) that functions as a finder of the digital camera 10 or an electronic view finder.
[0049]
The control unit 26 includes a CPU, a RAM, a ROM, and the like, and appropriately sends control signals to each unit in order to control the operation of each unit. In particular, as relating to the present invention, the control unit 26 sends the parameters (offset value, gain value, input / output characteristics (for each color) used in each process to the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56. A signal indicating a gamma curve)) is transmitted. That is, the control unit 26 sets parameters used in the preprocessing executed by the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56. This parameter may be stored in advance in a memory (not shown) of the control unit 26, or may be generated by calculation by the control unit 26.
[0050]
In the above description, the signal indicating the honeycomb / Bayer selection result is input to the digital signal processing unit 20 from the changeover switch 28. However, the present invention is not limited to this. For example, the changeover switch 28 may be incorporated in the digital signal processing unit 20, or a signal indicating the selection result from the changeover switch 28 may be input to the digital signal processing unit 20 via the control unit 26. Also good. Further, the changeover switch 28 is omitted, and information indicating whether the arrangement is a honeycomb arrangement or a Bayer arrangement is stored in a memory (not shown) of the control unit 26 when the digital camera 10 is assembled and manufactured. A selection signal may be generated according to the storage information in the memory and supplied to the digital signal processing unit 20.
[0051]
Next, the operation of the present embodiment will be described.
[0052]
In the digital camera 10 according to this embodiment, when a release button (a so-called shutter) (not shown) is pressed by a user, signals of each pixel are sequentially read from the CCD 14, and the read signals are The analog signal processing unit 18 performs predetermined analog signal processing and converts it into a digital signal. The digital signals are input to the digital signal processing unit 20 in a dot-sequential order read from the CCD 14, and preprocessing, synchronization processing, and postprocessing are performed by the digital signal processing unit 20. Thereby, image data representing the captured image is generated. The generated image data is compressed and stored in the memory 24.
[0053]
Next, the operation of the digital signal processing unit 20 will be described in detail with reference to FIGS. In the digital signal processing unit 20, parameters used for preprocessing, that is, an offset value in the offset correction circuit 52, a gain value in the gain correction circuit 54, and input / output characteristics (in the gamma correction circuit 56) according to the signal from the control unit 26. A gamma curve is set for each color. In addition, a signal indicating the color filter arrangement method (honeycomb / Bayer) of the CCD 14 employed in the digital camera 10 is input from the changeover switch 28 to the digital signal processing unit 20.
[0054]
FIG. 3 is a flowchart showing the operation of the digital signal processing unit 20. 4 and 5 show timing charts of various signals in the digital signal processing unit 20 when the CCD color filter arrangement method is a honeycomb arrangement and a Bayer arrangement.
[0055]
The digital signal processing unit 20 starts the operation shown in FIG. 3 when the image synchronization signal EN from the analog signal processing unit 18 is input. When the image synchronization signal EN is input, the digital signal processing unit 20 first, as shown in FIG. 3, in step ST1, based on the selection signal input from the changeover switch 28 by the CCDIF 50, the digital camera 10 The arrangement method of the color filter of the CCD 14 employed in the above is discriminated in accordance with the selection signal.
[0056]
In step ST2, in accordance with the honeycomb arrangement, in step ST3, in accordance with the Bayer arrangement, a color identification signal for identifying the pixel color of the dot sequential signal read from the CCD 14 is generated in synchronization with the image synchronization signal EN. .
[0057]
In addition to the generation of the color identification signal in step ST2 or ST3, in the CCDIF 50, in step ST4, in synchronization with the image synchronization signal EN, the signal processed by the analog signal processing unit 18 in a dot-sequential manner read from the CCD 14 is output. Start importing.
[0058]
Specifically, as shown in FIG. 4, when the selection signal indicates a honeycomb arrangement (H level in the figure), the digital signal processing unit 20 reads out from the CCD 14 in synchronization with the falling edge of the image synchronization signal EN. The signal of each pixel is sequentially input as a color signal. Specifically, in the case of the honeycomb arrangement, as shown in the figure, the signals of the pixels of the respective colors are input in the order of RXBXRXBX... According to a predetermined clock CLK as shown in FIG. . X represents an imaginary pixel.
[0059]
At the same time, color identification signals are sequentially generated according to a predetermined clock CLK. Specifically, RGB signals are 11111111..., RGBG signals are 11001100..., XOS signals are 10101010. Generated. That is, the color identification signal (RGB, RGBG, XOS) = (1, 1, 1) for the color signal of the first pixel inputted in dot order is as shown in Tables 1 and 2 from this color identification signal. Further, it can be seen that the color signal is obtained with R pixels and effective pixels (actual pixels). The color identification signal for the color signal of the second pixel is (RGB, RGBG, XOS) = (1, 1, 0). From this color identification signal, the RGB and RGBG signals indicate the R color. It can be seen from the XOS signal that the color signal is an invalid pixel, that is, an imaginary pixel. In this way, the color represented by each color signal and valid / invalid can be determined by the color identification signals (RGB, RGBG, XOS).
[0060]
On the other hand, as shown in FIG. 5, when the selection signal indicates a Bayer array (L level in the figure), the digital signal processing unit 20 is in the order read from the CCD 14 in synchronization with the falling edge of the image synchronization signal EN. The signal of each pixel is input as a color signal. Specifically, in the case of the Bayer array, color signals are input in the order of RGRRGRGRG... According to a predetermined clock CLK as shown in FIG.
[0061]
At the same time, color identification signals are sequentially generated according to a predetermined clock CLK, and specifically, a 2-bit signal of 10101010... For the RGB signal and 11001100. That is, the color identification signal (RGB, RGBG) = (1, 1) for the color signal of the first pixel that is input dot-sequentially, and from this color identification signal, as shown in Table 1, R color pixels It can be seen that this is the color signal obtained in (1). The color identification signal for the color signal of the second pixel is (RGB, RGBG) = (0, 1). From this color identification signal, a color signal obtained from a B color pixel adjacent to the R pixel. I understand that there is.
[0062]
In the next step ST5, each of the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56 selects a parameter based on the color indicated by the RGB signal and the RGBG signal input as the color identification signal. In the next step ST6, the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56 perform preprocessing such as offset correction, gain correction, and gamma correction using the selected parameters. Here, the XOS signal included in the color identification signal is ignored, and the same processing is performed regardless of the real pixel / imaginary pixel.
[0063]
For example, when the corresponding color identification signal is (RGB, RGBG) = (1, 1) and a color signal representing the R color, the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56 use the R color. The parameters set corresponding to are selected, and offset correction, gain correction, and gamma correction are executed.
[0064]
In this way, in the preprocessing process, the color of the color signal to be processed is determined based on the color identification signal, and the parameter of the determined color is selected from the parameters prepared in advance for each color of RGB. Appropriate preprocessing can be performed for each color.
[0065]
The color signals that have been pre-processed in this way are input to both of the synchronization processing circuits 58A and 58B, and in the next step ST7, according to the color interpolation calculation formula indicated by the color identification signal, the honeycomb signals are respectively arranged. Then, a synchronization process suitable for the Bayer arrangement is performed, and a YC conversion process is performed to convert the signal into a luminance signal and a color difference signal. In the synchronization processing circuit 58A, a color signal whose XOS signal included in the corresponding color identification signal is 0 is not used for the synchronization process because it is an invalid signal.
[0066]
In the next step ST8, the post-processing circuit 60 discriminates the color filter arrangement method of the CCD 14 employed in the digital camera 10 based on the selection signal input from the changeover switch 28 according to the selection signal. If it is an array, the process proceeds to step ST9, and if it is a Bayer array, the process proceeds to step ST10.
[0067]
Then, the post-processing circuit 60 selects the output signal (luminance signal, chrominance signal) of the synchronization processing circuit 58A in step ST9 and the output signal of the synchronization processing circuit 58B in step ST10, and outputs the selected output signal. As post-processing, predetermined digital signal processing such as edge enhancement and color correction is performed.
[0068]
A signal (luminance signal, color difference signal) processed by the post-processing circuit 60 is input to the compression circuit 62 as digital image data representing a captured image, and finally compressed in the JPEG method or the like in step ST11, and then stored in the memory. 24, the operation of FIG. 3 is completed.
[0069]
As described above, in this embodiment, the signal (R / G / B) of the signal of each pixel is identified in the CCDIF 50 according to the arrangement method of the color filter of the CCD with respect to the signal of each pixel read from the CCD 14. For this purpose, a color identification signal is generated, and based on this color identification signal, each dot-sequential color signal identifies the color of the corresponding pixel, and preprocessing and synchronization processing are performed.
[0070]
Thereby, the digital signal processing unit 20 does not provide a processing system for performing pre-processing, synchronization processing, and post-processing for each arrangement method, and performs digital signal processing corresponding to the two arrangement methods of the honeycomb arrangement and the Bayer arrangement. The increase in circuit scale can be suppressed. In particular, a circuit for performing the same preprocessing regardless of the color filter arrangement method, such as the offset correction circuit 52, the gain correction circuit 54, and the gamma correction circuit 56, is processed for each color indicated by the color identification signal. Since the parameters to be used are switched, they can be shared regardless of the color filter arrangement method, and an effect of preventing an increase in circuit scale can be obtained.
[0071]
【The invention's effect】
As described above, the present invention has an excellent effect that predetermined signal processing can be performed on a signal read from an image sensor in accordance with an arrangement method of a plurality of color filters with a small circuit scale. Have
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a digital camera according to an embodiment.
2A is a diagram showing a honeycomb arrangement, and FIG. 2B is a diagram showing a Bayer arrangement.
FIG. 3 is a flowchart showing the operation of the digital signal processing unit.
FIG. 4 is a timing chart of various signals in a digital signal processing unit when the arrangement of color filters of a CCD is a honeycomb arrangement.
FIG. 5 is a timing chart of various signals in a digital signal processing unit when a CCD color filter array system is a Bayer array.
[Explanation of symbols]
10 Digital camera
12 Shooting lens
14 CCD
18 Analog signal processor
20 Digital signal processor
26 Control unit
28 changeover switch
30 pixels
30A real pixel
30B imaginary pixel
52 Offset correction circuit
54 Gain correction circuit
56 Gamma correction circuit
58A, 58B Simultaneous processing circuit
60 Post-processing circuit
62 Compression circuit

Claims (3)

カラー画像を撮像するために、複数の色のカラーフィルタが所定の配列となるように画素に対して設けられた撮像素子から読み出された撮像画像の各画素の信号に所定の処理を施して前記撮像画像の画像データを得る信号処理装置であって、
予め定められた複数の前記カラーフィルタの配列方式の何れか1つを表す選択信号が入力されると共に、該選択信号が表す配列方式に基づいて、前記画素信号による各画素の色を識別するための色識別信号を生成する生成手段と、
前記複数の配列方式に共通に設けられ、前記生成手段により生成された色識別信号が示す色に対応する画素信号について、オフセット補正、ゲイン補正、及びガンマ補正の内の少なくとも1つの補正を施す処理を前記所定の処理として行う処理手段と、
を有することを特徴とする信号処理装置。
In order to capture a color image, a predetermined process is performed on a signal of each pixel of a captured image read from an image sensor provided for the pixels so that a plurality of color filters are arranged in a predetermined array. A signal processing device for obtaining image data of the captured image,
In order to input a selection signal representing any one of a plurality of predetermined color filter arrangement methods, and to identify the color of each pixel based on the pixel signal based on the arrangement method represented by the selection signal Generating means for generating a color identification signal;
Provided in common to said plurality of sequences method, with the pixel signal corresponding to a color indicated by the generated color identification signal by the generating means, offset correction, performs gain correction, and at least one correction of the gamma correction Processing means for performing processing as the predetermined processing;
A signal processing apparatus comprising:
前記処理手段は、
前記複数の配列方式に応じて個別に設けられ、各画素について、周辺の画素の信号から自らの画素の各色の画像データを生成する同時化信号処理手段と、
前記同時化信号処理手段の前段に備えられ、且つ前記画素信号について、オフセット補正、ゲイン補正、及びガンマ補正の内の少なくとも1つの正を施す処理を行う前処理手段と、
から構成されることを特徴とする請求項1に記載の信号処理装置。
The processing means includes
Synchronized signal processing means that is individually provided according to the plurality of arrangement methods and generates image data of each color of its own pixel from a signal of a peripheral pixel for each pixel;
Provided in front of the synchronizing signal processing means for and the pixel signal, a preprocessing unit for performing offset correction, gain correction, and at least one compensation to performing processing of the gamma correction,
The signal processing device according to claim 1, comprising:
カラー画像を撮像するために、複数の色のカラーフィルタが所定の配列となるように画素に対して設けられた単板構成の撮像素子と、請求項1又は請求項2に記載の信号処理装置とを備え、前記撮像素子で撮影して得られた撮像画像の画素信号に対して前記信号処理装置により所定の処理を施して、前記撮像画像を表す画像データを取得する、
ことを特徴とするデジタルカメラ。
3. The signal processing device according to claim 1, wherein, in order to capture a color image, an image sensor having a single plate configuration provided for pixels so that a plurality of color filters are arranged in a predetermined arrangement. And performing predetermined processing on the pixel signal of the captured image obtained by capturing with the image sensor by the signal processing device to obtain image data representing the captured image.
A digital camera characterized by that.
JP2003078285A 2003-03-20 2003-03-20 Signal processing apparatus and digital camera Expired - Fee Related JP3961975B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003078285A JP3961975B2 (en) 2003-03-20 2003-03-20 Signal processing apparatus and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003078285A JP3961975B2 (en) 2003-03-20 2003-03-20 Signal processing apparatus and digital camera

Publications (2)

Publication Number Publication Date
JP2004289444A JP2004289444A (en) 2004-10-14
JP3961975B2 true JP3961975B2 (en) 2007-08-22

Family

ID=33292807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003078285A Expired - Fee Related JP3961975B2 (en) 2003-03-20 2003-03-20 Signal processing apparatus and digital camera

Country Status (1)

Country Link
JP (1) JP3961975B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4963690B2 (en) * 2008-08-07 2012-06-27 株式会社メガチップス Image processing device
CN113676652B (en) * 2021-08-25 2023-05-26 维沃移动通信有限公司 Image sensor, control method, control device, electronic apparatus, and storage medium

Also Published As

Publication number Publication date
JP2004289444A (en) 2004-10-14

Similar Documents

Publication Publication Date Title
JP3980782B2 (en) Imaging control apparatus and imaging control method
US7050098B2 (en) Signal processing apparatus and method, and image sensing apparatus having a plurality of image sensing regions per image frame
JP4951440B2 (en) Imaging apparatus and solid-state imaging device driving method
KR100854163B1 (en) Imager and image quality correcting method
JP5523065B2 (en) Imaging apparatus and control method thereof
JP2000244823A (en) Device for concealing defective pixel of imaging device
US8218021B2 (en) Image capture apparatus, method of controlling the same, and program
US7760257B2 (en) Image capturing apparatus, control method and program thereof, and storage medium
JP3697172B2 (en) Signal processing apparatus, signal processing method, and imaging apparatus
JP2007243917A (en) Imaging apparatus and image processing program
JPH09238355A (en) Method for eliminating line noise of image pickup device and line noise elimination device using it
JP2002335454A (en) Image processing unit, image processing method and imaging apparatus
US20070269133A1 (en) Image-data noise reduction apparatus and method of controlling same
US20070285529A1 (en) Image input device, imaging module and solid-state imaging apparatus
US8081229B2 (en) Imaging apparatus
JPH11298910A (en) Imaging device and image-pickup unit using the same
JP3961975B2 (en) Signal processing apparatus and digital camera
JP2003101815A (en) Signal processor and method for processing signal
JP2010171930A (en) Imaging apparatus and imaging method
US6677998B1 (en) Solid-state electronic image sensing device and method of controlling operation of same
JP4043379B2 (en) Imaging device
US7782381B2 (en) Generating an instant review image using fractional readouts
JP4260769B2 (en) Image processing circuit
JP4022682B2 (en) Imaging apparatus and image output method
JP4852490B2 (en) Imaging apparatus and post-view image generation method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050303

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070227

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070417

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070517

R150 Certificate of patent or registration of utility model

Ref document number: 3961975

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110525

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110525

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120525

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130525

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20140525

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees