JP2007228268A - Signal processing apparatus and imaging apparatus - Google Patents

Signal processing apparatus and imaging apparatus Download PDF

Info

Publication number
JP2007228268A
JP2007228268A JP2006047101A JP2006047101A JP2007228268A JP 2007228268 A JP2007228268 A JP 2007228268A JP 2006047101 A JP2006047101 A JP 2006047101A JP 2006047101 A JP2006047101 A JP 2006047101A JP 2007228268 A JP2007228268 A JP 2007228268A
Authority
JP
Japan
Prior art keywords
signal
imaging
value
correction value
correction
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.)
Pending
Application number
JP2006047101A
Other languages
Japanese (ja)
Inventor
Masahiro Yokohata
正大 横畠
Yoshitaka Anada
好孝 穴田
Seiji Okada
誠司 岡田
Yukio Mori
幸夫 森
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2006047101A priority Critical patent/JP2007228268A/en
Publication of JP2007228268A publication Critical patent/JP2007228268A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a signal processing apparatus capable of allowing the difference in signal level between channels to contribute to improvement correction accuracy, and to provide an imaging apparatus. <P>SOLUTION: In the signal processing apparatus for processing an imaging signal to be output from an imaging means capable of executing multi-channel reading, a plurality of groups of monitoring pixels are provided in the vicinity of a boundary of separated imaging regions, detection values corresponding to the signal level difference between channels are calculated on the basis of the imaging signal to be acquired from the pixels in the group of monitoring pixels for each group of monitoring pixels, and a first correction value is calculated from a large number of calculated detection values. In this case, the distribution of the detection values is referred to, and the distribution is used to calculate the first correction value. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、デジタルカメラ等の撮像装置にて使用される信号処理装置に関し、特に、撮像素子を複数の領域に分割して用いた場合に生じる、チャンネル間の出力信号レベル差を補正するための信号処理装置に関する。   The present invention relates to a signal processing device used in an imaging device such as a digital camera, and more particularly to correct an output signal level difference between channels that occurs when an imaging device is divided into a plurality of regions. The present invention relates to a signal processing device.

動画撮影時または高速連写撮影時におけるCCD(Charge Coupled Devices)の読み出し速度を向上させるために、CCDを左右に2分割した2チャンネルCCDが開発されている。2チャンネルCCDでは、各チャンネルごとに、CDS(Correlated Double Sampling)/AGC(Auto Gain Control)回路とAD(Analog Digital)変換回路が設けられる。   In order to improve the readout speed of a CCD (Charge Coupled Devices) during moving image shooting or high-speed continuous shooting, a two-channel CCD in which the CCD is divided into left and right parts has been developed. In a 2-channel CCD, a CDS (Correlated Double Sampling) / AGC (Auto Gain Control) circuit and an AD (Analog Digital) conversion circuit are provided for each channel.

2チャンネルCCDを用いた場合、左右の撮像領域毎に設けられたCDS/AGC回路の精度差及びゲイン差や、AD変換回路の特性差などに起因して、左右の信号レベル(出力信号レベル)が一致しないという問題が生じる。仮に、固定的に左右の出力信号のマッチングを取る手段を設けても、左右のCDS/AGC回路の温度特性等が同じである可能性が低いため、左右の信号レベル(出力信号レベル)をマッチングさせることは難しい。   When a two-channel CCD is used, the left and right signal levels (output signal levels) are caused by the accuracy difference and gain difference of the CDS / AGC circuit provided for the left and right imaging areas, and the characteristic difference of the AD conversion circuit. The problem that does not match. Even if a fixed means for matching the left and right output signals is provided, it is unlikely that the left and right CDS / AGC circuits have the same temperature characteristics, so the left and right signal levels (output signal levels) are matched. It is difficult to let

チャンネル間の信号レベル差(出力信号レベル差)を補正する方法として、撮影前にシャッタを閉じた状態でシャッタの内側でLED(Light Emitting Diode)を発光させて平坦画像を撮像し、その撮像画像に基づいて、チャンネル間の信号レベル差を補正する方法が既に開発されている。   As a method of correcting the signal level difference (output signal level difference) between channels, a flat image is taken by emitting a light emitting diode (LED) inside the shutter with the shutter closed before shooting, and the captured image Based on the above, a method for correcting a signal level difference between channels has already been developed.

特開2003−18472号公報JP 2003-18472 A 特開2002−142158号公報JP 2002-142158 A 特開2002−125149号公報JP 2002-125149 A 特開2002−218186号公報JP 2002-218186 A 特開2002−320142号公報JP 2002-320142 A 特開2003−259224号公報JP 2003-259224 A

上記のように、チャンネル間の信号レベル差を補正するための様々な技術が検討されているが、より高い補正精度を有した信号処理技術が切望されている。   As described above, various techniques for correcting a signal level difference between channels have been studied, but a signal processing technique having higher correction accuracy is desired.

上記の問題点に鑑み、本発明は、チャンネル間の信号レベル差を補正精度の向上に寄与することができる信号処理装置及び撮像装置を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a signal processing device and an imaging device that can contribute to improvement in correction accuracy of a signal level difference between channels.

また、上記目的を実現するために本発明に係る第1の信号処理装置は、撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、前記信号処理装置は、更に、前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、前記第1補正値算出手段は、前記信号範囲ごとに、当該信号範囲に属する前記検出値の分布を参照し該分布を用いて前記第1補正値を算出することを特徴とする。   In order to achieve the above object, a first signal processing device according to the present invention includes an imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electric signal is read from each of the divided imaging regions, and the divided imaging. In the signal processing apparatus that processes the imaging signal output from the imaging unit that is separately assigned to each area and outputs the electrical signal as an imaging signal, the plurality of divided imaging areas Among the two divided imaging areas adjacent to each other, the first and second divided imaging areas are set as the first and second output channels corresponding to the first and second divided imaging areas, respectively. And the imaging signal output from at least one of the second output channels is a correction target signal, and the imaging signal is in a plurality of signal ranges having different signal levels. In a similar case, a plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and each monitoring pixel group is obtained from the pixels in the monitoring pixel group. Detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels based on the imaging signal, and a basis for calculating the detection value The signal range to which each detection value belongs is determined based on the imaging signal, and the signal processing device further determines, for each signal range, the signal level difference based on the detection value belonging to the signal range. First correction value calculating means for calculating a first correction value for reducing the signal, and, for each signal range, the correction target signal belonging to the signal range using the first correction value corresponding to the signal range. To correct Correction means for correcting the signal level difference, wherein the first correction value calculation means refers to the distribution of the detection values belonging to the signal range for each signal range and uses the distribution to The first correction value is calculated.

また、上記目的を実現するために本発明に係る第2の信号処理装置は、撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、前記信号処理装置は、更に、前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、前記第1補正値算出手段は、前記信号範囲ごとに、当該信号範囲に属し且つ所定の制限範囲内の前記検出値の平均値を算出することによって前記第1補正値を算出し、最新の前記第1補正値の算出において、前記制限範囲は、過去に算出された前記平均値に基づいて補正されることを特徴とする。   In order to achieve the above object, the second signal processing apparatus according to the present invention includes an imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electric signal is read from each divided imaging region, and the divided imaging. In the signal processing apparatus that processes the imaging signal output from the imaging unit that is separately assigned to each area and outputs the electrical signal as an imaging signal, the plurality of divided imaging areas Among the two divided imaging areas adjacent to each other, the first and second divided imaging areas are set as the first and second output channels corresponding to the first and second divided imaging areas, respectively. And the imaging signal output from at least one of the second output channels is a correction target signal, and the imaging signal is in a plurality of signal ranges having different signal levels. In a similar case, a plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and each monitoring pixel group is obtained from the pixels in the monitoring pixel group. Detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels based on the imaging signal, and a basis for calculating the detection value The signal range to which each detection value belongs is determined based on the imaging signal, and the signal processing device further determines, for each signal range, the signal level difference based on the detection value belonging to the signal range. First correction value calculating means for calculating a first correction value for reducing the signal, and, for each signal range, the correction target signal belonging to the signal range using the first correction value corresponding to the signal range. To correct Correction means for correcting the signal level difference, wherein the first correction value calculation means calculates, for each signal range, an average value of the detection values belonging to the signal range and within a predetermined limit range. The first correction value is calculated by calculating, and in the latest calculation of the first correction value, the limit range is corrected based on the average value calculated in the past.

また、上記目的を実現するために本発明に係る第3の信号処理装置は、撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、前記信号処理装置は、更に、前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、前記第1補正値算出手段は、前記信号範囲ごとに、前記複数の監視画素群内の画素から得られ且つ当該信号範囲に属する前記撮像信号の信号レベル分布を参照し、その信号レベル分布を用いて、前記第1補正値を算出することを特徴とする。   In order to achieve the above object, the third signal processing device according to the present invention includes an imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electric signal is read from each of the divided imaging regions, and the divided imaging. In the signal processing apparatus that processes the imaging signal output from the imaging unit that is separately assigned to each area and outputs the electrical signal as an imaging signal, the plurality of divided imaging areas Among the two divided imaging areas adjacent to each other, the first and second divided imaging areas are set as the first and second output channels corresponding to the first and second divided imaging areas, respectively. And the imaging signal output from at least one of the second output channels is a correction target signal, and the imaging signal is in a plurality of signal ranges having different signal levels. In a similar case, a plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and each monitoring pixel group is obtained from the pixels in the monitoring pixel group. Detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels based on the imaging signal, and a basis for calculating the detection value The signal range to which each detection value belongs is determined based on the imaging signal, and the signal processing device further determines, for each signal range, the signal level difference based on the detection value belonging to the signal range. First correction value calculating means for calculating a first correction value for reducing the signal, and, for each signal range, the correction target signal belonging to the signal range using the first correction value corresponding to the signal range. To correct Correction means for correcting the signal level difference, wherein the first correction value calculation means is obtained from the pixels in the plurality of monitoring pixel groups and belongs to the signal range for each signal range. The first correction value is calculated by referring to a signal level distribution of the imaging signal and using the signal level distribution.

また、上記目的を実現するために本発明に係る撮像装置は、上記の何れかに記載の撮像手段と、上記の何れかに記載の信号処理装置と、を備える。   In order to achieve the above object, an imaging apparatus according to the present invention includes any of the imaging means described above and the signal processing apparatus described above.

本発明によれば、チャンネル間の信号レベル差を補正精度の向上に寄与することができる。   According to the present invention, the signal level difference between channels can contribute to the improvement of correction accuracy.

<<第1実施形態>>
以下、本発明の実施の形態につき、図面を参照して具体的に説明する。各図において、同一の部分には同一の符号を付してある。図1は、本発明の第1実施実施に係るデジタルカメラの概略構成ブロック図である。図1のデジタルカメラは、動画と静止画を撮影可能となっている。
<< First Embodiment >>
Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings. In each drawing, the same parts are denoted by the same reference numerals. FIG. 1 is a schematic block diagram of a digital camera according to the first embodiment of the present invention. The digital camera in FIG. 1 can shoot moving images and still images.

図1において、1は、複数の画素をマトリクス状に配列して構成されるCCD(Charge Coupled Devices)である。各画素は、入射光量に応じた電気信号を発生する。各画素にて発生した電気信号は、相関二重サンプリング及びオートゲインコントロールを行うCDS(Correlated Double Sampling)/AGC(Auto Gain Control)回路2または4によって読み出される。   In FIG. 1, reference numeral 1 denotes a CCD (Charge Coupled Devices) configured by arranging a plurality of pixels in a matrix. Each pixel generates an electrical signal corresponding to the amount of incident light. The electrical signal generated in each pixel is read out by a CDS (Correlated Double Sampling) / AGC (Auto Gain Control) circuit 2 or 4 that performs correlated double sampling and auto gain control.

CCD1は、その撮像領域が左右の2つの領域に分割されている。分割された左側の領域(第1分割撮像領域)から成るCCDを左CCD1a、分割された右側の領域(第2分割撮像領域)から成るCCDを右CCD1bと呼ぶ。   The imaging area of the CCD 1 is divided into two areas on the left and right. The CCD consisting of the divided left area (first divided imaging area) is called the left CCD 1a, and the CCD consisting of the divided right area (second divided imaging area) is called the right CCD 1b.

CDS/AGC回路2によって左CCD1aから読み出された電気信号は、AD(Analog Digital)変換回路3にてデジタル信号に変換された後、画像合成回路6に送られる。CDS/AGC回路4によって右CCD1bから読み出された電気信号は、AD変換回路5にてデジタル信号に変換された後、画像合成回路6に送られる。   The electrical signal read from the left CCD 1 a by the CDS / AGC circuit 2 is converted into a digital signal by an AD (Analog Digital) conversion circuit 3 and then sent to the image composition circuit 6. The electrical signal read from the right CCD 1 b by the CDS / AGC circuit 4 is converted into a digital signal by the AD conversion circuit 5 and then sent to the image composition circuit 6.

このように、左CCD1aに対して、CDS/AGC回路2及びAD変換回路3を有する出力チャンネル14が割り当てられ、右CCD1bに対して、CDS/AGC回路4及びAD変換回路5を有する出力チャンネル15が割り当てられる。出力チャンネル14が出力する信号(即ち、AD変換回路3が出力するデジタル信号)を、信号CH1と呼ぶ。出力チャンネル15が出力する信号(即ち、AD変換回路5が出力するデジタル信号)を、信号CH2と呼ぶ。   Thus, the output channel 14 having the CDS / AGC circuit 2 and the AD conversion circuit 3 is assigned to the left CCD 1a, and the output channel 15 having the CDS / AGC circuit 4 and the AD conversion circuit 5 is assigned to the right CCD 1b. Is assigned. A signal output from the output channel 14 (that is, a digital signal output from the AD conversion circuit 3) is referred to as a signal CH1. A signal output from the output channel 15 (that is, a digital signal output from the AD conversion circuit 5) is referred to as a signal CH2.

画像合成回路6は、両チャンネルの信号CH1及びCH2を合成し、それらを1系統の信号に変換する。画像合成回路6によって得られた信号は、黒レベルを一定にするためのクランプ回路7を介して、補正値算出回路8及びレベル差補正回路9に送られる。   The image synthesis circuit 6 synthesizes the signals CH1 and CH2 of both channels and converts them into one system signal. The signal obtained by the image composition circuit 6 is sent to a correction value calculation circuit 8 and a level difference correction circuit 9 via a clamp circuit 7 for making the black level constant.

補正値算出回路8は、両出力チャンネルから出力される信号レベルの差(チャンネル間信号レベル差)を補正するための補正値を算出するための回路である。レベル差補正回路9は、補正値算出回路8にて算出された補正値を用いて、チャンネル間信号レベル差を補正するための回路である。CCD1の撮像領域全面に均一な光を入射した場合でも、信号CH1の信号レベルと信号CH2の信号レベルの間には、差が生じる。この差を、チャンネル間信号レベル差と呼ぶ。チャンネル間信号レベル差は、出力チャンネル14と15との間における特性の相違に起因して生じる。   The correction value calculation circuit 8 is a circuit for calculating a correction value for correcting a difference between signal levels output from both output channels (inter-channel signal level difference). The level difference correction circuit 9 is a circuit for correcting the inter-channel signal level difference using the correction value calculated by the correction value calculation circuit 8. Even when uniform light is incident on the entire imaging region of the CCD 1, a difference is generated between the signal level of the signal CH1 and the signal level of the signal CH2. This difference is called an inter-channel signal level difference. The inter-channel signal level difference is caused by a characteristic difference between the output channels 14 and 15.

レベル差補正回路9からの出力信号は、YRGB生成回路10に送られる。YRGB生成回路10では、レベル差補正回路9からの出力信号に基づいて、Y、R、G及びB信号が生成される。YRGB生成回路10によって生成されたY信号は、Yプロセス回路11を介してエンコーダ13に送られる。YRGB生成回路10によって生成されたR、G及びB信号は、Cプロセス回路12を介してエンコーダ13に送られる。エンコーダ13では、MPEG4(Moving Picture Experts Group phase 4)やJPEG(Joint Photographic Experts Group)等の圧縮方式を用いて信号圧縮が行われ、その圧縮によって得られた信号(データ)は、例えば、図示されないメモリ(外部記録媒体を含む)に格納される。   The output signal from the level difference correction circuit 9 is sent to the YRGB generation circuit 10. The YRGB generation circuit 10 generates Y, R, G, and B signals based on the output signal from the level difference correction circuit 9. The Y signal generated by the YRGB generation circuit 10 is sent to the encoder 13 via the Y process circuit 11. The R, G, and B signals generated by the YRGB generation circuit 10 are sent to the encoder 13 via the C process circuit 12. The encoder 13 performs signal compression using a compression method such as MPEG4 (Moving Picture Experts Group phase 4) or JPEG (Joint Photographic Experts Group), and a signal (data) obtained by the compression is not illustrated, for example. Stored in a memory (including an external recording medium).

尚、各画素への入射光量が増加するに従って、各画素にて発生する電気信号のアナログの信号レベル(信号の強度)は増大する。そして、そのアナログの信号レベルが増大するに従って、AD変換回路3または5から出力されるデジタルの信号レベル(即ち、デジタル値)も増大するものとする。また、「信号レベル」と「信号値」は、同義である。   As the amount of light incident on each pixel increases, the analog signal level (signal intensity) of the electrical signal generated at each pixel increases. As the analog signal level increases, the digital signal level (that is, the digital value) output from the AD conversion circuit 3 or 5 also increases. “Signal level” and “signal value” are synonymous.

また、AD変換回路3及び5が出力するデジタル信号を、それぞれ信号CH1及びCH2と定義したが、画像合成回路6及びクランプ回路7を介して補正値算出回路8及びレベル差補正回路9に送られる信号CH1及びCH2も、単に信号CH1及びCH2と呼ぶことにする。   The digital signals output from the AD conversion circuits 3 and 5 are defined as signals CH1 and CH2, respectively, but are sent to the correction value calculation circuit 8 and the level difference correction circuit 9 via the image synthesis circuit 6 and the clamp circuit 7. Signals CH1 and CH2 are also simply referred to as signals CH1 and CH2.

図2は、補正値算出回路8の内部ブロック図を含む、図1のデジタルカメラの一部ブロック図である。補正値算出回路8は、チャンネル間信号レベル差を反映した多数の検出値を算出する検出値算出部21と、検出値算出部21が算出した検出値に基づいてチャンネル間信号レベル差を補正するための実測補正値(第1補正値)を算出する実測補正値算出部(第1補正値算出部)22と、所定の温度条件下で最適化された所定の初期補正値(第2補正値)を予め格納しておく初期補正テーブル(第2補正値格納部)23と、実測補正値と初期補正値に基づいて、レベル差補正回路9に供給(適用)されるべき最終的な補正値(適用補正値)を算出する適用補正値算出部24と、適用補正値算出部24によって算出された補正値(適用補正値)を順次更新して格納する更新用補正テーブル25と、を備えている。   FIG. 2 is a partial block diagram of the digital camera of FIG. 1 including an internal block diagram of the correction value calculation circuit 8. The correction value calculation circuit 8 corrects the inter-channel signal level difference based on the detection value calculation unit 21 that calculates a large number of detection values reflecting the inter-channel signal level difference, and the detection value calculated by the detection value calculation unit 21. An actual correction value calculation unit (first correction value calculation unit) 22 for calculating an actual measurement correction value (first correction value) for use, and a predetermined initial correction value (second correction value) optimized under a predetermined temperature condition ) In advance, and a final correction value to be supplied (applied) to the level difference correction circuit 9 based on the actual correction value and the initial correction value. An application correction value calculation unit 24 that calculates (application correction value), and an update correction table 25 that sequentially updates and stores the correction value (application correction value) calculated by the application correction value calculation unit 24. Yes.

本実施形態(及び後述する他の実施形態)では、補正値は、信号CH1に対して施される補正の値として算出される。   In the present embodiment (and other embodiments described later), the correction value is calculated as a correction value to be applied to the signal CH1.

レベル差補正回路9は、更新用補正テーブル25に格納されている補正値を用いて信号CH1に補正処理を施す。その補正後の信号CH1と、レベル差補正回路9による補正処理が施されない信号CH2とが、YRGB生成回路10に供給される。尚、後に詳説するが、図1のデジタルカメラの電源投入時等の所定の基準時点においては、初期補正テーブル23に格納された初期補正値を補正値として用いた補正処理が行われる。電源投入時及びその直後においては、初期補正値が強く補正に関与するが、十分に時間が経過した後は、補正値は実測補正値に追従するようになる。   The level difference correction circuit 9 corrects the signal CH1 using the correction value stored in the update correction table 25. The corrected signal CH1 and the signal CH2 not subjected to the correction process by the level difference correction circuit 9 are supplied to the YRGB generation circuit 10. As will be described in detail later, correction processing using the initial correction value stored in the initial correction table 23 as a correction value is performed at a predetermined reference time such as when the digital camera of FIG. 1 is turned on. At the time of power-on and immediately after that, the initial correction value is strongly involved in the correction, but after a sufficient time has passed, the correction value follows the actual correction value.

チャンネル間信号レベル差は、図3の実線60に示す如く、信号レベルに比例する各画素の蓄積電荷量によって異なる(破線61については後述)。このため、信号CH1の補正に用いる補正値として、複数の補正値を設けている。図4は、更新用補正テーブル25に格納されている複数の補正値を、横軸をCH1の信号レベルとして表した模式図である。信号レベルを、その信号レベルの大きさに応じて、50の信号範囲に分割する場合を例に挙げる。   The inter-channel signal level difference varies depending on the accumulated charge amount of each pixel proportional to the signal level as indicated by a solid line 60 in FIG. 3 (the broken line 61 will be described later). For this reason, a plurality of correction values are provided as correction values used for correcting the signal CH1. FIG. 4 is a schematic diagram showing a plurality of correction values stored in the update correction table 25 with the horizontal axis representing the signal level of CH1. As an example, the signal level is divided into 50 signal ranges according to the magnitude of the signal level.

例えば、デジタル値で0〜10の値を有する信号は、第1の信号範囲(図4におけるSR1)に属し、11〜30の値を有する信号は、第2の信号範囲に属し、・・・、といった具合に、信号のダイナミックレンジを50個に分割する(図5参照)。   For example, a signal having a digital value of 0 to 10 belongs to the first signal range (SR1 in FIG. 4), a signal having a value of 11 to 30 belongs to the second signal range, and so on. For example, the dynamic range of the signal is divided into 50 (see FIG. 5).

そして、各信号範囲に対して1つの補正値を割り当てる。同様に、各信号範囲に対して1つの実測補正値と1つの初期補正値を割り当てる。図5に、補正値、実測補正値及び初期補正値が、各信号範囲に割り当てられている様子を示す。第mの信号範囲に割り当てられた補正値は、第mの信号範囲に割り当てられた「実測補正値及び初期補正値」に基づいて算出される(mは、1〜50の任意の整数)。   Then, one correction value is assigned to each signal range. Similarly, one actual correction value and one initial correction value are assigned to each signal range. FIG. 5 shows how correction values, actual correction values, and initial correction values are assigned to each signal range. The correction value assigned to the m-th signal range is calculated based on the “actual correction value and initial correction value” assigned to the m-th signal range (m is an arbitrary integer from 1 to 50).

図6は、検出値算出部21の動作を説明するためのフローチャートである。図6に示すステップS1〜S4の動作は、CCD1による撮影の1フレームごとに行われる。更に図7を参照して、検出値算出部21の動作を説明する。   FIG. 6 is a flowchart for explaining the operation of the detection value calculation unit 21. The operations of steps S1 to S4 shown in FIG. Further, the operation of the detection value calculation unit 21 will be described with reference to FIG.

図7の上側には、CCD1の1水平ライン内の画素であって、左CCD1aと右CCD1bとの境界Lの両側4画素ずつの計8個の画素P1〜P8が示されている。画素P1、P2、P3、P4、P5、P6、P7、P8の順に、左から右へ連なっている。補正値算出回路8及びレベル差補正回路9に与えられる、画素P1、P2、P3、P4、P5、P6、P7及びP8に対応する信号値(信号レベル)を、それぞれ、p1、p2、p3、p4、p5、p6、p7及びp8にて表す。説明の便宜上、図7においては、信号値p1、p3、p5及びp7を、信号値p2、p4、p6及びp8に対して、下側にシフトさせて表示している。   In the upper side of FIG. 7, pixels in one horizontal line of the CCD 1, that is, a total of eight pixels P <b> 1 to P <b> 8 of four pixels on both sides of the boundary L between the left CCD 1 a and the right CCD 1 b are shown. The pixels P1, P2, P3, P4, P5, P6, P7, and P8 are arranged in this order from left to right. Signal values (signal levels) corresponding to the pixels P1, P2, P3, P4, P5, P6, P7, and P8, which are given to the correction value calculation circuit 8 and the level difference correction circuit 9, are p1, p2, p3, respectively. Represented by p4, p5, p6, p7 and p8. For convenience of explanation, in FIG. 7, the signal values p1, p3, p5, and p7 are shifted and displayed with respect to the signal values p2, p4, p6, and p8.

まず、ステップS1において、これらの8画素から水平方向に連続する同一色フィルタ画素を3画素選択する。CCD1は、単板方式を採用しており、CCD1の各画素には、例えば、赤(R)、緑(G)及び青(B)の何れかのカラーフィルタ(不図示)が設けられている。同一色フィルタ画素とは、CCD1の画素の中で、同一色のカラーフィルタが設けられた画素のことをいう。カラーフィルタが所謂ベイヤー配列にて配列されている場合を例とする。この場合、画素P2、P4、P6及びP8が同一色フィルタ画素の1つの組を成し、画素P1、P3、P5及びP7が同一色フィルタ画素の他の組を成す。   First, in step S1, three pixels of the same color that are continuous in the horizontal direction are selected from these eight pixels. The CCD 1 employs a single plate method, and each pixel of the CCD 1 is provided with, for example, one of red (R), green (G), and blue (B) color filters (not shown). . The same color filter pixel means a pixel provided with a color filter of the same color among the pixels of the CCD 1. A case where the color filters are arranged in a so-called Bayer arrangement is taken as an example. In this case, the pixels P2, P4, P6, and P8 form one set of the same color filter pixels, and the pixels P1, P3, P5, and P7 form another set of the same color filter pixels.

従って、選択される3つの画素の組み合わせとしては、(P1、P3、P5)、(P2、P4、P6)、(P3、P5、P7)および(P4、P6、P8)の4通りがある。尚、上記3つの画素から成る画素群の夫々は、検出値算出用の監視画素群として機能する。   Therefore, there are four combinations of (P1, P3, P5), (P2, P4, P6), (P3, P5, P7) and (P4, P6, P8) as combinations of three selected pixels. Each of the pixel groups composed of the three pixels functions as a monitoring pixel group for calculating a detection value.

ステップS2において、4つの組み合わせの夫々に対する検出値を算出する。(P2、P4、P6)の組に対する検出値の算出法について説明する。3つの画素P2、P4及びP6のうち、一方の分割撮像領域(この例では、左CCD1a)に属する2つの画素P2及びP4の信号値p2及びp4から、他方の分割撮像領域(この例では、右CCD1b)に属する1つの画素P6の信号値を予測する。つまり、横軸に画素位置を、縦軸に信号値(信号レベル)をとった座標系において、p2とp4とを結ぶ線分の傾きから、画素P6の信号値を予測する。この予測された信号値をp6’で表す。   In step S2, detection values for each of the four combinations are calculated. A detection value calculation method for the group (P2, P4, P6) will be described. Among the three pixels P2, P4, and P6, from the signal values p2 and p4 of the two pixels P2 and P4 belonging to one divided imaging region (in this example, the left CCD 1a), the other divided imaging region (in this example, The signal value of one pixel P6 belonging to the right CCD 1b) is predicted. That is, the signal value of the pixel P6 is predicted from the slope of the line segment connecting p2 and p4 in the coordinate system having the pixel position on the horizontal axis and the signal value (signal level) on the vertical axis. This predicted signal value is represented by p6 '.

そして、画素P6の実際の信号値(以下、「実際の信号値」を「実際値」と呼ぶこともある)p6と、画素P6の予測された信号値(以下、「予測された信号値」を「予測値」と呼ぶこともある)p6’とに基づいて、この(P2、P4、P6)の組に対応する検出値d6を算出する。   The actual signal value of the pixel P6 (hereinafter, “actual signal value” may be referred to as “actual value”) p6 and the predicted signal value of the pixel P6 (hereinafter, “predicted signal value”). Is detected as “predicted value”), and a detection value d6 corresponding to the set of (P2, P4, P6) is calculated.

検出値は、実際値と予測値との差分値、または、実際値と予測値との比率によって表現される。以下は、特に記述しない限り、検出値が比率によって表されるものとする。或る1つの検出値のみに着目した場合、検出値は、チャンネル間信号レベル差をなくすために信号CH1に対して乗じるべきゲインを表している。   The detected value is expressed by a difference value between the actual value and the predicted value or a ratio between the actual value and the predicted value. In the following, unless otherwise stated, it is assumed that the detected value is represented by a ratio. When attention is paid to only one detection value, the detection value represents a gain to be multiplied with the signal CH1 in order to eliminate the inter-channel signal level difference.

上述したように、検出値に応じて求められる補正値は、信号CH1に対して施される補正の値として取り扱われる。このため、予測値が右CCD1b内の画素の予測値である場合には、実際値÷予測値を検出値として算出する。つまり、例えば、d6=p6÷p6’、とされる。予測値が左CCD1a内の画素の予測値である場合には、予測値÷実際値を検出値として算出する。   As described above, the correction value obtained according to the detection value is handled as a correction value to be applied to the signal CH1. For this reason, when the predicted value is the predicted value of the pixel in the right CCD 1b, the actual value / the predicted value is calculated as the detected value. That is, for example, d6 = p6 ÷ p6 ′. When the predicted value is the predicted value of the pixel in the left CCD 1a, the predicted value ÷ actual value is calculated as the detected value.

他の組み合せ(P1、P3、P5)、(P3、P5、P7)および(P4、P6、P8)についても、同様の処理が行われる。つまり、画素P5、P3及びP4の信号値の予測値p5’、p3’及びp4’を算出され、(P1、P3、P5)、(P3、P5、P7)及び(P4、P6、P8)の組に対応する検出値d5(=p5÷p5’)、d3(=p3’÷p3)及びd4(=p4’÷p4)が算出される。   Similar processing is performed for the other combinations (P1, P3, P5), (P3, P5, P7) and (P4, P6, P8). That is, the predicted values p5 ′, p3 ′, and p4 ′ of the signal values of the pixels P5, P3, and P4 are calculated, and (P1, P3, P5), (P3, P5, P7), and (P4, P6, P8) Detection values d5 (= p5 / p5 ′), d3 (= p3 ′ / p3) and d4 (= p4 ′ / p4) corresponding to the set are calculated.

上記ステップS1及びS2の処理は、CCD1の撮影によって得られた画像の各水平ラインに対して繰り返し行われる。例えば、上記ステップS1及びS2の処理は、その画像を構成する全ての水平ラインを対象として、各水平ラインごとに行われる。つまり、例えば、ステップS2に続くステップS3において、ステップS1及びS2の処理が全ての水平ラインについて行われたかが判断され、全ての水平ラインについて行っていない場合は、他の水平ラインを選択した上で(ステップS4)ステップS1に戻る。一方、全ての水平ラインについて行ったと判断された場合は、図6の処理を終える。   The processes in steps S1 and S2 are repeated for each horizontal line of an image obtained by photographing with the CCD 1. For example, the processes in steps S1 and S2 are performed for each horizontal line for all horizontal lines constituting the image. That is, for example, in step S3 following step S2, it is determined whether or not the processing in steps S1 and S2 has been performed for all horizontal lines. If not performed for all horizontal lines, another horizontal line is selected. (Step S4) Return to Step S1. On the other hand, if it is determined that the process has been performed for all horizontal lines, the process of FIG. 6 ends.

画像(CCD1)の水平ラインの本数がn本(nは自然数)であった場合、1フレームの画像から、(n×4)個の検出値が算出される。算出された検出値は、実測補正値算出部22による実測補正値の算出に利用される。但し、後の説明からも理解されるが、毎フレームにおいて(n×4)個の検出値を算出する必要は必ずしもなく、実測補正値の算出(或いは、更新用補正テーブル25内の補正値の更新)に必要な検出値のみを各フレームにおいて最低限算出すれば足る。   When the number of horizontal lines of the image (CCD1) is n (n is a natural number), (n × 4) detection values are calculated from one frame image. The calculated detection value is used for calculation of the actual correction value by the actual correction value calculation unit 22. However, as will be understood from the following description, it is not always necessary to calculate (n × 4) detection values in each frame, and calculation of actual correction values (or correction values in the correction table 25 for update) It is sufficient to calculate at least the detection values necessary for (update) in each frame.

次に、実測補正値算出部22の動作について説明する。実測補正値算出部22は、検出値算出部21が算出した複数の検出値に基づいて、50個の実測補正値を算出する。50個の実測補正値の算出は、例えばフレーム毎に行われる。但し、後の説明からも理解されるが、毎フレームにおいて50個の実測補正値を算出する必要は必ずしもなく、更新用補正テーブル25内の補正値の更新に必要な実測補正値のみを各フレームにおいて最低限算出すれば足る。   Next, the operation of the actual measurement correction value calculation unit 22 will be described. The actual measurement correction value calculation unit 22 calculates 50 actual correction values based on the plurality of detection values calculated by the detection value calculation unit 21. The calculation of 50 actual correction values is performed, for example, for each frame. However, as will be understood from the following description, it is not always necessary to calculate 50 actual correction values in each frame, and only the actual correction values necessary for updating the correction values in the update correction table 25 are stored in each frame. It is sufficient to calculate at a minimum.

各実測補正値を算出するために、まず、検出値算出部21によって算出された各検出値の属する信号範囲が判断される。つまり、各検出値が、第1、第2、・・・第50の信号範囲のいずれに属する検出値であるかが判断される。この判断は、各検出値の算出の基になった信号値に基づいて行われる。また、この判断は、例えば、実測補正値算出部22によって行われるが、検出値算出部21によって行われるようにしてもよい。   In order to calculate each actual measurement correction value, first, a signal range to which each detection value calculated by the detection value calculation unit 21 belongs is determined. That is, it is determined whether each detection value belongs to the first, second,..., 50th signal range. This determination is made based on the signal value that is the basis for calculating each detected value. In addition, this determination is performed by the actual measurement correction value calculation unit 22, for example, but may be performed by the detection value calculation unit 21.

各検出値は、3つの信号値に基づいて算出されるが、その3つの信号値の内、左CCD1a内の画素に対応する信号値を、信号範囲分類用の判断値として用いて、各検出値の属する信号範囲を特定する。左CCD1a内の画素に対応する信号値が2つある場合は、例えば、境界Lに近い方の画素の信号値を上記判断値として用いて、各検出値の属する信号範囲を特定する。或る検出値に対応する判断値が第mの信号範囲(mは1〜50の任意の整数)に属している場合、その検出値は第mの信号範囲に属していると判断される。   Each detection value is calculated based on the three signal values. Among the three signal values, each detection value is determined using a signal value corresponding to a pixel in the left CCD 1a as a determination value for signal range classification. Specify the signal range to which the value belongs. When there are two signal values corresponding to the pixels in the left CCD 1a, for example, the signal range to which each detection value belongs is specified using the signal value of the pixel closer to the boundary L as the determination value. When a determination value corresponding to a certain detection value belongs to the m-th signal range (m is an arbitrary integer from 1 to 50), it is determined that the detection value belongs to the m-th signal range.

例えば、(P2、P4、P6)の組に対する検出値d6が属する信号範囲は、信号値p4を判断値として用いることにより、特定される。p4の値が「12」であって、且つ、上述の如く第2の信号範囲が「11〜30」の場合は(図5参照)、「12」が第2の信号範囲に属するため、検出値d6は第2の信号範囲に属すると判断される。   For example, the signal range to which the detection value d6 for the set (P2, P4, P6) belongs is specified by using the signal value p4 as the determination value. When the value of p4 is “12” and the second signal range is “11-30” as described above (see FIG. 5), since “12” belongs to the second signal range, the detection is performed. The value d6 is determined to belong to the second signal range.

但し、検出値が何れの信号範囲に属するかを判断する手法として、様々な手法を適用することが可能である。例えば、検出値の算出の基になった3つの信号値の内の任意の1以上の信号値を用いて得られる値を信号範囲分類用の判断値とし、その判断値を用いて、各検出値が何れの信号範囲に属するかを判断することも可能である。   However, various methods can be applied as a method for determining which signal range the detected value belongs to. For example, a value obtained by using any one or more of the three signal values from which the detection value is calculated is set as a determination value for signal range classification, and each detection is performed using the determination value. It is also possible to determine which signal range the value belongs to.

例えば、検出値d6の属する信号範囲を特定するための判断値として、p2、p4及びp6の何れか1つを採用するようにしてもよいし、p2、p4及びp6の内の2以上の値の平均値を採用するようにしてもよいし、更に、それらにp6’を加味した値を採用するようにしてもよい。   For example, any one of p2, p4, and p6 may be adopted as a determination value for specifying the signal range to which the detection value d6 belongs, or two or more values of p2, p4, and p6 May be adopted, or a value obtained by adding p6 ′ to them may be adopted.

第mの信号範囲に属すると判断された検出値を用いて、第mの信号範囲に対応する実測補正値が算出される。但し、第mの信号範囲に対応する実測補正値を算出するに際して、検出値の算出の基となった信号値または検出値に基づいて各検出値の有効性を判断し、有効と判断した検出値のみを用いて、第mの信号範囲に対応する実測補正値を算出するようにする(無効と判断された検出値は無視される)。   An actual measurement correction value corresponding to the m-th signal range is calculated using the detected value determined to belong to the m-th signal range. However, when calculating the actual correction value corresponding to the m-th signal range, the validity of each detected value is determined based on the signal value or the detected value that is the basis for calculating the detected value, and the detection is determined to be effective. The actual measurement correction value corresponding to the m-th signal range is calculated using only the value (the detected value determined to be invalid is ignored).

この有効/無効の判断手法を、(P2、P4、P6)の組に対する検出値d6に着目して例示する。実測補正値算出部22は、下記式(1)及び(2)の双方を満たす場合にのみ検出値d6を有効と判断し、それ以外の場合はノイズ等の影響によって検出値d6の信頼性が低いと判断して検出値d6を無効と判断する。
|p4−p2|≦p4×K1 ・・・(1)
th1≦d6≦th2 ・・・(2)
This valid / invalid determination method will be exemplified by focusing on the detection value d6 for the set (P2, P4, P6). The actual measurement correction value calculation unit 22 determines that the detection value d6 is valid only when both of the following formulas (1) and (2) are satisfied. In other cases, the reliability of the detection value d6 is affected by noise and the like. It is determined that the detected value is low and the detected value d6 is determined to be invalid.
| P4-p2 | ≦ p4 × K 1 (1)
th1 ≦ d6 ≦ th2 (2)

ここで、K1は、0<K1≦1の範囲内で任意に設定される。また、th1及びth2は閾値であり、th1<th2が成立する。閾値th1及びth2については、後に詳説する。 Here, K 1 is arbitrarily set within a range of 0 <K 1 ≦ 1. Further, th1 and th2 are threshold values, and th1 <th2 is established. The thresholds th1 and th2 will be described in detail later.

実測補正値算出部22による実測補正値の算出手法として、様々な手法を採用可能である。   Various methods can be adopted as a method of calculating the actual correction value by the actual correction value calculation unit 22.

まず、採用可能な最も基本的な手法を「基本実測補正値算出法」として説明する。基本実測補正値算出法では、信号範囲ごとに、有効と判断された、1フレーム分の検出値の平均値を算出し、その平均値を実測補正値として採用する。   First, the most basic method that can be adopted will be described as “basic measurement correction value calculation method”. In the basic actual correction value calculation method, for each signal range, an average value of detection values for one frame determined to be valid is calculated, and the average value is adopted as the actual correction value.

例えば、或る1つのフレームにおいて、第1の信号範囲に属し、且つ、有効と判断された検出値が、「1.11」、「1.09」及び「1.10」であったとする。この場合、第1の信号範囲に対応する実測補正値は、「(1.11+1.09+1.10)/3=1.10」より、「1.10」となる。この実測補正値は、チャンネル間信号レベル差を(理想的には)なくすために、信号CH1に対して乗じるべきゲインを表している。(上述したように、電源投入時から十分に時間が経過した後は、補正値は実測補正値に追従するようになる)。他の信号範囲についても、同様に実測補正値が算出される。   For example, it is assumed that in one frame, detection values that belong to the first signal range and are determined to be valid are “1.11”, “1.09”, and “1.10”. In this case, the actual correction value corresponding to the first signal range is “1.10” from “(1.11 + 1.09 + 1.10) /3=1.10”. This actual correction value represents a gain to be multiplied with the signal CH1 in order to eliminate (ideally) a signal level difference between channels. (As described above, after a sufficient time has elapsed since the power was turned on, the correction value follows the actual correction value). Similarly, actual correction values are calculated for other signal ranges.

次に、適用補正値算出部24の内部構成及び動作と、更新用補正テーブル25に格納される補正値の更新手法と、レベル差補正回路9による補正手法と、について説明する。図8は、適用補正値算出部24の内部構成の一例を示すブロック図である。図8には、乗算器31及び34と、加算器32と、レジスタ(遅延回路)33とから成るフィルタ30が示されている。フィルタ30は、IIR(Infinite Impulse Response)フィルタとなっている。   Next, the internal configuration and operation of the applied correction value calculation unit 24, the update method of the correction value stored in the update correction table 25, and the correction method by the level difference correction circuit 9 will be described. FIG. 8 is a block diagram illustrating an example of an internal configuration of the applied correction value calculation unit 24. FIG. 8 shows a filter 30 including multipliers 31 and 34, an adder 32, and a register (delay circuit) 33. The filter 30 is an IIR (Infinite Impulse Response) filter.

乗算器31は、入力値と係数(1−K2)との乗算結果を出力する。加算器32は、乗算器31の出力値と乗算器34の出力値との加算結果を出力する。レジスタ33は、加算器32の出力値を保持すると共に、該出力値を単位時間だけ遅延させて出力する。乗算器34は、レジスタ33の出力値と係数K2との乗算結果を出力する。レジスタ33による遅延時間(即ち、上記単位時間)は、例えば50フレームに相当する時間となっているが、動作中に適宜変更されうる。係数K2は1未満の正の数である。 The multiplier 31 outputs a multiplication result of the input value and the coefficient (1-K 2 ). The adder 32 outputs the addition result of the output value of the multiplier 31 and the output value of the multiplier 34. The register 33 holds the output value of the adder 32 and outputs the output value with a delay of unit time. The multiplier 34 outputs a multiplication result between the output value and the coefficient K 2 of the register 33. The delay time (that is, the unit time) by the register 33 is a time corresponding to, for example, 50 frames, but can be appropriately changed during the operation. The coefficient K 2 is a positive number less than 1.

フィルタ30は、フィルタ30への入力値(即ち、乗算器31への入力値)を時間方向に平滑化して出力するローパスフィルタとして機能する。フィルタ30の出力値(レジスタ33の出力値)は、適用補正値算出部24が算出した補正値(適用補正値)として更新用補正テーブル25に送られる。   The filter 30 functions as a low-pass filter that smoothes and outputs the input value to the filter 30 (that is, the input value to the multiplier 31) in the time direction. The output value of the filter 30 (the output value of the register 33) is sent to the update correction table 25 as the correction value (applied correction value) calculated by the applied correction value calculation unit 24.

1つのフィルタ30を流用して、第1〜第50の信号範囲に対応する合計50個の補正値を算出することも可能であるが、今、説明の簡単化のため、1つの信号範囲に対応する1つの補正値を算出するために、1つのフィルタ30が設けられている場合を説明する。この場合、適用補正値算出部24は、50個のフィルタ30を備えて構成されることになる。   It is also possible to calculate a total of 50 correction values corresponding to the first to 50th signal ranges by using one filter 30. However, for simplification of explanation, it is now possible to calculate a single signal range. A case will be described in which one filter 30 is provided to calculate one corresponding correction value. In this case, the applied correction value calculation unit 24 is configured to include 50 filters 30.

第m番目のフィルタ30は、第mの信号範囲に対応する「初期補正値及び実測補正値」に基づいて、第mの信号範囲に対応する補正値(適用補正値)を算出する(mは、1〜50の任意の整数)。図1のデジタルカメラに電源が投入され、図1に示す各部が起動した時点(この時点を、「基準時点」と呼ぶ)では、第m番目のフィルタ30のレジスタ33の格納値及び出力値、並びに、更新用補正テーブル25に格納されている第mの信号範囲に対応する補正値(適用補正値)は、初期補正テーブル23に格納されている第mの信号範囲に対応する初期補正値と一致するようになっている。   The mth filter 30 calculates a correction value (applied correction value) corresponding to the mth signal range based on the “initial correction value and actual correction value” corresponding to the mth signal range (m is , Any integer from 1 to 50). 1 is turned on and each unit shown in FIG. 1 is activated (this time point is referred to as “reference time point”), the stored value and output value of the register 33 of the mth filter 30; In addition, the correction value (applied correction value) corresponding to the m-th signal range stored in the update correction table 25 is the initial correction value corresponding to the m-th signal range stored in the initial correction table 23. It is supposed to match.

上記基準時点以降の或るフレームにおいて算出された第mの信号範囲に対応する実測補正値は、第m番目のフィルタ30の乗算器31への入力値となる。このため、上記基準時点において第mの信号範囲に対応する初期補正値と一致していた第m番目のフィルタ30のレジスタ33の出力値は、上記基準時点以降において、徐々に第mの信号範囲に対応する実測補正値に追従するようになる。   The actual correction value corresponding to the m-th signal range calculated in a certain frame after the reference time becomes an input value to the multiplier 31 of the m-th filter 30. For this reason, the output value of the register 33 of the m-th filter 30 that coincides with the initial correction value corresponding to the m-th signal range at the reference time point gradually increases from the reference time point to the m-th signal range. It follows the actual measurement correction value corresponding to.

第m番目のフィルタ30のレジスタ33の出力値は、第mの信号範囲に対応する補正値として、更新用補正テーブル25に格納される。第m番目のフィルタ30のレジスタ33の出力値が更新されると、更新用補正テーブル25内の第mの信号範囲に対応する補正値も更新される。   The output value of the register 33 of the mth filter 30 is stored in the update correction table 25 as a correction value corresponding to the mth signal range. When the output value of the register 33 of the mth filter 30 is updated, the correction value corresponding to the mth signal range in the update correction table 25 is also updated.

レベル差補正回路9は、信号CH1を受ける。信号CH1には、左CCD1a内の各画素で発生した電気信号に対応する複数の撮像信号が含まれている。レベル差補正回路9は、信号CH1を構成する各撮像信号が、何れの信号範囲に属しているかを判断する。そして、レベル差補正回路9は、第mの信号範囲に属していると判断された撮像信号の信号値に対して、更新用補正テーブル25に格納された、第mの信号範囲に対応する最新の補正値(適用補正値)を乗じる。その乗算によって得られた信号値は、チャンネル間信号レベル差が補正された信号値として、YRGB生成回路10に送られる。   Level difference correction circuit 9 receives signal CH1. The signal CH1 includes a plurality of imaging signals corresponding to electrical signals generated at each pixel in the left CCD 1a. The level difference correction circuit 9 determines to which signal range each imaging signal constituting the signal CH1 belongs. The level difference correction circuit 9 then stores the latest value corresponding to the m-th signal range stored in the update correction table 25 for the signal value of the imaging signal determined to belong to the m-th signal range. Multiply the correction value (applied correction value). The signal value obtained by the multiplication is sent to the YRGB generation circuit 10 as a signal value in which the inter-channel signal level difference is corrected.

例えば、ある撮像信号の信号値が「15」であって、且つ、上述の如く第2の信号範囲が「11〜30」の場合(図5参照)、その撮像信号は第2の信号範囲に属すると判断される。そして、第2の信号範囲に対応する補正値(適用補正値)が「1.2」である場合は、「18」(=15×1.2)の値を有する信号が、YRGB生成回路10に送られる。   For example, when the signal value of a certain imaging signal is “15” and the second signal range is “11-30” as described above (see FIG. 5), the imaging signal falls within the second signal range. Judged to belong. When the correction value (applied correction value) corresponding to the second signal range is “1.2”, a signal having a value of “18” (= 15 × 1.2) is converted to the YRGB generation circuit 10. Sent to.

尚、レベル差補正回路9が行う補正処理を「乗算」と表現しているが、この乗算と同じ結果或いは近似した結果を得ることのできる任意の他の手法を採用することも可能である。例えば、第mの信号範囲の中央値と第mの信号範囲に対応する補正値との乗算結果から第mの信号範囲の中央値を減算した値を算出しておき、その値(減算結果)を第mの信号範囲に属する各撮像信号に加算することによって、チャンネル間信号レベル差を補正するようにしてもよい。   Although the correction process performed by the level difference correction circuit 9 is expressed as “multiplication”, any other method capable of obtaining the same result or approximate result as this multiplication can be employed. For example, a value obtained by subtracting the median value of the mth signal range from the multiplication result of the median value of the mth signal range and the correction value corresponding to the mth signal range is calculated, and the value (subtraction result) is calculated. May be added to each imaging signal belonging to the mth signal range to correct the inter-channel signal level difference.

CCD1並びに出力チャンネル14及び15の動作温度や図1のデジタルカメラの周囲温度が変わると、信号レベルとチャンネル間信号レベル差との関係は、図3の実線60から破線61のように変化する。従って、実際の動作温度等に応じて補正値を適宜変更する必要があるが、急峻に補正値を変更すると信号CH1の信号レベルも急峻に補正され、特に動画撮影時では、逆に視覚的違和感の発生を招いてしまう。   When the operating temperature of the CCD 1 and the output channels 14 and 15 and the ambient temperature of the digital camera of FIG. 1 change, the relationship between the signal level and the inter-channel signal level difference changes from a solid line 60 to a broken line 61 in FIG. Therefore, it is necessary to appropriately change the correction value according to the actual operating temperature or the like. However, if the correction value is suddenly changed, the signal level of the signal CH1 is also sharply corrected. Will occur.

しかし、上記のように構成すれば、電源投入直後は、所定の温度条件下で最適化された初期補正値を実際に適用する補正値として用いてチャンネル間信号レベル差の補正処理が行われ、徐々に、該補正処理に用いられる補正値が実際の動作温度に適した値(即ち、実測補正値)に変更されていく。このため、チャンネル間信号レベル差は、なめらかに補正され、特に動画の品質向上に寄与する。   However, if configured as described above, immediately after the power is turned on, an initial correction value optimized under a predetermined temperature condition is used as a correction value to be actually applied, and the inter-channel signal level difference correction process is performed. Gradually, the correction value used for the correction process is changed to a value suitable for the actual operating temperature (that is, the actually measured correction value). For this reason, the signal level difference between channels is corrected smoothly, and contributes particularly to the improvement of the quality of moving images.

また、レベル差補正回路9が信号CH1に対してのみ補正を行うことによって、信号CH1の信号レベルを信号CH2の信号レベルにあわせにいくという手法を上述したが、信号CH1とCH2の双方に対して補正を施すことによって同様の作用を得るようにしても構わない。   Further, the level difference correction circuit 9 corrects only the signal CH1 to adjust the signal level of the signal CH1 to the signal level of the signal CH2. However, the level difference correction circuit 9 corrects only the signal CH1. The same effect may be obtained by performing correction.

この場合、レベル差補正回路9は、信号CH1とCH2の双方を補正対象信号として受け、信号CH1とCH2を構成する各撮像信号が何れの信号範囲に属しているかを判断する。そして、第mの信号範囲に属していると判断された各撮像信号の信号値を、更新用補正テーブル25に格納された、第mの信号範囲に対応する最新の補正値(適用補正値)を用いて補正する。   In this case, the level difference correction circuit 9 receives both signals CH1 and CH2 as correction target signals, and determines to which signal range each imaging signal constituting the signals CH1 and CH2 belongs. Then, the latest correction value (applied correction value) corresponding to the m-th signal range stored in the update correction table 25 is stored as the signal value of each imaging signal determined to belong to the m-th signal range. Use to correct.

例えば、補正値の(約)50%ずつを信号CH1とCH2に反映させることにより、上述と同様の作用を得る。或る1つの信号範囲に着目し、最新の補正値(適用補正値)がJ(例えば、1.2)であったとする。この場合、信号CH1の撮像信号の信号値に対して“(1+(J−1)/2)”を乗じ、信号CH2の撮像信号の信号値に対して“(1+(J−1)/2)÷J”を乗じる。そして、その乗算によって得られた信号CH1とCH2の信号値を、チャンネル間信号レベル差が補正された信号値として、YRGB生成回路10に送るようにする。   For example, the same effect as described above can be obtained by reflecting (about) 50% of the correction value in the signals CH1 and CH2. Considering a certain signal range, it is assumed that the latest correction value (applied correction value) is J (for example, 1.2). In this case, the signal value of the imaging signal of the signal CH1 is multiplied by “(1+ (J−1) / 2)”, and the signal value of the imaging signal of the signal CH2 is “(1+ (J−1) / 2”. ) ÷ J ”. Then, the signal values of the signals CH1 and CH2 obtained by the multiplication are sent to the YRGB generation circuit 10 as signal values in which the inter-channel signal level difference is corrected.

補正値を、例えば50%ずつ信号CH1とCH2に反映させることによって、チャンネル間信号レベル差を補正するという上記手法は、後に説明する様々な変形例(他の実施形態を含む)に対しても適用可能である。   The above-described method of correcting the inter-channel signal level difference by reflecting the correction value on the signals CH1 and CH2 by 50%, for example, also applies to various modifications (including other embodiments) described later. Applicable.

また、逐次得られる実測補正値は、時間方向のローパスフィルタ(本実施形態では、フィルタ30を例示)を介して、実際に補正処理に用いられる補正値に反映されるが、上記基準時点(電源投入時等)の直後と、それ以降において、そのローパスフィルタの時定数を変化させるとよい。   In addition, the actually measured correction value obtained sequentially is reflected in the correction value that is actually used for the correction process via a low-pass filter in the time direction (in this embodiment, the filter 30 is exemplified). The time constant of the low-pass filter may be changed immediately after the input) and thereafter.

例えば、上記基準時点の直後では、そのローパスフィルタの時定数をτ1としておき、時間の経過とともに(例えば、撮影が進むに従って)該時定数をより大きなτ2に向かわせ、最終的に、該時定数をτ2に固定する(但し、τ1<τ2)。図8に示すフィルタ30を用いる場合は、時間の経過に伴って係数K2を変更していけばよい。 For example, immediately after the reference time point, the time constant of the low-pass filter is set as τ 1, and the time constant is moved toward a larger τ 2 with the passage of time (for example, as the shooting progresses). The time constant is fixed at τ 2 (where τ 12 ). When the filter 30 shown in FIG. 8 is used, the coefficient K 2 may be changed with the passage of time.

上記基準時点以降において、補正値(適用補正値)は最新の実測補正値に応じた値に向かって徐々に変更されていくことになるが、上記のように時定数を変更することにより、補正値が実測補正値に向かう速度(或いは、次々と算出される実測補正値の変化に対する補正値の応答速度)が、電源投入直後は速く、それ以降は徐々に遅くなる。   After the reference time point, the correction value (applied correction value) is gradually changed toward the value corresponding to the latest measured correction value, but it can be corrected by changing the time constant as described above. The speed at which the value is directed to the actual correction value (or the response speed of the correction value with respect to the change in the actual correction value calculated one after another) is fast immediately after the power is turned on, and gradually decreases thereafter.

つまり、電源投入直後は、素早く現在の温度状況に適した補正テーブルへと更新用補正テーブル25が更新されていくことになるため、チャンネル間信号レベル差の補正内容が、現在の温度状況に適したものへと素早く変更される。一方において、電源投入から暫く経過した時点では、温度変化は緩やかなものになっていると考えられるので、実測補正値の変化も少ないと考えられる。また、電源投入から暫く経過した時点における実測補正値の大きな変化は、ノイズ等の影響によることが多い。従って、電源投入から暫く経過した時点では、更新用補正テーブル25内の補正値の変化量を比較的大きく制限し、ノイズ等に起因する補正値の急峻な変更を低減する。   That is, immediately after the power is turned on, the update correction table 25 is quickly updated to the correction table suitable for the current temperature situation, so that the correction content of the inter-channel signal level difference is suitable for the current temperature situation. It is quickly changed to something. On the other hand, since it is considered that the temperature change is moderate after a while since the power is turned on, it is considered that the change in the actual correction value is small. In addition, a large change in the actually measured correction value after a while has passed since power-on is often due to the influence of noise or the like. Therefore, at a point in time after the power is turned on, the amount of change in the correction value in the update correction table 25 is relatively large, and a sharp change in the correction value due to noise or the like is reduced.

また、図9を参照して、更新用補正テーブル25内の補正値の更新タイミングの具体例を示す。上記基準時点以降の第1番目のフレームにおいて、第1の信号範囲に対応する補正値を、第1の信号範囲に対応するフィルタ30の出力値に応じて、初めて更新する。次に訪れる第2番目のフレームにおいて、第2の信号範囲に対応する補正値を、第2の信号範囲に対応するフィルタ30の出力値に応じて、初めて更新する。   Further, a specific example of the update timing of the correction value in the update correction table 25 will be shown with reference to FIG. In the first frame after the reference time point, the correction value corresponding to the first signal range is updated for the first time according to the output value of the filter 30 corresponding to the first signal range. In the second frame to be visited next, the correction value corresponding to the second signal range is updated for the first time according to the output value of the filter 30 corresponding to the second signal range.

このように、1つのフレームで1つの補正値を更新するようにする。この場合、第mの信号範囲に対応する補正値の更新を行うフレームにおいてのみ、第mの信号範囲に対応するフィルタ30(レジスタ33)の出力値は更新される。つまり例えば、上記の第1番目のフレームにおいては、第1の信号範囲に対応するフィルタ30(レジスタ33)の出力値のみが更新され、第2〜50の信号範囲に対応するフィルタ30(レジスタ33)の出力値は更新されない。   Thus, one correction value is updated in one frame. In this case, the output value of the filter 30 (register 33) corresponding to the mth signal range is updated only in the frame in which the correction value corresponding to the mth signal range is updated. That is, for example, in the first frame, only the output value of the filter 30 (register 33) corresponding to the first signal range is updated, and the filter 30 (register 33) corresponding to the second to 50th signal ranges is updated. ) Output value is not updated.

50フレーム期間を用いて50個の補正値の初回更新を行った後、第51番目〜第100番目のフレームを用いて、50個の補正値の2回目の更新を行う。その2回目の更新が終わったあとは、休止期間をおいてから、50個の補正値の3回目の更新を行う。例えば、休止期間を20フレーム期間とし、第121番目〜第170番目のフレームを用いて3回目の更新を行う。その3回目の更新が終わったあとは、他の休止期間をおいてから、50個の補正値の4回目の更新を行う。例えば、上記他の休止期間を40フレーム期間とし、第211番目〜第260番目のフレームを用いて4回目の更新を行う。   After the 50 update values are updated for the first time using the 50 frame period, the 50th correction value is updated for the second time using the 51st to 100th frames. After the second update is completed, after a pause period, the third update of 50 correction values is performed. For example, the pause period is 20 frame periods, and the third update is performed using the 121st to 170th frames. After the third update, the fourth update of 50 correction values is performed after another pause period. For example, the other pause period is 40 frame periods, and the fourth update is performed using the 211st to 260th frames.

このように、補正値の更新間隔を、当初は短くしておきつつ、徐々に広げていくことによっても、補正値が実測補正値に向かう速度が、電源投入直後は速く、それ以降は徐々に遅くなる。   In this way, even when the correction value update interval is initially shortened and gradually widened, the speed at which the correction value moves toward the actual correction value is high immediately after the power is turned on, and gradually thereafter. Become slow.

また、適用補正値算出部24として、図8のような巡回型回路(フィルタ30)を採用する例を示したが、過去の実測補正値を最新の実測補正値に加味することによって、上述のフィルタ30と同様の作用を得るようにしてもよい。例えば、第mの信号範囲に属する、最新の実測補正値、前回の実測補正値及び2回前の実測補正値(・・・)の平均値または加重平均値を、今回に更新されるべき、第mの信号範囲に属する補正値として採用しても良い。これにより、最新の補正値は、過去の実測補正値の影響を受けつつ、最新の実測補正値に追従するようになる。   Moreover, although the example which employ | adopts the cyclic | annular circuit (filter 30) like FIG. 8 as an applied correction value calculation part 24 was shown, by adding the past actual correction value to the newest actual correction value, the above-mentioned is demonstrated. You may make it acquire the effect | action similar to the filter 30. FIG. For example, the average value or the weighted average value of the latest actual measurement correction value, the previous actual measurement correction value, and the previous actual measurement correction value (...) belonging to the m-th signal range should be updated this time. You may employ | adopt as a correction value which belongs to the m-th signal range. As a result, the latest correction value follows the latest actual correction value while being influenced by the past actual correction value.

ところで、「基本実測補正値算出法」として上述した、実測補正値算出部22による実測補正値の算出手法には改良すべき点がある。この改良すべき点について考察する。   By the way, there is a point which should be improved in the calculation method of the actual measurement correction value by the actual measurement correction value calculation part 22 mentioned above as "basic actual measurement correction value calculation method". Consider this point to be improved.

図10の曲線63は、或る1つの信号範囲に属する検出値の、1フレーム分の分布を示している。この分布におけるピーク64に対応する標本値、すなわち最頻値は、チャンネル間信号レベル差をなくすために信号CH1に対して乗じるべきゲインの理想値Gidを表している。 A curve 63 in FIG. 10 shows a distribution for one frame of detection values belonging to a certain signal range. The sample value corresponding to the peak 64 in this distribution, that is, the mode value, represents the ideal value G id of the gain to be multiplied to the signal CH1 in order to eliminate the inter-channel signal level difference.

ノイズ等の影響を全く考慮する必要がなく、1フレーム分の全ての検出値の平均値を算出した場合、その平均値は理想値Gidと略同じになると考えられる。しかしながら、実際にはノイズ等の影響がある。従って、図7の(P2、P4、P6)の組に対応する検出値d6を考えた場合、上記式(1)及び(2)の何れか一方でも満たさないならば検出値d6を無効とする必要がある。 It is not necessary to consider the influence of noise or the like at all, and when the average value of all detection values for one frame is calculated, the average value is considered to be substantially the same as the ideal value Gid . However, there is actually an influence of noise and the like. Therefore, when the detection value d6 corresponding to the set (P2, P4, P6) in FIG. 7 is considered, the detection value d6 is invalidated if neither of the above formulas (1) and (2) is satisfied. There is a need.

一方、チャンネル間信号レベル差がなるだけゼロに近づくように出力チャンネル14及び15は作成されるため、検出値の有効/無効を判断するための閾値th1及びth2は、「1.0」を中心に設定される。即ち、th1=1.0−Δd、且つ、th2=1.0+Δd、と設定される(但し、0<Δd<1、であって、例えば、Δd=0.2)。   On the other hand, since the output channels 14 and 15 are created so that the signal level difference between channels is as close to zero as possible, the thresholds th1 and th2 for determining the validity / invalidity of the detected value are centered at “1.0”. Set to That is, th1 = 1.0−Δd and th2 = 1.0 + Δd are set (where 0 <Δd <1, and Δd = 0.2, for example).

仮に、チャンネル間信号レベル差が補正するまでもなくゼロであった場合、検出値の分布のピークに対応する標本値は(略)「1.0」に一致する。ところが、実際には通常、図10に示す如く、ピーク64に対応する標本値は「1.0」とは異なる。一方において、閾値th1未満の検出値と閾値th2を超える検出値は、無効な検出値として平均値の算出から除外する必要がある。この結果、th1からth2の範囲内の検出値の平均値Grは、最頻値(理想値Gid)からずれることになり、本来検出したい値が精度良く検出できないという問題が生じる。 If the signal level difference between channels is zero without correction, the sample value corresponding to the peak of the distribution of detected values matches (substantially) “1.0”. However, in practice, as shown in FIG. 10, the sample value corresponding to the peak 64 is usually different from “1.0”. On the other hand, detection values less than the threshold th1 and detection values exceeding the threshold th2 need to be excluded from the calculation of the average value as invalid detection values. As a result, the average value G r of the detection values in the range from th1 to th2 deviates from the mode value (ideal value G id ), and there arises a problem that the value to be detected cannot be detected with high accuracy.

このような問題を解決する、実測補正値算出部22による実測補正値の算出手法として、以下に、第1、第2及び第3実測補正値算出法を例示する。   As a calculation method of the actual correction value by the actual correction value calculator 22 that solves such a problem, first, second, and third actual correction value calculation methods will be exemplified below.

第1〜第3実測補正値算出法においても、上記式(1)及び(2)と同様の条件を満たさない検出値は無効とされ、実測補正値の算出において無視される。閾値th1から閾値th2までの範囲を制限範囲と呼ぶ。   Also in the first to third actual correction value calculation methods, a detection value that does not satisfy the same conditions as the above formulas (1) and (2) is invalid and is ignored in calculating the actual correction value. A range from the threshold th1 to the threshold th2 is referred to as a limited range.

[第1実測補正値算出法]
まず、実測補正値算出部22による第1実測補正値算出法を説明する。第1実測補正値算出法では、第mの信号範囲に属する、1フレーム分の検出値の分布(以下、「検出値分布α」という)を参照する。図11に、検出値分布αを示す。そして、その検出値分布αのピークに対応する検出値(標本値)、すなわち最頻値G1を検索し、その最頻値G1を用いて、第mの信号範囲に対応する実測補正値を算出する。勿論、この算出は、m=1〜50の夫々に対して行われる。仮に、上記制限範囲(th1〜th2)外に分布の最頻値が存在していても、当然、その最頻値は無視される。以下、説明の簡略化上、1つの信号範囲にのみ着目して第1実測補正値算出法の説明を継続する。
[First measurement correction value calculation method]
First, the first actual correction value calculation method by the actual correction value calculator 22 will be described. In the first actual correction value calculation method, a distribution of detection values for one frame belonging to the mth signal range (hereinafter referred to as “detection value distribution α”) is referred to. FIG. 11 shows the detected value distribution α. Then, a detection value (sample value) corresponding to the peak of the detection value distribution α, that is, the mode value G 1 is searched, and the mode correction value corresponding to the m-th signal range is searched using the mode value G 1. Is calculated. Of course, this calculation is performed for each of m = 1 to 50. Even if the mode value of the distribution exists outside the limit range (th1 to th2), the mode value is naturally ignored. Hereinafter, for simplification of description, the description of the first actually measured correction value calculation method will be continued focusing on only one signal range.

最も単純には、検出値分布αの最頻値G1そのものを、実測補正値として採用する。これは、図10を参照すれば、理想値Gidを実測補正値として採用することに等しい。また、検出値分布αにおいて度数が2番目に多い検出値(標本値)と、最頻値G1(度数が1番多い検出値)との平均或いは加重平均を、実測補正値として採用してもよい。更に、検出値分布αにおいて度数が3番目に多い検出値(、4番目に多い検出値、・・・)を加味して、実測補正値を算出しても良い。また更に、最頻値G1に隣接する検出値(標本値)を考慮して実測補正値を算出しても良い。 Most simply, the mode G 1 itself of the detection value distribution α is adopted as the actual measurement correction value. Referring to FIG. 10, this is equivalent to adopting the ideal value G id as the actual correction value. In addition, an average or a weighted average of the detection value (sample value) having the second highest frequency in the detection value distribution α and the mode value G 1 (the detection value having the highest frequency) is adopted as the actual measurement correction value. Also good. Further, the actually measured correction value may be calculated in consideration of the detection value having the third highest frequency in the detection value distribution α (the fourth highest detection value,...). Furthermore, the actual measurement correction value may be calculated in consideration of the detection value (sample value) adjacent to the mode value G 1 .

第1実測補正値算出法を用いれば、本来検出したい値が精度良く検出され、チャンネル間信号レベル差の補正精度が向上する。   If the first actual correction value calculation method is used, the value that is originally desired to be detected is detected with high accuracy, and the correction accuracy of the inter-channel signal level difference is improved.

[第2実測補正値算出法]
次に、実測補正値算出部22による第2実測補正値算出法を、図12(a)及び(b)を参照して説明する。第2実測補正値算出法では、検出値の制限範囲が、検出値に応じて逐次変更される。即ち、閾値th1とth2が、検出値に応じて逐次変更される。以下、説明の簡略化上、1つの信号範囲にのみ着目して第2実測補正値算出法の説明を継続するが、50個の信号範囲の夫々に対して同様の処理が行われる。
[Second actual correction value calculation method]
Next, the second actual correction value calculation method by the actual correction value calculator 22 will be described with reference to FIGS. 12 (a) and 12 (b). In the second actual correction value calculation method, the limit range of the detection value is sequentially changed according to the detection value. That is, the threshold values th1 and th2 are sequentially changed according to the detection value. Hereinafter, for simplification of description, the description of the second actually measured correction value calculation method will be continued focusing on only one signal range, but the same processing is performed for each of the 50 signal ranges.

第2実測補正値算出法でも、第1実測補正値算出法と同様、或る信号範囲に属する、1フレーム分の検出値の分布(検出値分布α)を参照する。図12(a)に、この検出値分布αを示す。   Similarly to the first actual correction value calculation method, the second actual correction value calculation method refers to the distribution of detection values (detection value distribution α) for one frame belonging to a certain signal range. FIG. 12A shows the detected value distribution α.

そして、検出値分布αにおいて、th1からth2までの制限範囲内の検出値(標本値)の平均値G2を算出する。当初、th1とth2は、上述したように、th1=1.0−Δd、且つ、th2=1.0+Δd、と設定されており、この時点における制限範囲を図12(a)において符号66で示す。算出された平均値G2は、当該信号範囲に対応する実測補正値として適用補正値算出部24に送られる。 Then, in the detection value distribution α, an average value G 2 of detection values (sample values) within a limited range from th1 to th2 is calculated. Initially, as described above, th1 and th2 are set as th1 = 1.0−Δd and th2 = 1.0 + Δd, and the limit range at this point is indicated by reference numeral 66 in FIG. . The calculated average value G 2 is sent to the applied correction value calculation unit 24 as an actual measurement correction value corresponding to the signal range.

1または2以上のフレーム期間が経過し、当該信号範囲に対応する実測補正値を次に算出する際には、同じ信号範囲に属する、最新の1フレーム分の検出値の分布(以下、「検出値分布β」という)を参照する。図12(b)に、この検出値分布βを示す。検出値分布βは、典型的には検出値分布αと同じと考えることができる。   When one or two or more frame periods have elapsed and the actual correction value corresponding to the signal range is to be calculated next, the distribution of detection values for the latest one frame belonging to the same signal range (hereinafter referred to as “detection”). Value distribution β) ”. FIG. 12B shows this detected value distribution β. The detected value distribution β can be considered to be typically the same as the detected value distribution α.

そして、検出値分布βにおいて、th1からth2までの制限範囲内の検出値の平均値G3を算出するが、この際、前回の算出にて得た平均値G2に応じてth1とth2が変更される。具体的には、th1=G2−Δd、且つ、th2=G2+Δd、と変更される。つまり、変更された、th1(=G2−Δd)からth2(=G2+Δd)までの制限範囲内の検出値の平均値G3を算出し、この平均値G3を当該信号範囲に対応する最新の実測補正値として適用補正値算出部24に送る。平均値G3を算出する際の制限範囲を図12(b)において符号68で示す。 Then, the detection value distribution beta, but calculates an average value G 3 of the detection value within the limited range from th1 to th2, this time, is th1 and th2 depending on the average value G 2 obtained in the previous calculation Be changed. Specifically, th1 = G 2 −Δd and th2 = G 2 + Δd. In other words, the average value G 3 of the detected values within the restricted range from th1 (= G 2 −Δd) to th2 (= G 2 + Δd) is calculated, and this average value G 3 corresponds to the signal range. And sent to the applied correction value calculation unit 24 as the latest actual measurement correction value. A limit range for calculating the average value G 3 is indicated by reference numeral 68 in FIG.

更にその次の実測補正値を算出する際には、上述と同様に、th1とth2が変更され、th1(=G3−Δd)からth2(=G3−Δd)までの制限範囲内の検出値の平均値が最新の実測補正値とされる。 Further, when calculating the next actual correction value, th1 and th2 are changed in the same manner as described above, and detection within the limited range from th1 (= G 3 -Δd) to th2 (= G 3 -Δd) is performed. The average value is the latest actual correction value.

第2実測補正値算出法を用いるようにすれば、制限範囲の中心が本来検出すべき値に(略)一致するように変更されていくため、チャンネル間信号レベル差の補正精度が向上する。   If the second actual correction value calculation method is used, the center of the limit range is changed so as to (substantially) coincide with the value that should be detected, so that the correction accuracy of the inter-channel signal level difference is improved.

[第3実測補正値算出法]
次に、実測補正値算出部22による第3実測補正値算出法を説明する。
[Third measurement correction value calculation method]
Next, a third actual correction value calculation method by the actual correction value calculation unit 22 will be described.

まず、図14に関する説明を行う。図14は、左CCD1aと右CCD1bとの境界L付近の検出値算出領域75を示している。図14において、検出値算出領域75は二点鎖線によって囲まれている。CCD1の各水平ラインにおいて、境界Lの両側に4画素ずつの計8個の画素を特定する。この特定された画素の集まりが、検出値算出領域75を形成する。CCD1の水平ラインの本数がn本(nは自然数)であれば、検出値算出領域75は、(n×8)個の画素から構成されることになる。各水平ライン上における検出値算出領域75内の8つ画素は、図7を参照して説明した画素P1〜P8である。検出値算出領域75内であって且つ左CCD1a内に配置される、合計(n×4)個の画素の集まりを、画素群77と呼ぶ。   First, a description will be given regarding FIG. FIG. 14 shows a detection value calculation area 75 near the boundary L between the left CCD 1a and the right CCD 1b. In FIG. 14, the detection value calculation area 75 is surrounded by a two-dot chain line. In each horizontal line of the CCD 1, a total of 8 pixels, 4 pixels on both sides of the boundary L, are specified. This specified collection of pixels forms a detection value calculation area 75. If the number of horizontal lines of the CCD 1 is n (n is a natural number), the detection value calculation area 75 is composed of (n × 8) pixels. The eight pixels in the detection value calculation area 75 on each horizontal line are the pixels P1 to P8 described with reference to FIG. A group of a total of (n × 4) pixels arranged in the detection value calculation area 75 and in the left CCD 1 a is referred to as a pixel group 77.

第3実測補正値算出法では、画素群77内の合計(n×4)個の画素に対応する信号値(信号レベル)の分布を参照する。   In the third actual correction value calculation method, a distribution of signal values (signal levels) corresponding to a total of (n × 4) pixels in the pixel group 77 is referred to.

まず、補正値算出回路8に与えられる、画素群77内の各画素に対応する信号値(信号レベル)を、上述の第1〜第50の信号範囲の何れかに分類する。例えば、或る信号値(信号レベル)が「12」であって、且つ、上述の如く第2の信号範囲が「11〜30」である場合は(図5参照)、「12」が第2の信号範囲に属するため、その信号値(信号レベル)は第2の信号範囲に属すると判断される。   First, the signal value (signal level) corresponding to each pixel in the pixel group 77 provided to the correction value calculation circuit 8 is classified into one of the above-described first to fifty signal ranges. For example, when a certain signal value (signal level) is “12” and the second signal range is “11-30” as described above (see FIG. 5), “12” is the second. Therefore, it is determined that the signal value (signal level) belongs to the second signal range.

そして、各信号範囲ごとに、画素群77内の画素の信号値(信号レベル)の分布(以下、「信号レベル分布」という)を形成する。各信号レベル分布は、各信号範囲に属する「画素群77内の画素の信号値」のみを用いて形成される。   Then, for each signal range, a distribution of signal values (signal levels) of pixels in the pixel group 77 (hereinafter referred to as “signal level distribution”) is formed. Each signal level distribution is formed using only “signal values of pixels in the pixel group 77” belonging to each signal range.

例えば、画素群77内の画素の信号値が、それぞれ、「8」、「9」、「10」、「11」、「12」、「13」、「14」及び「50」であって(n=2と仮定)、且つ、上述の如く第1及び第2の信号範囲が夫々「0〜10」及び「11〜30」である場合を考える(図5参照)。この場合は、第1の信号範囲についての信号レベル分布は、「8」、「9」及び「10」を標本値として形成され、第2の信号範囲についての信号レベル分布は、「11」、「12」、「13」及び「14」を標本値として形成される。「50」は、第1及び第2の信号範囲と異なる信号範囲についての信号レベル分布の標本値となる。   For example, the signal values of the pixels in the pixel group 77 are “8”, “9”, “10”, “11”, “12”, “13”, “14”, and “50”, respectively ( Let us consider a case where n = 2) and the first and second signal ranges are “0 to 10” and “11 to 30” as described above (see FIG. 5). In this case, the signal level distribution for the first signal range is formed using “8”, “9”, and “10” as sample values, and the signal level distribution for the second signal range is “11”, “12”, “13” and “14” are formed as sample values. “50” is a sample value of the signal level distribution for a signal range different from the first and second signal ranges.

以下、説明の簡略化上、1つの信号範囲にのみ着目して第3実測補正値算出法の説明を継続するが、50個の信号範囲の夫々に対して同様の処理が行われる。第2の信号範囲に着目するものとし、第2の信号範囲が「11〜30」であるとする。   Hereinafter, for simplification of description, the description of the third actually measured correction value calculation method will be continued focusing on only one signal range, but the same processing is performed for each of the 50 signal ranges. It is assumed that the second signal range is focused, and the second signal range is “11 to 30”.

図13に、第2の信号範囲についての信号レベル分布70を示す。実測補正値算出部22は、信号レベル分布70のピークに対応する信号値(信号レベル)、即ち、信号レベル分布70の最頻値F1を求める。そして、その最頻値(信号レベル)F1と同じ信号値(信号レベル)を与える画素を画素群77内から選ぶ。選ばれた画素を、以下、「選定画素」という。続いて、選定画素を用いて算出された検出値を特定し、特定された検出値の平均値を実測補正値として算出する。 FIG. 13 shows a signal level distribution 70 for the second signal range. The actual correction value calculation unit 22 obtains a signal value (signal level) corresponding to the peak of the signal level distribution 70, that is, the mode value F 1 of the signal level distribution 70. A pixel that gives the same signal value (signal level) as the mode value (signal level) F 1 is selected from the pixel group 77. The selected pixel is hereinafter referred to as “selected pixel”. Subsequently, a detection value calculated using the selected pixel is specified, and an average value of the specified detection values is calculated as an actual correction value.

具体的な数値例を挙げる。説明の簡単化のため、CCD1の水平ラインが1つしかないと仮定する。図7を参照して説明したように、その水平ラインに関し、画素P1〜P8及びそれらに対応する信号値(信号レベル)p1〜p8を定義する。更に、最頻値F1が20であるとし、p1、p2、p3及びp4が、夫々、「22」、「20」、「12」及び「20」であるとする。この場合、画素P2とP4が選定画素となり、選定画素を用いて算出された検出値は、(P2、P4、P6)の組に対応する検出値d6と(P4、P6、P8)の組に対応する検出値d4となる。従って、この場合、実測補正値算出部22によって算出されるべき実測補正値は、(d4+d6)/2、となる。 Specific numerical examples will be given. For simplicity of explanation, it is assumed that the CCD 1 has only one horizontal line. As described with reference to FIG. 7, the pixels P1 to P8 and the corresponding signal values (signal levels) p1 to p8 are defined for the horizontal line. Further, it is assumed that the mode F 1 is 20, and p1, p2, p3, and p4 are “22”, “20”, “12”, and “20”, respectively. In this case, the pixels P2 and P4 are selected pixels, and the detection value calculated using the selected pixels is a set of detection values d6 and (P4, P6, P8) corresponding to the set of (P2, P4, P6). The corresponding detection value d4 is obtained. Accordingly, in this case, the actual correction value to be calculated by the actual correction value calculator 22 is (d4 + d6) / 2.

また、上記の数値例からも分かるように、実測補正値を算出する上で、幾つかの検出値(上記数値例では、d3及びd5)は使用されない可能性がある。従って、第3実測補正値算出法を採用する場合は、検出値算出部21と実測補正値算出部22が協働することにより、使用されない検出値の算出を省略する、といったことも可能である。つまり、まず、実測補正値を算出するために必要な検出値が何れであるかを判断してから、必要な検出値のみを算出するようにすればよい。   Further, as can be seen from the above numerical examples, some detection values (d3 and d5 in the above numerical examples) may not be used in calculating the actual correction value. Therefore, when the third actual correction value calculation method is employed, the detection value calculation unit 21 and the actual correction value calculation unit 22 cooperate to omit calculation of detection values that are not used. . That is, first, after determining which detection value is necessary to calculate the actual correction value, only the necessary detection value may be calculated.

尚、最頻値(信号レベル)F1に近い信号値(信号レベル)を与える画素をも選定画素に含めるようにしても良い。例えば、画素群77内の画素の信号値を「p」で表した場合、「(F1−ΔF)≦p≦(F1+ΔF)」を満たす画素を全て選定画素としても構わない。ここで、ΔFは1以上の整数である。上記数値例の下、ΔF=2とした場合、画素P1も選定画素に含まれることになり、(P1、P3、P5)の組に対応する検出値d5も実測補正値の算出に用いられることになる。この場合、実測補正値は、(d4+d5+d6)/3、となる。 A pixel that gives a signal value (signal level) close to the mode value (signal level) F 1 may also be included in the selected pixel. For example, when the signal value of the pixel in the pixel group 77 is represented by “p”, all the pixels that satisfy “(F 1 −ΔF) ≦ p ≦ (F 1 + ΔF)” may be selected pixels. Here, ΔF is an integer of 1 or more. In the above numerical example, when ΔF = 2, the pixel P1 is also included in the selected pixel, and the detection value d5 corresponding to the set of (P1, P3, P5) is also used for calculating the actual correction value. become. In this case, the actually measured correction value is (d4 + d5 + d6) / 3.

図13の曲線71は、1つの信号範囲内における、信号レベルとチャンネル間信号レベル差との関係を表している。各信号範囲は信号レベルの幅を有しているため、同一の信号範囲においてもチャンネル間信号レベル差は、信号レベルに応じて変化する。これを考慮し、第3実測補正値算出法では、信号レベル分布70の最頻値F1に対応する信号値に基づいて算出された検出値を用いて、実測補正値を算出する。これにより、補正されるべき実際のチャンネル間信号レベル差(図13のDIF)に即した、実測補正値が算出されるようになり、チャンネル間信号レベル差の補正精度が向上する。 A curve 71 in FIG. 13 represents the relationship between the signal level and the inter-channel signal level difference within one signal range. Since each signal range has a signal level width, the signal level difference between channels changes in accordance with the signal level even in the same signal range. Considering this, in the third actual correction value calculation method, the actual correction value is calculated using the detection value calculated based on the signal value corresponding to the mode value F 1 of the signal level distribution 70. As a result, an actual correction value corresponding to the actual inter-channel signal level difference (DIF in FIG. 13) to be corrected is calculated, and the correction accuracy of the inter-channel signal level difference is improved.

このことについて説明を加えておく。チャンネル間信号レベル差の存在に起因する画像の乱れ(視覚的影響)は、CCD1の境界L付近に対応する画像が平坦画像(例えば、所謂ベタ塗り画像)である場合に顕著となる。境界L付近に平坦画像が与えられた場合、信号レベル分布は、図13の信号レベル分布70の如く明確なピークを持った分布となり、このような場合に第3実測補正値算出法は特に有効に機能する。仮に、信号レベル分布が明確なピークを持たないブロードな分布となっても、第3実測補正値算出法を採用したことによる悪影響は軽微(或いは皆無)である。そのような分布を与える画像においては、チャンネル間信号レベル差の存在に起因する画像の乱れ(視覚的影響)は少ないからである。   I will explain this further. The image disturbance (visual influence) due to the presence of the signal level difference between channels becomes noticeable when the image corresponding to the vicinity of the boundary L of the CCD 1 is a flat image (for example, a so-called solid image). When a flat image is given in the vicinity of the boundary L, the signal level distribution becomes a distribution having a clear peak like the signal level distribution 70 of FIG. 13, and in such a case, the third actually measured correction value calculation method is particularly effective. To work. Even if the signal level distribution is a broad distribution without a clear peak, the adverse effect of adopting the third actual correction value calculation method is slight (or none). This is because, in an image giving such a distribution, image disturbance (visual effect) due to the presence of a signal level difference between channels is small.

[検出値について]
尚、検出値(例えばd6)を、実測値(例えばp6)と予測値(例えばp6’)との比率によって表現する場合を、主にして説明を行ったが、上述したように、検出値を実際値と予測値との差分値で表現することも可能である。例えば、(P2、P4、P6)の組に着目した場合、検出値d6を、等式:d6=p6−p6’、にて算出する(図7参照)。同様に、(P1、P3、P5)、(P3、P5、P7)及び(P4、P6、P8)の組に対応する検出値d5(=p5−p5’)、d3(=p3’−p3)及びd4(=p4’−p4)を算出する。
[Detection value]
Although the case where the detection value (for example, d6) is expressed by the ratio of the actual measurement value (for example, p6) and the predicted value (for example, p6 ′) has been mainly described, as described above, It can also be expressed by a difference value between the actual value and the predicted value. For example, when attention is paid to the set of (P2, P4, P6), the detection value d6 is calculated by the equation: d6 = p6-p6 ′ (see FIG. 7). Similarly, the detection values d5 (= p5-p5 ′) and d3 (= p3′−p3) corresponding to the set of (P1, P3, P5), (P3, P5, P7) and (P4, P6, P8) And d4 (= p4′−p4) are calculated.

検出値を実際値と予測値との差分値で表現しても、検出値にはチャンネル間信号レベル差を表す情報が含まれることになるため、検出値を実際値と予測値との比率で表現した場合と同様の補正処理(チャンネル間信号レベル差に対する補正処理)が実現可能である。   Even if the detected value is expressed as a difference value between the actual value and the predicted value, the detected value includes information indicating the signal level difference between channels. Therefore, the detected value is expressed as a ratio between the actual value and the predicted value. It is possible to realize the same correction processing (correction processing for the signal level difference between channels) as expressed.

検出値を実際値と予測値との差分値で表現した場合、これに伴って、例えば、実測補正値算出部22にて算出される実測補正値、初期補正テーブル23に格納される初期補正値及び適用補正値算出部24にて算出される補正値(適用補正値)も差分値の形にて表現される。そして例えば、レベル差補正回路9は、差分値の形にて表現された補正値(適用補正値)に応じた値を、与えられた信号CH1に加算することによって、チャンネル間信号レベル差に対する補正処理を行うことになる。また、補正値を差分値の形で表現している場合においても、補正値が比率によって表されている場合と同様、差分値の形にて表現された補正値(適用補正値)に応じた値の50%ずつを信号CH1とCH2に反映させることによって、チャンネル間信号レベル差に対する補正処理が行われるようにしてもよい。   When the detected value is expressed by a difference value between the actual value and the predicted value, for example, the actual correction value calculated by the actual correction value calculation unit 22 and the initial correction value stored in the initial correction table 23 are associated therewith. The correction value (applied correction value) calculated by the applied correction value calculation unit 24 is also expressed in the form of a difference value. For example, the level difference correction circuit 9 corrects the inter-channel signal level difference by adding a value corresponding to the correction value (applied correction value) expressed in the form of the difference value to the given signal CH1. Processing will be performed. Further, even when the correction value is expressed in the form of a difference value, the correction value is expressed in accordance with the correction value (applied correction value) expressed in the form of the difference value, as in the case where the correction value is expressed by a ratio. The correction process for the inter-channel signal level difference may be performed by reflecting 50% of the value in the signals CH1 and CH2.

また、1水平ラインごとに4つの検出値算出用の監視画素群を選択し、1水平ラインごとに4つの検出値を算出する例を示したが、本発明はこれに限定されない。例えば、各水平ラインにおいて、検出値算出領域75(図14参照)内に位置する8画素P1〜P8から同一色フィルタ画素を選択する。カラーフィルタがベイヤー配列にて配列されている場合、選択される同一色フィルタ画素の組み合わせは、(P1、P3、P5、P7)及び(P2、P4、P6、P8)の2通りとなる。   In addition, although an example is shown in which four monitoring pixel groups for calculating detection values are selected for each horizontal line and four detection values are calculated for each horizontal line, the present invention is not limited to this. For example, in each horizontal line, the same color filter pixel is selected from 8 pixels P1 to P8 located in the detection value calculation area 75 (see FIG. 14). When the color filters are arranged in a Bayer array, the same color filter pixel combinations to be selected are (P1, P3, P5, P7) and (P2, P4, P6, P8).

そして、各組み合わせにおいて、一方の分割撮像領域に属する2つの画素の信号値の平均値と他方の分割撮像領域に属する2つの画素の信号値の平均値との比率または差分値を検出値とする。例えば、(P2、P4、P6、P8)の組み合わせ(監視画素群)に着目した場合、「一方の分割撮像領域(この例では、左CCD1a)に属する2つの画素P2及びP4の信号値p2及びp4の平均値」と「他方の分割撮像領域(この例では、右CCD1b)に属する2つの画素P6及びP8の信号値p6及びp8の平均値」との比率R1または差分値R2を、検出値算出部21が算出する検出値として採用する。比率R1及び差分値R2は、それぞれ、下記式(3)及び(4)によって表される。
1=((p6+p8)/2)/((p2+p4)/2) ・・・(3)
2=((p6+p8)/2)−((p2+p4)/2) ・・・(4)
In each combination, the detection value is the ratio or difference between the average value of the signal values of two pixels belonging to one divided imaging area and the average value of the signal values of two pixels belonging to the other divided imaging area. . For example, when focusing on the combination (monitor pixel group) of (P2, P4, P6, P8), “signal values p2 and P2 of two pixels P2 and P4 belonging to one divided imaging region (in this example, the left CCD 1a) and Ratio R 1 or difference value R 2 between “average value of p4” and “average value of signal values p6 and p8 of two pixels P6 and P8 belonging to the other divided imaging region (right CCD 1b in this example)” The detection value is used as a detection value calculated by the detection value calculation unit 21. The ratio R 1 and the difference value R 2 are represented by the following formulas (3) and (4), respectively.
R 1 = ((p6 + p8) / 2) / ((p2 + p4) / 2) (3)
R 2 = ((p6 + p8) / 2) − ((p2 + p4) / 2) (4)

同様にして、(P1、P3、P5、P7)の組み合わせに対応する検出値も算出する。そして、同様の処理を各水平ラインに対して繰り返し行う。画像(CCD1)の水平ラインの本数がn本(nは自然数)であった場合、1フレームの画像から、(n×2)個の検出値が算出されることになる。   Similarly, detection values corresponding to combinations of (P1, P3, P5, P7) are also calculated. The same process is repeated for each horizontal line. When the number of horizontal lines of the image (CCD1) is n (n is a natural number), (n × 2) detection values are calculated from one frame image.

尚、この場合も、検出値の算出の基になった信号値に基づいて、その検出値が属する信号範囲は特定される。例えば、(P2、P4、P6、P8)に対応する検出値(R1またはR2)が属する信号範囲は、「信号値p4(、p2、p6またはp8)が属する信号範囲」、あるいは、「信号値p2、p4、p6及びp8の内の2以上の信号値を用いて算出される値が属する信号範囲」、と同じとされる。 In this case as well, the signal range to which the detected value belongs is specified based on the signal value that is the basis for calculating the detected value. For example, the signal range to which the detection value (R 1 or R 2 ) corresponding to (P2, P4, P6, P8) belongs is “the signal range to which the signal value p4 (, p2, p6 or p8) belongs” or “ It is the same as “a signal range to which a value calculated using two or more of the signal values p2, p4, p6, and p8 belongs”.

また、「適用補正値算出部24を設けることにより、チャンネル間信号レベル差の補正に用いる補正値を、初期補正値から実際の動作温度に適した値(即ち、実測補正値)に徐々に変更していく」、という例を上述したが、適用補正値算出部24の機能を省略することも可能である。つまり、実測補正値算出部22にて算出された実測補正値を、そのまま、チャンネル間信号レベル差の補正に用いる補正値(適用補正値)として使用することも可能である。これは、図8のフィルタ30の入出力を短絡することに等しい。この場合でも、例えば、上記の第1〜第3算出手法の何れかを用いることにより、チャンネル間信号レベル差の補正精度の向上を見込むことができる。   “By providing the applied correction value calculation unit 24, the correction value used for correcting the signal level difference between channels is gradually changed from the initial correction value to a value suitable for the actual operating temperature (ie, the actual correction value). In the above example, the function of the applied correction value calculation unit 24 can be omitted. That is, the actual correction value calculated by the actual correction value calculation unit 22 can be used as it is as a correction value (applied correction value) used for correcting the signal level difference between channels. This is equivalent to short-circuiting the input and output of the filter 30 in FIG. Even in this case, for example, by using any one of the first to third calculation methods, it is possible to expect improvement in the correction accuracy of the inter-channel signal level difference.

また、図1では、補正値算出回路8及びレベル差補正回路9がクランプ回路7の後段に設けられているが、補正値算出回路8及びレベル差補正回路9の配置位置を、出力チャンネル14及び15の後段の任意の箇所に変更することが可能である。但し、それらをクランプ回路7よりも前段に設ける場合、クランプ回路7は、レベル差補正回路9が用いる補正値に応じた処理を行う必要がある。   In FIG. 1, the correction value calculation circuit 8 and the level difference correction circuit 9 are provided at the subsequent stage of the clamp circuit 7. It is possible to change to an arbitrary position after 15. However, when providing them before the clamp circuit 7, the clamp circuit 7 needs to perform processing according to the correction value used by the level difference correction circuit 9.

<<第2実施形態>>
上述の説明から明らかなように、図2の検出値算出部21による検出値の算出は、図14の検出値算出領域75内の画素から得られた信号に基づいて行われる。従って、検出値算出領域75内の画素から得られる信号に、ノイズ成分が混入していると、正確な補正値を算出することができなくなる。これを考慮し、補正値算出回路8の前段に空間平滑化回路を挿入する、という変形を施しても良い。この変形を施した実施形態を、本発明の第2実施形態として説明する。
<< Second Embodiment >>
As is clear from the above description, the detection value calculation unit 21 in FIG. 2 calculates the detection value based on signals obtained from the pixels in the detection value calculation region 75 in FIG. Therefore, if a noise component is mixed in a signal obtained from a pixel in the detection value calculation area 75, an accurate correction value cannot be calculated. In consideration of this, a modification may be made in which a spatial smoothing circuit is inserted before the correction value calculation circuit 8. An embodiment with this modification will be described as a second embodiment of the present invention.

図15に、本発明の第2実施形態に係るデジタルカメラの概略構成ブロック図を示す。図15において、図1と同一の部分には同一の符号を付してある。図15のデジタルカメラは、空間平滑化回路16を追加した点以外、図1のデジタルカメラと一致している。従って、空間平滑化回路16の機能についてのみ説明を行う。   FIG. 15 shows a schematic block diagram of a digital camera according to the second embodiment of the present invention. 15, the same parts as those in FIG. 1 are denoted by the same reference numerals. The digital camera shown in FIG. 15 matches the digital camera shown in FIG. 1 except that a spatial smoothing circuit 16 is added. Therefore, only the function of the spatial smoothing circuit 16 will be described.

図15において、空間平滑化回路16は、補正値算出回路8の前段に設けられている。空間平滑化回路16は、クランプ回路7からの送られてくる信号CH1及びCH2を受け、それらの信号に空間方向の平滑化処理を施す。そして、該平滑化処理後の信号CH1及びCH2を、補正値算出回路8に送る。図15における補正値算出回路8は、空間平滑化回路16から送られてきた上記平滑化処理後の信号CH1及びCH2を、第1実施形態(図1)におけるクランプ回路7からの信号CH1及びCH2と取り扱って、第1実施形態と同様に、補正値の算出及び出力を行う。   In FIG. 15, the spatial smoothing circuit 16 is provided before the correction value calculation circuit 8. The spatial smoothing circuit 16 receives the signals CH1 and CH2 sent from the clamp circuit 7 and performs a smoothing process in the spatial direction on these signals. The smoothed signals CH1 and CH2 are sent to the correction value calculation circuit 8. The correction value calculation circuit 8 in FIG. 15 uses the signals CH1 and CH2 after the smoothing process sent from the spatial smoothing circuit 16 as signals CH1 and CH2 from the clamp circuit 7 in the first embodiment (FIG. 1). As in the first embodiment, the correction value is calculated and output.

空間平滑化回路16は、上記平滑化処理として、例えば、垂直LPF(ローパスフィルタ)処理を行う。この垂直LPF処理は、検出値算出領域75内の各画素に対して施される。   The spatial smoothing circuit 16 performs vertical LPF (low-pass filter) processing, for example, as the smoothing processing. This vertical LPF process is performed on each pixel in the detection value calculation area 75.

例えば、図14の領域76内における、垂直方向に並んだ9個の画素に着目する。領域76は、検出値算出領域75内に含まれる。図16に、領域76の拡大図を示す。領域76内の垂直方向に並んだ9個の画素を、下側から、A0、A1、A2、A3、A4、A5、A6、A7及びA8とする。それらの中央の画素A4が、垂直LPF処理の対象画素となる。クランプ回路7からの画素A0〜A8に対応する信号値(信号レベル)を、それぞれ、S0〜S8とする。この場合、対象画素A4の垂直LPF処理後の信号値S4’は、例えば、下式(5)にて表される。ここで、Vkq(q=0、1、・・・、8)は、0〜7の範囲内の値である。 For example, attention is paid to nine pixels arranged in the vertical direction in the region 76 of FIG. The area 76 is included in the detection value calculation area 75. FIG. 16 shows an enlarged view of the region 76. Nine pixels arranged in the vertical direction in the region 76 are referred to as A 0 , A 1 , A 2 , A 3 , A 4 , A 5 , A 6 , A 7 and A 8 from the lower side. The central pixel A 4 is a target pixel for vertical LPF processing. Signal values (signal levels) corresponding to the pixels A 0 to A 8 from the clamp circuit 7 are S 0 to S 8 , respectively. In this case, the signal value S 4 ′ after the vertical LPF processing of the target pixel A 4 is expressed by, for example, the following expression (5). Here, V kq (q = 0, 1,..., 8) is a value in the range of 0-7.

垂直LPF処理後の信号値S4’は、補正値算出回路8に送られる。補正値算出回路8は、信号値S4’を画素A4の信号値と取り扱う。検出値算出領域75内の各画素の信号値に対しても同様の垂直LPF処理が行われ、垂直LPF処理後の各信号値が補正値算出回路8に送られる。図15の補正値算出回路8は、検出値算出領域75内の各画素の、垂直LPF処理後の信号値に基づき、第1実施形態と同様に、補正値の算出及び出力を行う。 The signal value S 4 ′ after the vertical LPF processing is sent to the correction value calculation circuit 8. The correction value calculation circuit 8 handles the signal value S 4 ′ as the signal value of the pixel A 4 . A similar vertical LPF process is performed on the signal value of each pixel in the detection value calculation area 75, and each signal value after the vertical LPF process is sent to the correction value calculation circuit 8. The correction value calculation circuit 8 in FIG. 15 calculates and outputs a correction value based on the signal value after vertical LPF processing of each pixel in the detection value calculation area 75, as in the first embodiment.

空間平滑化回路16が行う平滑化処理として垂直LPF処理を例に挙げたが、垂直LPF処理の代えて、水平LPF処理または二次元LPF処理を用いても構わない。   As an example of the smoothing process performed by the spatial smoothing circuit 16, the vertical LPF process has been described as an example, but a horizontal LPF process or a two-dimensional LPF process may be used instead of the vertical LPF process.

垂直LPF処理では、上述の如く、対象画素の垂直方向に並ぶ周辺画素の信号値を用いて、対象画素の信号値にLPF処理を施す。一方、水平LPF処理では、対象画素の水平方向に並ぶ周辺画素の信号値を用いて、対象画素の信号値にLPF処理を施す。   In the vertical LPF process, as described above, the signal value of the target pixel is subjected to the LPF process using the signal values of the peripheral pixels arranged in the vertical direction of the target pixel. On the other hand, in the horizontal LPF process, the signal value of the target pixel is subjected to the LPF process using the signal value of the peripheral pixels arranged in the horizontal direction of the target pixel.

つまり、水平LPF処理では、水平方向に並んだ複数の画素を含む水平領域に着目し、該複数の画素の中央の画素を水平LPF処理の対象画素とする。そして、その水平領域内の各画素に対応する信号値を用いて、垂直LPF処理と同様に、対象画素に対応する信号値を平滑化する。例えば、検出値算出領域75内の各画素が、水平LPF処理の対象画素とされる。   That is, in the horizontal LPF process, attention is paid to a horizontal region including a plurality of pixels arranged in the horizontal direction, and the center pixel of the plurality of pixels is set as a target pixel for the horizontal LPF process. Then, using the signal value corresponding to each pixel in the horizontal region, the signal value corresponding to the target pixel is smoothed as in the vertical LPF process. For example, each pixel in the detection value calculation area 75 is a target pixel for horizontal LPF processing.

二次元LPF処理では、対象画素の垂直及び水平方向に並ぶ周辺画素の信号値を用いて対象画素の信号値にLPF処理を施す。二次元LPF処理では、更に、対象画素の斜め方向に並ぶ周辺画素の信号値を用いることも可能である。例えば、検出値算出領域75内の各画素が、二次元LPF処理の対象画素とされる。   In the two-dimensional LPF process, the LPF process is performed on the signal value of the target pixel using the signal values of the peripheral pixels arranged in the vertical and horizontal directions of the target pixel. In the two-dimensional LPF process, it is also possible to use signal values of peripheral pixels arranged in an oblique direction of the target pixel. For example, each pixel in the detection value calculation area 75 is a target pixel for the two-dimensional LPF process.

尚、垂直LPF処理、水平LPF処理及び二次元LPF処理の何れを用いる場合においても、LPFの径が大きくなりすぎると、LPFに用いる信号値にエッジ成分が含まれる確率が高くなる。従って、逆に検出値にノイズがのりやすくなるといったことが起こらないよう、LPFの径を適切に設定する。   Note that in any of the vertical LPF processing, the horizontal LPF processing, and the two-dimensional LPF processing, if the diameter of the LPF becomes too large, the probability that an edge component is included in the signal value used for the LPF increases. Therefore, conversely, the diameter of the LPF is appropriately set so as not to cause noise on the detected value.

<<第3実施形態>>
また、第1及び第2実施形態は、撮像領域が左右の2つの領域に分割されたCCD1を用いた場合を例としているが、第1及び第2実施形態にて説明した技術的事項は、撮像領域が3以上に分割されたCCDを用いた場合でも、勿論、適用可能である。例として、撮像領域が4分割されたCCDを用いる実施形態を、本発明に係る第3実施形態として説明する。
<< Third Embodiment >>
In the first and second embodiments, the CCD 1 in which the imaging region is divided into two left and right regions is used as an example. The technical matters described in the first and second embodiments are as follows. Of course, the present invention can be applied even when a CCD whose imaging region is divided into three or more is used. As an example, an embodiment using a CCD whose imaging region is divided into four will be described as a third embodiment according to the present invention.

図17は、本発明の第3実施形態に係るデジタルカメラの概略的な一部構成ブロック図である。図17において、図1と同一の部分には同一の符号を付し、同一の部分の重複する説明を省略する。   FIG. 17 is a schematic partial block diagram of a digital camera according to the third embodiment of the present invention. In FIG. 17, the same parts as those in FIG. 1 are denoted by the same reference numerals, and redundant description of the same parts is omitted.

図17において、41は、複数の画素をマトリクス状に配列して構成されるCCD(Charge Coupled Devices)である。各画素は、入射光量に応じた電気信号を発生する。CCD41は、その撮像領域が左右方向において4つの領域に分割されている。分割された4つの領域を、左から、領域41a、41b、41c及び41dと呼ぶ。   In FIG. 17, reference numeral 41 denotes a CCD (Charge Coupled Devices) configured by arranging a plurality of pixels in a matrix. Each pixel generates an electrical signal corresponding to the amount of incident light. The imaging area of the CCD 41 is divided into four areas in the left-right direction. The four divided areas are referred to as areas 41a, 41b, 41c and 41d from the left.

CDS/AGC回路42a、42b、42c及び42dは、図1のCDS/AGC回路2(及び4)と同様の機能を有するものであり、AD変換回路回路43a、43b、43c及び43dは、図1のAD変換回路3(及び5)と同様の機能を有するものである。   The CDS / AGC circuits 42a, 42b, 42c and 42d have the same function as the CDS / AGC circuit 2 (and 4) in FIG. 1, and the AD conversion circuit circuits 43a, 43b, 43c and 43d are the same as those in FIG. This has the same function as the AD conversion circuit 3 (and 5).

領域41a内の各画素にて発生した電気信号は、CDS/AGC回路42a及びAD変換回路43aを有する出力チャンネル44aを介して、画像合成回路46に送られる。 領域41b内の各画素にて発生した電気信号は、CDS/AGC回路42b及びAD変換回路43bを有する出力チャンネル44bを介して、画像合成回路46に送られる。
領域41c内の各画素にて発生した電気信号は、CDS/AGC回路42c及びAD変換回路43cを有する出力チャンネル44cを介して、画像合成回路46に送られる。 領域41d内の各画素にて発生した電気信号は、CDS/AGC回路42d及びAD変換回路43dを有する出力チャンネル44dを介して、画像合成回路46に送られる。
The electrical signal generated in each pixel in the area 41a is sent to the image composition circuit 46 via the output channel 44a having the CDS / AGC circuit 42a and the AD conversion circuit 43a. The electric signal generated in each pixel in the area 41b is sent to the image composition circuit 46 via the output channel 44b having the CDS / AGC circuit 42b and the AD conversion circuit 43b.
The electrical signal generated in each pixel in the region 41c is sent to the image composition circuit 46 via the output channel 44c having the CDS / AGC circuit 42c and the AD conversion circuit 43c. The electrical signal generated in each pixel in the region 41d is sent to the image composition circuit 46 via the output channel 44d having the CDS / AGC circuit 42d and the AD conversion circuit 43d.

画像合成回路46は、出力チャンネル44aの出力信号CHa、出力チャンネル44bの出力信号CHb、出力チャンネル44cの出力信号CHc及び出力チャンネル44dの出力信号CHdを合成し、それらを1系統の信号に変換する。画像合成回路46によって得られた信号は、黒レベルを一定にするためのクランプ回路47を介して、補正値算出回路48及びレベル差補正回路49に送られる。   The image synthesis circuit 46 synthesizes the output signal CHa of the output channel 44a, the output signal CHb of the output channel 44b, the output signal CHc of the output channel 44c, and the output signal CHd of the output channel 44d, and converts them into one system signal. . The signal obtained by the image composition circuit 46 is sent to a correction value calculation circuit 48 and a level difference correction circuit 49 via a clamp circuit 47 for making the black level constant.

補正値算出回路48及びレベル差補正回路49は、それぞれ、図1の補正値算出回路8及びレベル差補正回路9に準じた機能を有する。   The correction value calculation circuit 48 and the level difference correction circuit 49 have functions according to the correction value calculation circuit 8 and the level difference correction circuit 9 of FIG.

例えば、補正値算出回路48及びレベル差補正回路49は、信号CHa及びCHbをそれぞれ第1実施形態におけるCH1及びCH2と取り扱うことにより、信号CHaとCHbに関与するチャンネル間信号レベル差を補正すると共に、信号CHc及びCHdをそれぞれ第1実施形態におけるCH1及びCH2と取り扱うことにより、信号CHcとCHdに関与するチャンネル間信号レベル差を補正する。そして更に、「信号CHa及びCHb」並びに「信号CHc及びCHd」をそれぞれ第1実施形態におけるCH1及びCH2と取り扱うことにより、「信号CHa及びCHb」と「信号CHc及びCHd」に関与するチャンネル間信号レベル差を補正する。   For example, the correction value calculation circuit 48 and the level difference correction circuit 49 correct the inter-channel signal level difference related to the signals CHa and CHb by treating the signals CHa and CHb as CH1 and CH2 in the first embodiment, respectively. By treating the signals CHc and CHd as CH1 and CH2 in the first embodiment, respectively, the signal level difference between channels involved in the signals CHc and CHd is corrected. Further, by treating the “signals CHa and CHb” and the “signals CHc and CHd” as the CH1 and CH2 in the first embodiment, the inter-channel signals related to the “signals CHa and CHb” and the “signals CHc and CHd”, respectively. Correct the level difference.

レベル差補正回路49からのチャンネル間信号レベル差が補正された信号は、YRGB生成回路10に送られる。YRGB生成回路10の後段に関しては、第1実施形態と同様である。   The signal from which the inter-channel signal level difference is corrected from the level difference correction circuit 49 is sent to the YRGB generation circuit 10. The subsequent stage of the YRGB generation circuit 10 is the same as in the first embodiment.

また、第1実施形態を第2実施形態に変形したのと同様、第3実施形態においても、補正値算出回路48の前段に空間平滑化回路を設けることが可能である。   Similarly to the modification of the first embodiment to the second embodiment, a spatial smoothing circuit can be provided in the previous stage of the correction value calculation circuit 48 in the third embodiment.

<<変形等>>
尚、チャンネル間信号レベル差に応じた値(上述の各実施形態では、検出値)を得るための手法として、上述の手法以外の様々な手法を採用することが可能である。例えば、図18に示す如く、CCD1の境界L付近に、複数の監視エリアMA1、MA2、・・・を設ける。図19に、1つの監視エリア(図19では、MA1を例にとる)の拡大図を示す。各監視エリアには、境界Lの左側に位置する(3×3)の9画素と、境界Lの右側に位置する(3×3)の9画素と、が含まれる。
<< Deformation, etc. >>
It should be noted that various methods other than the above-described methods can be employed as a method for obtaining a value corresponding to the signal level difference between channels (in the above-described embodiments, the detection value). For example, a plurality of monitoring areas MA 1 , MA 2 ,... Are provided near the boundary L of the CCD 1 as shown in FIG. FIG. 19 shows an enlarged view of one monitoring area (in FIG. 19, MA 1 is taken as an example). Each monitoring area includes (3 × 3) 9 pixels located on the left side of the boundary L and (3 × 3) 9 pixels located on the right side of the boundary L.

そして、監視エリアごとに、境界Lの左側に位置する9画素の信号値の平均値と、境界Lの右側に位置する9画素の信号値の平均値とを比較することにより、チャンネル間信号レベル差に応じた検出値を算出する。この際も、図5等を用いて説明したように、各検出値を複数の信号範囲に分類するようにする。この上で、例えば、信号範囲ごとに、当該信号範囲に属する検出値の平均値を、当該信号範囲に対応する実測補正値として採用する。   Then, by comparing the average value of the signal values of 9 pixels located on the left side of the boundary L with the average value of the signal values of 9 pixels located on the right side of the boundary L for each monitoring area, A detection value corresponding to the difference is calculated. Also in this case, as described with reference to FIG. 5 and the like, each detection value is classified into a plurality of signal ranges. On this basis, for example, for each signal range, an average value of detection values belonging to the signal range is employed as an actual measurement correction value corresponding to the signal range.

そして、電源投入時において所定の初期補正値をチャンネル間信号レベル差を補正するための補正値として使用する一方で、図8のフィルタ30等を用いることにより、それ以降において該補正値を上記実測補正値に応じた値へと徐々に変更するようにする。これにより、チャンネル間信号レベル差をなめらかに補正することが可能である。   Then, a predetermined initial correction value is used as a correction value for correcting a signal level difference between channels at the time of power-on, while the correction value is measured after that by using the filter 30 of FIG. Change gradually to a value according to the correction value. As a result, it is possible to smoothly correct the signal level difference between channels.

また、上述の記載内容すべては、動画撮影時のみならず静止画撮影時にも適用可能である。   Further, all of the above description can be applied not only when shooting moving images but also when shooting still images.

また、上述の各実施形態では撮像素子としてCCDを例に挙げたが、撮像素子としてC−MOS(Complementary Metal Oxide Semiconductor)イメージセンサを用いることも可能である。   In each of the embodiments described above, the CCD is taken as an example of the image sensor, but a C-MOS (Complementary Metal Oxide Semiconductor) image sensor can also be used as the image sensor.

また、CCD1(または41)と出力チャンネル14及び15(または44a〜44d)は、撮像手段として機能する(図1及び図17参照)。該撮像手段から出力される信号を処理する信号処理装置は、少なくとも補正値算出回路8(または48)とレベル差補正回路9(または49)を含む。   Further, the CCD 1 (or 41) and the output channels 14 and 15 (or 44a to 44d) function as imaging means (see FIGS. 1 and 17). A signal processing apparatus that processes a signal output from the imaging means includes at least a correction value calculation circuit 8 (or 48) and a level difference correction circuit 9 (or 49).

また、補正値算出回路8及びレベル差補正回路9(図1等)、又は、補正値算出回路48及びレベル差補正回路49(図17)は、ハードウェアによって、或いは、マイクロコンピュータと該マイクロコンピュータの動作を定めるプログラムによって、或いは、それらの組み合わせによって、実現可能される。   Further, the correction value calculation circuit 8 and the level difference correction circuit 9 (FIG. 1 and the like), or the correction value calculation circuit 48 and the level difference correction circuit 49 (FIG. 17) may be implemented by hardware or by a microcomputer and the microcomputer. This can be realized by a program that determines the operation of the above or a combination thereof.

本発明は、デジタルスチルカメラ及びデジタルビデオカメラ等の、撮影機能を有する撮像装置に広く適用可能である。特に、動画を撮影可能な撮像装置に好適である。   The present invention can be widely applied to imaging apparatuses having a photographing function, such as a digital still camera and a digital video camera. In particular, it is suitable for an imaging apparatus capable of shooting a moving image.

本発明の第1実施実施に係るデジタルカメラの概略構成ブロック図である。1 is a block diagram of a schematic configuration of a digital camera according to a first embodiment of the present invention. 図1の補正値算出回路の内部ブロック図を含む、図1のデジタルカメラの一部ブロック図である。FIG. 2 is a partial block diagram of the digital camera of FIG. 1 including an internal block diagram of the correction value calculation circuit of FIG. 1. 図1のCCDの各画素の蓄積電荷量と、チャンネル間信号レベル差との関係を示す図である。It is a figure which shows the relationship between the charge amount of accumulation | storage of each pixel of CCD of FIG. 1, and the signal level difference between channels. 図2の更新用補正テーブルに格納されている複数の補正値を、横軸をCH1の信号レベルとして表した模式図である。FIG. 3 is a schematic diagram showing a plurality of correction values stored in the update correction table of FIG. 2 with the horizontal axis as the signal level of CH1. 図2の補正値算出回路にて算出または格納される補正値、実測補正値及び初期補正値が、複数の信号範囲に割り当てられている様子を示す図である。It is a figure which shows a mode that the correction value calculated by the correction value calculation circuit of FIG. 2 or stored, the actual measurement correction value, and the initial correction value are allocated to the several signal range. 図2の検出値算出部の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the detection value calculation part of FIG. 図2の検出値算出部の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of the detection value calculation part of FIG. 図2の適法補正値算出部の内部構成例を示すブロック図である。It is a block diagram which shows the example of an internal structure of the legal correction value calculation part of FIG. 図2の更新用補正テーブル内の補正値の更新タイミング例を説明するための図である。FIG. 3 is a diagram for explaining an example of update timing of correction values in the update correction table of FIG. 2. 図2の実測補正値算出部にて採用可能な、実測補正値の算出手法(基本実測補正値算出法)の特徴を説明するための図である。It is a figure for demonstrating the characteristic of the calculation method (basic measurement correction value calculation method) of the measurement correction value employable by the measurement correction value calculation part of FIG. 図2の実測補正値算出部にて採用可能な、実測補正値の算出手法(第1実測補正値算出法)の特徴を説明するための図である。It is a figure for demonstrating the characteristic of the calculation method (1st measured correction value calculation method) of the measured correction value employable in the measured correction value calculation part of FIG. 図2の実測補正値算出部にて採用可能な、実測補正値の算出手法(第2実測補正値算出法)の特徴を説明するための図である。It is a figure for demonstrating the characteristic of the calculation method (2nd measured correction value calculation method) of the measured correction value employable in the measured correction value calculation part of FIG. 図2の実測補正値算出部にて採用可能な、実測補正値の算出手法(第3実測補正値算出法)の特徴を説明するための図である。It is a figure for demonstrating the characteristic of the calculation method (3rd measured correction value calculation method) of the measured correction value employable in the measured correction value calculation part of FIG. 図1のCCD内の画素配置を示す図である。It is a figure which shows pixel arrangement | positioning in CCD of FIG. 本発明の第2実施実施に係るデジタルカメラの概略構成ブロック図である。It is a schematic block diagram of a digital camera according to a second embodiment of the present invention. 図14のCCD内の或る領域の拡大図である。FIG. 15 is an enlarged view of a certain area in the CCD of FIG. 14. 本発明の第3実施実施に係るデジタルカメラの概略構成ブロック図である。It is a schematic block diagram of a digital camera according to a third embodiment of the present invention. 各実施形態に対する変形例を説明するための図である。It is a figure for demonstrating the modification with respect to each embodiment. 各実施形態に対する変形例を説明するための図である。It is a figure for demonstrating the modification with respect to each embodiment.

符号の説明Explanation of symbols

1 CCD
1a 左CCD
1b 右CCD
2、4 CDS/AGC回路
3、5 AD変換回路
6 画像合成回路
7 クランプ回路
8 補正値算出回路
9 レベル差補正回路
16 空間平滑化回路
21 検出値算出部
22 実測補正値算出部
23 初期補正テーブル
24 適用補正値算出部
25 更新用補正テーブル
1 CCD
1a Left CCD
1b Right CCD
2, 4 CDS / AGC circuit 3, 5 AD conversion circuit 6 Image composition circuit 7 Clamp circuit 8 Correction value calculation circuit 9 Level difference correction circuit 16 Spatial smoothing circuit 21 Detected value calculation unit 22 Actual correction value calculation unit 23 Initial correction table 24 applied correction value calculation unit 25 correction table for update

Claims (4)

撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、
前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、
前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、
前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、
前記信号処理装置は、更に、
前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、
前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、
前記第1補正値算出手段は、前記信号範囲ごとに、
当該信号範囲に属する前記検出値の分布を参照し該分布を用いて前記第1補正値を算出する
ことを特徴とする信号処理装置。
An imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electrical signal is read from each divided imaging region, and a plurality of outputs that are separately assigned to each of the divided imaging regions and output the electrical signal as an imaging signal A signal processing apparatus for processing the imaging signal output from the imaging means having a channel,
Two divided imaging areas adjacent to each other among the plurality of divided imaging areas are defined as first and second divided imaging areas, and the output channels corresponding to the first and second divided imaging areas are first and second, respectively. As an output channel, when the imaging signal output from at least one of the first and second output channels is a correction target signal, and the imaging signal is classified into a plurality of signal ranges having different signal levels,
A plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and the imaging signal obtained from the pixels in the monitoring pixel group is provided for each monitoring pixel group. Based on detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels,
The signal range to which each detection value belongs is determined based on the imaging signal that is a basis for calculation of the detection value,
The signal processing device further includes:
First correction value calculation means for calculating a first correction value for reducing the signal level difference for each signal range based on the detection value belonging to the signal range;
Correction means for correcting the signal level difference for each signal range by correcting the correction target signal belonging to the signal range using the first correction value corresponding to the signal range;
The first correction value calculation means is provided for each signal range.
A signal processing apparatus that refers to a distribution of the detection values belonging to the signal range and calculates the first correction value using the distribution.
撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、
前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、
前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、
前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、
前記信号処理装置は、更に、
前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、
前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、
前記第1補正値算出手段は、前記信号範囲ごとに、
当該信号範囲に属し且つ所定の制限範囲内の前記検出値の平均値を算出することによって前記第1補正値を算出し、
最新の前記第1補正値の算出において、前記制限範囲は、過去に算出された前記平均値に基づいて補正される
ことを特徴とする信号処理装置。
An imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electrical signal is read from each divided imaging region, and a plurality of outputs that are separately assigned to each of the divided imaging regions and output the electrical signal as an imaging signal A signal processing apparatus for processing the imaging signal output from the imaging means having a channel,
Two divided imaging areas adjacent to each other among the plurality of divided imaging areas are defined as first and second divided imaging areas, and the output channels corresponding to the first and second divided imaging areas are first and second, respectively. As an output channel, when the imaging signal output from at least one of the first and second output channels is a correction target signal, and the imaging signal is classified into a plurality of signal ranges having different signal levels,
A plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and the imaging signal obtained from the pixels in the monitoring pixel group is provided for each monitoring pixel group. Based on detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels,
The signal range to which each detection value belongs is determined based on the imaging signal that is a basis for calculation of the detection value,
The signal processing device further includes:
First correction value calculation means for calculating a first correction value for reducing the signal level difference for each signal range based on the detection value belonging to the signal range;
Correction means for correcting the signal level difference for each signal range by correcting the correction target signal belonging to the signal range using the first correction value corresponding to the signal range;
The first correction value calculation means is provided for each signal range.
Calculating the first correction value by calculating an average value of the detection values belonging to the signal range and within a predetermined limit range;
In the latest calculation of the first correction value, the limit range is corrected based on the average value calculated in the past.
撮像領域が複数の分割撮像領域に分割され、各分割撮像領域から電気信号が読み出される撮像素子と、前記分割撮像領域ごとに別個に割り当てられて、前記電気信号を撮像信号として出力する複数の出力チャンネルと、を有する撮像手段から出力される前記撮像信号を処理する信号処理装置において、
前記複数の分割撮像領域の内、互いに隣接する2つの分割撮像領域を第1及び第2分割撮像領域とし、前記第1及び第2分割撮像領域に対応する前記出力チャンネルを夫々第1及び第2出力チャンネルとし、前記第1及び第2出力チャンネルの少なくとも一方から出力される前記撮像信号を補正対象信号とし、前記撮像信号を信号レベルが互いに異なる複数の信号範囲に分類した場合、
前記第1及び第2分割撮像領域の境界付近に、夫々に複数の画素を含む複数の監視画素群を設け、前記監視画素群ごとに、当該監視画素群内の画素から得られる前記撮像信号に基づいて、前記第1及び第2出力チャンネルからの前記撮像信号間の信号レベル差に応じた検出値を算出可能な検出値算出手段、を備え、
前記検出値の算出の基となる前記撮像信号に基づいて、各検出値が属する前記信号範囲は判断され、
前記信号処理装置は、更に、
前記信号範囲ごとに、当該信号範囲に属する前記検出値に基づいて、前記信号レベル差を減少させるための第1補正値を算出する第1補正値算出手段と、
前記信号範囲ごとに、当該信号範囲に対応する前記第1補正値を用いて当該信号範囲に属する前記補正対象信号を補正することにより、前記信号レベル差を補正する補正手段と、を備え、
前記第1補正値算出手段は、前記信号範囲ごとに、
前記複数の監視画素群内の画素から得られ且つ当該信号範囲に属する前記撮像信号の信号レベル分布を参照し、その信号レベル分布を用いて、前記第1補正値を算出する
ことを特徴とする信号処理装置。
An imaging device in which an imaging region is divided into a plurality of divided imaging regions and an electrical signal is read from each divided imaging region, and a plurality of outputs that are separately assigned to each of the divided imaging regions and output the electrical signal as an imaging signal A signal processing apparatus for processing the imaging signal output from the imaging means having a channel,
Two divided imaging areas adjacent to each other among the plurality of divided imaging areas are defined as first and second divided imaging areas, and the output channels corresponding to the first and second divided imaging areas are first and second, respectively. As an output channel, when the imaging signal output from at least one of the first and second output channels is a correction target signal, and the imaging signal is classified into a plurality of signal ranges having different signal levels,
A plurality of monitoring pixel groups each including a plurality of pixels are provided in the vicinity of the boundary between the first and second divided imaging regions, and the imaging signal obtained from the pixels in the monitoring pixel group is provided for each monitoring pixel group. Based on detection value calculation means capable of calculating a detection value according to a signal level difference between the imaging signals from the first and second output channels,
The signal range to which each detection value belongs is determined based on the imaging signal that is a basis for calculation of the detection value,
The signal processing device further includes:
First correction value calculation means for calculating a first correction value for reducing the signal level difference for each signal range based on the detection value belonging to the signal range;
Correction means for correcting the signal level difference for each signal range by correcting the correction target signal belonging to the signal range using the first correction value corresponding to the signal range;
The first correction value calculation means is provided for each signal range.
The first correction value is calculated using the signal level distribution with reference to the signal level distribution of the imaging signal obtained from the pixels in the plurality of monitoring pixel groups and belonging to the signal range. Signal processing device.
請求項1〜請求項3の何れかに記載の撮像手段及び信号処理装置を備えた
ことを特徴とする撮像装置。
An imaging apparatus comprising the imaging means and the signal processing apparatus according to claim 1.
JP2006047101A 2006-02-23 2006-02-23 Signal processing apparatus and imaging apparatus Pending JP2007228268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006047101A JP2007228268A (en) 2006-02-23 2006-02-23 Signal processing apparatus and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006047101A JP2007228268A (en) 2006-02-23 2006-02-23 Signal processing apparatus and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2007228268A true JP2007228268A (en) 2007-09-06

Family

ID=38549623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006047101A Pending JP2007228268A (en) 2006-02-23 2006-02-23 Signal processing apparatus and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2007228268A (en)

Similar Documents

Publication Publication Date Title
JP6271990B2 (en) Image processing apparatus and image processing method
US8436910B2 (en) Image processing apparatus and image processing method
US8830360B1 (en) Method and apparatus for optimizing image quality based on scene content
JP6020199B2 (en) Image processing apparatus, method, program, and imaging apparatus
JP4454657B2 (en) Blur correction apparatus and method, and imaging apparatus
JP2009212853A (en) White balance controller, its control method, and imaging apparatus
JP5561112B2 (en) Image processing apparatus, imaging apparatus, and program
US20080273793A1 (en) Signal processing apparatus and method, noise reduction apparatus and method, and program therefor
WO2007119680A1 (en) Image pickup device
US9582868B2 (en) Image processing apparatus that appropriately performs tone correction in low-illuminance environment, image processing method therefor, and storage medium
JP2018107526A (en) Image processing device, imaging apparatus, image processing method and computer program
WO2017169039A1 (en) Image processing device, imaging device, image processing method, and program
JP2006229868A (en) Image processing apparatus and method, and motion detection apparatus and method
JP4680639B2 (en) Image processing apparatus and processing method thereof
JP2009088935A (en) Image recording apparatus, image correcting apparatus, and image pickup apparatus
JP6305290B2 (en) Image processing apparatus, imaging apparatus, and image processing method
JP2018185586A (en) Image processing device and image processing method, and imaging device
JP5172283B2 (en) Stereo image processing apparatus, stereo image processing method, and program
JP2007228259A (en) Signal processing apparatus and imaging apparatus
JP4872830B2 (en) Imaging apparatus, imaging method, image processing apparatus, image processing program, and image processing method
JP2007228268A (en) Signal processing apparatus and imaging apparatus
JP2012085205A (en) Image processing apparatus, imaging device, image processing method, and image processing program
JP6486453B2 (en) Image processing apparatus, image processing method, and program
JP4760484B2 (en) Camera shake correction apparatus, camera shake correction method, and program
JP2009153046A (en) Blur correcting device and method, and imaging apparatus