Abstract:
A method of image processing in which a plurality of channel input signals are a function of unknown recorded signal levels and unknown signal sensitivities, the method involving the sampling and measuring of the recorded signals and sensitivities at each channel to determine weighting values that eliminate the contribution of the unknown signal sensitivities, the weighting values being used to further process the input signals to form output signals representing the unknown recorded level signals.

Description:
FIELD OF THE INVENTION 
     The present invention relates to methods of image processing, and more particularly to methods for removing the degradation resulting from sampling systems where more than one channel of information is captured and both channel signal and sensitivity are unknown and vary at each sample location. 
     BACKGROUND OF THE INVENTION 
     An example of a system that captures more than one channel with unknown and varying signal and sensitivity is a color filter array (CFA) film that has been spatially sampled with a film scanner. A CFA film for capturing the red, green, and blue channel information required for human color perception contains at least three colored species from which red, green, and blue channel information can be decoded. A CFA film can be designed for direct viewing and/or optical printing. However the CFA structure degrades image quality. 
     A CFA film is disclosed in EP 935168. The color filter array comprises colored resin particles which are randomly arranged. 
     If the number of independent channels of information acquired by electro-optical scanning of a CFA film is at least twice minus one the number of desired information channels, then at each scanned pixel location, it is possible to determine both the amount of signal (silver or other light modulating species formed in a photo process as a function of light intensity) formed in spatial coincidence with the total sub-pixel area occupied with similarly colored CFA elements (the relative sensitivity). The twice minus one arises from the area constraint at each pixel; that is that the sum of the area of all of the individual sub-pixel CFA elements is equal to the effective scanning aperture or pixel area. One such system is described in U.S. patent application Ser. No. 09/080,791 wherein twice the number of desired channels of independent information is acquired in order to essentially (within the limits of bit depth) determine both the amount of silver formed under the total sub-pixel area filled with similarly colored CFA elements and the total sub-pixel area filled with similarly colored CFA elements. 
     However, most existing scanning systems do not possess the capability of acquiring these extra channels of independent information required to perform this joint determination. By applying the following image processing method, it is possible to determine the amount of silver formed under the total sub-pixel area filled with similarly colored CFA elements and the total sub-pixel area filled with similarly colored CFA elements from electro-optical scanning where the number of independent channels of information acquired equals the number of desired information channels. 
     For a three channel system the problem to be solved, at each pixel position (p, q), 
     can be expressed as follows: 
     
       
           C   m1 ( p, q )= X   1 ( p, q ) C   1 ( p, q )  (1a) 
       
     
     
       
           C   m2 ( p, q )= X   2 ( p, q ) C   2 ( p, q )  (1b) 
       
     
     
       
           C   m3 ( p, q )= X   3 ( p, q ) C   3 ( p, q )  (1c) 
       
     
     
       
           X   1 ( p, q )+ X   2 ( p, q )+ X   3 ( p, q )=1.0  (1d) 
       
     
     where C mi  is the measured transmittance of the ith color channel, X i    
     is the fraction of effective scanning pixel area covered by sub-pixel CFA 
     elements of the ith color, and C i  is the desired recorded image signal for the ith channel at each pixel position (p, q). For simplification, the (p, q) will not be included explicitly in subsequent equations, but it will be understood that all equations are a function of pixel position. 
     A simple assumption would be that for each channel i in a local area, the average fraction of pixel area covered, the values of X i , are constant and equal to the average fraction observed over the entire scanned image and these fractions are known. Defining these known fractions as  {overscore (X)}   i , and assuming that over some small area that essentially defines the window for a low pass filter, the values of C i  are calculated as follows: 
       C   i =1 pf (C mi )/ {overscore (X)}   1    (2) 
     where 1pf(C mi ) is the low-pass version of the C mi  measurement, sufficiently low-passed so that the above average fraction assumption is constant. Low-pass filtering of a sampled image is well known in the art and is achieved, for example, by applying a finite impulse response (FIR) filter to a sampled signal. 
     Unfortunately, in order to achieve this constancy condition, excessive low-pass filtering is required, resulting in low spatial resolution and image quality. Alternate assumptions can be employed that result in improved image quality. 
     Another approach well-practiced in the art of color imaging is to transform the three measured signals, e.g. red, green, and blue, to signals such as one luminance and two chrominance signals. Luminance is broadly defined as a linear combination of red, green, and blue, all with positive weightings that sum to unity. The two chrominance signals are broadly defined as independent representations of the color information with weightings that sum to zero. A set of weightings that is used in television systems is: 
     
       
           L= 0.30 C   1 +0.59 C   2 +0.11 C   3    (3a) 
       
     
     
       
           B−L=− 0.30 C   1 −0.59 C   2 +0.89 C   3    (3b) 
       
     
     
       
           R−L= 0.70 C   1 −0.59 C   2 −0.11 C   3    (3c) 
       
     
     where L is the luminance-like signal and B-L and R-L are the two chrominance-like signals. The weighting coefficients for L are all positive and sum to unity. The weighting coefficients for B-L and R-L sum to zero. For this example, C 1 =R (red), C 2 =G (green) and C 3 =B (blue). Owing to the characteristics of the human visual system, it is possible to low-pass filter chrominance signals significantly more than luminance signals whilst maintaining good image quality. Applying this transformation to the unknown signal, unknown sensitivity system described by equations (1) produces an improved image, i.e. an image without high frequency colored noise. The noise owing to the color filter array is reduced in some colored areas. However, most of the image suffers from CFA noise and colored mottle (low frequency color noise). The high frequency CFA noise is manifest as non-colored noise owing to the transformation, equation (3a), and lack of low-pass filtering of the L signal. If the CFA has low frequency power, then the resulting chrominance signals will contribute colored mottle (low frequency noise) to an image reconstructed after the above described image processing. If all of the transformed signals in equations (3) were equally low-pass filtered, then the result, by the application of linear systems theory, would be equivalent to that achieved by low-pass filtering the signals represented by equation (2). 
     It is an aim of the invention to provide a method of image processing which avoids the problems mentioned above, which does not require a special scanner but gives good quality results with typical scanning means. 
     SUMMARY OF THE INVENTION 
     According to the present invention there is provided a method of forming output signals from a plurality of channel input signals, said input signals being a function of both unknown recorded signal levels and unknown signal sensitivities, the method comprising the steps of; 
     sampling and measuring the product of the recorded signals and the signal sensitivities for each sampled channel input signal; 
     determining at each sampled location channel weighting values which eliminate the contribution of the unknown signal sensitivities; and 
     further processing the plurality of channel input signals using the determined channel weighting values to form output signals that represent the unknown recorded signal levels. 
     By applying multi channel scanning and image processing according to the invention it is possible to remove essentially all of the image quality degradation due to the CFA structure. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a flow diagram showing the method of forming a pseudo-luma signal; and 
     FIG. 2 is a flow diagram showing the method of forming color signals. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     The method of this invention starts with a first step of producing a pseudo-luma signal, see FIG. 1, and then follows with steps to form the color signals, see FIG.  2 . 
     In general terms, with reference to FIG. 1, the image is scanned, step S 1 , and samples taken of each channel. Each sample is spatially transformed, step S 2 . Step S 2  is not an essential step and in some methods of the invention this step is omitted. Depending on the method of the invention being used a high pass or a low pass filter may be used. Weighting values are determined in step S 3 . It is important to note that the neighborhood used to determine the weighting values need not be the same neighborhood as that used in the spatial transformation. In method A, described in detail later, the neighborhood used for determining the weighting values covers a single pixel. In step S 4  a pseudo luma equation is formed using samples taken from each channel and the weighting values determined in step S 3 . 
     A pseudo-luma signal is defined as any sum of C i (i=1 to 3) signals that satisfies the following equation: 
     
       
         Pseudo-Luma= k   1   C   1   +k   2   C   2   +k   3   C   3   (4) 
       
     
     where the k values, i.e. the channel weightings, are constrained to sum to unity: 
     
       
           k   1   +k   2   +k   3 =1.0  (5) 
       
     
     If the image signal color is constant in a small neighborhood (small number of pixels) which is oftentimes the case and is also the case with the human visual system, then it can be shown that the noise owing to the CFA can be eliminated if the appropriate values of k i  are chosen for each pixel location. Constant color, CC i , is defined to be the fraction of C i , i.e. 
     
       
           CC   i   =C   i /( C   1   +C   2   +C   3   (6) 
       
     
     where C i  is the transmittance. If constant color is maintained in a region, then the values of k i  can be adjusted so that the calculated Pseudo-Luma is independent of the X i &#39;s in that region. An additional constraint on the values of k i  provides this: 
     
       
           k   1   C   1   =k   2   C   2   =k   3   C   3    (7) 
       
     
     When the values of k i  are adjusted to achieve the above dual equality (equation (7)), then the contribution of the unknown signal sensitivity proportion or the X i &#39;s is eliminated in that region of assumed constant color. By substitution of the above equation (7) with equations (1) and (4): 
     
       
           k   1   C   m1   =X   1   k   1   C   1    (8a) 
       
     
     
       
           k   2   C   m2   =X   2   k   2   C   2   =X   2   k   1   C   1    (8b) 
       
     
     
       
           k   3   C   m3   =X   3   k   3   C   3   =X   3   k   1   C   1    (8c) 
       
     
     Adding the equations (8a-c) yields: 
     
       
           k   1 C m1   +k   2   C   m2   +k   3   C   m3 =( X   1   +X   2   +X   3 ) k   1   C   1   =K   2   C   2   =K   3 C 3   (9a) 
       
     
     or from combining with equation (4): 
     
       
         Pseudo-Luma=3( k   1   C   m1   +k   2   C   m2   +k   3   C   m3 )  (9b) 
       
     
     where X 1   +X   2   +X   3 =unity. If these values of k i  can be found, then the unknown signals (C 1 ) and Pseudo-Luma can be fully determined from the measured transmittance values C mi . 
     There are various methods for determining these values of k i . 
     Determining k i —Method A 
     A first method of calculating the values of k i  is to assume a constant color determined from a low-pass filtered version of the measured transmittance values, C mi . This is different from the above cited prior art example where the desired signals, C i , are determined by simple low-pass filtering of the measured transmittance values, C mi . Instead, the inverse of the low-pass filtered measured transmittances are used to form the weightings k i  which are then used to form the Pseudo-Luma and ultimately a colored image as will be described later on. The values of k i  are calculated as follows: 
     
       
           k   1 =1 pf ( C   m2 )1 pf ( C   m3 )/[1 pf ( C   m1 )1 pf ( C   m2 )+1 pf ( C   m1 )1 pf ( C   m3 )+1 pf ( C   m2 )1 pf ( C   m3 )]  (10a) 
       
     
     
       
           k   2 =1 pf ( C   m1 )1 pf ( C   m3 )/[1 pf ( C   m1 )1 pf ( C   m2 )+1 pf ( C   m1 )1 pf ( C   m3 )+1 pf ( C   m2 )1 pf ( C   m3 )]  (10b) 
       
     
     
       
           k   3 =1 pf ( C   m1 )1 pf ( C   m2 )/[1 pf ( C   m1 )1 pf ( C   m2 )+1 pf ( C   m1 )1 pf ( C   m3 )+1 pf ( C   m2 )1 pf ( C   m3 )]  (10c) 
       
     
     where 1pf(C mi ) is a low-pass filtered version of the measured transmittance C mi . The Pseudo-Luma&#39;s can be calculated by using the values of k i  from equations (10a-c) with equations (9) and (4). This method provides a Pseudo Luma signal with minimal noise contribution from the CFA. Whilst the 1pf(C mi ) values carry low frequency variations from the CFA, the effect of low frequency variations in the k i  values has a much smaller effect than low frequency variations in the 1pf(C mi ) values, owing to the normalizing and averaging properties of equations (10a-c). Furthermore as the k i  values sum to unity, see equation (5), the high frequency content and overall dynamic range of the Pseudo-Luma signal is not degraded. 
     Determining k i —Method B 
     An alternative method for calculating the values of k i  is to assume that within a spatial neighborhood the ratios between high-passed measured signals are constant and any deviation from this constancy is owing to the CFA modulation. This assumption is realized by modifying the values of k i  so that the high frequency power in the measured transmittance values, C mi  is minimised. Firstly, high-pass signals, HP i , are formed: 
     
       
           HP   1   =hpf ( C   m1 )  (11a) 
       
     
     
       
           HP   2   =hpf ( C   m2 )  (11b) 
       
     
     
       
           HP   3   =hpf ( C   m3 )  (11c) 
       
     
     by application of an FIR or other digital filtering means. 
     High spatial frequency power, HFP is defined as: 
     
       
           HFP=Σ[k   1   HP   1   +k   2   HP   2   +k   3   HP   3 ]**2  (12) 
       
     
     where Σ denotes summing in a weighted neighborhood about the sample for which the values of k i  are being determined. Equation (12) is minimised by taking partial derivatives with respect to the values of k i  and solving the resulting simultaneous equations. By simple inspection of equation (12), if all of the k i  values equal zero, then HFP is minimised. However this would violate equation (5) which requires that the k i  values sum to unity. Using equations (5) and (12) to eliminate k 3  yields: 
     
       
           HFP=Σ[k   1 ( HP   1   −HP   3 )+ k   2 ( HP   2   −HP   3 )+ HP   3 ]**2  (13) 
       
     
     Equation (13) is minimised by taking partial derivatives with respect to k 1  and k 2  and solving the following equation for k 1  and k 2 .                [           ∑                  (       HP   1     -     HP   3       )     2             ∑                  (       HP   1     -     HP   3       )          (       HP   2     -     HP   3       )                   ∑                  (       HP   1     -     HP   3       )          (       HP   2     -     HP   3       )               ∑                  (       HP   2     -     HP   3       )     2             ]                [                             k   1               k   2           ]     =     [           -     ∑       (       HP   1     -     HP   3       )          HP   3                     -     ∑       (       HP   2     -     HP   3       )          HP   3                 ]               (   14   )                                
     k 3  is determined with known values of k 1  and k 2 , from equation (14), and from equation (5). 
     Equations similar to equation (13) can be formed by choosing to eliminate k 1  or k 2  instead of k 3 . When applied, slightly different values of k i  are obtained. An extension of this method would be to form and average the 3 sets of k i  values formed when k 1 , k 2 , or k 3  are eliminated by the constraint of equation (5). 
     Determining k i —Method C 
     Yet another method for calculating the values of k i  is to assume that the standard deviations values, SD i , in a neighborhood are made equal by weighting the measured signals by the k i  values subject to the constraint of equation (5): 
     
       
           SD   1   =sqrt{ (Σ[ C   m1   −C   m1 ( av )]**2)/(n−1)}  (15a) 
       
     
     
       
           SD   2   =sqrt{ (Σ[ C   m2   −C   m2 ( av )]**2)/(n−1)}  (15b) 
       
     
     
       
           SD   3   =sqrt{ (Σ[ C   m3   −C   m3 ( av )]**2)/(n−1)}  (15c) 
       
     
     where n is the number of pixels in the neighborhood used to evaluate the values of SD i . C mi (av) is the average value of C mi  in this region. In the most general sense equations (15a-c) could be modified to unequally weight the contribution of the members of the neighborhood to the standard deviation calculation. The values of k i  that equate standard deviation and satisfy equation (5) and equations (15a-c) are: 
     
       
           k   1   =SD   2   SD   3 /( SD   1   SD   2   +SD   1   SD   3   +SD   1   SD   2 )  (16a) 
       
     
     
       
           k   2   =SD   1   SD   3 /( SD   1   SD   2   +SD   1   SD   3   +SD   1   SD   2 )  (16b) 
       
     
     
       
           k   3   =SD   1   SD   2 /( SD   1   SD   2   +SD   1   SD   3   +SD   1   SD   2 )  (16c) 
       
     
     An extension of this method is to calculate the standard deviations based on spatially filtered versions of the values of C mi . For example, high-pass filtering of the C mi  (as described in Method B) could be using to form the values of SD i  as follows: 
     
       
           SD   1   =sqrt {([ HP   1   −HP   1 ( av )]**2)/( n− 1)}  (17a) 
       
     
     
       
           SD   2   =sqrt {([ HP   2   −HP   2 ( av )]**2)/( n− 1)}  (17b) 
       
     
     
       
           SD   3   =sqrt {([ HP   3   −HP   3 ( av )]**2)/( n− 1)}  (17c) 
       
     
     where HP i (av) is the average value, typically zero, of HP i  in this region. 
     Those skilled in the art will appreciate that combinations of the above methods represent additional methods. Furthermore, it will be appreciated that the definitions of neighborhoods is broad and includes adaptive, varying and other dynamic neighborhoods. Furthermore it is not required that neighborhoods be the same in any of these combinations, nor does the spatial extent of any of the FIR filters used have to be the same as the spatial extent of a neighborhood. 
     Having determined the values of k i  by any one of the above described methods or combinations thereof, Pseudo-Luma can now be determined at each sample location by application of equation (9b). The reconstructed Pseudo-Luma signal provides a luminance-like signal, but saturated colors have lower values than would be the case had a true luminance signal (that would result from application of equation (3a)) been calculated. 
     Method for Estimating Unknown Signals 
     The pseudo-luma equation and the determined weighting values are then used to determine the unknown signals, see step  5  in FIG.  2 . The weighting values input, in step S 3 a, into step  5  need not be the same weighting values as those used to determine the pseudo-luma equation in step S 4 , i.e. it is not essential to use the same weighting values to determine the pseudo-luma equation and the color signals. 
     Simple application of equation (7), that exploits the color constancy in a neighborhood assumption, can be used to determine the estimates of the values of C i . 
     
       
         Pseudo-Luma= k   1   C   1   +k   2   C   2   +k   3   C   3    (4) 
       
     
     
       
           k   1   C   1   =k   2   C   2   =k   3   C   3    (7) 
       
     
     
       
         Pseudo-Luma=3( k   1   C   m1   +k   2   C   m2   +k   3   C   m3 )  (9b) 
       
     
     
       
           C   1 =[Pseudo-Luma]/[3 k   1   ]=C   m1   +k   2   C   m2   /k   1   +k   3   C   m3   /k   1   (18a) 
       
     
     
       
           C   2 =[Pseudo-Luma]/[3 k   2   ]=k   1   C   m1   /k   2   +C   m2   +k   3   C   m3   /k   2   (18b) 
       
     
     
       
           C   3 =[Pseudo-Luma]/[3 k   3   ]=k   1   C   m1   /k   3   +k   2   C   m2   /k   3   +C   m3   (18c) 
       
     
     It will be appreciated by those skilled in the art that the above described methods contains ratios which may be sensitive to noise in signal and/or calculation means. Various known methods, such as low-pass filtering, median filtering, range limiting/thresholding, etc. may be applied to any of the above calculations in order to reduce any impact from noise. 
     The method described can be used for any system with unknown signals and unknown signal sensitivity as described by equations (1). Whilst equations (2) are written for a three channel system, those skilled in the art will appreciate that the method can be used for any multi-channel system where the sum of unknown signal sensitivities is known at each, equation (1d), and the image is measured with a number of channels that is equal to half the sum of the number of unknown signals plus the number of unknown sensitivities, equations (1a-c). 
     By applying the multi-channel scanning and image processing taught in this specification, it is possible to remove essentially all of the image quality degradation owing to the CFA structure. The method described is applicable to CFA systems where the effective sampling aperture at the film plane is greater than the feature size of elements of the CFA. 
     The invention has been described in detail with reference to several preferred embodiments thereof. It will be understood by those skilled in the art that variations and modifications may be effected within the scope of the invention.