JP4123210B2 - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP4123210B2
JP4123210B2 JP2004262467A JP2004262467A JP4123210B2 JP 4123210 B2 JP4123210 B2 JP 4123210B2 JP 2004262467 A JP2004262467 A JP 2004262467A JP 2004262467 A JP2004262467 A JP 2004262467A JP 4123210 B2 JP4123210 B2 JP 4123210B2
Authority
JP
Japan
Prior art keywords
signal
photoelectric conversion
color signal
color
characteristic
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
JP2004262467A
Other languages
Japanese (ja)
Other versions
JP2005110234A5 (en
JP2005110234A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2004262467A priority Critical patent/JP4123210B2/en
Publication of JP2005110234A publication Critical patent/JP2005110234A/en
Publication of JP2005110234A5 publication Critical patent/JP2005110234A5/ja
Application granted granted Critical
Publication of JP4123210B2 publication Critical patent/JP4123210B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Description

本発明は、複数種類の色フィルタを備えて色信号を出力する固体撮像素子を有し、カラー画像を撮像する撮像装置に関するもので、特に、色信号のホワイトバランス処理を施す撮像装置に関する。   The present invention relates to an image pickup apparatus that includes a solid-state image pickup device that includes a plurality of types of color filters and outputs color signals, and particularly relates to an image pickup apparatus that performs white balance processing of color signals.

従来、入射光量に対して線形変換する線形変換動作を行う固体撮像素子においては、そのダイナミックレンジが2桁と狭いため、広い輝度範囲の輝度分布を構成する被写体を撮像したときは、ダイナミックレンジ以外の範囲の輝度情報は出力されない。又、従来の固体撮像装置として、入射光量に対して対数変換する対数変換動作を行うものがある(特許文献1参照)。この固体撮像素子においては、そのダイナミックレンジが5〜6桁と広いため、少々広い輝度範囲の輝度分布を構成する被写体を撮像しても、輝度分布内の全輝度情報を電気信号に変換して出力することができる。しかしながら、被写体の輝度分布に対してその撮像可能領域が広くなるので、撮像可能領域内の低輝度領域又は高輝度領域において、輝度データの無い領域ができてしまう。これらに対して、本出願人は、上述の線形変換動作と対数変換動作とを切り換えることが可能なものを提案している(特許文献2参照)。   Conventionally, in a solid-state imaging device that performs a linear conversion operation that linearly converts the amount of incident light, its dynamic range is as narrow as two orders of magnitude, so when imaging a subject that constitutes a luminance distribution in a wide luminance range, other than the dynamic range The luminance information in the range is not output. Further, as a conventional solid-state imaging device, there is one that performs a logarithmic conversion operation for logarithmically converting the amount of incident light (see Patent Document 1). In this solid-state imaging device, the dynamic range is as wide as 5 to 6 digits. Therefore, even if an image of a subject constituting a luminance distribution in a slightly wide luminance range is captured, all luminance information in the luminance distribution is converted into an electrical signal. Can be output. However, since the imageable area becomes wider with respect to the luminance distribution of the subject, an area without luminance data is formed in the low luminance area or the high luminance area in the imageable area. On the other hand, the present applicant has proposed what can switch between the above-described linear conversion operation and logarithmic conversion operation (see Patent Document 2).

又、これらの固体撮像素子を備える撮像装置において、色フィルタを設けることでカラー画像が撮像されるとき、撮影時の光源の分光分布や色フィルタの透過率が異なるために、各色信号の光電変換特性が異なるものとなる。よって、このようなカラー画像を撮像する撮像装置において、この各色信号の光電変換特性を一致させるためのホワイトバランス処理が施される。そこで、本出願人は、対数変換動作を行う固体撮像素子を備えた撮像装置において、色温度検出回路で検出した色温度に基づいてホワイトバランス処理回路でホワイトバランス処理を施す撮像装置を提案している(特許文献3参照)。又、本出願人は、対数変換動作を行う固体撮像素子を備えた撮像装置において、AD変換器においてAD変換する際にオフセット電圧を切り換えることでホワイトバランス処理を施す撮像装置を提案している(特許文献4参照)。
特開平11−313257号公報 特開2002−77733号公報 特開2002−10275号公報 特開2002−290980号公報
In addition, when a color image is picked up by providing a color filter in an image pickup apparatus equipped with these solid-state image pickup devices, the spectral distribution of the light source at the time of shooting and the transmittance of the color filter differ, so that the photoelectric conversion of each color signal The characteristics will be different. Therefore, in an imaging apparatus that captures such a color image, white balance processing is performed to match the photoelectric conversion characteristics of the color signals. In view of this, the present applicant has proposed an imaging apparatus that performs white balance processing in a white balance processing circuit based on a color temperature detected by a color temperature detection circuit in an imaging apparatus including a solid-state imaging device that performs a logarithmic conversion operation. (See Patent Document 3). In addition, the present applicant has proposed an imaging apparatus that performs white balance processing by switching an offset voltage when performing AD conversion in an AD converter in an imaging apparatus including a solid-state imaging device that performs a logarithmic conversion operation ( (See Patent Document 4).
JP-A-11-313257 JP 2002-77733 A JP 2002-10275 A JP 2002-290980 A

しかしながら、特許文献3及び特許文献4における撮像装置では、対数変換特性のみによる光電変換動作を行う固体撮像素子から出力される画像信号をホワイトバランス補正することに対しては有効であるが、線形変換特性による光電変換動作を行う固体撮像素子については、ホワイトバランスをとることができない。そのため、特許文献2のように対数変換特性及び線形変換特性を自動に切り換えることが可能な固体撮像素子を用いた場合、従来のホワイトバランス処理のように乗除算又は加減算のみのホワイトバランス処理では、十分にホワイトバランスをとることができない。   However, the imaging devices in Patent Literature 3 and Patent Literature 4 are effective for white balance correction of an image signal output from a solid-state imaging device that performs a photoelectric conversion operation using only logarithmic conversion characteristics. A white balance cannot be achieved for a solid-state imaging device that performs a photoelectric conversion operation based on characteristics. Therefore, when using a solid-state imaging device capable of automatically switching between logarithmic conversion characteristics and linear conversion characteristics as in Patent Document 2, in white balance processing only for multiplication / division or addition / subtraction like conventional white balance processing, Cannot get enough white balance.

このような問題を鑑みて、本発明は、その光電変換特性において互いに特性の異なる複数の領域が含まれる固体撮像素子を備えるとき、いずれの特性により出力される信号に対しても正確にホワイトバランス処理を行うことができる撮像装置を提供することを目的とする。   In view of such a problem, when the present invention includes a solid-state imaging device including a plurality of regions whose photoelectric conversion characteristics are different from each other, white balance is accurately applied to a signal output by any characteristics. An object is to provide an imaging device capable of performing processing.

上記目的を達成するために、本発明の撮像装置は、出力信号が入射光量に対して第1の特性で変化する第1領域と出力信号が入射光量に対して前記第1の特性とは異なる第2の特性で変化する第2領域とを含む光電変換特性を示す画素を備えるとともに複数種類の色フィルタが設けられた固体撮像素子と、該固体撮像素子から出力される前記色フィルタの種類毎の色信号に対してホワイトバランス処理を行うホワイトバランス回路と、を備える撮像装置において、前記ホワイトバランス回路は、入力される色信号のレベルに対して、各色信号間のずれが補正された信号レベルを出力データとして与える第1ルックアップテーブルを備え、該第1ルックアップテーブルは前記第1及び第2の特性の両特性に対応づけられていることを特徴とする。 In order to achieve the above object, the imaging apparatus of the present invention has a first region in which an output signal changes with a first characteristic with respect to an incident light amount, and an output signal is different from the first characteristic with respect to the incident light amount. A solid-state imaging device including a pixel having a photoelectric conversion characteristic including a second region that changes in accordance with the second characteristic and provided with a plurality of types of color filters, and each type of the color filter output from the solid-state imaging device And a white balance circuit that performs white balance processing on the color signal of the color signal, wherein the white balance circuit has a signal level in which a shift between the color signals is corrected with respect to a level of the input color signal Is provided as output data, and the first lookup table is associated with both the first and second characteristics.

このような撮像装置において、複数種類の前記色信号が前記固体撮像素子より出力されたとき、前記ホワイトバランス回路において、第1ルックアップテーブルを参照して、第1及び第2の両方の特性に対応づけられ、且つ、各色信号間のずれが補正された信号レベルを出力データとして得る。そして、この信号レベルをホワイトバランス処理後の信号レベルとして後段の回路に出力する。   In such an imaging apparatus, when a plurality of types of color signals are output from the solid-state imaging device, the white balance circuit refers to the first look-up table and achieves both the first and second characteristics. A signal level that is correlated and corrected for deviation between the color signals is obtained as output data. Then, this signal level is output to a subsequent circuit as a signal level after white balance processing.

前記第1の特性は、例えば、入射光量に対する線形的な変化であり、前記第2の特性は、例えば、入射光量に対する自然対数的な変化である。   The first characteristic is, for example, a linear change with respect to the amount of incident light, and the second characteristic is, for example, a natural logarithmic change with respect to the amount of incident light.

前記複数種類の色信号の1つを基準となる第1色信号とし、該基準色信号以外の色信号を第2色信号としたとき、前記第1ルックアップテーブルは、前記第2色信号の信号レベルを入力アドレスとし、前記第2色信号における光電変換特性を前記第1色信号の光電変換特性に変換した際の信号レベルを該入力アドレスに対する出力データとするものとすることができる。   When one of the plurality of types of color signals is used as a reference first color signal and a color signal other than the reference color signal is used as a second color signal, the first look-up table includes the second color signal. The signal level can be used as an input address, and the signal level when the photoelectric conversion characteristic of the second color signal is converted into the photoelectric conversion characteristic of the first color signal can be used as output data for the input address.

又、前記ホワイトバランス回路が、前記第1色信号の信号レベルを入力アドレスとし、階調変換処理が行われた信号レベルを前記入力アドレスに対する出力データとする第2ルックアップテーブルを備えるとともに、前記第1ルックアップテーブルが、前記第2色信号における光電変換特性を前記第1色信号の光電変換特性に変換し且つ階調変換処理が行われた信号レベルを、前記入力アドレスのデータとするものとして、ホワイトバランス処理とともに、γ特性などの再生出力する再生出力装置における階調特性に変換する階調変換処理を施すものとしても構わない。   The white balance circuit includes a second look-up table having the signal level of the first color signal as an input address and the signal level subjected to gradation conversion processing as output data for the input address. The first look-up table converts the photoelectric conversion characteristic in the second color signal into the photoelectric conversion characteristic of the first color signal and uses the signal level on which the gradation conversion process has been performed as the data of the input address In addition to the white balance processing, gradation conversion processing for converting to gradation characteristics in a reproduction output device that reproduces and outputs γ characteristics and the like may be performed.

これらの撮像装置において、前記第1色信号の光電変換特性と前記第2色信号の光電変換特性との関係を表す評価値を、前記第2色信号の種類毎に、前記固体撮像素子から入力される前記第1色信号及び前記第2色信号の信号レベルの関係より検出する評価値検出回路を備え、前記第1ルックアップテーブルが、前記評価値と前記第1色信号の光電変換特性に基づいて生成されるようにしても構わない。当該評価値を、前記第1色信号及び前記第2色信号の光電変換特性において、前記第1の特性で変化する領域と前記第2の特性で変化する領域との境界となる輝度値の差によるものとすることができる。   In these imaging devices, an evaluation value representing the relationship between the photoelectric conversion characteristics of the first color signal and the photoelectric conversion characteristics of the second color signal is input from the solid-state imaging device for each type of the second color signal. And an evaluation value detection circuit for detecting from the relationship between the signal levels of the first color signal and the second color signal, and the first look-up table has a photoelectric conversion characteristic of the evaluation value and the first color signal. You may make it produce | generate based on. In the photoelectric conversion characteristics of the first color signal and the second color signal, the evaluation value is a difference in luminance value that serves as a boundary between the area that changes in the first characteristic and the area that changes in the second characteristic. Can be due to.

又、前記評価値検出回路において、前記第2色信号の種類毎に、前記固体撮像素子から与えられる前記第1色信号及び前記第2色信号それぞれの平均値との関係に基づいて、前記評価値が求められるようにすることができる。このとき、前記第1色信号及び前記第2色信号それぞれの平均値に対する輝度値が等しいものとするようにしても構わない。   In the evaluation value detection circuit, for each type of the second color signal, the evaluation is performed based on a relationship between an average value of each of the first color signal and the second color signal given from the solid-state imaging device. A value can be determined. At this time, the luminance values for the average values of the first color signal and the second color signal may be equal.

又、前記評価値検出回路において、前記第2色信号の種類毎に、前記固体撮像素子から与えられた入射光量に対して前記第1の特性で変化した前記第1色信号及び前記第2色信号それぞれの平均値の関係に基づいて、第1評価値が求められるとともに、前記固体撮像素子から与えられた入射光量に対して前記第2の特性で変化した前記第1色信号及び前記第2色信号それぞれの平均値の関係に基づいて、第2評価値が求められ、前記第1評価値及び前記第2評価値を加重加算することで、前記第1色信号の光電変換特性と前記第2色信号の光電変換特性の関係を表す評価値を求めるようにしても構わない。このとき、前記第1評価値及び前記第2評価値それぞれを求める際の前記第1色信号及び前記第2色信号それぞれの平均値に対する輝度値が等しいものとするようにしても構わない。   In the evaluation value detection circuit, for each type of the second color signal, the first color signal and the second color changed with the first characteristic with respect to the incident light amount given from the solid-state imaging device. Based on the relationship between the average values of the signals, a first evaluation value is obtained, and the first color signal and the second color signal changed with the second characteristic with respect to the amount of incident light applied from the solid-state imaging device. Based on the relationship between the average values of the color signals, a second evaluation value is obtained, and the first evaluation value and the second evaluation value are weighted to add the photoelectric conversion characteristics of the first color signal and the first evaluation value. You may make it obtain | require the evaluation value showing the relationship of the photoelectric conversion characteristic of a two-color signal. At this time, the luminance values with respect to the average values of the first color signal and the second color signal at the time of obtaining the first evaluation value and the second evaluation value may be the same.

このように前記第1評価値及び前記第2評価値を加重加算して前記評価値を求める際、外部より重み係数が設定されるものとしても構わない。又、入射光量に対して前記第1の特性で変化した信号を出力する画素数と、入射光量に対して前記第2の特性で変化した信号を出力する画素数との関係に基づいて、前記加重加算における重み係数を設定するものとしても構わない。このとき、前記色信号の種類毎に前記重み係数を設定するものとしても構わない。又、オートフォーカス機能により検出した主被写体を中心とする領域における入射光量に対して前記第1の特性で変化した信号を出力する画素数と、入射光量に対して前記第2の特性で変化した信号を出力する画素数との関係に基づいて、前記重み係数を設定するものとしても構わない。   In this way, when the evaluation value is obtained by weighted addition of the first evaluation value and the second evaluation value, a weighting factor may be set from the outside. Further, based on the relationship between the number of pixels that output a signal that changes with the first characteristic with respect to the incident light amount and the number of pixels that outputs a signal that changes with the second characteristic with respect to the incident light amount, A weighting factor in weighted addition may be set. At this time, the weight coefficient may be set for each type of the color signal. In addition, the number of pixels that output a signal that has changed with the first characteristic with respect to the incident light amount in the region centered on the main subject detected by the autofocus function, and the second characteristic with respect to the incident light amount. The weighting factor may be set based on the relationship with the number of pixels that output a signal.

上述の撮像装置において、前記色信号それぞれに対して、前記固体撮像素子のダイナミックレンジにより決定する前記第1領域と前記第2領域との境界となる信号レベルが一定であり、前記第1領域と前記第2領域の境界となる信号レベルに基づいて、入射光量に対して前記第1の特性で変化した信号と入射光量に対して前記第2の特性で変化した信号とを識別することができる。   In the imaging apparatus described above, for each of the color signals, a signal level serving as a boundary between the first area and the second area determined by a dynamic range of the solid-state imaging element is constant, and the first area Based on the signal level that becomes the boundary of the second region, it is possible to distinguish between a signal that has changed in the first characteristic with respect to the incident light amount and a signal that has changed in the second characteristic with respect to the incident light amount. .

又、前記第2色信号の光電変換特性を、前記第1色信号の光電変換特性と前記評価値に基づいて決定するようにしても構わない。   The photoelectric conversion characteristic of the second color signal may be determined based on the photoelectric conversion characteristic of the first color signal and the evaluation value.

上述の撮像装置において、前記第2色信号の光電変換特性に基づいて前記第2色信号の信号レベルそれぞれに対する輝度値を求めた後、求められた当該各輝度値に対する信号レベルを前記第1色信号の光電変換特性に基づいて求めて前記入力アドレスに対する出力データとすることで、前記第1ルックアップテーブルを生成することができる。   In the above-described imaging device, after obtaining the luminance value for each signal level of the second color signal based on the photoelectric conversion characteristics of the second color signal, the signal level for each obtained luminance value is set to the first color. The first look-up table can be generated by obtaining the output data for the input address based on the photoelectric conversion characteristics of the signal.

前記第1色信号の光電変換特性をメモリ内に複数種類格納し、設定した前記固体撮像素子のダイナミックレンジに基づいて前記第1色信号の光電変換特性を前記メモリより読み出して使用するものとしても構わない。このとき、前記メモリに格納された前記第1色信号の光電変換特性の種類に応じて、前記固体撮像素子のダイナミックレンジが離散的に設定されるものとしても構わない。又、前記固体撮像素子のダイナミックレンジが連続的に設定されるとき、設定された当該ダイナミックレンジの前後のダイナミックレンジに相当する前記第1色信号の光電変換特性に基づき、設定された当該ダイナミックレンジに対する前記第1色信号の光電変換特性を設定するものとしても構わない。   A plurality of types of photoelectric conversion characteristics of the first color signal may be stored in a memory, and the photoelectric conversion characteristics of the first color signal may be read from the memory and used based on the set dynamic range of the solid-state imaging device. I do not care. At this time, the dynamic range of the solid-state imaging device may be set discretely according to the type of photoelectric conversion characteristic of the first color signal stored in the memory. In addition, when the dynamic range of the solid-state imaging device is set continuously, the set dynamic range based on the photoelectric conversion characteristics of the first color signal corresponding to the dynamic range before and after the set dynamic range. The photoelectric conversion characteristics of the first color signal may be set.

前記固体撮像素子が、画素毎に複数種類の色フィルタが設けられた単板の固体撮像素子であっても構わないし、複数の色フィルタ毎に設けられた複数の撮像素子よりなる複数板の固体撮像素子であっても構わない。   The solid-state imaging device may be a single-plate solid-state imaging device in which a plurality of types of color filters are provided for each pixel, or a plurality of plates of a solid image including a plurality of imaging devices provided for each of the plurality of color filters. It may be an image sensor.

本発明によると、ルックアップテーブルを用いることによって、光電変換特性において互いに特性の異なる複数の領域が含まれる固体撮像素子から出力される色信号に対して、簡単な構成で正確にホワイトバランス処理を行うことができる。又、評価値検出回路を設けることによって、各色信号の関係を確認することができる各色信号に対する評価値を検出することができる。よって、ルックアップテーブルに対して設定するパラメータを、検出値と基準となる色信号の光電変換特性により容易に求めることができる。   According to the present invention, by using a look-up table, white balance processing is accurately performed with a simple configuration on a color signal output from a solid-state imaging device including a plurality of regions having different photoelectric conversion characteristics. It can be carried out. Further, by providing the evaluation value detection circuit, it is possible to detect the evaluation value for each color signal that can confirm the relationship between the color signals. Therefore, the parameters set for the lookup table can be easily obtained from the photoelectric conversion characteristics of the detected value and the reference color signal.

又、入射光量に対して第1の特性で変化した色信号と入射光量に対して第2の特性で変化した色信号とのそれぞれに対して評価値を求めた後、これらの評価値を加重加算することで、各色信号の評価値を設定することで、より高精度な評価値を得ることができる。よって、ルックアップテーブルに対して設定するパラメータをより高精度なものとすることができる。更に、入射光量に対して第1の特性で変化した信号を出力する画素数と、入射光量に対して第2の特性で変化した信号を出力する画素数との関係に基づいて、前記加重加算における重み係数を設定するため、ルックアップテーブルに対して設定するパラメータを撮像した被写体の輝度分布に応じたものとすることができる。よって、撮像した被写体の輝度分布に応じたホワイトバランス処理を施すことができる。   Further, after obtaining an evaluation value for each of the color signal changed with the first characteristic with respect to the incident light quantity and the color signal changed with the second characteristic with respect to the incident light quantity, these evaluation values are weighted. By adding, by setting the evaluation value of each color signal, a more accurate evaluation value can be obtained. Therefore, the parameters set for the lookup table can be made with higher accuracy. Further, the weighted addition is performed based on the relationship between the number of pixels that output a signal that has changed with the first characteristic with respect to the incident light amount and the number of pixels that output the signal that has changed with the second characteristic with respect to the incident light amount. In order to set the weighting coefficient in, the parameter set for the lookup table can be set according to the luminance distribution of the imaged subject. Therefore, it is possible to perform white balance processing according to the luminance distribution of the imaged subject.

更に、ルックアップテーブルのパラメータを、階調変換処理するための成分を含めたパラメータとすることにより、ホワイトバランス回路で各色信号に対してホワイトバランス処理を施すとともに階調変換処理を施すことができる。又、ルックアップテーブルを、ゲイン調整処理するための成分を含めたものとすることにより、ホワイトバランス回路で各色信号に対してホワイトバランス処理を施すとともにゲイン調整処理を施すことができる。これらのことより、ホワイトバランス回路において、階調変換処理又はゲイン調整処理を同時に行うことができるので、新たに階調変換処理及びゲイン調整処理を施すための回路を省略することができる。よって、処理速度の高速化及び装置構成の簡略化を可能とする。   Furthermore, by using the parameters of the look-up table as parameters including components for gradation conversion processing, the white balance circuit can perform white balance processing and gradation conversion processing on each color signal. . In addition, when the look-up table includes a component for gain adjustment processing, the white balance circuit can perform white balance processing and gain adjustment processing on each color signal. Thus, since the gradation conversion process or the gain adjustment process can be performed simultaneously in the white balance circuit, a circuit for newly performing the gradation conversion process and the gain adjustment process can be omitted. Therefore, the processing speed can be increased and the apparatus configuration can be simplified.

<撮像装置の構成>
本発明の実施形態である撮像装置の構成について、図1を参照して説明する。図1は、撮像装置の内部構成を示すブロック図である。
<Configuration of imaging device>
A configuration of an imaging apparatus according to an embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram illustrating an internal configuration of the imaging apparatus.

図1の撮像装置は、複数のレンズから構成される光学系1と、光学系1を通じて入射される光の入射光量を電気信号に変換する固体撮像素子2と、固体撮像素子2から出力される電気信号を増幅するアンプ3と、アンプ3で増幅された電気信号をデジタル信号に変換するAD変換回路4と、AD変換回路4からのデジタル信号の最低レベルを設定する黒基準補正回路5と、黒基準補正回路5で黒基準値により補正されたデジタル信号が固体撮像素子2の各画素の感度などによるFPN(固定パターンノイズ:Fixed Pattern Noise)を除去するFPN補正回路6と、FPN補正回路6でFPN除去されたデジタル信号より自動露出制御(AE)及びホワイトバランス(WB)を行うためのそれぞれの評価値を検出するAE・WB評価値検出回路7と、FPN補正回路6でFPN除去されたデジタル信号について色バランスがとれるように各色信号毎に補正を行うWB制御回路8と、WB制御回路8から出力される隣接する複数の画素の色信号に基づいて各色信号の補間を行う色補間回路9と、色補間回路9から出力される各色信号を他の色信号により色合いを各画素毎に補正する色補正回路10と、色補正回路10から出力されるデジタル信号の階調変換を行う階調変換回路11と、階調変換回路11から出力されるデジタル信号についてエッジ強調などの処理を施すコアリング回路12と、各ブロックの制御を行う全体制御部13と、光学系1に備えられる絞り1aによる露光量を制御する絞り制御部14と、固体撮像素子2及びAD変換回路4に動作タイミング用のクロックを与えるタイミング生成回路15と、を備える。   1 is output from an optical system 1 composed of a plurality of lenses, a solid-state image sensor 2 that converts an incident light amount of light incident through the optical system 1 into an electrical signal, and the solid-state image sensor 2. An amplifier 3 for amplifying the electric signal, an AD conversion circuit 4 for converting the electric signal amplified by the amplifier 3 into a digital signal, a black reference correction circuit 5 for setting a minimum level of the digital signal from the AD conversion circuit 4, An FPN correction circuit 6 that removes FPN (Fixed Pattern Noise) due to the sensitivity of each pixel of the solid-state imaging device 2 from the digital signal corrected by the black reference value in the black reference correction circuit 5, and the FPN correction circuit 6 An AE / WB evaluation value detection circuit 7 for detecting respective evaluation values for performing automatic exposure control (AE) and white balance (WB) from the digital signal from which FPN has been removed at Based on the WB control circuit 8 that performs correction for each color signal so that the color balance of the digital signal from which FPN is removed by the FPN correction circuit 6 is obtained, and the color signals of a plurality of adjacent pixels output from the WB control circuit 8. The color interpolation circuit 9 that interpolates each color signal, the color correction circuit 10 that corrects the hue of each color signal output from the color interpolation circuit 9 for each pixel by another color signal, and the color correction circuit 10 output the color signal. A gradation conversion circuit 11 that performs gradation conversion of a digital signal, a coring circuit 12 that performs processing such as edge enhancement on the digital signal output from the gradation conversion circuit 11, and an overall control unit 13 that controls each block An aperture control unit 14 for controlling the exposure amount by the aperture 1 a provided in the optical system 1, and a clock for supplying a clock for operation timing to the solid-state imaging device 2 and the AD conversion circuit 4. It includes a timing generating circuit 15, a.

このように構成される撮像装置においては、光学系1を介して光が各画素毎に異なる色フィルタを備えた固体撮像素子2に入射されると、各画素において光電変換動作が行われ、各画素毎に異なる色信号となるアナログ信号が出力される。即ち、図2のように、RGBによるベイヤ型配列となる色フィルタが固体撮像素子2に設けられるとき、Rとなる色フィルタが設けられた画素からは赤色を表すR信号が、Gとなる色フィルタが設けられた画素からは緑色を表すG信号が、Bとなる色フィルタが設けられた画素からは青色を表すB信号が、それぞれ出力される。尚、固体撮像素子2は、後述するように、全体制御部13によって駆動条件が変更されることにより、線形変換動作と対数変換動作とが切り替わる輝度位置が変更される。これによって、固体撮像素子2のダイナミックレンジを変化する。切換点が低輝度側になるほどダイナミックレンジが広くなる。   In the imaging apparatus configured as described above, when light is incident on the solid-state imaging device 2 having a different color filter for each pixel through the optical system 1, a photoelectric conversion operation is performed in each pixel. An analog signal that is a different color signal for each pixel is output. That is, as shown in FIG. 2, when a color filter having a Bayer array with RGB is provided in the solid-state imaging device 2, an R signal representing red is a color that becomes G from a pixel provided with an R color filter. A G signal representing green is outputted from the pixel provided with the filter, and a B signal representing blue is outputted from the pixel provided with the color filter B. As will be described later, in the solid-state imaging device 2, the luminance position at which the linear conversion operation and the logarithmic conversion operation are switched is changed by changing the drive condition by the overall control unit 13. As a result, the dynamic range of the solid-state imaging device 2 is changed. The dynamic range becomes wider as the switching point becomes the lower luminance side.

この固体撮像素子2からシリアルに出力されるR信号及びG信号及びB信号が、アンプ3において増幅された後、AD変換回路4においてデジタル信号に変換される。このようにデジタル信号に変換されたR信号及びG信号及びB信号が黒基準補正回路5に与えられると、全体制御部13から与えられるダイナミックレンジの大きさに関する情報であるダイナミックレンジデータに基づいて、最低輝度値となる黒レベルが基準値(0)に補正される。即ち、固体撮像素子2のダイナミックレンジによって黒レベルが異なるため、AD変換回路4から出力されるR信号及びG信号及びB信号それぞれの信号レベルに対して、黒レベルとなる信号レベルが減算されることで、基準値補正が行われる。   The R signal, the G signal, and the B signal that are serially output from the solid-state imaging device 2 are amplified by the amplifier 3 and then converted into a digital signal by the AD conversion circuit 4. When the R signal, the G signal, and the B signal thus converted into the digital signal are supplied to the black reference correction circuit 5, based on the dynamic range data that is information on the size of the dynamic range supplied from the overall control unit 13. The black level that is the lowest luminance value is corrected to the reference value (0). That is, since the black level varies depending on the dynamic range of the solid-state imaging device 2, the signal level that becomes the black level is subtracted from the signal levels of the R signal, the G signal, and the B signal output from the AD conversion circuit 4. Thus, the reference value correction is performed.

この黒基準補正が行われたR信号及びG信号及びB信号は、FPN補正回路6において格納しているFPN成分を減算することによって、FPN成分が除去される。このFPN成分は、固体撮像素子2内の各画素を構成するMOSトランジスタの閾値バラツキなどが原因となって生じるオフセットバラツキである。尚、このFPN成分を抽出する際、RGB信号それぞれについて、均一光照射時に固体撮像素子2から出力される各画素に対する画像信号から色フィルタの透過率の差異に基づくオフセットを減算する。このとき、このような各色フィルタの透過率に基づくオフセットを、均一光照射時のRGB信号それぞれの平均値により求めるものとし、この平均値を均一光照射時のRGB信号から減算することで、各画素のFPN成分を抽出するものとしても構わない。このようにFPN成分が除去されたR信号及びG信号及びB信号が、AE・WB評価値検出回路7及びWB制御回路8に与えられる。   The FPN component is removed from the R signal, the G signal, and the B signal subjected to the black reference correction by subtracting the FPN component stored in the FPN correction circuit 6. This FPN component is an offset variation caused by a threshold variation of MOS transistors constituting each pixel in the solid-state imaging device 2. When extracting the FPN component, for each of the RGB signals, an offset based on the difference in transmittance of the color filter is subtracted from the image signal for each pixel output from the solid-state imaging device 2 during uniform light irradiation. At this time, the offset based on the transmittance of each color filter is determined by the average value of each RGB signal at the time of uniform light irradiation, and each average value is subtracted from the RGB signal at the time of uniform light irradiation. The FPN component of the pixel may be extracted. The R signal, G signal, and B signal from which the FPN component has been removed in this way are supplied to the AE / WB evaluation value detection circuit 7 and the WB control circuit 8.

AE・WB評価値検出回路7では、与えられたR信号及びG信号及びB信号より成る画像信号の輝度値を確認することにより、被写体の輝度範囲を表す輝度の平均値分布範囲を算出し、露光量を設定するAE評価値として全体制御部13に送出する。このAE評価値に基づいて全体制御部13が絞り1aの開口度を制御することで、露光量が制御される。又、AE・WB評価値検出回路7では、与えられたR信号及びG信号及びB信号よりそれぞれの輝度比及び輝度差を確認し、ホワイトバランスを行うための基準値であるWB評価値を算出し、全体制御部13に送出する。そして、WB制御回路8では、全体制御部13より与えられるWB評価値及びダイナミックレンジデータに基づいて、R信号及びG信号及びB信号が、同一の光電変換特性となるようにホワイトバランス処理が施される。このAE・WB評価値検出回路7及びWB制御回路8の詳細については後述する。   The AE / WB evaluation value detection circuit 7 calculates the average value distribution range of the luminance representing the luminance range of the subject by confirming the luminance value of the image signal composed of the given R signal, G signal, and B signal, It is sent to the overall control unit 13 as an AE evaluation value for setting the exposure amount. Based on this AE evaluation value, the overall control unit 13 controls the aperture of the diaphragm 1a, whereby the exposure amount is controlled. The AE / WB evaluation value detection circuit 7 confirms the respective luminance ratios and luminance differences from the given R, G, and B signals, and calculates a WB evaluation value that is a reference value for white balance. And sent to the overall control unit 13. The WB control circuit 8 performs white balance processing based on the WB evaluation value and dynamic range data given from the overall control unit 13 so that the R signal, the G signal, and the B signal have the same photoelectric conversion characteristics. Is done. Details of the AE / WB evaluation value detection circuit 7 and the WB control circuit 8 will be described later.

WB制御回路8でホワイトバランス処理が施されたR信号及びG信号及びB信号は、色補間回路9において色補間処理が施される。図2のようなRGBによるベイヤ型配列となる色フィルタが固体撮像素子2に設けられているとき、各画素から出力される色信号は、その画素が設けられる色フィルタによる色信号のみである。よって、色補間回路9において、他の色信号が隣接する画素の色信号により生成されることで、色補間処理が施される。   The R, G, and B signals that have been subjected to white balance processing by the WB control circuit 8 are subjected to color interpolation processing by the color interpolation circuit 9. When a color filter having a Bayer-type arrangement using RGB as shown in FIG. 2 is provided in the solid-state imaging device 2, the color signal output from each pixel is only the color signal from the color filter provided with the pixel. Therefore, the color interpolation circuit 9 performs color interpolation processing by generating other color signals from the color signals of adjacent pixels.

そして、RGBそれぞれの色フィルタが各画素G11〜G44に図2のように配列されているとき、画素G11,G31,G13,G33からR信号r11,r31,r13,r33が、画素G21,G41,G12,G32,G23,G43,G14,G34からG信号g21,g41,g12,g32,g23,g43,g14,g34が、画素G22,G42,G24,G44からB信号b22,b42,b24,b44が、出力される。このとき、画素G22,G23,G32,G33のRGB信号が、以下の式のように表される。   When the RGB color filters are arranged in the pixels G11 to G44 as shown in FIG. 2, the R signals r11, r31, r13, and r33 are converted from the pixels G11, G31, G13, and G33 to the pixels G21, G41, and G33, respectively. G12, G32, G23, G43, G14, G34 to G signals g21, g41, g12, g32, g23, g43, g14, g34, and pixels G22, G42, G24, G44 to B signals b22, b42, b24, b44 Is output. At this time, RGB signals of the pixels G22, G23, G32, and G33 are expressed by the following equations.

画素G22のR信号r22、G信号g22、B信号b22
r22=(r11+r31+r13+r33)/4
g22=(g21+g12+g32+g23)/4
b22=b22
画素G32のR信号r32、G信号g32、B信号b32
r32=(r31+r33)/2
g32=g32
b32=(b22+b42)/2
画素G23のR信号r23、G信号g23、B信号b23
r23=(r13+r33)/2
g23=g23
b23=(b22+b24)/2
画素G33のR信号r33、G信号g33、B信号b33
r33=r33
g33=(g32+g23+g43+g34)/4
b33=(b22+b42+b24+b44)/4。
R signal r22, G signal g22, B signal b22 of pixel G22
r22 = (r11 + r31 + r13 + r33) / 4
g22 = (g21 + g12 + g32 + g23) / 4
b22 = b22
R signal r32, G signal g32, B signal b32 of the pixel G32
r32 = (r31 + r33) / 2
g32 = g32
b32 = (b22 + b42) / 2
R signal r23, G signal g23, B signal b23 of pixel G23
r23 = (r13 + r33) / 2
g23 = g23
b23 = (b22 + b24) / 2
R signal r33, G signal g33, B signal b33 of pixel G33
r33 = r33
g33 = (g32 + g23 + g43 + g34) / 4
b33 = (b22 + b42 + b24 + b44) / 4.

このように色補間処理を行うことで、各画素毎にRGB信号が得られると、各画素のRGB信号が色補正回路10に与えられ、各画素の色合いを強調するための色補正処理が施される。このとき、RGB信号はそれぞれ、他の色信号の値により色補正が施される。即ち、画素GklのRGB信号rkl,gkl,bklを以下の式に代入することによって、色合い補正が施された画素GklのRGB信号rxkl,gxkl,bxklが生成される。この際、によるマトリックス係数が、全体制御部13から入力されるダイナミックレンジ制御信号に基づいて切り換えられて、各画素のRGB信号による色合いが強調される。
rxkl=a1×rkl+a2×gkl+a3×bkl
gxkl=b1×rkl+b2×gkl+b3×bkl
bxkl=c1×rkl+c2×gkl+c3×bkl。
When the RGB signal is obtained for each pixel by performing the color interpolation processing in this way, the RGB signal of each pixel is given to the color correction circuit 10 and the color correction processing for emphasizing the hue of each pixel is performed. Is done. At this time, each of the RGB signals is subjected to color correction by the values of other color signals. That is, by substituting the RGB signals rkl, gkl, bkl of the pixel Gkl into the following expression, the RGB signals rxkl, gxkl, bxkl of the pixel Gkl subjected to the hue correction are generated. At this time, the matrix coefficient is switched based on the dynamic range control signal input from the overall control unit 13, and the color tone of the RGB signal of each pixel is emphasized.
rxkl = a1 * rkl + a2 * gkl + a3 * bkl
gxkl = b1 * rkl + b2 * gkl + b3 * bkl
bxkl = c1 * rkl + c2 * gkl + c3 * bkl.

色補正回路10で色補正が施されたRGB信号は、階調変換回路11に与えられて、適切な出力レベルとなるように、全体制御部13から入力されるダイナミックレンジ制御信号及びAE評価値に基づいて、γカーブに基づく変化やデジタルゲインの変化により階調特性を変化させる。そして、エッジ成分に対して図3に示すように基準信号レベルからみて所定範囲内の出力をすべて基準信号レベルに変換するレベル変換特性を備えるコアリング回路12において、RGB信号それぞれに重畳したノイズ成分が除去されるとともに、エッジ成分が抽出されてエッジ強調処理が施される。   The RGB signal subjected to the color correction by the color correction circuit 10 is given to the gradation conversion circuit 11 so that the dynamic range control signal and the AE evaluation value are input from the overall control unit 13 so as to obtain an appropriate output level. Based on the above, the gradation characteristics are changed by a change based on the γ curve or a change in digital gain. Then, as shown in FIG. 3, with respect to the edge component, the noise component superimposed on each of the RGB signals in the coring circuit 12 having level conversion characteristics for converting all outputs within a predetermined range to the reference signal level as seen from the reference signal level. Are removed, and edge components are extracted and subjected to edge enhancement processing.

<固体撮像素子の構成例>
図1のように構成される撮像装置における固体撮像素子2の構成について、図面を参照して説明する。図4は、本例の固体撮像素子の一部の構成を概略的に示すブロック図であり、図5は、各画素の構成を示す回路図である。
<Configuration example of solid-state imaging device>
The configuration of the solid-state imaging device 2 in the imaging apparatus configured as shown in FIG. 1 will be described with reference to the drawings. FIG. 4 is a block diagram schematically showing a part of the configuration of the solid-state imaging device of this example, and FIG. 5 is a circuit diagram showing the configuration of each pixel.

固体撮像素子2は、図4に示すように、G11〜Gmnは行列配置(マトリクス配置)された画素を示している。21は垂直走査回路であり、各画素に信号φVを与える行(ライン)23−1,23−2,・・・,23−nを順次走査していくとともに、ライン24−1,24−2,・・・,24−nを介して各画素に信号φVDを、ライン25−1,25−2,・・・,25−nを介して各画素に信号φVPSを、それぞれ与える。22は水平走査回路であり、画素から出力信号線26−1,26−2,・・・,26−mに導出された光電変換信号を画素ごとに水平方向に順次読み出す。20は電源ラインである。各画素に対し、上記ライン23−1〜23−n,24−1〜24−n,25−1〜25−nや出力信号線26−1〜26−m、電源ライン20だけでなく、他のライン(例えば、クロックラインやバイアス供給ライン等)も接続されるが、図4ではこれらについて省略する。   As shown in FIG. 4, in the solid-state imaging device 2, G11 to Gmn represent pixels arranged in a matrix (matrix arrangement). Reference numeral 21 denotes a vertical scanning circuit, which sequentially scans rows (lines) 23-1, 23-2,..., 23-n that apply a signal φV to each pixel and lines 24-1 and 24-2. ,..., 24-n, and a signal φVD is applied to each pixel via lines 25-1, 25-2,. A horizontal scanning circuit 22 sequentially reads out photoelectric conversion signals derived from the pixels to the output signal lines 26-1, 26-2, ..., 26-m in the horizontal direction for each pixel. Reference numeral 20 denotes a power supply line. For each pixel, not only the lines 23-1 to 23-n, 24-1 to 24-n, 25-1 to 25-n, the output signal lines 26-1 to 26-m, and the power supply line 20, but also These lines (for example, a clock line and a bias supply line) are also connected, but these are omitted in FIG.

又、出力信号線26−1〜26−mのそれぞれには、定電流源27−1〜27−mが接続されるとともに、信号線26−1〜26−mのそれぞれを介して与えられる画素G11〜Gmnから与えられる画像信号とノイズ信号をサンプルホールドする選択回路28−1〜28−mが設けられる。そして、補正回路29に選択回路28−1〜28−mから画像信号及びノイズ信号が順に送出されると、この補正回路29で補正処理が行われて、ノイズ除去された画像信号が外部に出力される。尚、定電流源27−1〜27−mの一端に直流電圧VPSが印加される。   Also, constant current sources 27-1 to 27-m are connected to the output signal lines 26-1 to 26-m, and pixels are provided via the signal lines 26-1 to 26-m, respectively. Selection circuits 28-1 to 28-m for sample-holding image signals and noise signals supplied from G11 to Gmn are provided. Then, when the image signal and the noise signal are sequentially transmitted from the selection circuits 28-1 to 28-m to the correction circuit 29, the correction circuit 29 performs correction processing and outputs the image signal from which noise has been removed to the outside. Is done. The DC voltage VPS is applied to one end of the constant current sources 27-1 to 27-m.

このような固体撮像素子において、画素Gab(a:1≦a≦mの自然数、b:1≦b≦nの自然数)からの出力となる画像信号及びノイズ信号が、それぞれ、出力信号線26−aを介して出力されるとともに、この出力信号線26−aに接続された定電流源27−aによって増幅される。そして、画素Gabから出力された画像信号及びノイズ信号が順番に選択回路28−aに送出されるとともに、この選択回路28−aにおいて、送出された画像信号及びノイズ信号がサンプルホールドされる。その後、選択回路28−aより、サンプルホールドされた画像信号が補正回路29に送出された後、同じくサンプルホールドされたノイズ信号が補正回路29に送出される。補正回路29では、選択回路28−aより与えられた画像信号を、同じく選択回路28−aより与えられたノイズ信号に基づいて補正処理して、ノイズ除去した画像信号をアンプ3に出力する。   In such a solid-state imaging device, an image signal and a noise signal output from the pixel Gab (a natural number of a: 1 ≦ a ≦ m, b: 1 ≦ b ≦ n) are respectively output signal lines 26- The signal is output via a and amplified by a constant current source 27-a connected to the output signal line 26-a. The image signal and noise signal output from the pixel Gab are sequentially sent to the selection circuit 28-a, and the sent image signal and noise signal are sampled and held in the selection circuit 28-a. Thereafter, after the sampled and held image signal is sent to the correction circuit 29 from the selection circuit 28-a, the same sampled and held noise signal is sent to the correction circuit 29. The correction circuit 29 corrects the image signal given from the selection circuit 28-a based on the noise signal similarly given from the selection circuit 28-a, and outputs the noise-removed image signal to the amplifier 3.

このような構成の固体撮像素子2において、画素G11〜Gmnは、図5に示すように、カソードに直流電圧VPDが印加されたフォトダイオードPDのアノードにMOSトランジスタT1のドレインが接続され、MOSトランジスタT1のソースにMOSトランジスタT2のゲート及びドレインとMOSトランジスタT3のゲートが接続される。又、MOSトランジスタT3のソースにMOSトランジスタT4のゲート及びMOSトランジスタT5のドレインが接続され、MOSトランジスタT4のソースにMOSトランジスタT6のドレインが接続される。そして、MOSトランジスタT6のソースが出力信号線26(図4の出力信号線26−1〜26−mに相当する)に接続される。尚、MOSトランジスタT1〜T6は、PチャネルのMOSトランジスタである。   In the solid-state imaging device 2 having such a configuration, as shown in FIG. 5, the pixels G11 to Gmn have the drain of the MOS transistor T1 connected to the anode of the photodiode PD to which the DC voltage VPD is applied to the cathode. The gate and drain of the MOS transistor T2 and the gate of the MOS transistor T3 are connected to the source of T1. The gate of the MOS transistor T4 and the drain of the MOS transistor T5 are connected to the source of the MOS transistor T3, and the drain of the MOS transistor T6 is connected to the source of the MOS transistor T4. The source of the MOS transistor T6 is connected to the output signal line 26 (corresponding to the output signal lines 26-1 to 26-m in FIG. 4). The MOS transistors T1 to T6 are P-channel MOS transistors.

MOSトランジスタT2のソースにはライン25(図4のライン25−1〜25−nに相当する)を介して信号φVPSが入力され、MOSトランジスタT3,T4のドレインに直流電圧VPDが印加される。又、MOSトランジスタT3のソースには、その一端にライン24(図4のライン24−1〜24−nに相当する)を介して信号φVDが与えられるキャパシタCの他端が接続される。又、MOSトランジスタT5のソースには直流電圧VRGが入力され、そのゲートに信号φRSが入力される。更に、MOSトランジスタT1,T6のゲートにはそれぞれ、信号φS,φVが入力される。   The signal φVPS is input to the source of the MOS transistor T2 via the line 25 (corresponding to the lines 25-1 to 25-n in FIG. 4), and the DC voltage VPD is applied to the drains of the MOS transistors T3 and T4. Further, the other end of the capacitor C to which the signal φVD is applied via the line 24 (corresponding to the lines 24-1 to 24-n in FIG. 4) is connected to the source of the MOS transistor T3. The DC voltage VRG is input to the source of the MOS transistor T5, and the signal φRS is input to the gate thereof. Further, signals φS and φV are input to the gates of the MOS transistors T1 and T6, respectively.

尚、信号φVPSは2値の電圧信号で、入射光量が所定値を超えたときにMOSトランジスタT2をサブスレッショルド領域で動作させるための電圧をVLとし、又、この電圧よりも高くMOSトランジスタT2を導通状態にする電圧をVHとする。又、信号φVDは、3値の電圧信号であり、キャパシタCを積分動作させる際の電圧値を最も高いVhとし、画像信号読み出し時の電圧値をVhよりも低いVmとし、ノイズ信号読み出し時の電圧値をVmよりも低いVlとする。   The signal φVPS is a binary voltage signal. When the amount of incident light exceeds a predetermined value, the voltage for operating the MOS transistor T2 in the subthreshold region is VL, and the voltage higher than this voltage is used for the MOS transistor T2. The voltage for making the conductive state is VH. The signal φVD is a ternary voltage signal, the voltage value when integrating the capacitor C is set to the highest Vh, the voltage value when reading the image signal is set to Vm lower than Vh, and the noise signal is read The voltage value is set to Vl lower than Vm.

このように構成される固体撮像素子2における画素G11〜Gmnの動作について、図6のタイムチャートを参照して説明する。まず、電圧値Vmのパルス信号φVDとパルス信号φVが与えられて画像信号が出力されると、信号φVDをVhとした後、信号φSをハイにしてMOSトランジスタT1をOFFにして、リセット動作が始まる。次に、MOSトランジスタT2のソースに与える信号φVPSをVHにして、MOSトランジスタT2のソース電圧を高くすることで、MOSトランジスタT2のゲート及びドレイン、そしてMOSトランジスタT3のゲートに蓄積された負の電荷が速やかに再結合される。このとき、信号φRSをローとして、MOSトランジスタT5をONにして、キャパシタCとMOSトランジスタT4のゲートとの接続ノードの電圧を初期化する。   The operation of the pixels G11 to Gmn in the solid-state imaging device 2 configured as described above will be described with reference to the time chart of FIG. First, when a pulse signal φVD having a voltage value Vm and a pulse signal φV are supplied and an image signal is output, the signal φVD is set to Vh, then the signal φS is set high to turn off the MOS transistor T1, and the reset operation is performed. Begins. Next, the signal φVPS applied to the source of the MOS transistor T2 is set to VH, and the source voltage of the MOS transistor T2 is increased, so that the negative charge accumulated in the gate and drain of the MOS transistor T2 and the gate of the MOS transistor T3. Are quickly recombined. At this time, the signal φRS is set to low, the MOS transistor T5 is turned on, and the voltage at the connection node between the capacitor C and the gate of the MOS transistor T4 is initialized.

そして、MOSトランジスタT2のソースに与える信号φVPSをVLにして、MOSトランジスタT2のポテンシャル状態を基の状態に戻した後、信号φRSをハイにして、MOSトランジスタT5をOFFにする。その後、キャパシタCが積分動作を行って、キャパシタCとMOSトランジスタT4のゲートとの接続ノードの電圧が、リセットされたMOSトランジスタT2のゲート電圧に応じたものとなる。そして、パルス信号φVをMOSトランジスタT6のゲートに与えてMOSトランジスタT6をONにするとともに信号φVDの電圧値をVlにする。このとき、MOSトランジスタT4がソースフォロワ型のMOSトランジスタとして動作するため、出力信号線26にはノイズ信号が電圧信号として現れる。その後、再び、パルス信号φRSをMOSトランジスタT5に与えて、キャパシタCとMOSトランジスタT4のゲートとの接続ノードの電圧をリセットした後、信号φSをローにしてMOSトランジスタT1を導通させて撮像動作が行える状態にする。   Then, the signal φVPS applied to the source of the MOS transistor T2 is set to VL to return the potential state of the MOS transistor T2 to the original state, and then the signal φRS is set to high to turn off the MOS transistor T5. Thereafter, the capacitor C performs an integration operation, and the voltage at the connection node between the capacitor C and the gate of the MOS transistor T4 becomes in accordance with the reset gate voltage of the MOS transistor T2. Then, the pulse signal φV is applied to the gate of the MOS transistor T6 to turn on the MOS transistor T6 and set the voltage value of the signal φVD to Vl. At this time, since the MOS transistor T4 operates as a source follower type MOS transistor, a noise signal appears on the output signal line 26 as a voltage signal. Thereafter, the pulse signal φRS is again applied to the MOS transistor T5 to reset the voltage at the connection node between the capacitor C and the gate of the MOS transistor T4, and then the signal φS is set low to turn on the MOS transistor T1 to perform the imaging operation. Make it ready.

このようにノイズ信号が出力された後、MOSトランジスタT1がONとされると、撮像動作が開始される。このとき、信号φRSをハイとして、MOSトランジスタT5をOFFとする。又、MOSトランジスタT2のソースに与える信号φVPSをVLとするとともに、キャパシタCに与える信号φVDの電圧値をVhとして、積分動作を行うようにする。そして、フォトダイオードPDより入射光量に応じた光電荷がMOSトランジスタT2に流れ込むと、MOSトランジスタT2はカットオフ状態であるので、光電荷がMOSトランジスタT2のゲートに蓄積される。   After the noise signal is output in this way, the imaging operation is started when the MOS transistor T1 is turned on. At this time, the signal φRS is set high and the MOS transistor T5 is turned off. Further, the signal φVPS applied to the source of the MOS transistor T2 is set to VL, and the voltage value of the signal φVD applied to the capacitor C is set to Vh to perform the integration operation. When photocharge corresponding to the amount of incident light flows from the photodiode PD into the MOS transistor T2, the MOS transistor T2 is in a cut-off state, so that the photocharge is accumulated at the gate of the MOS transistor T2.

よって、撮像する被写体の輝度が低くフォトダイオードPDに入射される入射光量が少ない場合は、MOSトランジスタT2のゲートに蓄積された光電荷量に応じた電圧がMOSトランジスタT2のゲートに現れるため、入射光量の積分値に対して線形的に変化する電圧がMOSトランジスタT3のゲートに現れる。又、撮像する被写体の輝度が高くフォトダイオードPDに入射される入射光量が多く、MOSトランジスタT2のゲートに蓄積された光電荷量に応じた電圧が高くなると、MOSトランジスタT2がサブスレッショルド領域で動作を行うため、入射光量に対して自然対数的に変化する電圧がMOSトランジスタT3のゲートに現れる。   Therefore, when the brightness of the subject to be imaged is low and the amount of incident light entering the photodiode PD is small, a voltage corresponding to the amount of photocharge accumulated at the gate of the MOS transistor T2 appears at the gate of the MOS transistor T2, A voltage that changes linearly with respect to the integrated value of the amount of light appears at the gate of the MOS transistor T3. Also, when the luminance of the subject to be imaged is high and the amount of incident light entering the photodiode PD is large, and the voltage according to the amount of photocharge accumulated at the gate of the MOS transistor T2 increases, the MOS transistor T2 operates in the subthreshold region. Therefore, a voltage that changes logarithmically with respect to the amount of incident light appears at the gate of the MOS transistor T3.

この入射光量に対して線形的に又は自然対数的に変化する電圧がMOSトランジスタT3で電流増幅されたドレイン電流がキャパシタCから流れるため、MOSトランジスタT4のゲート電圧が、入射光量の積分値に対して線形的又は自然対数的に変化する電圧となる。そして、信号φVDの電圧値をVmとするとともに、MOSトランジスタT6にパルス信号φVを与えることで、MOSトランジスタT4のゲート電圧に応じたソース電流が、MOSトランジスタT6を介して出力信号線6へ流れる。このとき、MOSトランジスタT4がソースフォロワ型のMOSトランジスタとして動作するため、出力信号線6には画像信号が電圧信号として現れる。その後、信号φVをハイにしてMOSトランジスタT6をOFFにするとともに、信号φVDの電圧値をVhとする。   Since a drain current that is linearly or naturally logarithmically changed with respect to the incident light amount flows from the capacitor C, the gate voltage of the MOS transistor T4 is set to the integrated value of the incident light amount. Thus, the voltage changes linearly or in a natural logarithm. Then, by setting the voltage value of the signal φVD to Vm and applying the pulse signal φV to the MOS transistor T6, a source current corresponding to the gate voltage of the MOS transistor T4 flows to the output signal line 6 via the MOS transistor T6. . At this time, since the MOS transistor T4 operates as a source follower type MOS transistor, an image signal appears as a voltage signal on the output signal line 6. Thereafter, the signal φV is set high to turn off the MOS transistor T6, and the voltage value of the signal φVD is set to Vh.

このように動作するとき、撮像時の信号φVPSの電圧値VLが低くなり、リセット時の信号φVPSの電圧値VHとの差を大きくするほど、MOSトランジスタT2のゲート・ソース間のポテンシャルの差が大きくなり、MOSトランジスタT2がカットオフ状態で動作する被写体輝度の割合が大きくなる。よって、図7のように、電圧値VLが低いほど、線形変換する被写体輝度の割合が大きくなる。そこで、例えば、被写体の輝度範囲を検出し、被写体の輝度範囲が狭いと電圧値VLを低くして、線形変換する輝度範囲を広くし、又、被写体の輝度範囲が広いと電圧値VLを高くして、対数変換する輝度範囲を広くすることで、被写体の特性に合った光電変換特性とすることができる。尚、電圧値VLを最小とするとき、常に線形変換する状態とし、又、電圧値VLを最大とするとき、常に対数変換する状態とすることもできる。   When operating in this way, the voltage value VL of the signal φVPS at the time of imaging decreases, and the potential difference between the gate and the source of the MOS transistor T2 increases as the difference from the voltage value VH of the signal φVPS at the time of reset increases. The ratio of subject luminance at which the MOS transistor T2 operates in the cutoff state increases. Therefore, as shown in FIG. 7, the lower the voltage value VL, the larger the ratio of subject luminance to be linearly converted. Therefore, for example, the luminance range of the subject is detected, and if the luminance range of the subject is narrow, the voltage value VL is lowered to widen the luminance range for linear conversion, and if the luminance range of the subject is wide, the voltage value VL is increased. By widening the luminance range for logarithmic conversion, photoelectric conversion characteristics that match the characteristics of the subject can be obtained. It should be noted that when the voltage value VL is minimized, it is possible to always perform linear conversion. When the voltage value VL is maximized, it is possible to always perform logarithmic conversion.

このように動作する固体撮像素子2の画素G11〜Gmnに与える信号φVPSの電圧値VLの値を全体制御部13が切り換えることによって、被写体の輝度範囲などに応じてダイナミックレンジを切り換えられる固体撮像素子2とすることができる。即ち、全体制御部13が信号φVPSの電圧値VLの値を切り換えることで、固体撮像素子2の画素G11〜Gmnにおける線形変換動作から対数変換動作へ切り替わる変極点(輝度値)を設定することができる。尚、撮像時に対数変換動作に変わるときのMOSトランジスタT2のゲート電圧に至るまでにMOSトランジスタT2に流れ込む光電荷量が、全ての画素において等しい。   The solid-state image pickup device in which the dynamic range can be switched according to the luminance range of the subject by the overall control unit 13 switching the voltage value VL of the signal φVPS given to the pixels G11 to Gmn of the solid-state image pickup device 2 operating in this way. 2 can be used. That is, the inflection point (luminance value) for switching from the linear conversion operation to the logarithmic conversion operation in the pixels G11 to Gmn of the solid-state imaging device 2 can be set by switching the voltage value VL of the signal φVPS. it can. Note that the amount of photoelectric charge flowing into the MOS transistor T2 until reaching the gate voltage of the MOS transistor T2 when changing to the logarithmic conversion operation at the time of imaging is the same in all the pixels.

尚、本構成例では、図5のように構成される画素を備えた固体撮像素子としたが、このような構成に限られるものではなく、線形変換動作と対数変換動作を各画素において自動的に切り換えることが可能なものであれば、特許文献2に示されるような構成の画素などのような他の構成の画素より構成されるものとしても構わない。又、撮像時の信号φVPSの電圧値VLを変更することで線形変換動作と対数変換動作との変極点を変更するものとしたが、リセット時の信号φVPSの電圧値VHを変更することで線形変換動作と対数変換動作との変極点を変更するものとしても構わない。又、リセット時間を変更することで上記変極点を変更するものとしても構わない。更に、各画素にRGBフィルタを備えるものとしたが、シアン(Cyan)、マゼンタ(Magenta)、イエロー(Yellow)などの他の色フィルタを備えるものとしても構わない。   In this configuration example, a solid-state imaging device including pixels configured as shown in FIG. 5 is used. However, the present invention is not limited to this configuration, and linear conversion operation and logarithmic conversion operation are automatically performed in each pixel. As long as it can be switched to the above, it may be composed of pixels having other configurations such as a pixel having a configuration as shown in Patent Document 2. In addition, the inflection point between the linear conversion operation and the logarithmic conversion operation is changed by changing the voltage value VL of the signal φVPS at the time of imaging. However, the linear value can be changed by changing the voltage value VH of the signal φVPS at the time of resetting. The inflection point between the conversion operation and the logarithmic conversion operation may be changed. The inflection point may be changed by changing the reset time. Further, although each pixel is provided with an RGB filter, other color filters such as cyan, magenta, and yellow may be provided.

<AE・WB評価値検出回路の第1例>
図1のように構成される撮像装置におけるAE・WB評価値検出回路の第1例について、図面を参照して以下に詳細に説明する。図8は、本例のAE・WB評価値検出回路の内部構成を示すブロック図である。
<First Example of AE / WB Evaluation Value Detection Circuit>
A first example of the AE / WB evaluation value detection circuit in the imaging apparatus configured as shown in FIG. 1 will be described in detail below with reference to the drawings. FIG. 8 is a block diagram showing the internal configuration of the AE / WB evaluation value detection circuit of this example.

本例のAE・WB評価値検出回路7は、図8に示すように、FPN補正回路6でFPN成分が除去されたRGB信号それぞれが与えられるとともに線形変換又は対数変換のいずれが施された信号であるかを確認する光電変換特性判別部71r,71g,71bと、線形変換された(線形変換特性を備えた)RGB信号それぞれの平均値r1av,g1av,b1avを求める平均値演算部72r,72g,72bと、対数変換された(対数変換特性を備えた)RGB信号それぞれの平均値r2av,g2av,b2avを求める平均値演算部73r,73g,73bと、平均値演算部72r,72gそれぞれから与えられるRG信号それぞれの平均値r1av,g1avよりR信号に対するWB評価値wr1を求めるWB評価値演算部74rと、平均値演算部72g,72bそれぞれから与えられるGB信号それぞれの平均値g1av,b1avよりB信号に対するWB評価値wb1を求めるWB評価値演算部74bと、平均値演算部73r,73gそれぞれから与えられるRG信号それぞれの平均値r2av,g2avよりR信号に対するWB評価値wr2を求めるWB評価値演算部75rと、平均値演算部73g,73bそれぞれから与えられるGB信号それぞれの平均値g2av,b2avよりB信号に対するWB評価値wb2を求めるWB評価値演算部75bと、WB評価値演算部74r,75rそれぞれからのWB評価値wr1,wr2を加重加算することによってR信号に対するWB評価値wrを生成して全体制御部13に出力する加重加算部76rと、WB評価値演算部74b,75bそれぞれからのWB評価値wb1,wb2を加重加算することによってB信号に対するWB評価値wbを生成して全体制御部13に出力する加重加算部76bと、を備える。   As shown in FIG. 8, the AE / WB evaluation value detection circuit 7 of this example is provided with each of the RGB signals from which the FPN component has been removed by the FPN correction circuit 6 and is subjected to either linear conversion or logarithmic conversion. Photoelectric conversion characteristic discriminating units 71r, 71g, 71b for confirming whether or not, and average value calculation units 72r, 72g for obtaining average values r1av, g1av, b1av of the RGB signals subjected to linear conversion (with linear conversion characteristics) , 72b, and average value calculation units 73r, 73g, 73b for obtaining the average values r2av, g2av, b2av of the logarithmically converted RGB signals (having logarithmic conversion characteristics), and average value calculation units 72r, 72g, respectively. A WB evaluation value calculation unit 74r for obtaining a WB evaluation value wr1 for the R signal from the average values r1av and g1av of the RG signals, and an average value calculation unit 72g , 72b, a WB evaluation value calculation unit 74b for obtaining a WB evaluation value wb1 for the B signal from the average values g1av, b1av of the GB signals respectively received from the respective GB signals, and average values of the RG signals supplied from the average value calculation units 73r, 73g, respectively. The WB evaluation value calculation unit 75r for obtaining the WB evaluation value wr2 for the R signal from r2av and g2av, and the WB evaluation value wb2 for the B signal from the average values g2av and b2av of the GB signals given from the average value calculation units 73g and 73b, respectively. The WB evaluation value wr for the R signal is generated by weighted addition of the WB evaluation value calculation unit 75b to be obtained and the WB evaluation values wr1 and wr2 from the WB evaluation value calculation units 74r and 75r, respectively, and output to the overall control unit 13. WB evaluations from the weighted addition unit 76r and the WB evaluation value calculation units 74b and 75b, respectively. And a weighted addition unit 76b outputs the total control unit 13 generates a WB evaluation value wb for the B signal by weighted addition value wb1, wb2.

又、全体制御部13は、図9に示すように、固体撮像素子2のダイナミックレンジを調整するとともにタイミング生成回路15から出力されるクロックのタイミングを制御するセンサ駆動部131と、AE・WB評価値検出回路7で検出されたAE評価値及びWB評価値に従ってセンサ駆動部131を制御するとともにWB制御回路8に与えるデータを生成するマイコン132と、固体撮像素子2のダイナミックレンジに応じた換言すれば線形変換特性と対数変換特性との切換点の位置に応じた光電変換特性を与えるデータを格納するメモリ133と、を備える。マイコン132は、例えば、被写体の輝度範囲に応じて適切なダイナミックレンジが得られるように固体撮像素子2のダイナミックレンジを変更するためのダイナミックレンジ制御信号をセンサ駆動部131に与える。センサ駆動部131はこのダイナミックレンジ制御信号に基づいて駆動条件を変更し、固体撮像素子2のダイナミックレンジを変更する。   Further, as shown in FIG. 9, the overall control unit 13 adjusts the dynamic range of the solid-state imaging device 2 and controls the timing of the clock output from the timing generation circuit 15, and AE / WB evaluation. In other words, the microcomputer 132 controls the sensor driving unit 131 according to the AE evaluation value and the WB evaluation value detected by the value detection circuit 7 and generates data to be given to the WB control circuit 8, in other words, according to the dynamic range of the solid-state imaging device 2. For example, a memory 133 that stores data that provides photoelectric conversion characteristics according to the position of the switching point between the linear conversion characteristic and the logarithmic conversion characteristic. For example, the microcomputer 132 provides the sensor driving unit 131 with a dynamic range control signal for changing the dynamic range of the solid-state imaging device 2 so that an appropriate dynamic range can be obtained according to the luminance range of the subject. The sensor driving unit 131 changes the driving condition based on the dynamic range control signal, and changes the dynamic range of the solid-state imaging device 2.

図8のように構成されるAE・WB評価値検出回路7の動作について、図面を参照して以下に説明する。まず、光電変換特性判別部71r,71g,71bそれぞれに、FPN補正回路6でFPN成分が除去されたRGB信号が与えられる。このように入力されるRGB信号の典型例を図10に示す。尚、図10は、輝度値に対するRGB信号の信号レベルの関係を表したグラフで、輝度値は対数値で表される。即ち、全体制御部13のマイコン132からのダイナミックレンジ制御信号によってセンサ駆動部131から上述の固体撮像素子2へ与える信号φVPSの電圧VLを設定されるとき、黒基準補正回路5やFPN補正回路6でオフセットを除くため、信号φVPSの電圧VLによって決定する各画素のMOSトランジスタT2の動作が切り替わるポテンシャル位置を略等しいものとすることができる。よって、図10のように、RGB信号それぞれにおいて、線形変換特性から対数変換特性に切り替わる変極点となる信号レベルが等しくなる。 The operation of the AE / WB evaluation value detection circuit 7 configured as shown in FIG. 8 will be described below with reference to the drawings. First, the RGB signal from which the FPN component has been removed by the FPN correction circuit 6 is given to each of the photoelectric conversion characteristic discriminating units 71r, 71g, 71b. A typical example of the RGB signal input in this way is shown in FIG. FIG. 10 is a graph showing the relationship of the signal level of the RGB signal with respect to the luminance value, and the luminance value is represented by a logarithmic value. That is, when the voltage VL of the signal φVPS supplied from the sensor driving unit 131 to the solid-state imaging device 2 is set by the dynamic range control signal from the microcomputer 132 of the overall control unit 13, the black reference correction circuit 5 and the FPN correction circuit 6 are set. In order to eliminate the offset, the potential positions at which the operation of the MOS transistor T2 of each pixel determined by the voltage VL of the signal φVPS is switched can be made substantially equal. Therefore, as shown in FIG. 10, in each of the RGB signals, the signal level that becomes an inflection point at which the linear conversion characteristic is switched to the logarithmic conversion characteristic becomes equal.

このRGB信号における線形変換特性から対数変換特性に切り替わる変極点となる信号レベルを閾値レベルVthとする。そして、全体制御部13のセンサ駆動部131によって上述の固体撮像素子2へ与える信号φVPSの電圧VLを設定されるとき、この閾値レベルVthが、ダイナミックレンジデータとして、全体制御部13のマイコン132から光電変換特性判別部71r,71g,71bそれぞれに与えられる。よって、光電変換特性判別部71r,71g,71bでは、信号レベルが閾値レベルVthより高ければ対数変換された信号であると判断し、信号レベルが閾値レベルVth以下の場合は線形変換された信号であると判断する。尚、信号レベルが、閾値レベルVth以上のときに対数変換された信号であると判断し、閾値レベルVthより低いときに線形変換された信号であると判断するようにしても良い。以下の説明についても同様である。 A signal level serving as an inflection point at which the linear conversion characteristic in the RGB signal is switched to the logarithmic conversion characteristic is defined as a threshold level Vth. When the voltage VL of the signal φVPS to be given to the solid-state imaging device 2 is set by the sensor driving unit 131 of the overall control unit 13, this threshold level Vth is obtained from the microcomputer 132 of the overall control unit 13 as dynamic range data. It is given to each of the photoelectric conversion characteristic discriminating units 71r, 71g, 71b. Therefore, the photoelectric conversion characteristic discriminating units 71r, 71g, 71b determine that the signal level is logarithmically converted if the signal level is higher than the threshold level Vth, and if the signal level is equal to or lower than the threshold level Vth, the signal is linearly converted. Judge that there is. The signal level may be determined to be a logarithmically converted signal when it is equal to or higher than the threshold level Vth, and may be determined to be a linearly converted signal when the signal level is lower than the threshold level Vth. The same applies to the following description.

そして、光電変換特性判別部71rにおいて信号レベルが閾値レベルVth以下で線形変換された信号であると判断されたR信号は、平均値演算部72rに与えられ、又、光電変換特性判別部71rにおいて信号レベルが閾値レベルVthより高く対数変換された信号であると判断されたR信号は、平均値演算部73rに与えられる。同様に、光電変換特性判別部71gにおいて信号レベルが閾値レベルVth以下で線形変換された信号であると判断されたG信号は、平均値演算部72gに与えられ、又、光電変換特性判別部71gにおいて信号レベルが閾値レベルVthより高く対数変換された信号であると判断されたG信号は、平均値演算部73gに与えられる。又、光電変換特性判別部71bにおいて信号レベルが閾値レベルVth以下で線形変換された信号であると判断されたB信号は、平均値演算部72bに与えられ、又、光電変換特性判別部71bにおいて信号レベルが閾値レベルVthより高く対数変換された信号であると判断されたB信号は、平均値演算部73bに与えられる。   Then, the R signal determined by the photoelectric conversion characteristic determination unit 71r to be a signal linearly converted with the signal level equal to or lower than the threshold level Vth is given to the average value calculation unit 72r, and also in the photoelectric conversion characteristic determination unit 71r. The R signal determined to be a logarithmically converted signal having a signal level higher than the threshold level Vth is provided to the average value calculator 73r. Similarly, the G signal determined by the photoelectric conversion characteristic determination unit 71g to be a signal linearly converted with the signal level equal to or lower than the threshold level Vth is given to the average value calculation unit 72g, and the photoelectric conversion characteristic determination unit 71g. The G signal determined to be a logarithmically converted signal having a signal level higher than the threshold level Vth is provided to the average value calculation unit 73g. In addition, the B signal determined by the photoelectric conversion characteristic determination unit 71b as a signal linearly converted with the signal level equal to or lower than the threshold level Vth is given to the average value calculation unit 72b, and the photoelectric conversion characteristic determination unit 71b The B signal determined to be a logarithmically converted signal having a signal level higher than the threshold level Vth is provided to the average value calculation unit 73b.

そして、平均値演算部72r,72g,72bではそれぞれ、光電変換特性判別部71r,71g,71bそれぞれから与えられる線形変換されたRGB信号それぞれの信号レベルを加算するとともに、与えられたRGB信号それぞれの総数を計数する。同様に、平均値演算部73r,73g,73bではそれぞれ、光電変換特性判別部71r,71g,71bそれぞれから与えられる対数変換されたRGB信号それぞれの信号レベルを加算するとともに、与えられたRGB信号それぞれの総数を計数する。このようにして、光電変換特性判別部71r,71g,71bから全てのRGB信号が出力されると、全て出力したことを示す信号が、光電変換特性判別部71rから平均値演算部72r,73rへ、光電変換特性判別部71gから平均値演算部72g,73gへ、光電変換特性判別部71bから平均値演算部72b,73bへ、それぞれ送出される。   The average value calculators 72r, 72g, and 72b add the signal levels of the linearly converted RGB signals given from the photoelectric conversion characteristic discriminators 71r, 71g, and 71b, respectively, and each of the given RGB signals. Count the total number. Similarly, the average value calculation units 73r, 73g, and 73b add the respective signal levels of the logarithmically converted RGB signals provided from the photoelectric conversion characteristic determination units 71r, 71g, and 71b, respectively. Count the total number of In this way, when all the RGB signals are output from the photoelectric conversion characteristic determination units 71r, 71g, 71b, a signal indicating that all the RGB signals have been output is sent from the photoelectric conversion characteristic determination unit 71r to the average value calculation units 72r, 73r. The photoelectric conversion characteristic discriminating part 71g is sent to the average value calculating parts 72g and 73g, and the photoelectric conversion characteristic discriminating part 71b is sent to the average value calculating parts 72b and 73b, respectively.

その後、平均値演算部72r,72g,72b,73r,73g,73bそれぞれにおいては、加算合計した信号レベルを与えられた信号の総数によって除算することで平均値演算を行う。このようにすることで、線形変換されたR信号の平均値r1avが平均値演算部72rからWB評価値演算部74rに、線形変換されたG信号の平均値g1avが平均値演算部72gからWB評価値演算部74r,74bに、線形変換されたB信号の平均値b1avが平均値演算部72bからWB評価値演算部74bに、それぞれ、送出される。同様に、対数変換されたR信号の平均値r2avが平均値演算部73rからWB評価値演算部75rに、対数変換されたG信号の平均値g2avが平均値演算部73gからWB評価値演算部75r,75bに、対数変換されたB信号の平均値b2avが平均値演算部73bからWB評価値演算部75bに、それぞれ、送出される。   Thereafter, in each of the average value calculation units 72r, 72g, 72b, 73r, 73g, and 73b, the average value calculation is performed by dividing the summed signal level by the total number of given signals. In this way, the average value r1av of the linearly converted R signal is changed from the average value calculation unit 72r to the WB evaluation value calculation unit 74r, and the average value g1av of the linearly converted G signal is changed from the average value calculation unit 72g to WB. The average value b1av of the linearly converted B signal is sent from the average value calculation unit 72b to the WB evaluation value calculation unit 74b to the evaluation value calculation units 74r and 74b. Similarly, the average value r2av of the logarithmically converted R signal is converted from the average value calculator 73r to the WB evaluation value calculator 75r, and the average value g2av of the logarithmically converted G signal is converted from the average value calculator 73g to the WB evaluation value calculator. The average value b2av of the B signal logarithmically converted is sent to 75r and 75b from the average value calculation unit 73b to the WB evaluation value calculation unit 75b, respectively.

そして、線形変換されたRG信号の平均値r1av,g1avが与えられたWB評価値演算部74rでは、RG信号の平均値r1av,g1avと全体制御部13のマイコン132より与えられるG信号の光電変換特性より、線形変換されたR信号に対するWB評価値wr1が求められるとともに、線形変換されたGB信号の平均値g1av,b1avが与えられたWB評価値演算部74bでは、GB信号の平均値g1av,b1avと全体制御部13のマイコン132より与えられるG信号の光電変換特性より、線形変換されたB信号に対するWB評価値wb1が求められる。   Then, in the WB evaluation value calculation unit 74r to which the average values r1av and g1av of the linearly converted RG signal are given, photoelectric conversion of the average values r1av and g1av of the RG signal and the G signal given from the microcomputer 132 of the overall control unit 13 is performed. From the characteristics, the WB evaluation value wr1 for the linearly converted R signal is obtained, and the average value g1av of the GB signal is obtained in the WB evaluation value calculation unit 74b to which the average value g1av and b1av of the linearly converted GB signal is given. The WB evaluation value wb1 for the linearly converted B signal is obtained from b1av and the photoelectric conversion characteristics of the G signal given from the microcomputer 132 of the overall control unit 13.

同様に、対数変換されたRG信号の平均値r2av,g2avが与えられたWB評価値演算部75rでは、RG信号の平均値r2av,g2avと全体制御部13のマイコン132より与えられるG信号の光電変換特性より、対数変換されたR信号に対するWB評価値wr2が求められるとともに、対数変換されたGB信号の平均値g2av,b2avが与えられたWB評価値演算部75bでは、GB信号の平均値g2av,b2avと全体制御部13のマイコン132より与えられるG信号の光電変換特性より、対数変換されたB信号に対するWB評価値wb2が求められる。尚、WB評価値演算部74r,74b,75r,75bはそれぞれ、全体制御部13のマイコン132より、固体撮像素子2のダイナミックレンジに応じたG信号の光電変換特性が与えられる。   Similarly, in the WB evaluation value calculator 75r to which the logarithmically converted RG signal average values r2av and g2av are given, the RG signal average values r2av and g2av and the G signal photoelectricity given from the microcomputer 132 of the overall control unit 13 are used. From the conversion characteristics, the WB evaluation value wr2 for the logarithmically converted R signal is obtained, and the average value g2av of the GB signal is obtained in the WB evaluation value calculation unit 75b to which the average values g2av and b2av of the logarithmically converted GB signal are given. , B2av and the photoelectric conversion characteristic of the G signal given from the microcomputer 132 of the overall control unit 13, the WB evaluation value wb2 for the logarithmically converted B signal is obtained. The WB evaluation value calculators 74r, 74b, 75r, and 75b are each given a G signal photoelectric conversion characteristic according to the dynamic range of the solid-state imaging device 2 from the microcomputer 132 of the overall controller 13.

このWB評価値演算部74r,74b,75r,75bにおける処理動作について、代表としてWB評価値演算部74r,75rを例にとって説明する。全体制御部13のマイコン132より、図11のようなG信号の光電変換特性がWB評価値演算部74r,74b,75r,75bに与えられるものとする。このとき、WB評価値演算部74rでは、まず、図11(a)のように、G信号の平均値g1avにおける輝度値LavをG信号の光電変換特性に基づいて求める。即ち、G信号の線形変換特性領域が、(1)式で表されるとき、(1)式にG信号の平均値g1avを代入して逆算することで、輝度値Lav(=(g1av−C)/Ag)を求めることができる。
V=Ag×L+C …(1)
(V:信号レベル、L:輝度、Ag:G信号に対する光電変換係数、C:オフセット)。
Processing operations in the WB evaluation value calculation units 74r, 74b, 75r, and 75b will be described by taking the WB evaluation value calculation units 74r and 75r as an example. It is assumed that the photoelectric conversion characteristics of the G signal as shown in FIG. 11 are given to the WB evaluation value calculation units 74r, 74b, 75r, and 75b from the microcomputer 132 of the overall control unit 13. At this time, the WB evaluation value calculation unit 74r first obtains the luminance value Lav in the average value g1av of the G signal based on the photoelectric conversion characteristics of the G signal as shown in FIG. That is, when the linear conversion characteristic region of the G signal is expressed by the equation (1), the luminance value Lav (= (g1av−C) is calculated by substituting the average value g1av of the G signal into the equation (1). ) / Ag).
V = Ag × L + C (1)
(V: signal level, L: luminance, Ag: photoelectric conversion coefficient for G signal, C: offset).

そして、この輝度値Lavに対してR信号の平均値r1avが得られるものとみなすことにより、R信号に対する光電変換係数Ar(=(r1av−C)/Lav)を求めて、図11(b)のように、線形変換特性領域におけるR信号の光電変換特性を求める。尚、R信号の線形変換特性領域を表す式は、(2)式のように表されるとともに、そのオフセットCが(1)式と等しいものとする。
V=Ar×L+C …(2)。
Then, assuming that the average value r1av of the R signal is obtained for this luminance value Lav, the photoelectric conversion coefficient Ar (= (r1av−C) / Lav) for the R signal is obtained, and FIG. Thus, the photoelectric conversion characteristic of the R signal in the linear conversion characteristic region is obtained. It should be noted that the expression representing the linear conversion characteristic region of the R signal is expressed as Expression (2), and the offset C is equal to Expression (1).
V = Ar × L + C (2).

このように線形変換特性領域におけるR信号の光電変換特性を求めると、閾値レベルVthとなるRG信号それぞれに対する輝度Lrth,Lgthが、図11(c)のようなRG信号それぞれの光電変換特性より求められる。即ち、(1)、(2)式それぞれに、閾値レベルVthが代入されて逆算されることにより、輝度Lgth(=(Vth−C)/Ag),Lrth(=(Vth−C)/Ar)が求められる。このようにして求められた閾値レベルVthとなるRG信号それぞれの輝度Lrth,Lgthによって、線形変換されたR信号に対するWB評価値wr1が、その差分値Lgth−Lrthとして求められる。   When the photoelectric conversion characteristic of the R signal in the linear conversion characteristic region is obtained in this way, the luminances Lrth and Lgth for the RG signals having the threshold level Vth are obtained from the photoelectric conversion characteristics of the RG signals as shown in FIG. It is done. That is, the luminance levels Lgth (= (Vth−C) / Ag) and Lrth (= (Vth−C) / Ar) are calculated by substituting the threshold level Vth into each of the expressions (1) and (2). Is required. The WB evaluation value wr1 for the linearly converted R signal is obtained as the difference value Lgth-Lrth based on the luminances Lrth and Lgth of the RG signals having the threshold level Vth thus obtained.

又、WB評価値演算部75rでは、まず、図12(a)のように、G信号の平均値g2avにおける輝度値の対数値ln(Lav)をG信号の光電変換特性に基づいて求める。即ち、G信号の対数変換特性領域が、(3)式で表されるとき、(3)式にG信号の平均値g2avを代入して逆算することで、輝度値の対数値ln(Lav)(=(g2av−βg)/α)を求めることができる。尚、図12におけるG信号の光電変換特性は、図11におけるG信号の光電変換特性と等しいものである。
V=α×ln(L)+βg …(3)
(α:所定の増幅率、βg:G信号に対する光電変換係数の対数変換値)。
Further, in the WB evaluation value calculation unit 75r, first, as shown in FIG. 12A, the logarithm value ln (Lav) of the luminance value in the average value g2av of the G signal is obtained based on the photoelectric conversion characteristics of the G signal. That is, when the logarithmic conversion characteristic region of the G signal is expressed by the expression (3), the logarithmic value ln (Lav) of the luminance value is calculated by substituting the average value g2av of the G signal into the expression (3) and performing the reverse calculation. (= (G2av−βg) / α) can be obtained. Note that the photoelectric conversion characteristic of the G signal in FIG. 12 is equal to the photoelectric conversion characteristic of the G signal in FIG.
V = α × ln (L) + βg (3)
(Α: predetermined amplification factor, βg: logarithmic conversion value of photoelectric conversion coefficient for G signal).

そして、この輝度値の対数値ln(Lav)に対してR信号の平均値r2avが得られるものとみなすことにより、R信号に対する光電変換係数の対数変換値βr(=r2av−α×ln(Lav)=r2av−g2av+βg)を求めて、図12(b)のように、対数変換特性領域におけるR信号の光電変換特性を求める。尚、R信号の対数変換特性領域を表す式は、(4)式のように表されるとともに、その増幅率αが(3)式と等しいものとする。
V=α×ln(L)+βr …(4)。
Then, by assuming that the average value r2av of the R signal is obtained for the logarithmic value ln (Lav) of this luminance value, the logarithmic conversion value βr (= r2av−α × ln (Lav) of the photoelectric conversion coefficient for the R signal is obtained. ) = R2av−g2av + βg), and the photoelectric conversion characteristic of the R signal in the logarithmic conversion characteristic region is obtained as shown in FIG. The expression representing the logarithmic conversion characteristic region of the R signal is expressed as the following expression (4), and the amplification factor α is equal to the expression (3).
V = α × ln (L) + βr (4).

このように対数変換特性領域におけるR信号の光電変換特性を求めると、閾値レベルVthとなるRG信号それぞれに対する輝度の対数値ln(Lrth),ln(Lgth)が、図12(c)のようなRG信号それぞれの光電変換特性より求められる。即ち、(3)、(4)式それぞれに、閾値レベルVthが代入されて逆算されることにより、輝度の対数値ln(Lgth)(=(Vth−βg)/α),ln(Lrth)(=(Vth−βr)/α)が求められる。よって、閾値レベルVthとなるRG信号それぞれに対する輝度Lrth(=exp((Vth−βr)/α)),Lgth(=exp((Vth−βg)/α))が最終的に求められる。このようにして求められた閾値レベルVthとなるRG信号それぞれの輝度Lrth,Lgthによって、対数変換されたR信号に対するWB評価値wr2が、その差分値Lgth−Lrthとして求められる。   When the photoelectric conversion characteristic of the R signal in the logarithmic conversion characteristic region is obtained in this way, the logarithmic values ln (Lrth) and ln (Lgth) of the luminance for each RG signal having the threshold level Vth are as shown in FIG. It is obtained from the photoelectric conversion characteristics of each RG signal. That is, by substituting the threshold level Vth into each of the equations (3) and (4) and calculating backward, the luminance logarithm value ln (Lgth) (= (Vth−βg) / α), ln (Lrth) ( = (Vth−βr) / α). Therefore, the luminance Lrth (= exp ((Vth−βr) / α)) and Lgth (= exp ((Vth−βg) / α)) for each RG signal having the threshold level Vth is finally obtained. The WB evaluation value wr2 for the logarithmically converted R signal is obtained as the difference value Lgth-Lrth based on the luminances Lrth and Lgth of the RG signals having the threshold level Vth thus obtained.

WB評価値演算部74r,74b,75r,75bそれぞれにおいて、このような処理動作を行うことによって、WB評価値wr1,wb1,wr2,wb2が出力されると、WB評価値wr1,wr2が加重加算部76rに与えられるとともに、WB評価値wb1,wb2が加重加算部76bに与えられる。この加重加算部76r,76bそれぞれに対して、全体制御部13のマイコン132より、設定された固体撮像素子2のダイナミックレンジに応じた重み係数が与えられる。よって、加重加算部76rにおいて、WB評価値wr1,wr2に対する重み係数xr,yrが与えられるとき、WB評価値wrが(5)式のように求められる。又、加重加算部76bにおいて、WB評価値wb1,wb2に対する重み係数xb,ybが与えられるとき、WB評価値wbが(6)式のように求められる。
wr=xr×wr1+yr×wr2 …(5)
wb=xb×wb1+yb×wb2 …(6)。
When the WB evaluation values wr1, wb1, wr2, and wb2 are output by performing such processing operations in the WB evaluation value calculation units 74r, 74b, 75r, and 75b, the WB evaluation values wr1 and wr2 are weighted and added. The WB evaluation values wb1 and wb2 are given to the weighted addition unit 76b. A weighting coefficient corresponding to the set dynamic range of the solid-state imaging device 2 is given to each of the weighted addition units 76r and 76b from the microcomputer 132 of the overall control unit 13. Therefore, when weighting coefficients xr, yr for the WB evaluation values wr1, wr2 are given in the weighted addition unit 76r, the WB evaluation value wr is obtained as shown in equation (5). In addition, when weighting factors xb and yb for the WB evaluation values wb1 and wb2 are given in the weighted addition unit 76b, the WB evaluation value wb is obtained as shown in equation (6).
wr = xr * wr1 + yr * wr2 (5)
wb = xb × wb1 + yb × wb2 (6).

このようにして加重加算部76r,76bで求められたWB評価値wb,wrは、全体制御部13のマイコン132に与えられる。マイコン132では、このWB評価値wb,wrとダイナミックレンジデータに基づいて、WB制御部8に与える設定値を決定する。尚、本例において、加重加算部76r,76bに与えられる重み係数xr,yr,xb,ybは、設定された固体撮像素子2のダイナミックレンジに応じて設定されるものとしたが、被写体の輝度分布範囲又は輝度値などに応じてマイコン132が設定し、加重加算部76r,76bに与えるものとしても構わない。又、重み係数xr,yr,xb,ybが外部から設定されるものとしても構わない。   The WB evaluation values wb and wr obtained in this way by the weighted addition units 76r and 76b are given to the microcomputer 132 of the overall control unit 13. The microcomputer 132 determines a set value to be given to the WB control unit 8 based on the WB evaluation values wb and wr and the dynamic range data. In this example, the weighting factors xr, yr, xb, and yb given to the weighted addition units 76r and 76b are set according to the set dynamic range of the solid-state imaging device 2. The microcomputer 132 may be set according to the distribution range or the luminance value and given to the weighted addition units 76r and 76b. Further, the weight coefficients xr, yr, xb, yb may be set from the outside.

<AE・WB評価値検出回路の第2例>
図1のように構成される撮像装置におけるAE・WB評価値検出回路7について、図面を参照して以下に詳細に説明する。図13は、本例のAE・WB評価値検出回路の内部構成を示すブロック図である。尚、図13に示すAE・WB評価値検出回路において、図8のAE・WB評価値検出回路と同一の目的で使用する部分については、その詳細な説明を省略し、同一の符号を付す。
<Second Example of AE / WB Evaluation Value Detection Circuit>
The AE / WB evaluation value detection circuit 7 in the imaging apparatus configured as shown in FIG. 1 will be described in detail below with reference to the drawings. FIG. 13 is a block diagram showing the internal configuration of the AE / WB evaluation value detection circuit of this example. In the AE / WB evaluation value detection circuit shown in FIG. 13, the detailed description of the parts used for the same purpose as the AE / WB evaluation value detection circuit of FIG. 8 is omitted, and the same reference numerals are given.

本例のAE・WB評価値検出回路7は、図13に示すように、光電変換特性判別部71r,71g,71bと、平均値演算部72r,72g,72b,73r,73g,73bと、WB評価値演算部74r,74b,75r,75bと、加重加算部76r,76bと、光電変換特性判別部71r,71g,71bで確認された線形変換された信号及び対数変換された信号それぞれの総数を計数するとともにこれらの計数値によって重み係数xr,yr,xb,ybを設定する重み係数設定部77と、を備える。   As shown in FIG. 13, the AE / WB evaluation value detection circuit 7 of this example includes photoelectric conversion characteristic determination units 71r, 71g, 71b, average value calculation units 72r, 72g, 72b, 73r, 73g, 73b, and WB. The total number of each of the linearly converted signal and the logarithmically converted signal confirmed by the evaluation value calculating units 74r, 74b, 75r, and 75b, the weighted adding units 76r and 76b, and the photoelectric conversion characteristic discriminating units 71r, 71g, and 71b. And a weighting factor setting unit 77 that counts and sets the weighting factors xr, yr, xb, and yb based on these count values.

このように構成されるとき、光電変換特性判別部71r,71g,71b、平均値演算部72r,72g,72b,73r,73g,73b、WB評価値演算部74r,74b,75r,75b、及び、加重加算部76r,76bは、第1例におけるAE・WB評価値検出回路(図8)と同様の動作を行う。即ち、光電変換特性判別部71r,71g,71bでは、入力されるRGB信号の信号レベルと閾値レベルVthとを比較して、対数変換された信号であるか、又は、線形変換された信号であるかを判別する。そして、光電変換特性判別部71r,71g,71bで線形変換された信号であることが確認されたRGB信号が平均値演算部72r,72g,72bに与えられ、その平均値r1av,g1av,b1avが求められ、又、光電変換特性判別部71r,71g,71bで対数変換された信号であることが確認されたRGB信号が平均値演算部73r,73g,73bに与えられ、その平均値r2av,g2av,b2avが求められる。   When configured in this manner, the photoelectric conversion characteristic discriminating units 71r, 71g, 71b, the average value calculating units 72r, 72g, 72b, 73r, 73g, 73b, the WB evaluation value calculating units 74r, 74b, 75r, 75b, and The weighted addition units 76r and 76b perform the same operation as the AE / WB evaluation value detection circuit (FIG. 8) in the first example. That is, in the photoelectric conversion characteristic discriminating units 71r, 71g, 71b, the signal level of the input RGB signal is compared with the threshold level Vth, and it is a logarithmically converted signal or a linearly converted signal. Is determined. Then, RGB signals confirmed to be linearly converted by the photoelectric conversion characteristic discriminating units 71r, 71g, 71b are given to the average value calculating units 72r, 72g, 72b, and the average values r1av, g1av, b1av are given. The RGB signals obtained and confirmed to be logarithmically converted by the photoelectric conversion characteristic discriminating units 71r, 71g, 71b are given to the average value calculating units 73r, 73g, 73b, and the average values r2av, g2av , B2av.

その後、WB評価値演算部74rにおいて、平均値r1av,g1av及びG信号の光電変換特性に基づいて、線形変換されたR信号に対するWB評価値wr1が求められるとともに、WB評価値演算部75rにおいて、平均値r2av,g2av及びG信号の光電変換特性に基づいて、対数変換されたR信号に対するWB評価値wr2が求められる。又、WB評価値演算部74bにおいて、平均値g1av,b1av及びG信号の光電変換特性に基づいて、線形変換されたB信号に対するWB評価値wb1が求められるとともに、WB評価値演算部75bにおいて、平均値g2av,b2av及びG信号の光電変換特性に基づいて、対数変換されたB信号に対するWB評価値wb2が求められる。そして、加重加算部76rにおいて、重み係数設定部77から与えられる重み係数xr,yrを用いて、WB評価値wr1,wr2の加重加算を行うことで、WB評価値wrが求められるとともに、加重加算部76bにおいて、重み係数設定部77から与えられる重み係数xb,ybを用いて、WB評価値wb1,wb2の加重加算を行うことで、WB評価値wbが求められる。   Thereafter, the WB evaluation value calculation unit 74r obtains the WB evaluation value wr1 for the linearly converted R signal based on the average values r1av and g1av and the photoelectric conversion characteristics of the G signal, and the WB evaluation value calculation unit 75r Based on the average values r2av, g2av and the photoelectric conversion characteristics of the G signal, a WB evaluation value wr2 for the logarithmically converted R signal is obtained. Further, in the WB evaluation value calculation unit 74b, the WB evaluation value wb1 for the linearly converted B signal is obtained based on the average values g1av, b1av and the photoelectric conversion characteristics of the G signal, and in the WB evaluation value calculation unit 75b, Based on the average values g2av, b2av and the photoelectric conversion characteristics of the G signal, a WB evaluation value wb2 for the logarithmically converted B signal is obtained. Then, the weighted addition unit 76r performs weighted addition of the WB evaluation values wr1 and wr2 using the weighting factors xr and yr given from the weighting factor setting unit 77, thereby obtaining the WB evaluation value wr and performing the weighted addition. The unit 76b performs weighted addition of the WB evaluation values wb1 and wb2 using the weighting factors xb and yb given from the weighting factor setting unit 77, thereby obtaining the WB evaluation value wb.

このようにWB評価値wr,wbを求める際、第1例と異なり、重み係数設定部77において、加重加算部76r,76bに与える重み係数xr,yr,xb,ybが設定される。よって、以下では、この重み係数設定部77の動作について、説明する。まず、光電変換特性判別部71r,71g,71bよりRGB信号に対する判別結果が重み付け係数設定部77に与えられると、与えられた判別結果に応じて、線形変換された信号の総数又は対数変換された信号の総数を計数する。よって、光電変換特性判別部71rより平均値演算部72r,73rそれぞれに送出されたR信号の総数がn1r,n2rであり、光電変換特性判別部71gより平均値演算部72g,73gそれぞれに送出されたG信号の総数がn1g,n2gであり、光電変換特性判別部71bより平均値演算部72b,73bそれぞれに送出されたB信号の総数がn1b,n2bであるとき、線形変換された信号の総数がn1(=n1r+n1g+n1b)となり、又、対数変換された信号の総数がn2(=n2r+n2g+n2b)となる。   Thus, when obtaining the WB evaluation values wr and wb, unlike the first example, the weighting factor setting unit 77 sets weighting factors xr, yr, xb and yb to be given to the weighting addition units 76r and 76b. Therefore, hereinafter, the operation of the weighting coefficient setting unit 77 will be described. First, when the discrimination results for the RGB signals are given to the weighting coefficient setting unit 77 by the photoelectric conversion characteristic discriminating units 71r, 71g, 71b, the total number or logarithmically converted signals are linearly converted according to the given discrimination result. Count the total number of signals. Therefore, the total number of R signals transmitted from the photoelectric conversion characteristic determination unit 71r to the average value calculation units 72r and 73r is n1r and n2r, respectively, and is output from the photoelectric conversion characteristic determination unit 71g to the average value calculation units 72g and 73g, respectively. When the total number of G signals is n1g and n2g, and the total number of B signals sent from the photoelectric conversion characteristic determination unit 71b to the average value calculation units 72b and 73b is n1b and n2b, the total number of linearly converted signals Is n1 (= n1r + n1g + n1b), and the total number of logarithmically converted signals is n2 (= n2r + n2g + n2b).

そして、線形変換された信号の総数n1と対数変換された信号の総数n2との比によって、重み付け係数xr,yr,xb,ybを設定する。このとき、例えば、xr=xb=n1/(n1+n2)、yr=yb=n2/(n1+n2)と設定するようにして、その総数が大きくなる信号に対する重み付け係数が大きくなるように設定する。このようにして重み付け係数xr,yr,xb,ybが設定されると、重み付け係数xr,yrが加重加算部76rに与えられるとともに、重み付け係数xb,ybが加重加算部76bに与えられる。   Then, the weighting coefficients xr, yr, xb, yb are set according to the ratio of the total number n1 of linearly converted signals and the total number n2 of logarithmically converted signals. At this time, for example, xr = xb = n1 / (n1 + n2) and yr = yb = n2 / (n1 + n2) are set so that the weighting coefficient for a signal whose total number increases is increased. When the weighting coefficients xr, yr, xb, yb are set in this way, the weighting coefficients xr, yr are given to the weighted addition unit 76r, and the weighting coefficients xb, yb are given to the weighted addition unit 76b.

尚、本例のAE・WB評価値設定部7において、重み付け係数設定部77で、RGB信号全てを対象とする線形変換された信号の総数n1と対数変換された信号の総数n2とを用いて、重み付け係数xr,yr,xb,ybが求められるものとしたが、RGB信号それぞれを対象とする線形変換された信号の総数n1r,n1g,n1bと対数変換された信号の総数n2r,n2g,n2bとを用いて、重み付け係数xr,yr,xb,ybが求められるものとしても構わない。このとき、重み付け係数xr,yrが、線形変換されたR信号の総数n1rと対数変換されたR信号の総数n2rとの関係により求められるとともに、重み付け係数xb,ybが、線形変換されたB信号の総数n1bと対数変換されたB信号の総数n2bとの関係により求められるものとしても構わない。又、重み付け係数xr,yrが、線形変換されたRG信号それぞれの総数n1r,n1gと対数変換されたRG信号の総数n2r,n2gとの関係により求められるとともに、重み付け係数xb,ybが、線形変換されたGB信号の総数n1g,n1bと対数変換されたGB信号の総数n2g,n2bとの関係により求められるものとしても構わない。   In the AE / WB evaluation value setting unit 7 of this example, the weighting coefficient setting unit 77 uses the total number n1 of linearly converted signals and the total number n2 of logarithmically converted signals for all RGB signals. The weighting coefficients xr, yr, xb, and yb are obtained, but the total number n1r, n1g, and n1b of the linearly converted signals for each of the RGB signals and the total number n2r, n2g, and n2b of the logarithmically converted signals. And the weighting coefficients xr, yr, xb, and yb may be obtained. At this time, the weighting coefficients xr and yr are obtained from the relationship between the total number n1r of the R signals subjected to linear transformation and the total number n2r of the logarithmically transformed R signals, and the weighting factors xb and yb are obtained from the linearly transformed B signal. May be obtained from the relationship between the total number n1b of the B signals and the total number n2b of the logarithmically converted B signals. Further, the weighting coefficients xr and yr are obtained from the relationship between the total number n1r and n1g of each of the linearly converted RG signals and the total number n2r and n2g of the logarithmically converted RG signals, and the weighting coefficients xb and yb are linearly converted. The total number n1g and n1b of the GB signals thus obtained and the total number n2g and n2b of the logarithmically converted GB signals may be obtained.

又、主被写体を検出するオートフォーカス(AF)機能を備えるとき、AF機能により検出した主被写体を中心とする領域の画素に対して、線形変換された信号を出力する画素数と対数変換された信号を出力する画素数との関係により、重み付け係数を設定するものとしても構わない。   In addition, when an autofocus (AF) function for detecting the main subject is provided, the pixels in the region centered on the main subject detected by the AF function are logarithmically converted with the number of pixels that output a linearly converted signal. The weighting coefficient may be set according to the relationship with the number of pixels that output a signal.

又、上述の第1例及び第2例のAE・WB評価値設定部7において、G信号の光電変換特性がWB評価値演算部74r,74b,75r,75bに与えられて、WB評価値wr1,wb1,wr2,wb2が求められるものとしたが、線形変換された信号の平均値における輝度値L1avがWB評価値演算部74r,74bに与えられるとともに、対数変換された信号の平均値における輝度値L2avがWB評価値演算部75r,75bに与えられて、WB評価値wr1,wb1,wr2,wb2が求められるものとしても構わない。   In the AE / WB evaluation value setting unit 7 of the first and second examples described above, the photoelectric conversion characteristics of the G signal are given to the WB evaluation value calculation units 74r, 74b, 75r, and 75b, and the WB evaluation value wr1. , Wb1, wr2, and wb2 are obtained, the luminance value L1av in the average value of the linearly converted signal is given to the WB evaluation value calculation units 74r and 74b, and the luminance in the average value of the logarithmically converted signal The value L2av may be given to the WB evaluation value calculators 75r and 75b to obtain the WB evaluation values wr1, wb1, wr2, and wb2.

このとき、WB評価値演算部74rでは、線形変換されたRG信号それぞれの平均値r1av,g1avと輝度値L1avとの関係より、RG信号それぞれの光電変換特性を確認し、RG信号それぞれの閾値レベルVthに相当する輝度値の差となるWB評価値wr1を求める。同様に、WB評価値演算部75rでは、対数変換されたRG信号それぞれの平均値r2av,g2avと輝度値L2avとの関係より、RG信号それぞれの光電変換特性を確認し、WB評価値wr2を求める。同様に、WB評価値演算部74bでは、線形変換されたGB信号それぞれの平均値g1av,b1avと輝度値L1avとの関係より、GB信号それぞれの光電変換特性を確認し、WB評価値wb1を求め、又、WB評価値演算部75bでは、対数変換されたGB信号それぞれの平均値g2av,b2avと輝度値L2avとの関係より、GB信号それぞれの光電変換特性を確認し、WB評価値wb2を求める。   At this time, the WB evaluation value calculation unit 74r confirms the photoelectric conversion characteristics of each of the RG signals based on the relationship between the average values r1av and g1av of each of the linearly converted RG signals and the luminance value L1av, and the threshold level of each of the RG signals. A WB evaluation value wr1 that is a difference in luminance value corresponding to Vth is obtained. Similarly, the WB evaluation value calculation unit 75r confirms the photoelectric conversion characteristics of each RG signal from the relationship between the average values r2av and g2av of each logarithmically converted RG signal and the luminance value L2av, and obtains the WB evaluation value wr2. . Similarly, the WB evaluation value calculation unit 74b confirms the photoelectric conversion characteristics of each GB signal from the relationship between the average values g1av and b1av and the luminance value L1av of each linearly converted GB signal, and obtains the WB evaluation value wb1. In addition, the WB evaluation value calculation unit 75b confirms the photoelectric conversion characteristics of each GB signal from the relationship between the average values g2av and b2av of each logarithmically converted GB signal and the luminance value L2av, and obtains the WB evaluation value wb2. .

<全体制御部によるデータテーブル生成動作の第1例>
以下に、全体制御部によるデータテーブル生成動作の第1例について説明する。AE・WB評価値設定部の第1例又は第2例のように動作して、AE・WB評価値設定部7においてWB評価値wr,wbが設定されると、図9のような構成の全体制御部13のマイコン132に与えられる。マイコン132では、WB評価値wr,wbを確認すると、WB評価値wr,wbと固体撮像素子2に対して設定したダイナミックレンジの大きさに基づいて、メモリ133よりRGB信号それぞれに対する光電変換特性を読み出す。そして、マイコン132は、ホワイトバランス処理を行うためのデータテーブルを生成し、WB制御回路8に与える。
<First Example of Data Table Generation Operation by Overall Control Unit>
Below, the 1st example of the data table production | generation operation | movement by the whole control part is demonstrated. When the AE / WB evaluation value setting unit 7 operates as in the first example or the second example of the AE / WB evaluation value setting unit and the WB evaluation values wr and wb are set in the AE / WB evaluation value setting unit 7, the configuration shown in FIG. This is given to the microcomputer 132 of the overall control unit 13. When the microcomputer 132 confirms the WB evaluation values wr and wb, the photoelectric conversion characteristic for each of the RGB signals is obtained from the memory 133 based on the WB evaluation values wr and wb and the size of the dynamic range set for the solid-state imaging device 2. read out. Then, the microcomputer 132 generates a data table for performing white balance processing, and supplies the data table to the WB control circuit 8.

このとき、メモリ133には、G信号の光電変換特性が、固体撮像素子2のダイナミックレンジの大きさに応じて、例えば、図7のグラフのように離散的に格納され、又、RB信号それぞれの光電変換特性が、上記各ダイナミックレンジ毎にWB評価値に応じて、例えば、図14のグラフのように離散的に格納される。又、図7のグラフのように、G信号の光電変換特性として4種類の光電変換特性a1〜a4が格納され、図14のグラフのように、ダイナミックレンジ毎にRB信号の光電変換特性として6種類の光電変換特性b1〜b6が格納されるとき、メモリ133内では、4×6種類の光電変換特性が格納されるものとなる。   At this time, the photoelectric conversion characteristics of the G signal are discretely stored in the memory 133 according to the dynamic range of the solid-state imaging device 2, for example, as shown in the graph of FIG. The photoelectric conversion characteristics are stored discretely as shown in the graph of FIG. 14 according to the WB evaluation value for each dynamic range. Further, as shown in the graph of FIG. 7, four types of photoelectric conversion characteristics a1 to a4 are stored as G signal photoelectric conversion characteristics, and as shown in the graph of FIG. 14, RB signal photoelectric conversion characteristics are 6 for each dynamic range. When the types of photoelectric conversion characteristics b1 to b6 are stored, 4 × 6 types of photoelectric conversion characteristics are stored in the memory 133.

このとき、光電変換特性の線形変換特性領域を表す(7)式におけるパラメータA,Cと、光電変換特性の対数変換特性領域を表す(8)式におけるパラメータα,βとが、メモリ133内に28種類分格納される。尚、図14は、図7における光電変換特性a2に応じたダイナミックレンジが選択されたときにおけるG信号の光電変換特性を基準としたものである。
V=A×L+C …(7)
V=α×ln(L)+β …(8)。
At this time, the parameters A and C in the equation (7) representing the linear conversion characteristic region of the photoelectric conversion property and the parameters α and β in the equation (8) representing the logarithmic conversion property region of the photoelectric conversion property are stored in the memory 133. 28 types are stored. FIG. 14 is based on the photoelectric conversion characteristics of the G signal when the dynamic range corresponding to the photoelectric conversion characteristics a2 in FIG. 7 is selected.
V = A × L + C (7)
V = α × ln (L) + β (8).

そして、固体撮像素子2が所定のダイナミックレンジを持つように設定されたとき、選択されたダイナミックレンジに応じたG信号の光電変換特性をメモリ133より読み出す。又、AE・WB評価値検出回路7よりWB評価値wr,wbが与えられたとき、選択されたダイナミックレンジとWB評価値wrに応じたR信号の光電変換特性と、選択されたダイナミックレンジとWB評価値wbに応じたB信号の光電変換特性と、をメモリ133より読み出す。即ち、図7における光電変換特性a2に応じたダイナミックレンジとなるように固体撮像素子2をセンサ駆動部131が駆動制御するとき、まず、メモリ133よりG信号の光電変換特性として光電変換特性a2が読み出される。そして、ΔL1となるWB評価値wrと、−ΔL2となるWB評価値wbが与えられると、R信号の光電変換特性として光電変換特性b4が、又、B信号の光電変換特性として光電変換特性b2がそれぞれ、メモリ133より読み出される。   Then, when the solid-state imaging device 2 is set to have a predetermined dynamic range, the photoelectric conversion characteristic of the G signal corresponding to the selected dynamic range is read from the memory 133. Further, when the WB evaluation values wr and wb are given from the AE / WB evaluation value detection circuit 7, the selected dynamic range, the photoelectric conversion characteristic of the R signal according to the WB evaluation value wr, the selected dynamic range, The photoelectric conversion characteristics of the B signal corresponding to the WB evaluation value wb are read from the memory 133. That is, when the sensor driving unit 131 drives and controls the solid-state imaging device 2 so that the dynamic range according to the photoelectric conversion characteristic a2 in FIG. 7 is obtained, first, the photoelectric conversion characteristic a2 is obtained as the G signal photoelectric conversion characteristic from the memory 133. Read out. When a WB evaluation value wr that is ΔL1 and a WB evaluation value wb that is −ΔL2 are given, the photoelectric conversion characteristic b4 is the photoelectric conversion characteristic of the R signal, and the photoelectric conversion characteristic b2 is the photoelectric conversion characteristic of the B signal. Are read from the memory 133.

このように、RGB信号それぞれの光電変換特性がメモリ133より読み出されると、マイコン132では、これらの光電変換特性を用いてWB制御回路8に与えるRB信号それぞれに対するデータテーブルDr,Dbを生成する。このマイコン132での動作について、図面を参照して説明する。尚、図15は、マイコン132におけるRB信号それぞれに対するデータテーブルの生成の流れを機能ブロック図の形で示したものである。今、RGB信号の信号レベルがそれぞれ10bit(0〜1023)で表されているものとする。   As described above, when the photoelectric conversion characteristics of the RGB signals are read from the memory 133, the microcomputer 132 generates data tables Dr and Db for the RB signals to be given to the WB control circuit 8 using these photoelectric conversion characteristics. The operation of the microcomputer 132 will be described with reference to the drawings. FIG. 15 shows the flow of data table generation for each RB signal in the microcomputer 132 in the form of a functional block diagram. Now, it is assumed that the signal levels of the RGB signals are each represented by 10 bits (0 to 1023).

マイコン132では、まず、輝度演算ブロック134rにおいて、メモリ133で読み出されたR信号の光電変換特性に基づいて、R信号の信号レベル0〜1023それぞれの輝度値を求める。同様に、輝度演算ブロック134bにおいて、メモリ133で読み出されたB信号の光電変換特性に基づいて、B信号の信号レベル0〜1023それぞれの輝度値を求める。即ち、R信号については、光電変換特性b4に基づいて、各信号レベルの輝度値が求められ、又、B信号については、光電変換特性b2に基づいて、各信号レベルの輝度値が求められる。よって、RB信号それぞれについて、図16(a)のように、光電変換特性b4,b2が用いられることで、例えば、信号レベルVxに対する輝度値Lrx,Lbxが求められる。   In the microcomputer 132, first, in the luminance calculation block 134r, the luminance value of each of the signal levels 0 to 1023 of the R signal is obtained based on the photoelectric conversion characteristics of the R signal read out by the memory 133. Similarly, in the luminance calculation block 134b, the luminance values of the signal levels 0 to 1023 of the B signal are obtained based on the photoelectric conversion characteristics of the B signal read out by the memory 133. That is, for the R signal, the luminance value of each signal level is obtained based on the photoelectric conversion characteristic b4, and for the B signal, the luminance value of each signal level is obtained based on the photoelectric conversion characteristic b2. Therefore, for each RB signal, for example, luminance values Lrx and Lbx with respect to the signal level Vx are obtained by using the photoelectric conversion characteristics b4 and b2 as shown in FIG.

この輝度演算ブロック134r,134bそれぞれで求められた輝度値は、信号値演算ブロック135r,135bに与えられる。そして、信号値演算ブロック135rにおいて、メモリ133で読み出されたG信号の光電変換特性に基づいて、R信号の信号レベル0〜1023それぞれの輝度値に対する補正処理後の信号レベルが求められる。同様に、信号値演算ブロック135bにおいて、メモリ133で読み出されたG信号の光電変換特性に基づいて、B信号の信号レベル0〜1023それぞれの輝度値に対する補正処理後の信号レベルが求められる。即ち、光電変換特性a2に基づいて、各信号レベルに対して求められた輝度値に対する信号レベルが求められる。よって、RB信号それぞれについて、図16(b)のように、光電変換特性a2が用いられることで、例えば、信号レベルVxに対する輝度値Lrx,Lbxより、信号レベルVxに対する補正処理後の信号レベルVrx,Vbxが求められる。   The luminance values obtained by the luminance calculation blocks 134r and 134b are given to the signal value calculation blocks 135r and 135b. Then, in the signal value calculation block 135r, based on the photoelectric conversion characteristics of the G signal read out by the memory 133, the signal level after the correction processing for each luminance value of the signal level 0 to 1023 of the R signal is obtained. Similarly, in the signal value calculation block 135b, based on the photoelectric conversion characteristics of the G signal read out by the memory 133, the signal level after the correction processing for each luminance value of the signal level 0 to 1023 of the B signal is obtained. That is, based on the photoelectric conversion characteristic a2, the signal level for the luminance value obtained for each signal level is obtained. Therefore, for each RB signal, as shown in FIG. 16B, the photoelectric conversion characteristic a2 is used. For example, from the luminance values Lrx and Lbx for the signal level Vx, the signal level Vrx after the correction processing for the signal level Vx. , Vbx.

このようにして、RB信号それぞれの信号レベル0〜1023それぞれに対して、補正処理後の信号レベルが求められたとき、信号値演算ブロック135r,135bより、RB信号それぞれの補正処理後の信号レベルが、データベース生成ブロック136r,136bに与えられる。このデータベース生成ブロック136rでは、R信号の信号レベル0〜1023を入力アドレスとする。そして、信号レベル0〜1023それぞれに対して信号値演算ブロック135rで最終的に求められた1024個の補正処理後の信号レベルを、入力アドレス0〜1023に対応させて格納したデータベースDrを生成する。同様に、データベース生成ブロック136bでは、B信号の信号レベル0〜1023を入力アドレスとする。そして、信号レベル0〜1023それぞれに対して信号値演算ブロック135bで最終的に求められた1024個の補正処理後の信号レベルを、入力アドレス0〜1023に対応させて格納したデータベースDbを生成する。このようにして生成したデータベースDr,DbをWB制御回路8に送出する。   In this way, when the signal level after correction processing is obtained for each of the signal levels 0 to 1023 of each RB signal, the signal level after correction processing of each RB signal is obtained from the signal value calculation blocks 135r and 135b. Is provided to the database generation blocks 136r and 136b. In this database generation block 136r, signal levels 0 to 1023 of the R signal are used as input addresses. Then, a database Dr is generated that stores the 1024 corrected signal levels finally obtained by the signal value calculation block 135r for each of the signal levels 0 to 1023 in correspondence with the input addresses 0 to 1023. . Similarly, in the database generation block 136b, signal levels 0 to 1023 of the B signal are used as input addresses. Then, a database Db is generated that stores the 1024 corrected signal levels finally obtained by the signal value calculation block 135b for each of the signal levels 0 to 1023 in correspondence with the input addresses 0 to 1023. . The databases Dr and Db generated in this way are sent to the WB control circuit 8.

上述の説明においては、RGB信号それぞれの光電変換特性をメモリ133に格納しているが、G信号の光電変換特性のみをメモリ133に格納し、RB信号の光電変換特性は前述のWB評価値wr、wbより演算で求めるようにしても良い。例えば、R信号に関して光電変換特性の線形特性領域を表す式(7)におけるパラメータA(Ar)は以下の(9)〜(11)式より算出することができる。   In the above description, the photoelectric conversion characteristics of each of the RGB signals are stored in the memory 133, but only the photoelectric conversion characteristics of the G signal are stored in the memory 133, and the photoelectric conversion characteristics of the RB signal are the above-described WB evaluation value wr. , Wb may be obtained by calculation. For example, the parameter A (Ar) in the equation (7) representing the linear characteristic region of the photoelectric conversion property with respect to the R signal can be calculated from the following equations (9) to (11).

Vth=Ag×Lg+C …(9)
Vth=Ar×(Lg+wr)+C …(10)
(9)、(10)式より
Ar=(Ag×Lg)/(Lg+wr) …(11)
但し、AgはG信号に対する光電変換係数、LgはG信号の輝度を示す。
Vth = Ag × Lg + C (9)
Vth = Ar × (Lg + wr) + C (10)
From the formulas (9) and (10) Ar = (Ag × Lg) / (Lg + wr) (11)
However, Ag shows the photoelectric conversion coefficient with respect to G signal, Lg shows the brightness | luminance of G signal.

又、R信号の対数特性領域についても同様に、演算により求めることができ、更に、B信号に関する光電変換特性もR信号同様、演算により求めることができる。このように、演算により光電変換特性を求めた場合、精度の高いホワイトバランス処理を行うことができる。   Similarly, the logarithmic characteristic region of the R signal can be obtained by calculation. Further, the photoelectric conversion characteristic regarding the B signal can be obtained by calculation similarly to the R signal. As described above, when the photoelectric conversion characteristics are obtained by calculation, high-accuracy white balance processing can be performed.

<全体制御部によるデータテーブル生成動作の第2例>
次に、全体制御部によるデータテーブル生成動作の第2例について説明する。尚、本例において、上述のデータテーブル生成動作の第1例と同様の部分については、データテーブル生成動作の第1例を参照するものとし、その詳細な説明は省略する。本例では、第1例と異なり、メモリ133内には、固体撮像素子2のダイナミックレンジの大きさに応じたG信号の光電変換特性のみが格納され、RB信号それぞれの光電変換特性については、メモリ133で読み出された光電変換特性に基づいて生成される。
<Second Example of Data Table Generation Operation by Overall Control Unit>
Next, a second example of the data table generation operation by the overall control unit will be described. In this example, for the same part as the first example of the data table generation operation described above, the first example of the data table generation operation is referred to, and detailed description thereof is omitted. In this example, unlike the first example, only the G signal photoelectric conversion characteristics corresponding to the dynamic range of the solid-state imaging device 2 are stored in the memory 133, and the photoelectric conversion characteristics of each RB signal are as follows: It is generated based on the photoelectric conversion characteristics read out by the memory 133.

本例におけるデータテーブル生成動作について、図17を参照して以下に説明する。尚、図17は、マイコン132におけるRB信号それぞれに対するデータテーブルの生成動作の流れを機能ブロック図の形で示したものである。今、RGB信号の信号レベルがそれぞれ10bit(0〜1023)で表されているものとする。マイコン132では、まず、メモリ133より読み出したG信号の光電変換特性とAE・WB評価値検出回路7からのWB評価値wrが光電変換特性生成ブロック137rに与えられ、R信号の光電変換特性が生成される。同様に、G信号の光電変換特性とWB評価値wbが光電変換特性生成ブロック137bに与えられ、B信号の光電変換特性が生成される。   The data table generation operation in this example will be described below with reference to FIG. FIG. 17 shows the flow of data table generation operation for each RB signal in the microcomputer 132 in the form of a functional block diagram. Now, it is assumed that the signal levels of the RGB signals are each represented by 10 bits (0 to 1023). In the microcomputer 132, first, the photoelectric conversion characteristic of the G signal read from the memory 133 and the WB evaluation value wr from the AE / WB evaluation value detection circuit 7 are given to the photoelectric conversion characteristic generation block 137r, and the photoelectric conversion characteristic of the R signal is Generated. Similarly, the photoelectric conversion characteristic of the G signal and the WB evaluation value wb are given to the photoelectric conversion characteristic generation block 137b, and the photoelectric conversion characteristic of the B signal is generated.

即ち、メモリ133よりG信号の光電変換特性が読み出されると、光電変換特性生成ブロック137r,137bそれぞれにおいて、WB評価値wr,wbそれぞれに基づいて、RB信号それぞれに対して、(7)式のA及び(8)式のα、βが求められ、RB信号それぞれの光電変換特性が生成される。よって、例えば、固体撮像素子2のダイナミックレンジを設定したときに、図7における光電変換特性a2がG信号の光電変換特性として読み出されるとともに、WB評価値wr,wbそれぞれがΔLr,ΔLbとなるとき、図18のように、R信号の光電変換特性が光電変換特性brとなり、又、B信号の光電変換特性が光電変換特性bbとなる。   That is, when the photoelectric conversion characteristics of the G signal are read out from the memory 133, the photoelectric conversion characteristic generation blocks 137r and 137b respectively perform the following equation (7) for each RB signal based on the WB evaluation values wr and wb. A and β in Equation A and Equation (8) are obtained, and photoelectric conversion characteristics of each RB signal are generated. Therefore, for example, when the dynamic range of the solid-state imaging device 2 is set, the photoelectric conversion characteristic a2 in FIG. 7 is read as the G signal photoelectric conversion characteristic, and the WB evaluation values wr and wb are ΔLr and ΔLb, respectively. As shown in FIG. 18, the photoelectric conversion characteristic of the R signal becomes the photoelectric conversion characteristic br, and the photoelectric conversion characteristic of the B signal becomes the photoelectric conversion characteristic bb.

そして、光電変換特性生成ブロック137r,137bそれぞれにおいて生成されたRB信号それぞれの光電変換特性は、輝度演算ブロック134r,134bに与えられる。よって、RB信号それぞれの光電変換特性が図18のように設定されるとき、輝度演算ブロック134rでは、光電変換特性brに基づいて、R信号の信号レベル0〜1023それぞれに対する輝度値が求められ、又、輝度演算ブロック134bでは、光電変換特性bbに基づいて、B信号の信号レベル0〜1023それぞれに対する輝度値が求められる。その後、信号値演算ブロック135r,135bにおいて、この輝度演算ブロック134r,134bそれぞれで求められた輝度値に基づいて、補正処理後の信号レベルが求められ、データベース生成ブロック136r,136bにおいて、RB信号それぞれのデータベースDr,Dbが生成される。   The photoelectric conversion characteristics of the RB signals generated in the photoelectric conversion characteristic generation blocks 137r and 137b are given to the luminance calculation blocks 134r and 134b. Therefore, when the photoelectric conversion characteristic of each RB signal is set as shown in FIG. 18, the luminance calculation block 134r obtains the luminance value for each of the signal levels 0 to 1023 of the R signal based on the photoelectric conversion characteristic br. In the luminance calculation block 134b, the luminance value for each of the signal levels 0 to 1023 of the B signal is obtained based on the photoelectric conversion characteristic bb. Thereafter, in the signal value calculation blocks 135r and 135b, the signal level after the correction processing is obtained based on the luminance values obtained in the luminance calculation blocks 134r and 134b, respectively. In the database generation blocks 136r and 136b, the RB signals are obtained. Databases Dr and Db are generated.

よって、データベースDrが、R信号の信号レベル0〜1023を入力アドレスとするとともに、信号値演算ブロック135rで求められた信号レベル0〜1023に対する補正処理後の信号レベルを各入力アドレスに対応して格納される。又、データベースDbが、B信号の信号レベル0〜1023を入力アドレスとするとともに、信号値演算ブロック135bで求められた信号レベル0〜1023に対する補正処理後の信号レベルを各入力アドレスに対応して格納される。尚、輝度演算ブロック134r,134b及び信号値演算ブロック135r,135b及びデータベース生成ブロック136r,136bは、第1例と同様の動作を行う。   Therefore, the database Dr uses the signal level 0 to 1023 of the R signal as an input address, and the signal level after correction processing for the signal level 0 to 1023 obtained by the signal value calculation block 135r corresponds to each input address. Stored. Further, the database Db uses the signal level 0 to 1023 of the B signal as an input address, and the signal level after correction processing for the signal level 0 to 1023 obtained by the signal value calculation block 135b corresponds to each input address. Stored. The luminance calculation blocks 134r and 134b, the signal value calculation blocks 135r and 135b, and the database generation blocks 136r and 136b perform the same operation as in the first example.

<全体制御部によるデータテーブル生成動作の第3例>
次に、全体制御部によるデータテーブル生成動作の第3例について説明する。尚、本例において、上述のデータテーブル生成動作の第2例と同様の部分については、データテーブル生成動作の第2例を参照するものとし、その詳細な説明は省略する。本例では、第2例と異なり、RB信号の信号レベルに応じた輝度値が求められた後、AEゲイン調整や階調変換が行われる。
<Third example of data table generation operation by overall control unit>
Next, a third example of the data table generation operation by the overall control unit will be described. In this example, for the same part as the second example of the data table generation operation described above, the second example of the data table generation operation is referred to, and the detailed description thereof is omitted. In this example, unlike the second example, after the luminance value corresponding to the signal level of the RB signal is obtained, AE gain adjustment and gradation conversion are performed.

本例におけるデータテーブル生成動作について、図19を参照して以下に説明する。尚、図19は、マイコン132におけるRB信号それぞれに対するデータテーブルの生成の流れを機能ブロック図の形で示したものである。今、RGB信号の信号レベルがそれぞれ10bit(0〜1023)で表されているものとする。マイコン132では、まず、第2例と同様、光電変換特性生成ブロック137r,137bそれぞれにおいて、メモリ133より読み出したG信号の光電変換特性とAE・WB評価値検出回路7からのWB評価値wr,wbに基づいて、RB信号それぞれの光電変換特性が生成される。   The data table generation operation in this example will be described below with reference to FIG. FIG. 19 shows the flow of data table generation for each RB signal in the microcomputer 132 in the form of a functional block diagram. Now, it is assumed that the signal levels of the RGB signals are each represented by 10 bits (0 to 1023). In the microcomputer 132, first, similarly to the second example, in each of the photoelectric conversion characteristic generation blocks 137r and 137b, the photoelectric conversion characteristic of the G signal read from the memory 133 and the WB evaluation value wr, Based on wb, photoelectric conversion characteristics of each RB signal are generated.

そして、光電変換特性生成ブロック137r,137bそれぞれにおいて生成されたRB信号それぞれの光電変換特性が輝度演算ブロック134r,134bに与えられ、R信号の信号レベル0〜1023それぞれに対する輝度値と、B信号の信号レベル0〜1023それぞれに対する輝度値と、が求められる。又、輝度演算ブロック134gにおいて、メモリ133より読み出したG信号の光電変換特性に基づいてG信号の信号レベル0〜1023それぞれに対する輝度値が求められる。このようにして、RGB信号それぞれにおける各信号レベルの輝度値が、AEゲイン調整ブロック138r,138g,138bに与えられる。   Then, the photoelectric conversion characteristics of the RB signals generated in the photoelectric conversion characteristic generation blocks 137r and 137b are given to the luminance calculation blocks 134r and 134b, the luminance values for the signal levels 0 to 1023 of the R signal, and the B signal The luminance value for each of the signal levels 0 to 1023 is obtained. In the luminance calculation block 134g, the luminance value for each of the signal levels 0 to 1023 of the G signal is obtained based on the photoelectric conversion characteristics of the G signal read from the memory 133. In this way, the luminance value of each signal level in each of the RGB signals is given to the AE gain adjustment blocks 138r, 138g, and 138b.

そして、AEゲイン調整ブロック138r,138g,138bでは、AE・WB評価値検出回路7より与えられるAE評価値に基づいて、各輝度値を増幅又は縮小させる。このAEゲイン調整は、輝度値の増幅率を変更してゲイン調整を行うことで、撮像された被写体を明るくしたり暗くして明度を変更する処理である。即ち、AEゲイン調整ブロック138rにおいて、R信号の信号レベル0〜1023それぞれに対する輝度値をAE評価値に基づく増幅率により増幅又は縮小し、AEゲイン調整ブロック138gにおいて、G信号の信号レベル0〜1023それぞれに対する輝度値をAE評価値に基づく増幅率により増幅又は縮小し、AEゲイン調整ブロック138bにおいて、B信号の信号レベル0〜1023それぞれに対する輝度値をAE評価値に基づく増幅率により増幅又は縮小する。   The AE gain adjustment blocks 138r, 138g, and 138b amplify or reduce each luminance value based on the AE evaluation value given from the AE / WB evaluation value detection circuit 7. This AE gain adjustment is a process of changing the brightness by changing the gain of the luminance value and performing gain adjustment to brighten or darken the imaged subject. That is, in the AE gain adjustment block 138r, the luminance value for each of the signal levels 0 to 1023 of the R signal is amplified or reduced by the amplification factor based on the AE evaluation value, and the signal level 0 to 1023 of the G signal in the AE gain adjustment block 138g. The luminance value for each is amplified or reduced by the amplification factor based on the AE evaluation value, and the luminance value for each of the signal levels 0 to 1023 of the B signal is amplified or reduced by the amplification factor based on the AE evaluation value in the AE gain adjustment block 138b. .

このようにしてゲイン調整が施されたRGB信号の信号レベル0〜1023それぞれに対する輝度値は、階調変換ブロック139r,139g,139bに与えられる。そして、階調変換ブロック139r,139g,139bでは、RGB信号の各輝度値に、モニタなどの再生出力装置で再生表示する際に目的とする輝度を得るための特性を与えるために、AEゲイン調整ブロック138r,138g,138bそれぞれから与えられる輝度値に対して、再生出力装置における階調特性による階調変換が行われる。即ち、再生出力装置がCRTモニタである場合、γカーブによる特性が階調特性となるため、階調変換ブロック139rにおいては、ゲイン調整が施されたR信号の信号レベル0〜1023それぞれに対する輝度値に対してγ補正を施し、階調変換ブロック139gにおいては、ゲイン調整が施されたG信号の信号レベル0〜1023それぞれに対する輝度値に対してγ補正を施し、階調変換ブロック139bにおいては、ゲイン調整が施されたB信号の信号レベル0〜1023それぞれに対する輝度値に対してγ補正を施す。   The luminance values corresponding to the signal levels 0 to 1023 of the RGB signals subjected to gain adjustment in this way are given to the gradation conversion blocks 139r, 139g, and 139b. In the gradation conversion blocks 139r, 139g, and 139b, the AE gain adjustment is performed to give each luminance value of the RGB signal a characteristic for obtaining a target luminance when reproduced and displayed on a reproduction output device such as a monitor. The luminance value given from each of the blocks 138r, 138g, and 138b is subjected to gradation conversion by gradation characteristics in the reproduction output device. That is, when the reproduction output device is a CRT monitor, the characteristic by the γ curve becomes the gradation characteristic, and therefore, in the gradation conversion block 139r, the luminance value for each of the signal levels 0 to 1023 of the R signal subjected to gain adjustment. In the gradation conversion block 139g, the luminance value for each of the signal levels 0 to 1023 of the G signal subjected to gain adjustment is subjected to γ correction, and in the gradation conversion block 139b, Γ correction is performed on the luminance value for each of signal levels 0 to 1023 of the B signal subjected to gain adjustment.

このようにしてゲイン調整及び階調変換が行われたRGB信号の信号レベル0〜1023それぞれに対する輝度値は、信号値演算ブロック135r,135g,135bに与えられる。その後、信号値演算ブロック135r,135g,135bにおいて、階調変換ブロック139r,139g,139bから与えられた各輝度値とメモリ133から読み出されたG信号の光電変換特性とに基づいて、補正処理後の信号レベルが求められる。その後、この補正処理後の信号レベルが、データベース生成ブロック136r,136g,136bに与えられると、RGB信号それぞれのデータベースDr,Dg,Dbが生成される。尚、信号値演算ブロック135r,135g,135b及びデータベース生成ブロック136r,136g,136bは、第1例及び第2例における信号値演算ブロック135r,135b及びデータベース生成ブロック136r,136bと同様の動作を行う。   The luminance values corresponding to the signal levels 0 to 1023 of the RGB signals subjected to gain adjustment and gradation conversion in this way are given to the signal value calculation blocks 135r, 135g, and 135b. Thereafter, in the signal value calculation blocks 135r, 135g, and 135b, correction processing is performed based on the luminance values given from the gradation conversion blocks 139r, 139g, and 139b and the photoelectric conversion characteristics of the G signal read from the memory 133. The later signal level is determined. Thereafter, when the signal level after the correction processing is given to the database generation blocks 136r, 136g, and 136b, the databases Dr, Dg, and Db of the RGB signals are generated. The signal value calculation blocks 135r, 135g, 135b and the database generation blocks 136r, 136g, 136b perform the same operations as the signal value calculation blocks 135r, 135b and the database generation blocks 136r, 136b in the first and second examples. .

よって、上述のようにして生成されたデータベースDgについては、G信号に対してゲイン調整及び階調変換が行われたデータを格納するデータベースとなり、又、データベースDr,Dbについては、RB信号それぞれに対してホワイトバランス処理及びゲイン調整及び階調変換が行われたデータを格納するデータベースとなる。このことより、本例におけるデータテーブル生成動作処理を行うことで、WB制御部8において、RGB信号それぞれに対して、ホワイトバランス処理を行うとともにゲイン調整及び階調変換を行うことができるため、図1における階調変換回路11を省略することができる。   Therefore, the database Dg generated as described above is a database that stores data obtained by performing gain adjustment and gradation conversion on the G signal, and the databases Dr and Db are respectively stored in the RB signal. On the other hand, it is a database that stores data on which white balance processing, gain adjustment, and gradation conversion have been performed. Accordingly, by performing the data table generation operation processing in this example, the WB control unit 8 can perform white balance processing, gain adjustment, and gradation conversion for each of the RGB signals. 1 can be omitted.

尚、上述のデータテーブル生成動作の各例において、固体撮像素子2のダイナミックレンジを離散的に切り換える場合について、以上のように説明したが、固体撮像素子2のダイナミックレンジを連続的に切り換える場合においては、次のような動作処理を行うようにしても構わない。まず、メモリ133には、固体撮像素子2のダイナミックレンジを離散的に切り換える場合と同様、複数段階の光電変換特性を格納する。そして、設定された固体撮像素子2のダイナミックレンジの値(例えば、信号φVPSの電圧値VL)が、離散的に設定された2つのダイナミックレンジの間の値となるとき、離散的に設定された2つのダイナミックレンジに対する2つの光電変換特性をメモリ133から読み出す。   In each example of the data table generation operation described above, the case where the dynamic range of the solid-state image sensor 2 is switched discretely has been described above. However, in the case where the dynamic range of the solid-state image sensor 2 is continuously switched. The following operation process may be performed. First, the memory 133 stores a plurality of stages of photoelectric conversion characteristics as in the case where the dynamic range of the solid-state imaging device 2 is discretely switched. Then, when the set dynamic range value of the solid-state imaging device 2 (for example, the voltage value VL of the signal φVPS) becomes a value between two discretely set dynamic ranges, it is set discretely. Two photoelectric conversion characteristics for two dynamic ranges are read from the memory 133.

そして、固体撮像素子2に対して設定されたダイナミックレンジの値(例えば、信号φVPSの電圧値VL)と離散的に設定された2つのダイナミックレンジの値との関係より、メモリ133より読み出して2つの光電変換特性の各係数((7)式のA及び(8)式のα,β)を補間処理することで、新たな光電変換特性を生成する。そして、このように生成した光電変換特性を、現在固体撮像素子2に対して設定しているダイナミックレンジに対するG信号の光電変換特性として用いる。即ち、例えば、図7のグラフのように、固体撮像素子2の光電変換特性a1〜a4に対する4種類のデータテーブルがメモリ133に格納されているとともに、光電変換特性a2,a3の間となる光電変換特性となるダイナミックレンジが固体撮像素子2に対して設定されるものとする。このとき、光電変換特性a2,a3を補間処理することで、現在固体撮像素子2に対して設定されているダイナミックレンジに対する光電変換特性axが、図20のように求められ、G信号の光電変換特性として用いられる。このようにして求められたG信号の光電変換特性とWB評価値wr,wbとを用いて、RB信号の光電変換特性それぞれを求める。尚、このとき、G信号の光電変換特性と、WB評価値wr,wbから得られる閾値レベルVthでの輝度差を用いてRB信号の光電変換特性が逆算される。   Then, the dynamic range value set for the solid-state imaging device 2 (for example, the voltage value VL of the signal φVPS) is read from the memory 133 based on the relationship between the two dynamic range values set discretely and 2 A new photoelectric conversion characteristic is generated by interpolating each coefficient (A in equation (7) and α, β in equation (8)) of the two photoelectric conversion characteristics. The photoelectric conversion characteristics generated in this way are used as the G signal photoelectric conversion characteristics for the dynamic range currently set for the solid-state imaging device 2. That is, for example, as in the graph of FIG. 7, four types of data tables for the photoelectric conversion characteristics a1 to a4 of the solid-state imaging device 2 are stored in the memory 133, and the photoelectric conversion between the photoelectric conversion characteristics a2 and a3 is performed. It is assumed that a dynamic range serving as conversion characteristics is set for the solid-state imaging device 2. At this time, the photoelectric conversion characteristics a2 and a3 are interpolated to obtain the photoelectric conversion characteristics ax for the dynamic range currently set for the solid-state imaging device 2, as shown in FIG. Used as a characteristic. Each of the photoelectric conversion characteristics of the RB signal is obtained using the photoelectric conversion characteristics of the G signal thus obtained and the WB evaluation values wr and wb. At this time, the photoelectric conversion characteristic of the RB signal is back-calculated using the photoelectric conversion characteristic of the G signal and the luminance difference at the threshold level Vth obtained from the WB evaluation values wr and wb.

<WB制御回路の第1例>
図1のように構成される撮像装置におけるWB制御回路の第1例について、図面を参照して以下に詳細に説明する。図21は、本例のWB制御回路の内部構成を示すブロック図である。尚、本例のWB制御回路は、全体制御部によるデータテーブル生成動作の第1例又は第2例において生成されたデータテーブルDr,Dbが与えられる。
<First Example of WB Control Circuit>
A first example of the WB control circuit in the imaging apparatus configured as shown in FIG. 1 will be described in detail below with reference to the drawings. FIG. 21 is a block diagram showing the internal configuration of the WB control circuit of this example. The WB control circuit of this example is provided with the data tables Dr and Db generated in the first example or the second example of the data table generation operation by the overall control unit.

本例のWB制御回路8は、図21に示すように、FPN補正回路6でFPN成分が除去されたR信号の信号レベルを変換する信号値変換部81rと、FPN補正回路6でFPN成分が除去されたB信号の信号レベルを変換する信号値変換部81bと、R信号の信号レベルの入出力変換値を表すデータテーブルDrを格納するLUT(Look Up Table)82rと、B信号の信号レベルの入出力変換値を表すデータテーブルDbを格納するLUT82bと、信号値変換部81r,81bそれぞれから出力されるRB信号とFPN補正回路6でFPN成分が除去されたG信号との出力タイミングを調整するタイミング調整部83と、を備える。   As shown in FIG. 21, the WB control circuit 8 of this example includes a signal value conversion unit 81 r that converts the signal level of the R signal from which the FPN component has been removed by the FPN correction circuit 6, and an FPN component that is converted by the FPN correction circuit 6. A signal value conversion unit 81b that converts the signal level of the removed B signal, an LUT (Look Up Table) 82r that stores a data table Dr that represents an input / output conversion value of the signal level of the R signal, and a signal level of the B signal The output timing of the LUT 82b for storing the data table Db representing the input / output conversion values of the RB, the RB signal output from each of the signal value conversion units 81r and 81b, and the G signal from which the FPN component has been removed by the FPN correction circuit 6 is adjusted. And a timing adjustment unit 83.

このように構成されるWB制御回路8は、全体制御部13のマイコン132において生成されたデータテーブルDr,Dbが与えられると、データテーブルDr,DbをそれぞれLUT82r,82bに格納する。そして、FPN補正回路6でFPN補正されたRGB信号それぞれがWB制御回路8に入力されると、R信号が信号値変換部81rに与えられ、B信号が信号値変換部81bに与えられる。信号値変換部81rでは、入力されたR信号の信号レベルを確認すると、LUT82r内のデータテーブルDrを参照し、入力されたR信号の信号レベルと同じ入力アドレスに対して格納された補正処理後の信号レベルを読み出す。そして、読み出した補正処理後の信号レベルを新たなR信号の信号レベルとしてタイミング調整部83に送出する。同様に、信号値変換部81bでは、入力されたB信号の信号レベルを確認すると、LUT82b内のデータテーブルDbを参照し、その補正処理後の信号レベルを読み出すとともに、この補正処理後の信号レベルを新たなB信号の信号レベルとしてタイミング調整部83に送出する。   When the data tables Dr and Db generated in the microcomputer 132 of the overall control unit 13 are given, the WB control circuit 8 configured as described above stores the data tables Dr and Db in the LUTs 82r and 82b, respectively. When each of the RGB signals corrected by the FPN correction circuit 6 is input to the WB control circuit 8, the R signal is supplied to the signal value conversion unit 81r and the B signal is supplied to the signal value conversion unit 81b. When the signal value conversion unit 81r confirms the signal level of the input R signal, the signal value conversion unit 81r refers to the data table Dr in the LUT 82r, and after correction processing stored for the same input address as the signal level of the input R signal. Read the signal level. Then, the read signal level after the correction process is sent to the timing adjustment unit 83 as a new signal level of the R signal. Similarly, when the signal level conversion unit 81b confirms the signal level of the input B signal, the signal level Db in the LUT 82b is referred to read the signal level after the correction process, and the signal level after the correction process Is sent to the timing adjustment unit 83 as the signal level of the new B signal.

よって、信号値変換部81r,81bそれぞれにおいて、G信号を基準としたホワイトバランス処理が施される。このとき、入力されたRGB信号の光電変換特性が図22(a)のグラフに示すような関係となる場合、RGB信号それぞれの入出力関係は図22(b)のグラフに示すような関係となる。即ち、図22(b)において、G信号の入出力関係が直線的な関係となる。そして、RB信号の入出力関係が、光電変換特性がG信号の光電変換特性の線形変換特性と重なる線形変換特性領域(線形領域)についてはG信号の入出力関係の傾きを変更した状態となり、又、光電変換特性がG信号の光電変換特性の対数変換特性と重なる対数変換特性領域(対数領域)についてはG信号の入出力関係を平行移動させた状態となる。又、RB信号の入出力関係において、光電変換特性の対数変換特性がG信号の光電変換特性の線形変換特性と重なる部分、又は、光電変換特性の対数変換特性がG信号の光電変換特性の線形変換特性と重なる部分となる中間領域については、線形領域におけるG信号の入出力関係を乗除算するものと対数領域におけるG信号の入出力関係を加減算するものとを組み合わせた状態となる。   Therefore, white balance processing based on the G signal is performed in each of the signal value conversion units 81r and 81b. At this time, when the photoelectric conversion characteristics of the input RGB signal are as shown in the graph of FIG. 22A, the input / output relationship of each of the RGB signals is as shown in the graph of FIG. 22B. Become. That is, in FIG. 22B, the input / output relationship of the G signal is a linear relationship. Then, the input / output relationship of the RB signal is in a state where the slope of the input / output relationship of the G signal is changed for the linear conversion characteristic region (linear region) where the photoelectric conversion property overlaps the linear conversion property of the photoelectric conversion property of the G signal, In addition, in the logarithmic conversion characteristic region (logarithmic region) where the photoelectric conversion characteristic overlaps the logarithmic conversion characteristic of the G signal photoelectric conversion characteristic, the input / output relationship of the G signal is translated. In the input / output relationship of the RB signal, the logarithmic conversion characteristic of the photoelectric conversion characteristic overlaps the linear conversion characteristic of the photoelectric conversion characteristic of the G signal, or the logarithmic conversion characteristic of the photoelectric conversion characteristic is linear of the photoelectric conversion characteristic of the G signal. The intermediate region that overlaps with the conversion characteristic is in a state where a combination of multiplication / division of the input / output relationship of the G signal in the linear region and an addition / subtraction of the input / output relationship of the G signal in the logarithmic region are combined.

このようにして信号値変換部81r,81bそれぞれで補正処理後の信号レベルに変換されたRB信号と、FPN補正回路6でFPN補正されたG信号とが、タイミング調整部83に入力される。このタイミング調整部83では、信号値変換部81r,81bにおいて変換処理がなされたRB信号と、変換処理が行われることのないG信号とを出力するためのタイミングを調整する。このように出力タイミングが調整されたRGB信号が後段の色補間回路9に出力され、後段の各回路で各画素に応じた信号処理を行うことができる。   Thus, the RB signal converted to the signal level after the correction processing by the signal value conversion units 81r and 81b and the G signal corrected by the FPN correction circuit 6 are input to the timing adjustment unit 83. The timing adjustment unit 83 adjusts the timing for outputting the RB signal converted by the signal value conversion units 81r and 81b and the G signal that is not subjected to the conversion process. The RGB signal whose output timing is adjusted in this way is output to the color interpolation circuit 9 in the subsequent stage, and signal processing corresponding to each pixel can be performed in each circuit in the subsequent stage.

<WB制御回路の第2例>
図1のように構成される撮像装置におけるWB制御回路の第2例について、図面を参照して以下に詳細に説明する。図23は、本例のWB制御回路の内部構成を示すブロック図である。尚、本例のWB制御回路は、全体制御部によるデータテーブル生成動作の第3例において生成されたデータテーブルDr,Dbが与えられる。又、図23に示すWB制御回路において、図21のWB制御回路と同一の目的で使用する部分については、その詳細な説明を省略し、同一の符号を付す。
<Second Example of WB Control Circuit>
A second example of the WB control circuit in the imaging apparatus configured as shown in FIG. 1 will be described in detail below with reference to the drawings. FIG. 23 is a block diagram showing the internal configuration of the WB control circuit of this example. The WB control circuit of this example is provided with the data tables Dr and Db generated in the third example of the data table generation operation by the overall control unit. Further, in the WB control circuit shown in FIG. 23, the parts used for the same purpose as those of the WB control circuit of FIG.

本例のWB制御回路8は、図23に示すように、信号値変換部81r,81bと、LUT82r,82bと、FPN補正回路6でFPN成分が除去されたG信号の信号レベルを変換する信号値変換部81gと、G信号の信号レベルの入出力変換値を表すデータテーブルDgを格納するLUT82gと、信号値変換部81r,81g,81bそれぞれから出力されるRGB信号それぞれの出力タイミングを調整するタイミング調整部83と、を備える。   As shown in FIG. 23, the WB control circuit 8 of this example converts the signal level of the G signal from which the FPN component has been removed by the signal value conversion units 81r and 81b, the LUTs 82r and 82b, and the FPN correction circuit 6. The output timing of each of the RGB signals output from the value converter 81g, the LUT 82g for storing the data table Dg representing the input / output conversion values of the signal level of the G signal, and the signal value converters 81r, 81g, 81b is adjusted. A timing adjustment unit 83.

このように構成されるWB制御回路8は、全体制御部13のマイコン132において生成されたデータテーブルDr,Dg,Dbが与えられると、データテーブルDr,Dg,DbをそれぞれLUT82r,82g,82bに格納する。そして、FPN補正回路6でFPN補正されたRGB信号それぞれがWB制御回路8に入力されると、RGB信号がそれぞれ、信号値変換部81r,81g,81bに与えられる。信号値変換部81r,81bでは、第1例と同様、LUT82r,82b内のデータテーブルDr,Dbを参照し、入力されたRB信号の信号レベルと同じ入力アドレスに対して格納された補正処理後の信号レベルを読み出し、新たなRB信号としてタイミング調整部83に送出する。又、信号値変換部81gにおいても、入力されたG信号の信号レベルを確認すると、LUT82g内のデータテーブルDgを参照し、入力されG信号の信号レベルと同じ入力アドレスに対して格納された補正処理後の信号レベルを読み出し、新たなG信号としてタイミング調整部83に送出する。   When the data tables Dr, Dg, Db generated in the microcomputer 132 of the overall control unit 13 are given, the WB control circuit 8 configured as described above converts the data tables Dr, Dg, Db into LUTs 82r, 82g, 82b, respectively. Store. When the RGB signals corrected by the FPN correction circuit 6 are input to the WB control circuit 8, the RGB signals are respectively supplied to the signal value conversion units 81r, 81g, and 81b. Similarly to the first example, the signal value conversion units 81r and 81b refer to the data tables Dr and Db in the LUTs 82r and 82b, and after correction processing stored for the same input address as the signal level of the input RB signal. Is sent to the timing adjustment unit 83 as a new RB signal. Also in the signal value conversion unit 81g, when the signal level of the input G signal is confirmed, the correction is stored with respect to the same input address as the signal level of the input G signal by referring to the data table Dg in the LUT 82g. The processed signal level is read and sent to the timing adjustment unit 83 as a new G signal.

よって、信号値変換部81r,81bそれぞれにおいて、G信号を基準としたホワイトバランス処理が施されるとともに、RB信号に対してゲイン調整及び階調変換が施されることとなる。又、信号値変換部81gにおいて、G信号に対してゲイン調整及び階調変換が施されることとなる。このようにして信号値変換部81r,81g,81bそれぞれで補正処理後の信号レベルに変換されたRGB信号は、タイミング調整部83において、その出力タイミングが調整される。このように出力タイミングが調整されたRGB信号が後段の色補間回路9に出力され、後段の各回路で各画素に応じた信号処理を行うことができる。   Therefore, in each of the signal value conversion units 81r and 81b, white balance processing based on the G signal is performed, and gain adjustment and gradation conversion are performed on the RB signal. In the signal value converter 81g, gain adjustment and gradation conversion are performed on the G signal. The timing adjustment unit 83 adjusts the output timing of the RGB signals converted into the signal levels after the correction processing by the signal value conversion units 81r, 81g, and 81b as described above. The RGB signal whose output timing is adjusted in this way is output to the color interpolation circuit 9 in the subsequent stage, and signal processing corresponding to each pixel can be performed in each circuit in the subsequent stage.

尚、本実施形態において、固体撮像素子を画像信号からノイズ信号を減算することで素子内で画素バラツキを除去するように動作するものとし、FPN補正回路において画像信号内に更に残存するFPN成分を除去するようにしたが、固体撮像素子においてノイズ信号の読み出しを行うことなく、FPN補正回路において画素バラツキなどにより発生するFPN成分全てを除去するようにしても構わない。   In this embodiment, the solid-state imaging device is operated so as to remove pixel variation in the device by subtracting the noise signal from the image signal, and the FPN component further remaining in the image signal in the FPN correction circuit. However, the FPN correction circuit may be configured to remove all FPN components generated by pixel variation or the like without reading the noise signal in the solid-state imaging device.

又、本実施形態において、複数種類の色フィルタを1つの固体撮像素子に設けた単板の固体撮像素子としたが、例えば、RGBの色フィルタ毎に固体撮像素子を備えた三板の固体撮像素子のように、同一の色フィルタが備えられた固体撮像素子を色フィルタの種類毎に備える構成としても構わない。又、本実施形態において、線形特性領域と対数特性領域とを含む光電変換特性を示すものについて説明したが、これに限らず、例えば、第1の線形変換特性から第1の線形変換特性とは傾きの異なる第2の線形変換特性に変化するようなものや、線形変換特性と対数変換特性以外の非線形変換特性とを含むものなどの、いわゆる適応型センサと呼ばれるものについて当てはまる。   In the present embodiment, a single-plate solid-state image sensor having a plurality of types of color filters provided in one solid-state image sensor is used. For example, a three-plate solid-state image sensor having a solid-state image sensor for each RGB color filter As described above, a solid-state imaging device having the same color filter may be provided for each type of color filter. In the present embodiment, the photoelectric conversion characteristic including the linear characteristic region and the logarithmic characteristic region has been described. However, the present invention is not limited to this. For example, from the first linear conversion characteristic to the first linear conversion characteristic. This applies to what is called an adaptive sensor, such as one that changes to a second linear conversion characteristic having a different slope, or one that includes a linear conversion characteristic and a nonlinear conversion characteristic other than a logarithmic conversion characteristic.

<撮像システム>
上述の撮像装置においては、ホワイトバランス処理を含む各種信号処理を撮像装置内で行うものとしたが、これらの各種信号処理を撮像装置において行うことなく、撮像装置で得られたデータが与えられたコンピュータにおいて上述の各種信号処理を行うような撮像システムを構成することもできる。以下では、このような撮像装置とコンピュータを含む撮像システムについて、図面を参照して説明する。
<Imaging system>
In the imaging device described above, various signal processing including white balance processing is performed in the imaging device, but data obtained by the imaging device is given without performing these various signal processes in the imaging device. An imaging system that performs the above-described various signal processes in a computer can also be configured. Hereinafter, an imaging system including such an imaging apparatus and a computer will be described with reference to the drawings.

この撮像システムは、図24に示すように、被写体を撮像してRGB信号を生成する撮像装置200と、撮像装置200から出力されるRGB信号を受信してホワイトバランス処理を含む各種信号処理を施すコンピュータ250と、によって構成される。このとき、撮像装置200において、被写体を撮像して得たRGB信号に対して黒基準補正及びFPN補正を行うとともに、露光量設定を行うためのAE評価値の検出を行う。それに対して、コンピュータ250では、WB評価値の検出を行うとともに、撮像装置200から与えられたRGB信号に対してホワイトバランス処理以降の各種信号処理を施す。   As shown in FIG. 24, the imaging system receives an RGB signal output from the imaging device 200 and captures a subject to generate RGB signals, and performs various signal processing including white balance processing. And a computer 250. At this time, the imaging apparatus 200 performs black reference correction and FPN correction on the RGB signal obtained by imaging the subject, and detects an AE evaluation value for setting the exposure amount. On the other hand, the computer 250 detects the WB evaluation value and performs various signal processing after the white balance processing on the RGB signal given from the imaging device 200.

このような撮像システムにおいて、撮像装置200が、光学系1、固体撮像素子2、アンプ3、AD変換回路4、黒基準補正回路5、FPN補正回路6、絞り制御部14、及びタイミング生成回路15と、AE評価値を検出するAE評価値検出回路7aと、各ブロックの制御を行う全体制御部13aと、FPN補正回路6でFPN補正されたRGB信号を一時的に格納するメモリ201と、メモリ201に一時的に格納したRGB信号を読み出して外部に送信する入出力インターフェース202と、を備える。   In such an imaging system, the imaging apparatus 200 includes an optical system 1, a solid-state imaging device 2, an amplifier 3, an AD conversion circuit 4, a black reference correction circuit 5, an FPN correction circuit 6, an aperture control unit 14, and a timing generation circuit 15. An AE evaluation value detection circuit 7a for detecting an AE evaluation value, an overall control unit 13a for controlling each block, a memory 201 for temporarily storing RGB signals corrected by the FPN correction circuit 6, and a memory An input / output interface 202 that reads out the RGB signals temporarily stored in 201 and transmits them to the outside.

又、コンピュータ250は、PC(Personal Computer)やPDA(Personal Digital Assistant)などであり、データの処理演算を行うCPU(Central Processing Unit)251と、データを一時的に格納するメモリ252と、アプリケーションやデータが格納されるハードディスク253と、データの入力を行うキーボードやマウスなどの入力部254と、映像を表示するディスプレイ255と、外部とのデータのやりとりを行う入出力インターフェース256と、を備える。   The computer 250 is a PC (Personal Computer), a PDA (Personal Digital Assistant) or the like, and includes a CPU (Central Processing Unit) 251 that performs data processing operations, a memory 252 that temporarily stores data, an application, It includes a hard disk 253 for storing data, an input unit 254 such as a keyboard and mouse for inputting data, a display 255 for displaying video, and an input / output interface 256 for exchanging data with the outside.

このように、撮像装置200及びコンピュータ250がそれぞれ構成するとき、コンピュータ250において、RGB信号に対してホワイトバランス処理以降の各種信号処理を施すためのアプリケーションがハードディスク253に格納されている。このアプリケーションをハードディスク253より読み出して、メモリ252に格納させることで、WB評価値の検出動作とホワイトバランス処理以降の各種信号処理を行うことができる。又、このアプリケーションを起動することによって、ユーザが各種信号処理におけるパラメータを指定するためのユーザインターフェース(UI)がディスプレイ255に表示される。   As described above, when the imaging apparatus 200 and the computer 250 are respectively configured, an application for performing various signal processing after the white balance processing on the RGB signals in the computer 250 is stored in the hard disk 253. By reading this application from the hard disk 253 and storing it in the memory 252, it is possible to perform the WB evaluation value detection operation and various signal processing after the white balance processing. Also, by starting this application, a user interface (UI) for the user to specify parameters in various signal processing is displayed on the display 255.

以下では、この撮像システムにおける撮像装置200及びコンピュータ250それぞれの動作について、図面を参照して説明する。   Hereinafter, operations of the imaging apparatus 200 and the computer 250 in the imaging system will be described with reference to the drawings.

まず、撮像装置200においては、図1の撮像装置と同様、固体撮像素子2に光が入射されると、アナログ信号となるRGB信号が生成されて、アンプ3で増幅された後、A/D変換回路4でデジタル信号に変換される。このデジタル信号となるRGB信号は、黒基準補正回路5において、最低輝度値となる黒レベルが基準値に補正された後、FPN補正回路6において格納しているFPN成分を減算することによって、FPN成分が除去される。そして、FPN成分が除去されたRGB信号がメモリ201に格納される。このように動作するとき、FPN成分が除去されたRGB信号がAE評価値検出回路7aに与えられると、被写体の輝度範囲を確認し、絞り制御部14によって設定される絞り1aの開口度を決めるAE評価値が検出される。   First, in the imaging device 200, when light is incident on the solid-state imaging device 2, an RGB signal that is an analog signal is generated and amplified by the amplifier 3 as in the imaging device of FIG. The signal is converted into a digital signal by the conversion circuit 4. The RGB signal to be a digital signal is subjected to FPN by subtracting the FPN component stored in the FPN correction circuit 6 after the black level that is the lowest luminance value is corrected to the reference value in the black reference correction circuit 5. Ingredients are removed. Then, the RGB signal from which the FPN component has been removed is stored in the memory 201. When the RGB signal from which the FPN component is removed is given to the AE evaluation value detection circuit 7a when operating in this way, the luminance range of the subject is confirmed and the aperture of the diaphragm 1a set by the diaphragm controller 14 is determined. An AE evaluation value is detected.

又、撮像装置200は、撮像動作を行う際に固体撮像素子2に対して設定された光電変換特性を示すダイナミックレンジ情報を、撮像した画像毎に確認し、その画像のRGB信号とともにメモリ201に格納する。このダイナミックレンジ情報は、以下の4つの情報の(1)、(2)の少なくともいずれか一方と、(3)、(4)の少なくともいずれか一方と、を備えるか、又は、(1)〜(4)の少なくともいずれか一方のみを備える。
(1)固体撮像素子2の光電変換特性の変極点Vth
(2)固体撮像素子2の光電変換特性を設定するためのモード番号M
(3)固体撮像素子2の光電変換特性を示す近似式の係数A,C,α,β
(4)撮像装置200の撮像条件
In addition, the imaging apparatus 200 checks the dynamic range information indicating the photoelectric conversion characteristics set for the solid-state imaging device 2 when performing the imaging operation for each captured image, and stores it in the memory 201 together with the RGB signal of the image. Store. This dynamic range information includes at least one of the following four pieces of information (1) and (2) and at least one of (3) and (4), or (1) to Only at least one of (4) is provided.
(1) Inflection point Vth of the photoelectric conversion characteristics of the solid-state imaging device 2
(2) Mode number M for setting the photoelectric conversion characteristics of the solid-state imaging device 2
(3) Coefficients A, C, α, β of approximate expressions indicating the photoelectric conversion characteristics of the solid-state imaging device 2
(4) Imaging conditions of the imaging apparatus 200

これらのダイナミックレンジ情報において、固体撮像素子2の光電変換特性の変極点Vthは、固体撮像素子2の光電変換特性対数変換特性から線形変換特性に変更する際のRGB信号の信号レベルを示す。又、固体撮像素子2の光電変換特性を設定するためのモード番号Mは、このモード番号Mがコンピュータ250側で設定されることで、撮像装置200の固体撮像素子2の光電変換特性が設定されるものである。又、固体撮像素子2の光電変換特性を示す近似式の係数は、線形変換特性を表す(イ)式 V=A×L+C における係数A,Cと、対数変換特性を表す(ロ)式 V=α×ln(L)+β における係数α,βとによって構成される。又、撮像装置200の撮像条件とされるとき、信号φVPSの電圧値VH,VLの電圧差ΔVPSと、固体撮像素子2への露光時間txと、絞り1aの開口率rxと、固体撮像素子2の内部アンプ及びアンプ3での増幅率axが、ダイナミックレンジ情報となる。この撮像装置200の撮像条件をダイナミックレンジ情報としたときは、(イ)式における係数Aと(露光時間×絞り1aの開口率×増幅率)との関係が既知であるとともに、(ロ)式における係数βと信号φVPSの電圧差ΔVPS、及び、係数αと増幅率の関係が既知である。   In these dynamic range information, the inflection point Vth of the photoelectric conversion characteristic of the solid-state image sensor 2 indicates the signal level of the RGB signal when the photoelectric conversion characteristic logarithmic conversion characteristic of the solid-state image sensor 2 is changed to the linear conversion characteristic. Further, the mode number M for setting the photoelectric conversion characteristics of the solid-state imaging device 2 is set on the computer 250 side, so that the photoelectric conversion characteristics of the solid-state imaging device 2 of the imaging apparatus 200 are set. Is. The coefficients of the approximate expression indicating the photoelectric conversion characteristics of the solid-state imaging device 2 are the coefficients A and C in the equation (a) V = A × L + C representing the linear conversion characteristic, and the equation (b) representing the logarithmic conversion characteristic V = It is constituted by the coefficients α and β in α × ln (L) + β. Further, when the imaging condition of the imaging apparatus 200 is set, the voltage difference ΔVPS between the voltage values VH and VL of the signal φVPS, the exposure time tx to the solid-state imaging device 2, the aperture ratio rx of the diaphragm 1a, and the solid-state imaging device 2 The amplification factor ax of the internal amplifier and the amplifier 3 is dynamic range information. When the imaging conditions of the imaging apparatus 200 are dynamic range information, the relationship between the coefficient A in (A) and (exposure time × aperture ratio of the diaphragm 1a × amplification factor) is known, and (B) The voltage difference ΔVPS between the coefficient β and the signal φVPS and the relationship between the coefficient α and the amplification factor are known.

又、コンピュータ250は、入力部254が操作されることで、ハードディスク253よりアプリケーションが読み出されて、アプリケーションによって指定される動作が開始されると、ディスプレイ255に、UIとして、図25のような画面が表示される。図25の画面には、撮像されて得られた画像を表示する画像表示領域X1と、画像の鮮鋭度や色の濃淡の設定などの画像処理条件の設定を行う画像処理条件設定領域X2と、撮像装置200で撮像された画像の取り込みの開始を指示するための画像取得ボタンX3と、ホワイトバランス処理を行う際に基準とする光電変換特性を設定するためのWB設定領域X4と、色補正されたRGB信号信号に対して施す階調変換後の階調特性を示す階調特性表示領域X5と、が表示される。   When the input unit 254 is operated to read the application from the hard disk 253 and the operation designated by the application is started, the computer 250 displays a UI on the display 255 as shown in FIG. A screen is displayed. On the screen of FIG. 25, an image display area X1 for displaying an image obtained by imaging, an image processing condition setting area X2 for setting image processing conditions such as setting of image sharpness and color shading, Color correction is performed for an image acquisition button X3 for instructing the start of capturing an image captured by the imaging apparatus 200, a WB setting region X4 for setting a photoelectric conversion characteristic that is used as a reference when performing white balance processing. A gradation characteristic display area X5 indicating gradation characteristics after gradation conversion performed on the RGB signal signals is displayed.

このとき、画像処理条件設定領域X2において、スクロールバーSB1が操作されて画像の鮮鋭度が変更されると、コアリング回路12におけるエッジ成分を設定するためのエッジ強調量が変更され、又、スクロールバーSB2が操作されて画像の色の濃淡が変更されると、色補正処理におけるマトリックス係数a1〜a3,b1〜b3,c1〜c3が変更される。このとき、撮像装置200から与えられるダイナミックレンジ情報に基づいて得られるエッジ強調量又は色補正処理におけるマトリックス係数を基準として変更されるものとしても構わないし、予め設定された所定値のエッジ強調量又は色補正処理におけるマトリックス係数を基準として変更されるものとしても構わない。   At this time, when the sharpness of the image is changed by operating the scroll bar SB1 in the image processing condition setting region X2, the edge enhancement amount for setting the edge component in the coring circuit 12 is changed, and the scrolling is performed. When the bar SB2 is operated to change the color density of the image, the matrix coefficients a1 to a3, b1 to b3, and c1 to c3 in the color correction process are changed. At this time, the edge enhancement amount obtained based on the dynamic range information given from the imaging device 200 or a matrix coefficient in the color correction processing may be changed as a reference. It may be changed based on the matrix coefficient in the color correction process.

又、画像処理条件設定領域X2において、3つのオプションボタンOb1〜Ob3が指定されることで、スクロールバーSB1,SB2それぞれによって指定されるエッジ強調量及びマトリックス係数a1〜a3,b1〜b3,c1〜c3を用いる対象となる画像が指定される。即ち、スクロールバーSB1,SB2で指定されたエッジ強調量及びマトリックス係数a1〜a3,b1〜b3,c1〜c3の使用が、オプションボタンOb1が指定された場合は、得られた画像が光電変換特性が線形変換特性及び対数変換特性のいずれの場合においても行われることを示し、又、オプションボタンOb2が指定された場合は、得られた画像が光電変換特性が線形変換特性の場合においてのみ行われることを示し、更に、オプションボタンOb3が指定された場合は、得られた画像が光電変換特性が対数変換特性の場合においてのみ行われることを示す。   In addition, when the three option buttons Ob1 to Ob3 are designated in the image processing condition setting area X2, the edge enhancement amounts and matrix coefficients a1 to a3, b1 to b3, c1 to be designated by the scroll bars SB1 and SB2 respectively. The target image to use c3 is designated. That is, when the edge enhancement amount specified by the scroll bars SB1 and SB2 and the use of the matrix coefficients a1 to a3, b1 to b3, and c1 to c3 are specified by the option button Ob1, the obtained image has a photoelectric conversion characteristic. Is performed in both cases of the linear conversion characteristic and the logarithmic conversion characteristic, and when the option button Ob2 is designated, the obtained image is performed only when the photoelectric conversion characteristic is the linear conversion characteristic. In addition, when the option button Ob3 is designated, it indicates that the obtained image is performed only when the photoelectric conversion characteristic is the logarithmic conversion characteristic.

又、WB設定領域X4において、5つのオプションボタンWb1〜Wb5が指定されることで、ホワイトバランス処理を行う際のWB評価値wr,wbが設定される。即ち、オプションボタンWb1が指定されると、撮像装置200から与えられるRGB信号に基づいて自動的に設定されたWB評価値wr,wbを用いてホワイトバランス処理を行うことが設定され、オプションボタンWb2〜Wb5が指定されると、予め設定された値となるWB評価値wr,wbを用いてホワイトバランス処理を行うことが設定される。尚、オプションボタンWb2〜WB5が指定される場合はそれぞれ、蛍光灯下での画像に応じたWB評価値wr,wb、白熱灯下での画像に応じたWB評価値wr,wb、屋外晴天時での画像に応じたWB評価値wr,wb、屋外曇天時での画像に応じたWB評価値wr,wbのそれぞれが設定される。   In addition, by specifying five option buttons Wb1 to Wb5 in the WB setting area X4, WB evaluation values wr and wb for performing white balance processing are set. That is, when the option button Wb1 is designated, the white balance processing is set to be performed using the WB evaluation values wr and wb automatically set based on the RGB signals given from the imaging device 200, and the option button Wb2 When .about.Wb5 is designated, white balance processing is set to be performed using WB evaluation values wr and wb which are preset values. When the option buttons Wb2 to WB5 are designated, the WB evaluation values wr and wb corresponding to the image under the fluorescent lamp, the WB evaluation values wr and wb corresponding to the image under the incandescent lamp, and the outdoor sunny day, respectively. The WB evaluation values wr and wb corresponding to the image at, and the WB evaluation values wr and wb corresponding to the image during outdoor cloudy weather are set.

又、階調特性表示領域X5において、表示された階調特性が、色補正処理されたRGB信号それぞれに対して階調変換する際の変換前後の関係を示す。そして、表示された階調特性における線形変換特性からの対数変換特性に切りかわる変極点の位置を変更することで、そのダイナミックレンジにおいて、線形変換特性による信号となる線形領域における階調の大きさと、対数変換特性による信号となる対数領域における階調の大きさとを設定することができる。尚、階調特性の変極点の位置は、撮像装置200から与えられるダイナミックレンジ情報に基づいて得られた位置を基準として設定されるものとしても構わないし、予め設定された所定位置を基準として設定されるものとしても構わない。又、階調特性を示す複数のLUTを備え、このLUTを切り換えることで、階調特性表示領域X5に表示するLUTを変更するものとしても構わない。   In the gradation characteristic display area X5, the displayed gradation characteristic indicates a relationship before and after conversion when gradation conversion is performed on each of the RGB signals subjected to color correction processing. Then, by changing the position of the inflection point that switches from the linear conversion characteristic to the logarithmic conversion characteristic in the displayed gradation characteristic, in the dynamic range, the magnitude of the gradation in the linear region that is a signal by the linear conversion characteristic The gradation level in the logarithmic region that becomes a signal based on the logarithmic conversion characteristic can be set. The position of the inflection point of the gradation characteristic may be set with reference to a position obtained based on dynamic range information given from the imaging device 200, or set with reference to a predetermined position set in advance. It doesn't matter if it is done. Further, a plurality of LUTs indicating gradation characteristics may be provided, and the LUT displayed in the gradation characteristic display region X5 may be changed by switching the LUTs.

このように、コンピュータ250においてアプリケーションが起動されて、図25のようなUIがディスプレイ255に表示されたとき、コンピュータ250が図26のフローチャートに従って動作することで、撮像装置200で撮像された画像がディスプレイ255に表示される。まず、コンピュータ250において、入力部254が操作されて、UI画面内の画像取得ボタンX3が押されると(STEP1)、入出力インターフェース256に入出力インターフェース202が接続された撮像装置200に対して、撮像装置200との回線を確保する(STEP2)。このとき、撮像装置200とコンピュータ250との間で、通信の要求と応答を繰り返すことで、回線を確保することができる。   As described above, when the application is activated in the computer 250 and the UI as shown in FIG. 25 is displayed on the display 255, the computer 250 operates according to the flowchart in FIG. It is displayed on the display 255. First, in the computer 250, when the input unit 254 is operated and the image acquisition button X3 in the UI screen is pressed (STEP 1), the imaging apparatus 200 in which the input / output interface 202 is connected to the input / output interface 256 is displayed. A line with the imaging device 200 is secured (STEP 2). At this time, a line can be secured by repeating the communication request and response between the imaging apparatus 200 and the computer 250.

そして、撮像装置200との回線が確保されたか否かを確認し(STEP3)、撮像装置200との回線が確保されたことを確認したとき(Yes)、撮像装置200に対して撮像して得られたRGB信号の出力を要求する(STEP4)。このとき、撮像装置200は、コンピュータ250からのRGB信号の出力要求を受信すると、メモリ201に格納している1フレーム分のRGB信号とダイナミックレンジ情報とを読み出して、入出力インターフェース202より出力する。このとき、1フレーム分のRGB信号によるフレームデータが生成されて出力されるとき、ダイナミックレンジ情報がフレームデータのヘッダ部分に付加されている。   Then, it is confirmed whether or not a line with the imaging apparatus 200 is secured (STEP 3). When it is confirmed that a line with the imaging apparatus 200 is secured (Yes), the imaging apparatus 200 is imaged. The output of the received RGB signal is requested (STEP 4). At this time, when receiving an RGB signal output request from the computer 250, the imaging apparatus 200 reads the RGB signal and dynamic range information for one frame stored in the memory 201 and outputs them from the input / output interface 202. . At this time, when frame data based on RGB signals for one frame is generated and output, dynamic range information is added to the header portion of the frame data.

そして、撮像装置200からのフレームデータを入出力インターフェース256で受信されて、ハードディスク253の一時記憶領域に格納されると(STEP5)、このフレームデータのヘッダ部分からダイナミックレンジ情報を取得する(STEP6)。この取得したダイナミックレンジ情報によって、各信号処理に用いるパラメータを設定するとともに、設定されたパラメータに応じた表示を、ディスプレイ255のUI画像に対して行う(STEP7)。   When the frame data from the imaging device 200 is received by the input / output interface 256 and stored in the temporary storage area of the hard disk 253 (STEP 5), dynamic range information is acquired from the header portion of this frame data (STEP 6). . Based on the acquired dynamic range information, parameters used for each signal processing are set, and display corresponding to the set parameters is performed on the UI image of the display 255 (STEP 7).

即ち、ホワイトバランス処理に対するWB検出値wr,wb、色補正処理に対するマトリックス係数a1〜a3,b1〜b3,c1〜c3、階調変換処理に対する階調特性、コアリング処理に対するエッジ強調量をそれぞれ設定するとともに、設定された各パラメータに応じた表示を、画像処理条件設定領域X2、WB設定領域X4、WB設定領域X4それぞれにおいて行う。   That is, WB detection values wr and wb for white balance processing, matrix coefficients a1 to a3, b1 to b3 and c1 to c3 for color correction processing, gradation characteristics for gradation conversion processing, and edge enhancement amounts for coring processing are set. At the same time, display according to each set parameter is performed in each of the image processing condition setting area X2, the WB setting area X4, and the WB setting area X4.

又、このように各パラメータが設定されるとき、ホワイトバランス処理で用いるWB評価値wb,wrを設定するために、まず、ダイナミックレンジ情報より得られる変極点Vth又はモード番号Mより、各画素のRGB信号それぞれの光電変換特性を判別するための閾値レベルVth(図10〜図12参照)を設定する。このとき、変極点Vthがダイナミックレンジ情報に含まれるときは、この変極点Vthをそのまま閾値レベルVthとすることで設定し、モード番号Mがダイナミックレンジ情報に含まれるときは、予めハードディスク253のアプリケーションとともに格納されるモード番号Mに対応した閾値レベルVthを読み出して設定する。   When each parameter is set in this way, in order to set the WB evaluation values wb and wr used in the white balance processing, first, from the inflection point Vth or mode number M obtained from the dynamic range information, A threshold level Vth (see FIGS. 10 to 12) for determining the photoelectric conversion characteristics of each of the RGB signals is set. At this time, when the inflection point Vth is included in the dynamic range information, the inflection point Vth is set as it is as the threshold level Vth. The threshold level Vth corresponding to the mode number M stored therewith is read out and set.

又、ホワイトバランス処理を行うための基準となるG信号の光電変換特性を示す(イ)式及び(ロ)式の係数Ag,C,α,βgそれぞれについては、ダイナミックレンジ情報より得られる係数A,C,α,β又は撮像装置200の撮像条件に基づいて設定するとともに、係数Ag,C,α,βgより確認される光電変換特性より閾値レベルVthを設定する。このとき、係数A,C,α,βがダイナミックレンジ情報に含まれるとき、この係数A,C,α,βをそのまま(イ)式及び(ロ)式の係数Ag,C,α,βgとすることで設定する。   For each of the coefficients Ag, C, α, and βg in the equations (a) and (b) showing the photoelectric conversion characteristics of the G signal as a reference for performing white balance processing, the coefficient A obtained from the dynamic range information , C, α, β, or the imaging conditions of the imaging apparatus 200, and the threshold level Vth is set based on the photoelectric conversion characteristics confirmed from the coefficients Ag, C, α, βg. At this time, when the coefficients A, C, α, and β are included in the dynamic range information, the coefficients A, C, α, and β are directly used as the coefficients Ag, C, α, and βg in the equations (a) and (b). To set.

又、撮影条件(電圧差ΔVPS、露光時間tx、開口率rx、増幅率ax)がダイナミックレンジ情報に含まれるとき、基準値となる係数A0,C0,α0、露光時間tx0、開口率rx0、増幅率ax0が予めハードディスク253のアプリケーションとともに格納されている。そして、係数Ag,C,α,βgが、以下の、(ハ)〜(ヘ)式に基づいて算出されることで設定される。尚、β0は、予めハードディスク253のアプリケーションとともに格納される信号φVPSの電圧差ΔVPSに対応した値である。
Ag=A0×(tx/tx0)×(rx/rx0)×(ax/ax0) …(ハ)
C=C0 …(ニ)
α=α0×(tx/tx0) …(ホ)
βg=β0×(tx/tx0) …(ヘ)
In addition, when the shooting conditions (voltage difference ΔVPS, exposure time tx, aperture ratio rx, amplification factor ax) are included in the dynamic range information, coefficients A0, C0, α0, exposure time tx0, aperture ratio rx0, amplification, which are reference values, are included. The rate ax0 is stored together with the application of the hard disk 253 in advance. The coefficients Ag, C, α, and βg are set by being calculated based on the following formulas (c) to (f). Note that β0 is a value corresponding to the voltage difference ΔVPS of the signal φVPS stored together with the application of the hard disk 253 in advance.
Ag = A0 × (tx / tx0) × (rx / rx0) × (ax / ax0) (C)
C = C0 (D)
α = α0 × (tx / tx0) (e)
βg = β0 × (tx / tx0) (f)

このように設定されたパラメータがメモリ252に格納されたアプリケーションに与えられると、このアプリケーションによって、STEP5で受信されたフレームデータより得られるRGB信号に対して、設定されたパラメータに応じた信号処理が行われる(STEP8)。即ち、フレームデータより得られるRGB信号に対して、ホワイトバランス処理、色補間処理、色補正処理、階調変換処理、コアリング処理の順に、各信号処理を施す。尚、この各信号処理については、図1に示す撮像装置内における信号処理と同一であるため、その詳細な説明は省略する。   When the parameters set in this way are given to the application stored in the memory 252, the signal processing according to the set parameters is performed on the RGB signals obtained from the frame data received in STEP 5 by this application. Performed (STEP 8). That is, each signal processing is performed on the RGB signal obtained from the frame data in the order of white balance processing, color interpolation processing, color correction processing, gradation conversion processing, and coring processing. Each signal processing is the same as the signal processing in the imaging apparatus shown in FIG.

このようにして信号処理されたRGB信号によるフレームデータがハードディスク253に格納されるとともに、このフレームデータによる画像が、ディスプレイ255の画像表示領域X1に表示される(STEP9)。そして、入力部254が操作されて、画像処理条件設定領域X2、WB設定領域X4、WB設定領域X4における操作が成されて、各パラメータの変更が指示されたか否かが確認される(STEP10)。そして、パラメータの変更が指示されている場合(Yes)、指示された変更量に応じて各パラメータを変更した後(STEP11)、STEP8に移行する。   The frame data based on the RGB signals subjected to the signal processing is stored in the hard disk 253, and an image based on the frame data is displayed in the image display area X1 of the display 255 (STEP 9). Then, the input unit 254 is operated, and operations in the image processing condition setting area X2, the WB setting area X4, and the WB setting area X4 are performed, and it is confirmed whether or not each parameter is instructed (STEP 10). . If parameter change is instructed (Yes), each parameter is changed in accordance with the instructed change amount (STEP 11), and then the process proceeds to STEP 8.

又、STEP3において回線の確保が確認できなかったときは(No)、回線が接続されていないことを示す表示をディスプレイ255に行うとともに(STEP12)、STEP2に移行する。更に、STEP10において、各パラメータの変更の指示が確認されなかった場合(No)、動作を終了する。   If it is not confirmed in STEP 3 that the line is secured (No), a display indicating that the line is not connected is displayed on the display 255 (STEP 12), and the process proceeds to STEP 2. Further, in STEP 10, when the instruction for changing each parameter is not confirmed (No), the operation is terminated.

このように、本システムによると、コンピュータ250側で、演算負荷のかかる各信号処理が行われるため、撮像装置200の構成が簡単になるとともに、その処理速度を速くすることができる。又、本システムにおいて、撮像装置200で、コンピュータ250に出力する信号を、上述の静止画像によるフレームデータだけでなく、動画像によるフレームデータやストリームデータとしても構わない。このとき、複数の静止画像のフレームデータにより動画像とされる場合、ダイナミックレンジ情報を各フレームデータのヘッダに記録するようにし、又、時間軸での画像圧縮も行うようなストリームデータにより動画像とされる場合、このストリームデータとは別の情報としてダイナミックレンジ情報を送信する。   As described above, according to the present system, each signal processing with a calculation load is performed on the computer 250 side, so that the configuration of the imaging apparatus 200 is simplified and the processing speed can be increased. In this system, the signal output from the imaging apparatus 200 to the computer 250 may be not only frame data based on the above-described still image but also frame data or stream data based on a moving image. At this time, when a moving image is formed by a plurality of still image frame data, dynamic range information is recorded in the header of each frame data, and the moving image is generated by stream data that performs image compression on the time axis. In this case, the dynamic range information is transmitted as information different from the stream data.

更に、撮像装置200において、全体制御部13aで、コンピュータ250に送信するRGB信号によるフレームデータ又はストリームデータを、JPEGやモーションJPEG又はMPEGなどの圧縮画像にフォーマット変換して、入出力インターフェース202より出力するものとしても構わない。又、コンピュータ250において、ディスプレイ255に表示するUIに、画像表示領域X1に表示される画像のヒストグラムを表示したり、対数変換特性による画素領域と線形変換特性による画素領域とを識別するための表示を行うようにしても構わない。   Further, in the imaging apparatus 200, the overall control unit 13 a converts the format of frame data or stream data based on RGB signals transmitted to the computer 250 into a compressed image such as JPEG, motion JPEG, or MPEG, and outputs it from the input / output interface 202. It does n’t matter what you do. Further, in the computer 250, the UI displayed on the display 255 displays a histogram of the image displayed in the image display area X1, and a display for identifying the pixel area based on the logarithmic conversion characteristic and the pixel area based on the linear conversion characteristic. You may make it perform.

又、図24の撮像システムにおいて、撮像装置200が、黒基準補正回路5及びFPN成分補正回路6を備えるものとしたが、撮像装置200が、図24の構成から黒基準補正回路5及びFPN成分補正回路6が除かれた構成とし、コンピュータ250において黒基準補正処理及びFPN補正処理が行われるものとしても構わない。このとき、黒基準補正処理を行うための黒レベルと、FPN補正処理を行うためのFPN成分と、がダイナミックレンジ情報とともに送信されるものとしても構わない。   In the imaging system of FIG. 24, the imaging apparatus 200 includes the black reference correction circuit 5 and the FPN component correction circuit 6, but the imaging apparatus 200 has the black reference correction circuit 5 and the FPN component from the configuration of FIG. The configuration may be such that the correction circuit 6 is omitted, and the computer 250 performs black reference correction processing and FPN correction processing. At this time, the black level for performing the black reference correction process and the FPN component for performing the FPN correction process may be transmitted together with the dynamic range information.

更に、このようにコンピュータ250において黒基準補正処理及びFPN補正処理が行われるとき、この黒レベル及びFPN成分を、コンピュータ250が、アプリケーションとともにハードディスク253に格納するものとしても構わない。このとき、黒レベルについては、光電変換特性の変極点Vthに対しても複数格納され、この予め格納されている黒レベルより、上述のようにしてダイナミックレンジ情報によって得られる光電変換特性の変極点Vthに応じた黒レベルが選択される。又、FPN成分については、個々の撮像装置200における固体撮像素子2によって異なるため、個々の撮像装置200毎に格納される。   Furthermore, when the black reference correction process and the FPN correction process are performed in the computer 250 as described above, the computer 250 may store the black level and the FPN component in the hard disk 253 together with the application. At this time, a plurality of black levels are also stored for the inflection point Vth of the photoelectric conversion characteristics, and the inflection points of the photoelectric conversion characteristics obtained from the prestored black level by the dynamic range information as described above. A black level corresponding to Vth is selected. Further, since the FPN component differs depending on the solid-state imaging device 2 in each imaging device 200, it is stored for each imaging device 200.

更に、コンピュータ250において、ホワイトバランス処理を行う際、RGB信号を、その光電変換特性が全て対数変換特性による信号や、その光電変換特性が全て線形変換特性による信号に変換した後に、ホワイトバランス処理を行うものとしても構わない。即ち、光電変換特性が全て対数変換特性による信号に変換する場合は、線形変換特性によって得られた信号値を対数変換特性による信号値に変換し、又、光電変換特性が全て線形変換特性による信号に変換する場合は、対数変換特性によって得られた信号値を線形変換特性による信号値に変換する。尚、このような変換処理についての演算については、LUTを参照して行われるものとしても構わないし、演算式によって行われるものとしても構わない。   Further, when the computer 250 performs white balance processing, the RGB signal is converted into a signal whose logarithmic conversion characteristics are all photoelectric conversion characteristics or a signal whose linear conversion characteristics are all photoelectric conversion characteristics, and then the white balance processing is performed. It doesn't matter what you do. That is, when all the photoelectric conversion characteristics are converted into signals with logarithmic conversion characteristics, the signal values obtained by the linear conversion characteristics are converted into signal values with logarithmic conversion characteristics, and all the photoelectric conversion characteristics are signals with the linear conversion characteristics. In the case of conversion to, the signal value obtained by the logarithmic conversion characteristic is converted to a signal value by the linear conversion characteristic. Note that the calculation for such conversion processing may be performed with reference to the LUT, or may be performed by an arithmetic expression.

又、図24の撮像システムにおいて、撮像装置200の入出力インターフェース202とコンピュータ250の入出力インターフェース256とが通信接続されることで、撮像装置200で撮像されて得られたフレームデータがコンピュータ250に送信されるものとしたが、撮像装置200がフレキシブルディスクやコンパクトフラッシュやメモリカードなどの記録メディアにフレームデータ又はストリームデータを記録する記録部を備えるとともに、コンピュータ250がこの記録メディアのフレームデータ又はストリームデータを読み出す再生部を備えるものとしても構わない。このようにすることで、記録メディアを介して、撮像装置200からコンピュータ250に、撮像して得られたフレームデータ又はストリームデータを転送することができる。   24, the input / output interface 202 of the imaging apparatus 200 and the input / output interface 256 of the computer 250 are communicatively connected, so that frame data obtained by imaging by the imaging apparatus 200 is transferred to the computer 250. Although the imaging apparatus 200 includes a recording unit that records frame data or stream data on a recording medium such as a flexible disk, a compact flash, or a memory card, the computer 250 uses the frame data or stream of the recording medium. A reproducing unit that reads data may be provided. In this way, frame data or stream data obtained by imaging can be transferred from the imaging device 200 to the computer 250 via the recording medium.

は、本発明の実施形態である撮像装置の構成を示すブロック図である。These are block diagrams which show the structure of the imaging device which is embodiment of this invention. は、固体撮像素子に設けられる色フィルタの配列を示す図である。These are figures which show the arrangement | sequence of the color filter provided in a solid-state image sensor. は、コアリング回路におけるエッジ成分に対するレベル変換特性を示すグラフである。These are graphs showing level conversion characteristics for edge components in a coring circuit. は、固体撮像素子の全体の構成を説明するための回路ブロック図。FIG. 3 is a circuit block diagram for explaining the overall configuration of the solid-state imaging device. は、図4の固体撮像素子を構成する画素の一構成例を示す回路図である。These are circuit diagrams which show one structural example of the pixel which comprises the solid-state image sensor of FIG. は、図5の画素の動作を示すタイミングチャートである。These are timing charts showing the operation of the pixel of FIG. は、被写体の輝度と画素の出力との関係を示すグラフである。These are graphs showing the relationship between the luminance of a subject and the output of a pixel. は、AE・WB評価値検出回路の内部構成の一例を示すブロック図である。These are block diagrams which show an example of an internal structure of an AE / WB evaluation value detection circuit. は、全体制御部の内部構成を示すブロック図である。These are block diagrams which show the internal structure of a whole control part. は、RGB信号の輝度値と信号レベルとの関係を示すグラフである。These are graphs showing the relationship between luminance values of RGB signals and signal levels. は、WB評価値演算部の動作を示すための図である。These are figures for showing operation of a WB evaluation value operation part. は、WB評価値演算部の動作を示すための図である。These are figures for showing operation of a WB evaluation value operation part. は、AE・WB評価値検出回路の内部構成の他の例を示すブロック図である。These are block diagrams which show the other example of an internal structure of an AE * WB evaluation value detection circuit. は、全体制御部のメモリ内に格納されるRB信号の光電変換特性の一例を示す図である。These are figures which show an example of the photoelectric conversion characteristic of the RB signal stored in the memory of a whole control part. は、全体制御部のデータテーブルの生成手順の一例を機能ブロック図として示したものである。These show an example of the production | generation procedure of the data table of a whole control part as a functional block diagram. は、データテーブルの生成動作を説明するための図である。FIG. 10 is a diagram for explaining a data table generation operation; は、全体制御部のデータテーブルの生成手順の他の例を機能ブロック図として示したものである。These show another example of the production | generation procedure of the data table of the whole control part as a functional block diagram. は、光電変換特性の生成動作を説明するための図である。FIG. 5 is a diagram for explaining an operation of generating photoelectric conversion characteristics. は、全体制御部のデータテーブルの生成手順の他の例を機能ブロック図として示したものである。These show another example of the production | generation procedure of the data table of the whole control part as a functional block diagram. は、光電変換特性の生成動作を説明するための図である。FIG. 5 is a diagram for explaining an operation of generating photoelectric conversion characteristics. は、WB制御回路の内部構成の一例を示すブロック図である。These are block diagrams showing an example of the internal configuration of the WB control circuit. は、WB制御回路におけるRGB信号の入出力関係をを示すグラフである。These are graphs showing the input / output relationship of RGB signals in the WB control circuit. は、WB制御回路の内部構成の他の例を示すブロック図である。These are block diagrams which show the other example of the internal structure of a WB control circuit. は、本発明の実施形態である撮像システムの構成を示すブロック図である。These are block diagrams which show the structure of the imaging system which is embodiment of this invention. は、図24の撮像システムのコンピュータに表示される画面の一例を示す図である。FIG. 25 is a diagram illustrating an example of a screen displayed on the computer of the imaging system in FIG. 24. は、図24の撮像システムのコンピュータにおける信号処理動作を示すフローチャートである。FIG. 25 is a flowchart showing a signal processing operation in the computer of the imaging system of FIG. 24.

符号の説明Explanation of symbols

1 光学系
2 固体撮像素子
3 アンプ
4 AD変換回路
5 黒基準補正回路
6 FPN補正回路
7 AE・WB評価値検出回路
8 WB制御回路
9 色補間回路
10 色補正回路
11 階調変換回路
12 コアリング回路
13 全体制御部
14 絞り制御部
15 タイミング生成回路
DESCRIPTION OF SYMBOLS 1 Optical system 2 Solid-state image sensor 3 Amplifier 4 AD conversion circuit 5 Black reference correction circuit 6 FPN correction circuit 7 AE / WB evaluation value detection circuit 8 WB control circuit 9 Color interpolation circuit 10 Color correction circuit 11 Gradation conversion circuit 12 Coring Circuit 13 Overall control unit 14 Aperture control unit 15 Timing generation circuit

Claims (17)

出力信号が入射光量に対して第1の特性で変化する第1領域と出力信号が入射光量に対して前記第1の特性と異なる第2の特性で変化する第2領域とを含む光電変換特性を示す画素を備えるとともに複数種類の色フィルタが設けられた固体撮像素子と、該固体撮像素子から出力される前記色フィルタの種類毎の色信号に対してホワイトバランス処理を行うホワイトバランス回路と、を備える撮像装置において、
前記ホワイトバランス回路は、入力される色信号のレベルに対して、各色信号間のずれが補正された信号レベルを出力データとして与える第1ルックアップテーブルを備え、該第1ルックアップテーブルは前記第1及び第2の特性の両特性に対応づけられていることを特徴とする撮像装置。
A photoelectric conversion characteristic including a first region in which an output signal changes with a first characteristic with respect to an incident light amount and a second region in which an output signal changes with a second characteristic different from the first characteristic with respect to the incident light amount. A solid-state image sensor provided with a plurality of types of color filters, a white balance circuit that performs white balance processing on color signals for each type of the color filter output from the solid-state image sensor, In an imaging apparatus comprising:
The white balance circuit includes a first look-up table that provides, as output data, a signal level in which a shift between the color signals is corrected with respect to the level of the input color signal, and the first look-up table is the first look-up table. An imaging apparatus characterized by being associated with both the first and second characteristics.
前記第1の特性は、入射光量に対する線形的な変化であることを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the first characteristic is a linear change with respect to an incident light amount. 前記第2の特性は、入射光量に対する自然対数的な変化であることを特徴とする請求項1又は請求項2に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the second characteristic is a natural logarithmic change with respect to an incident light amount. 前記複数種類の色信号の1つを基準となる第1色信号とし、該基準色信号以外の色信号を第2色信号としたとき、
前記第1ルックアップテーブルは、
前記第2色信号の信号レベルを入力アドレスとし、前記第2色信号における光電変換特性を前記第1色信号の光電変換特性に変換した際の信号レベルを該入力アドレスに対する出力データとするものであることを特徴とする請求項1〜請求項3のいずれかに記載の撮像装置。
When one of the plurality of types of color signals is used as a reference first color signal and a color signal other than the reference color signal is used as a second color signal,
The first lookup table is:
The signal level of the second color signal is used as an input address, and the signal level when the photoelectric conversion characteristic in the second color signal is converted into the photoelectric conversion characteristic of the first color signal is used as output data for the input address. The image pickup apparatus according to claim 1, wherein the image pickup apparatus is provided.
前記ホワイトバランス回路が、前記第1色信号の信号レベルを入力アドレスとし、階調変換処理が行われた信号レベルを前記入力アドレスに対する出力データとする第2ルックアップテーブルを備えるとともに、
前記第1ルックアップテーブルが、前記第2色信号における光電変換特性を前記第1色信号の光電変換特性に変換し且つ階調変換処理が行われた信号レベルを、前記入力アドレスに対する出力データとすることを特徴とする請求項4に記載の撮像装置。
The white balance circuit includes a second look-up table having the signal level of the first color signal as an input address and the signal level subjected to gradation conversion processing as output data for the input address,
The first look-up table converts the photoelectric conversion characteristic of the second color signal into the photoelectric conversion characteristic of the first color signal and the signal level on which the gradation conversion processing has been performed, and the output data for the input address The imaging apparatus according to claim 4, wherein:
前記第1色信号の光電変換特性と前記第2色信号の光電変換特性との関係を表す評価値
を、前記第2色信号の種類毎に、前記固体撮像素子から入力される前記第1色信号及び前
記第2色信号の信号レベルの関係より検出する評価値検出回路を備え、
前記第1ルックアップテーブルが、前記評価値と前記第1色信号の光電変換特性とに基
づいて生成されることを特徴とする請求項4又は請求項5に記載の撮像装置。
The first color that is input from the solid-state image sensor for each type of the second color signal is an evaluation value that represents the relationship between the photoelectric conversion characteristic of the first color signal and the photoelectric conversion characteristic of the second color signal. An evaluation value detection circuit for detecting from the relationship between the signal and the signal level of the second color signal,
It said first look-up table, the imaging apparatus according to claim 4 or claim 5, characterized in that it is generated based on the photoelectric conversion characteristics of the said evaluation value first color signal.
前記評価値検出回路において、前記第2色信号の種類毎に、前記固体撮像素子から与えられる前記第1色信号及び前記第2色信号それぞれの平均値の関係に基づいて、前記評価値が求められることを特徴とする請求項に記載の撮像装置。 In the evaluation value detection circuit, for each type of the second color signal, the evaluation value is obtained based on a relationship between average values of the first color signal and the second color signal given from the solid-state imaging device. The imaging apparatus according to claim 6 , wherein 前記評価値検出回路において、
前記第2色信号の種類毎に、
前記固体撮像素子から与えられた入射光量に対して前記第1の特性で変化した前記第1色信号及び前記第2色信号それぞれの平均値の関係に基づいて、第1評価値が求められるとともに、
前記固体撮像素子から与えられた入射光量に対して前記第2の特性で変化した前記第1色信号及び前記第2色信号それぞれの平均値の関係に基づいて、第2評価値が求められ、
前記第1評価値及び前記第2評価値を加重加算することで、前記第1色信号の光電変換特性と前記第2色信号の光電変換特性との関係を表す評価値を求めることを特徴とする請求項に記載の撮像装置。
In the evaluation value detection circuit,
For each type of the second color signal,
A first evaluation value is obtained based on the relationship between the average values of the first color signal and the second color signal that have changed with the first characteristic with respect to the amount of incident light applied from the solid-state imaging device. ,
Based on the relationship between the average values of the first color signal and the second color signal that have changed in the second characteristic with respect to the amount of incident light applied from the solid-state imaging device, a second evaluation value is obtained,
An evaluation value representing a relationship between the photoelectric conversion characteristic of the first color signal and the photoelectric conversion characteristic of the second color signal is obtained by weighted addition of the first evaluation value and the second evaluation value. The imaging device according to claim 6 .
入射光量に対して前記第1の特性で変化する信号を出力する画素数と、入射光量に対して前記第2の特性で変化する信号を出力する画素数との関係に基づいて、前記加重加算における重み係数を設定することを特徴とする請求項に記載の撮像装置。 The weighted addition is based on the relationship between the number of pixels that output a signal that varies with the first characteristic with respect to the incident light amount and the number of pixels that output a signal that varies with the second characteristic with respect to the incident light amount. The imaging apparatus according to claim 8 , wherein a weighting coefficient is set. 前記第1色信号の光電変換特性を、前記固体撮像素子のダイナミックレンジに基づいて決定するとともに、
前記第2色信号の光電変換特性を、前記第1色信号の光電変換特性と前記評価値に基づいて決定することを特徴とする請求項〜請求項のいずれかに記載の撮像装置。
While determining the photoelectric conversion characteristics of the first color signal based on the dynamic range of the solid-state imaging device,
The photoelectric conversion characteristic of the second color signal, the image pickup apparatus according to any one of claims 6 to claim 9, wherein determining, based on the evaluation value and the photoelectric conversion characteristics of the first color signal.
前記第2色信号の光電変換特性に基づいて前記第2色信号の信号レベルそれぞれに対する輝度値を求めた後、求められた当該各輝度値に対する信号レベルを前記第1色信号の光電変換特性に基づいて求めて前記入力アドレスに対する出力データとすることで、前記第1ルックアップテーブルを生成することを特徴とする請求項4〜請求項10のいずれかに記載の撮像装置。 After obtaining the luminance value for each signal level of the second color signal based on the photoelectric conversion characteristics of the second color signal, the obtained signal level for each luminance value is used as the photoelectric conversion characteristic of the first color signal. with output data for the input address determined based imaging apparatus according to any one of claims 4 to claim 10, wherein generating the first look-up table. 出力信号が入射光量に対して第1の特性で変化する第1領域と出力信号が入射光量に対して前記第1の特性と異なる第2の特性で変化する第2領域とを含む光電変換特性を示す画素を備えるとともに複数種類の色フィルタが設けられた個体撮像素子を備える撮像装置と、該撮像装置で被写体が撮像されることで得られた画像信号に対して画像処理を施す演算装置と、から構成される撮像システムにおいて、
前記撮像装置より、前記固体撮像素子で撮像されて得られた画像信号と、該画像信号を出力するときの前記固体撮像素子に対して設定された光電変換特性を示すダイナミックレンジ情報とが、前記演算装置に出力され、
前記演算装置が、前記画像信号による前記色フィルタの種類毎の色信号に対してホワイトバランス処理を行う際、各色信号間のずれが補正された信号レベルを出力データとして与えるとともに前記第1及び第2の特性の両特性に対応づけられているルックアップテーブルを参照して処理することを特徴とする撮像システム。
A photoelectric conversion characteristic including a first region in which an output signal changes with a first characteristic with respect to an incident light amount and a second region in which an output signal changes with a second characteristic different from the first characteristic with respect to the incident light amount. An imaging device including a solid-state image sensor provided with a plurality of types of color filters, and an arithmetic device that performs image processing on an image signal obtained by imaging a subject with the imaging device In an imaging system composed of
From the imaging device, an image signal obtained by imaging with the solid-state imaging device, and dynamic range information indicating photoelectric conversion characteristics set for the solid-state imaging device when outputting the image signal, Output to the arithmetic unit,
When the arithmetic unit performs white balance processing on the color signal for each type of the color filter based on the image signal, it gives a signal level in which a shift between the color signals is corrected as output data and the first and first An imaging system characterized in that processing is performed with reference to a look-up table associated with both of the two characteristics.
前記複数種類の色信号の1つを基準となる第1色信号とし、該基準色信号以外の色信号を第2色信号としたとき、
前記ルックアップテーブルは、
前記第2色信号の信号レベルを入力アドレスとし、前記第2色信号における光電変換特性を前記第1色信号の光電変換特性に変換した際の信号レベルを該入力アドレスに対する出力データとするものであることを特徴とする請求項12に記載の撮像システム。
When one of the plurality of types of color signals is used as a reference first color signal and a color signal other than the reference color signal is used as a second color signal,
The lookup table is
The signal level of the second color signal is used as an input address, and the signal level when the photoelectric conversion characteristic in the second color signal is converted into the photoelectric conversion characteristic of the first color signal is used as output data for the input address. The imaging system according to claim 12, wherein there is an imaging system.
前記演算装置において、
前記第1色信号の光電変換特性と前記第2色信号の光電変換特性との関係を表す評価値が、前記第2色信号の種類毎に、前記固体撮像素子から入力される前記第1色信号及び前記第2色信号の信号レベルの関係より検出され、
前記第1ルックアップテーブルが、前記評価値と前記第1色信号の光電変換特性とに基づいて生成されることを特徴とする請求項12又は請求項13に記載の撮像システム。
In the arithmetic unit,
An evaluation value representing the relationship between the photoelectric conversion characteristic of the first color signal and the photoelectric conversion characteristic of the second color signal is input from the solid-state imaging device for each type of the second color signal. Detected from the relationship between the signal and the signal level of the second color signal,
The imaging system according to claim 12 or 13 , wherein the first look-up table is generated based on the evaluation value and a photoelectric conversion characteristic of the first color signal.
前記演算装置において
前記前記第1色信号の光電変換特性と前記第2色信号の光電変換特性との関係を表す複数の評価値が、複数の所定の撮影条件毎に設定されて記憶され、
前記撮影条件の1つが選択されるとき、当該選択された撮影条件に応じた前記評価値が読み出され、当該読み出された評価値と前記第1色信号の光電変換特性とに基づいて、前記第1ルックアップテーブルが生成されることを特徴とする請求項12〜請求項14のいずれかに記載の撮像システム。
In the arithmetic unit, a plurality of evaluation values representing a relationship between the photoelectric conversion characteristics of the first color signal and the photoelectric conversion characteristics of the second color signal are set and stored for each of a plurality of predetermined photographing conditions,
When one of the shooting conditions is selected, the evaluation value corresponding to the selected shooting condition is read, and based on the read evaluation value and the photoelectric conversion characteristic of the first color signal, the imaging system according to any one of claims 12 to claim 14, wherein said first look-up table is generated.
前記第1の特性は、入射光量に対する線形的な変化であることを特徴とする請求項12〜請求項15のいずれかに記載の撮像システム。 The first characteristic, the imaging system according to any one of claims 12 to claim 15, characterized in that a linear change with respect to the amount of incident light. 前記第2の特性は、入射光量に対する自然対数的な変化であることを特徴とする請求項
12〜請求項16のいずれかに記載の撮像装置。
The second characteristic is a natural logarithmic change with respect to an incident light amount.
The imaging device according to any one of claims 12 to 16 .
JP2004262467A 2003-09-09 2004-09-09 Imaging device Expired - Fee Related JP4123210B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004262467A JP4123210B2 (en) 2003-09-09 2004-09-09 Imaging device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003316534 2003-09-09
JP2004262467A JP4123210B2 (en) 2003-09-09 2004-09-09 Imaging device

Publications (3)

Publication Number Publication Date
JP2005110234A JP2005110234A (en) 2005-04-21
JP2005110234A5 JP2005110234A5 (en) 2005-09-29
JP4123210B2 true JP4123210B2 (en) 2008-07-23

Family

ID=34554207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004262467A Expired - Fee Related JP4123210B2 (en) 2003-09-09 2004-09-09 Imaging device

Country Status (1)

Country Link
JP (1) JP4123210B2 (en)

Also Published As

Publication number Publication date
JP2005110234A (en) 2005-04-21

Similar Documents

Publication Publication Date Title
US8723958B2 (en) Image pickup apparatus and image pickup element
US7545412B2 (en) Image-sensing apparatus with a solid-state image sensor switchable between linear and logarithmic conversion
JP4678218B2 (en) Imaging apparatus and image processing method
US20090284618A1 (en) Image processing device and method, and computer-readable recording medium containing program
US8675087B2 (en) Image pickup apparatus and control method for correcting data output from pixels of an image pickup element
US7382402B2 (en) Imaging system
US7432962B2 (en) Dynamic range broadening method for a solid-state image sensor including photosensitive cells each having a main and a subregion
WO2010010871A1 (en) Imaging device
JP2007036353A (en) Image pickup device
JP2006333113A (en) Imaging device
JPWO2006103880A1 (en) Imaging device
JP4479429B2 (en) Imaging device
JP2000041179A (en) Shading correction method for image input device and image input device
JP4661788B2 (en) Imaging apparatus and imaging method
JP4123210B2 (en) Imaging device
JP2008219230A (en) Imaging apparatus, and image processing method
JP4767525B2 (en) Imaging system and imaging processing program
EP2515543A2 (en) Image capturing apparatus and image capturing method
JP4320720B2 (en) Imaging device
JP4720130B2 (en) Imaging device
JP4103741B2 (en) Imaging device
JP4725052B2 (en) Imaging device
JP2005086630A (en) Imaging apparatus
JP4735820B2 (en) Signal processing method for imaging apparatus and imaging apparatus
JP2005160027A (en) Imaging apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050714

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050714

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080212

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080421

R150 Certificate of patent or registration of utility model

Ref document number: 4123210

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120516

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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