Imaging apparatus with dual white balance adjusting systems for different color temperatures

Abstract: In an imaging apparatus, a signal obtained through a long exposed signal and a shortly exposed signal are synthesized into a luminance signal, a color difference (CD) signal R-G and a CD signal B-G to yield a video signal. The shortly exposed signal has been modulated by one of four colors. The magnitude of each pixel value in the shortly exposed signal is multiplied by one of four gains (prepared for the four colors) associated with the modulation color. The magnitudes of colors, e.g., R and B are multiplied by first and second gains, respectively. The microcontroller provides, for each field, a long/short mode signal. In each field of the short mode, the controller finds the four gains such that at least one of averages of the first and second CD signals converges on a predetermined target value (e.g.,0). In each field of the long mode, the controller finds the first and second gains such that said at least one of said averages converges on the value.

Description: The invention relates to an imaging apparatus for use in a video camera and more specifically to an imaging apparatus capable of separately adjusting the white balances for two subjects of different color temperatures. Conventional imaging apparatuses used in video cameras have only one white balance control system. In such imaging apparatus, the adjustment of white balance is achieved by adjusting the sensitivity of color channel amplifiers in response to the averages of color difference signals. However, there may be more than one subject of different color temperatures (like indoor and outdoor) in a view. If the white balance is adjusted in preference to an indoor portion of the image, the white balance will not be maintained in outdoor portion(s) and vice versa . EP-0 708 569A discloses a color balance system for a conventional video signal in which different weights are applied to color values for different regions but the same adjustment is applied to the whole image. EP-0 420 621A discloses an electronic still camera in which a color balance derived from one exposure is applied to a subsequent exposure. Thus, a need exists in the art for an imaging apparatus capable of adjusting both of the white balances for different color temperatures. The above and other needs are met by an imaging apparatus of the invention, as defined in the appended claims. The apparatus is capable of separately adjusting white balances for long exposed image portion and shortly exposed image portion in which a signal obtained through a long exposure (hereinafter, referred to as a "long exposed signal") and a signal obtained through a short exposure (hereinafter, referred to as a "shortly exposed signal") respectively are synthesized into a luminance signal, a first color difference (referred to as "CD") signal (e.g. R-G), and a second CD signal (e.g. B-G) to yield a video signal. The imaging apparatus at least comprises: a microcontroller comprising a microcomputer; a multiplier for multiplying the magnitude of each pixel value in the shortly exposed signal by a gain associated with the modulation color; and a multiplier for multiplying the magnitudes of a first one (R in this example) and a second one (B in this example) of three primary colors which are unique components of the first and second CD signals by first and second gains, respectively. The microcontroller provides, substantially for each field, a signal indicative of one of long and short modes. In each field of the short mode, the controller finds the four gains to adjust the magnitude of the shortly exposed signal such that at least one of an average of the first CD signal and an average of the second CD signal converges on a predetermined target value. In each field of the long mode, the controller finds the first and second gains to adjust the magnitudes of the first color (R) and a second color (B), respectively, such that said at least one of said averages converges on the predetermined target value. Further objects and advantages of the present invention will be apparent from the following description of the preferred embodiments of the invention as illustrated in the accompanying drawing, in which: FIG. 1 is a block diagram showing an arrangement of an imaging apparatus in accordance with an illustrative embodiment of the invention; FIG. 2 is a diagram illustrating an operation of gathering data for use in determining the value used for a white balance adjustment; and FIG. 3 is a flow chart showing an operation of the microcontroller for controlling the white balance adjustment in accordance with the principles of the invention. Throughout the drawing, the same elements when shown in more than one figure are designated by the same reference numerals. FIG. 1 is a block diagram showing an arrangement of an imaging apparatus which separately adjusts the white balances of image signals obtained through longer time exposure and short-time exposure in accordance with an illustrative embodiment of the invention. In FIG. 1, the imaging apparatus 100 comprises an imaging device 101, a preprocessor 102 having its input connected to the imaging device 101, an A/D (analog to digital) converter 103 having its input connected to the preprocessor 102 output, a dynamic range expansion processor 130 having an input thereof connected to the A/D converter 103 output, a main signal processor 140 and a microcontroller 150. The controller 150 may be any suitable microcomputer. The dynamic range expansion processor 130 comprises: a dual-channel time scale converter 104 with two 1-line memories 154-1 and 154-2 which has the two inputs thereof connected to the A/D converter 103 output; a first (or long) luminance-color signal separator (YC SEP) 105-1 having its input connected to a dual-channel time scale converter 104 first channel (or long channel) output for a long-time exposed image signal; a multiplier 106, having its data input connected to a dual-channel time scale converter 104 second channel (or short channel) output for a short-time exposed image signal and its control input connected to a gain control output of the microcontroller 150, for adjusting the white balance of the short-time exposed image signal; a second luminance-color signal separator (YC SEP) 105-2 having its input connected to a multiplier 106 data output; a first synthesizer (SYNTH) 107-1 having two inputs thereof connected to a first YC separator 105-1 Y L (long channel luminance) output and a second YC separator 105-2 Y S (short channel luminance) output; a second synthesizer 107-2 having two inputs thereof connected to a first YC separator 105-1 C L (long channel color) output and a second YC separator 105-2 C S (short channel color) output; a gray scale compensator 108 having its input connected to a first synthesizer 107-1 output; an adder 109 having its two inputs connected to a gray scale compensator 108 output and a second synthesizer 107-2 output; and a color temperature detector 110 having its input connected to the Y L signal terminals of the first YC separator 105-1 and the first synthesizer 107-1. The main signal processor 140 comprises: a luminance-color signal separator (YC SEP) 111 having its input connected to an adder 109 output; a luminance signal processor 112 having its input connected to a YC separator 111 luminance signal output and its output treated as a luminance signal output of the imaging apparatus 100; an RGB separator 113 having its input connected to a YC separator 111 color signal output; a first multiplier (x Kr) 114-1 having its multiplicand input connected to an RGB separator 113 R-output and its coefficient input is connected to a microcontroller 150 coefficient Kr output; a second multiplier (x Kb) 114-2 having its multiplicand input connected to an RGB separator 113 B-output and its multiplier input is connected to a microcontroller 150 coefficient Kb output; a first subtracter (R - G) 115-1 having its minuend input connected to a first multiplier 114-1 output and its subtrahend input connected to an RGB separator 113 G-output; a second subtracter (B - G) 115-2 having its minuend input connected to a second multiplier 114-2 output and its subtrahend input connected to the RGB separator 113 G-output; a color difference signal modulator 116 its two inputs connected to a first and second subtracter 115 outputs; a dual-channel gate circuit 117 having its dual channel inputs connected to the first and second subtracter 115 outputs and its control inputs connected to a color temperature detector 110 bright/dark signal output and a microcontroller 150 long/short signal output; and a color difference data detector 118 connected to the gate circuit 117 and the controller 150. The imaging device 101 is configured to alternately output a first image signal having been obtained through long time (say, approximately (1/60 - 1/1000) second) exposures and a second image signal having been obtained through short time (say, 1/1000 second) exposures at twice the normal transfer rate of a horizontal CCD (charge coupled device) in one field of time. Thus output first (long exposed) and second (shortly exposed) image signals are subjected to preprocessing such as CDS (correlated double sampling), AGC (automatic gain control), etc. by the preprocessor 102, converted into digital signals by the A/D converter 103, temporarily stored in the 1-line memories 154-1 and 154-2, respectively, of the time scale converter 104, and concurrently read out of the memories 154 at the normal speed. In order to facilitate understanding of the above, the elements other than elements directly related to the present invention will be first described, and then the latter elements will be described in great detail. If the imaging device 101 is one for use in a single camera with a mosaic type color filter, then the two image signals of different exposure times output from the time scale converter 104 will include color modulated components. In order to synthesize the two image signals in a predetermined luminance level, the first (long exposed) and second (shortly exposed) image signals are once separated by the YC separators 105-1 and 105-2 into luminance signals Y L and Y S and color modulated components C L and C S , respectively (Subscripts L and S indicate that the elements identified by the references including the subscripts are associated with the long exposed image signal and the shortly exposed image signal, respectively). The luminance signals Y L and Y S and color modulated components C L and C S are synthesized by the synthesizer 107-1 and 107-2 into a luminance signal Y1 and a color signal C1, respectively. The synthesized luminance signal Y1 is compensated in gray scale by the gray scale compensator 108 such that the larger the histogram frequencies of gray scales are, the more the contrasts between the gray scales are emphasized. Then, the gray scale compensated luminance signal has the color signal C1 added thereto, and is sent to the main signal processor 140. It is noted that it may be preferable to realize the dynamic range expansion processor 130 and the main signal processor 140 as separate ICs. In such a case, the luminance signal and the color modulated signal are preferably dealt with in a multiplexed form. In the main signal processor 140, the luminance signal from the dynamic range expansion processor 130 is again separated by the YC separator 111 into a luminance signal Y2 and a color carrier component C2. The luminance signal Y2 is processed by the luminance signal processor 112. The color carrier component C2 is separated by the RGB separator 113 into three primary RGB colors. The color components R and B are multiplied by the coefficients Kr and Kb supplied from the microcontroller 150 yielding color difference signals Kr·R-G and Kb·B-G, which are modulated with subcarriers by the chrominance modulator 116 into a modulated chrominance signal. Then the modulated chrominance signal is combined with the luminance signal from-the element 112 to yield a composite image signal. It is noted that Kr·R-G and Kb·B-G indicate the value of the color difference signals. However, then simplified expressions R-G and B-G are used as symbols indicating the outputs of the subtracters 115-1 and 115- 2. Referring now to FIG. 2 as well as FIG. 1, white balance adjustment according to the principles of the invention will be described in the following. FIG. 2 is a diagram illustrating an operation of gathering data for use in determining values used for the white balance adjustment, i.e., gains of the multipliers 106, 114-1 and 114-2.In this specific illustrative embodiment, color difference data necessary for adjusting the white balance of the above mentioned long-exposed image signal and data necessary for adjusting the white balance of the above mentioned shortly-exposed image signal are gathered in alternate fields, which are referred to as "long mode fields" and "short mode fields", respectively. The mode is specified by the long/short (L/S) mode signal which is supplied from the microcontroller 150 to the gate circuit 117. In this specific example, the L/S mode signal indicates the long mode by logical "1" and the short mode by logical "0" as shown at the bottom of FIG. 2. In the long (or short) mode, the imaging apparatus is configured to collect color difference data R-G and B-G corresponding to subject(s) of low (or high) color temperature, actually dark (or bright) areas in the view. In order to achieve this, the color temperature detector 110 compares the luminance signal Y L from the YC separator 105-1 with a predetermined threshold level to output a bright/dark (B/D) signal indicative of whether the luminance signal Y L is in a bright area or not (i.e., a dark area) as shown in FIG. 2. If the luminance signal Y L is higher than the threshold level, then the B/D signal is logical "1" and logical "0" otherwise. The B/D signal is supplied to the gate circuit 117. The gate circuit 117 is configured to pass the color difference signals R-G and B-G to the color difference (hereinafter, referred to as "CD") data detector 118 only if the long/short mode signal and the bright/dark signal have different logical values as shown in the following table. Specifically, in the short mode (field), e.g., a field F2 in FiG. 2, the signals R-G and B-G (only one is shown) are passed in case of a high (logical "1") B/D signal, that is, CD signal portion P2 (shown as PORTION USED FOR SHORT-EXPOSED SIGNAL ADJUSTMENT) is received by the detector 118 but there is no signal supplied for periods P1 or P3. In the long mode (field), e.g., a field F1, the signals R-G and B-G are passed in case of a low (logical "0") B/D signal, that is, CD signal portions P1 and P3 (shown as PORTION USED FOR LONG-EXPOSED SIGNAL ADJUSTMENT) are received by the detector 118 but there is no signal supplied for period P2. On receiving the color difference signals R-G and B-G, the color difference data detector 118, which has two adders (not shown) calculates a sum of every predetermined number of received color difference digital values for each color difference signal R-G, B-G and passes the calculated sums Sr and Sb to the microcontroller 150. The purpose of this detector 118 is reducing the load of the microcontroller 150. Accordingly, the predetermined number may be set to any suitable value according to the resolution of the imaging device 101 and the speed of the microcontroller 150. For example, the number may be a forty-eighth of the number of pixels in a horizontal line. Alternatively, each horizontal line may be divided into a certain number (e.g., 48) of blocks e.g., B1, B2,...,B48 before hand, and sums Sri and Sbi of CD values, if any, may be calculated for each block Bi (i = 1, 2,...,48). According to the principles of the invention, the white balance adjustment in the short mode (field) is made to the shortly-exposed image signal from the 1H-memory 154-2 by the multiplier 106 in the dynamic range expansion processor 130. The multiplier 106 comprises a multiplier 156-1 and a selector 156-2. The multiplier multiplies each pixel data of the shortly-exposed image signal from the 1H-memory 154-2 by a gain Gi (i = 1, 2, 3, or 4) supplied from the selector. The selector 156-2 includes four gain registers (not shown) for storing four gains G1, G2, G3 and G4 prepared for the four colors corresponding to the colors of the color filter (not shown) of the imaging device 101. In response to each pixel data from the 1H-memory 154-2, the selector 156-2 selects and supplies one (Gi) of the four gains G1, G2, G3 and G4 to the gain input of the multiplier 106. The four gains are calculated and stored in the gain registers by the controller 117 as described in detail later. In the long mode (field), the white balance adjustment is made by controlling the gains Kr and Kb for the multipliers 114-1 and 114-2, respectively, in the main signal processor 140. The multiplier unit 114 has registers for storing the gains Kr and Kb, which are set by the controller 150. In either mode and in each field of the mode, the microcontroller 150 controls the gains to cause each average value of a sum sequence Sr's and a sum sequence Sb's received from the CD data detector 118 during the period of the field to converge on a predetermined target value, i.e., 0 in this example. Since the target value is 0, the gains are actually so controlled that the sum total of each of the sum sequences Sr's and Sb's converges on 0. In addition to this, it should be noted that the gains of the multiplier 106, i.e., G1 through G4 are preferably calculated such that both of the sum of the gains for two colors from which a signal R-Y is generated and the sum of the gains for two colors from which a signal B-Y is generated are kept constant. Doing this facilitates the control of the white balance in the R direction. FIG. 3 is a flow chart showing an operation of the microcontroller 150 for controlling the white balance adjustment in accordance with the principles of the invention. It is assumed that the controller 150 has a long/short mode flag (not shown) for holding a current mode and storage locations or R-G and B-G accumulators for accumulating the received data from the CD data detector 118. It is also assumed that the operation is initiated by an interruption issued to the CPU (central processing unit) (not shown) of the controller 150 by each vertical sync signal. In FIG. 3, in step 302 the controller 150 adjusts the gains of the multipliers associated with the current mode according to the L/S mode flag so as to cause the values of the R-G and B-G accumulators to converge to zero. That is, in case of the long mode, the controller 150 calculates and stores the gains Kr and Kb in the above mentioned respective registers in the multiplier 114. In case of the short mode, the controller 150 calculates the gains G1 through G4 of the multiplier 106 as described above and stores the calculated gains in respective registers in the multiplier 106. During the short mode, the gains Kr and Kb are fixed. In step 304, the accumulators are reset. In step 306, the controller 150 sets the L/S mode flag and the L/S mode signal according to a predetermined mode sequence. In this specific embodiment, the controller 150 inverts the L/S mode flag and the L/S mode signal. The controller 150 makes a test to see if data is received from the CD data detector 118 in step 308. If so, the controller 150 adds the received data to the accumulator in step 310 and returns to step 308. Otherwise, the controller 150 returns to step 308. Thus the steps 308 and 310 are repeated till the next interruption. Though the image signals of long and short exposure times have been obtained by a combination of the imaging device 101 and the time scale converter 104 in the above described illustrative embodiment, each of such image signals may be obtained by using a set of an imaging device, a preprocessor 102 and an A/D converter 103. In this case, the time scale converter 104 is not necessary. In the embodiment, both of the sums Sr's and Sb's have been collected for calculation in each field by using the dual-channel gate circuit 117 and the CD data detector 118 having two adders. However, the sums Sr's and Sb's may be collected in respective fields of the same long/short mode by changing the L/S mode every two fields. In this case, the gate circuit 118 is replaced with a multiplexer. which will need to have an additional control information supplied by the controller 150 to know which of the sums Sr's and Sb's to select. and the CD data detector 118 may have only one adder. Though the L/S mode has been changed every field in the above embodiment, the L/S mode sequence may be determined in various ways. For example, the mode may be changed every predetermined number of fields. Instead of periodical change scheme, any suitable adaptive L/S mode setting algorithm may be used. Preferred one of such algorithms continues the same L/S mode till a convergence is reached with respect to each of the CD signals R-G and B-G, when the L/S mode is changed to the current one to the other. Many widely different embodiments of the present invention may be constructed without departing from the scope of the present invention. It should be understood that the present invention is not limited to the specific embodiments described in the specification, except as defined in the appended claims.

Claims: A system for separately adjusting white balances for long exposed image portions and shortly exposed image portions in an imaging apparatus wherein a signal obtained through a long exposure (hereinafter, referred to as a "long exposed signal") and a signal obtained through a short exposure (hereinafter, referred to as a "shortly exposed signal") are synthesized into a luminance signal, a first color difference (referred to as "CD") signal, and a second CD signal to yield a video signal; the system comprising: first means (150) for providing, substantially for each field, a signal indicative of one of long and short modes; second means (150) operative in each field of said short mode for finding gains, to adjust a magnitude of said shortly exposed signal such that at least one of an average of said first CD signal and an average of said second CD signal converges on a predetermined target value; means for multiplying (106) said magnitude of each pixel value in said shortly exposed signal by one of said gains; third means (150) operative in each field of said long mode for finding first and second gains to adjust magnitudes of a first one and a second one of three primary colors which are unique components of said first and second CD signals, respectively, such that said at least one of said averages converges on said predetermined target value; and means for multiplying (114-1, 114-2) said magnitudes of said first and second colors by said first and said second gains respectively. A system as defined in claim 1, further comprising: means (110) for providing a signal indicative of bright or dark areas depending on whether said shortly exposed signal is larger than a predetermined threshold level or not, respectively; and means (118) responsive to said signal indicative of one mode and said signal indicative of bright or dark areas for calculating at least one of a first sum of pixel values of said first CD signal and a second sum of pixel values of said second CD signal in case of said bright area in said short mode and for calculating said at least one of said first and said second sums in case of said dark area in said long mode, wherein said second means and said third means use said first sum and said second sum in calculating said averages. A system as defined in claim 2, further comprising fourth means (117) for providing a signal indicative of one of said first and second CD signals, wherein in response to said signal indicative of one CD signal, said calculating means calculates only said first sum if said signal indicative of one CD signal indicates said first CD signal and calculates only said second sum if said signal indicative of one CD signal indicates said second CD signal. A system as defined in claim 1, wherein said first means (150) provides said signal indicative of one mode such that said one mode remains unchanged till said at least one of said averages reaches zero and said one mode is changed to the other mode when said at least one of said averages reaches zero. A system for separately adjusting white balances for long exposed image portions and shortly exposed image portions in an imaging apparatus wherein a signal obtained through a long exposure (hereinafter, referred to as a "long exposed signal") and a signal obtained through a short exposure (hereinafter, referred to as a "shortly exposed signal") are synthesized into a luminance signal, a first color difference (referred to as "CD") signal, and a second CD signal to yield a video signal; the system comprising: first means for providing, substantially for each field, a signal indicative of one of long and short modes; second means operative in each field of said short mode for finding gains, to adjust a magnitude of said shortly exposed signal such that a sum of pixel values of said second CD signal converges on a zero value; means for multiplying said magnitude of each pixel value in said shortly exposed signal by one of said gains; third means operative in each field of said long mode for finding first and second gains to adjust magnitudes of a first one and a second one of three primary colors which are unique components of said first and second CD signals, respectively, such that said sum of pixel values of said second CD signal converges to a zero value; and means for multiplying said magnitudes of said first and second colors by said first and said second gains respectively.

Inventors: SANO TOSHIYUKI, SANO, TOSHIYUKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1998
Main classification: H04N9
IPC codes: H04N9