Abstract:
A method is presented for the treatment and visualization of local contrast in n-dimensional multispectral images, which directly applies to n-dimensional multisensor images as well. A 2×2 matrix called the contrast form is defined comprised of the first derivatives of the n-dimenional image function with respect to the image plane, and a local metric defined on n-dimensional photometric space. The largest eigenvector of this 2×2 contrast form encodes the inherent local contrast at each point on the image plane. It is shown how a scalar intensity function defined on n-dimensional photometric space is used to select a preferred orientation for this eigenvector at each image point in the n-dimensional image defining the contrast vector field for an n-dimensional image. A grey level visualization of local n-dimensional image contrast is produced by the greylevel image intensity function such that the sum of the square difference between the components of the gradient vector of this intensity function and the components of the contrast vector field is minimized across the image plane. This is achieved by solving the corresponding Euler-Lagrange equations for this variational problem. An m-dimensional image, 1&lt;m&lt;n, visualization of n-dimensional data is produced by an m-dimensional image function such that the sum of the square difference between the components of the contrast form of this m-dimensional image and the components of the contrast form for the n-dimensional image is minimized across the image plane.

Description:
This application claims benefit of Provisional No. 60/082,136 filed Apr. 17, 1998. 
    
    
     FIELD OF THE INVENTION 
     This invention relates to visualization of n-band multispectral/multisensor images that can be used by image analysts to better discriminate image data acquired by multispectral/multisensor systems. This invention can also be used by automated and semi-automated image understanding systems that utilize such n-band imagery. The invention can be used to aid the color blind in seeing local contrast in color images. This invention can also be used for image compression. 
     BACKGROUND OF THE INVENTION 
     The advent of new remote sensing and imaging technologies provides ever increasing volumes of multispectral data. Faced with this information explosion, it has become necessary to develop methods for analysis of such high dimensional datasets. One key aspect of this process is the visualization of multispectral data, to be used for photointerpretation. This allows an image analyst to determine regions of interest and important features in the image for further analysis or segmentation. In order to take full advantage of the human visual system, a Red-Green-Blue composite image is usually generated from the data by one of a number of statistical methods such as with Principal Components Analysis. The new method here produces a one-band, grayscale visualization image from a given multispectral dataset. This is done so as to preserve as much local image contrast ‘feature information’ as possible. An m-dimensional image, 1&lt;m&lt;n, visualization for an n-dimensional image can also be obtained most optimally preserving local contrast data. 
     SUMMARY OF THE INVENTION 
     Computation of contrast, which includes computation of gradient and zero-crossings, has been used in computer vision as one of the primary methods for extracting grayscale and color features. It seems plausible, therefore, that the correct way to compare versions of the same image in terms of feature information is through their contrast content. Contrast, however, is defined a priori only for grayscale images, so it is hard to readily compare multiband images amongst themselves or multiband images with grayscale images. The first step is thus to define contrast for a multiband image. This is achieved through the introduction of a differential form on the image, computed in terms of the spectral map and a metric defined on photometric space. This reduces to the standard notion of contrast in grayscale images. 
     Once contrast has been defined for an arbitrary image, it is natural to ask which grayscale image most closely matches the contrast information of a given multiband image. Or, how is it possible to convert a multiband image to grayscale while preserving as much contrast information as possible? 
     It should be noted that the solution to this problem has multiple applications. As a data compression algorithm, it provides a n:1 image compression ratio, while preserving edge feature information. In the biomedical field, one could use this algorithm to fuse data from different sensor modalities such as CAT, PET and MRI. For the remote sensing community, this algorithm provides a visualization tool for realizing the full edge information content in hyperspectral images, such as those obtained through satellite imaging. Such high-dimensional photometric data is not easily tractable by traditional methods; in this context this new method yields a useful data analysis tool. 
     Perhaps the simplest possible transformation from a multispectral image to a grayscale image is averaging of the spectral bands. This produces a visualizable image which contains information from all the bands in a unified way. However, this method fails to take into account any measure of the information content in the dataset. A minor modification can be obtained by considering a weighted average, where different bands will contribute differently to the final result, depending on some pre-assigned assesment of their relative relevance in the overall image. Since it may be difficult or even impossible to determine a priori which bands should be emphasized over others, this method suffers from similar problems as unweighted averaging. 
     In order to overcome the shortcomings of averaging methods, statistical information about the multispectral image can be taken into account. Principal Component Analysis (PCA) achieves this by considering an n-band image as a set of vectors in an n-dimensional vector space. PCA obtains a one-band image from a multispectral image by projecting the entire distribution of spectral values onto the line spanned by the eigenspace of the covariance matrix with largest eigenvalue, and then perhaps re-scaling the result to fit the dynamic range of the output device (printer, monitor, etc). The difference then, between PCA and weighted averaging is that the line onto which projection is chosen is selected ahead of time in the latter, whereas in the former it is determined by the global statistics of the particular image at hand. However, since both methods have a common geometric foundation, they share a common problem. To see this clearly consider the following argument. It is easy to see that the cosine of the angleθ between any diagonal vector in an n-dimensional vector space and any one of the coordinate axis is given by cos θ=1/{square root over (n)}. Hence as the dimension increases, diagonals tend to become orthogonal to the coordinate axes. Upon projecting the spectral measurements onto a fixed axis or a principal axis in photometric space, the contrast between adjacent pixels is always foreshortened, and it follows from the foregoing that this phenomenon becomes more severe as the dimensionality of the data increases. 
     Briefly, then, according to the present invention a method is presented for the treatment and visualization of local contrast in n-dimensional multispectral images, which directly applies to n-dimensional multisensor images as well. A 2×2 matrix called the contrast form is defined comprised of the first derivatives of the n-dimenional image function with respect to the image plane, and a local metric defined on n-dimensional photometric space. The largest eigenvector of this 2×2 contrast form encodes the inherent local contrast at each point on the image plane. It is shown how a scalar intensity function defined on n-dimensional photometric space is used to select a preferred orientation for this eigenvector at each image point in the n-dimensional image defining the contrast vector field for an n-dimensional image. A grey level visualization of local n-dimensional image contrast is produced by the greylevel image intensity function such that the sum of the square difference between the components of the gradient vector of this intensity function and the components of the contrast vector field is minimized across the image plane. This is achieved by solving the corresponding Euler-Lagrange equations for this variational problem. An m-dimensional image, 1&lt;m&lt;n, visualization of n-dimensional data is produced by an m-dimensional image function such that the sum of the square difference between the components of the contrast form of this m-dimensional image and the components of the contrast form for the n-dimensional image is minimized across the image plane. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The foregoing, and additional objects, features and advantages of the present invention will be apparent to those of skill in the art from the following detailed description of a preferred embodiment thereof, taken with the accompanying drawings, in which: 
     FIG. 1 shows an overview of the hardware system for performing the method of the present invention; 
     FIG. 2 shows a high-level Flow diagram of the method; 
     FIG. 3 shows a flow diagram for the computation of a contrast form; 
     FIG. 4 shows a flow diagram for creating a Contrast Vector Field; 
     FIG. 5 shows a flow diagram for a greylevel intensity function having an intensity gradient which optimally approximates the Contrast Vector Field; 
     FIG. 6 shows a flow diagram of a numerical procedure for performing the intensity function of FIG. 5; 
     FIG. 7 shows a flow diagram for producing an m-dimensional image that optimally approximates the Contrast Form for a given n-dimensional image; 
     FIG. 8 shows a pictorial of a projection of n-dimensional image data onto a line produced by PCA or averaging, thereby foreshortening local contrast in the image; 
     FIG. 9A shows an Ishihara color plate; 
     FIG. 9B shows an isointensity color image visualized in a greyscale representation using the method of the invention; and 
     FIG. 10 shows a greyscale visualization of a 12-band EOSAT image over Florida, as compared with PCA. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     By a multiband image, is meant a rectangle I⊂R 2  together with a spectral map s:I→P, where P denotes n-dimensional photometric space. It is assumed that P is given an “extended” RGB coordinate system, in which each band takes on values between 0 and 255. The extension to other coordinate systems is straightforward. In this context, a grayscale image is a multiband image I for which s maps all of I into the diagonal of P. Let P have an arbitrary Riemannian metric g, which allows the use of metrics well-adapted to computer vision. Multiband images are a mathematical representation of the data obtained by multispectral sensors shown as  10  in FIG.  1 . FIG. 2 shows a multiband image  20  being passed to the beginning point of our method from which the contrast form is derived  21  as described below. 
     For the remainder, let I be a multiband image with spectral map s, let P be a point in I, and v an arbitrary unit vector in R 2 . In analogy with the grayscale case, define the contrast in I at p in the direction of v as the speed of spectral variation within the image in that direction. To do so, consider the following construction. Let γ:[−ε,ε]→I be a curve defined on a small interval, such that γ(0)=P and γ′(0)=ν. The speed of spectral variation at p in the direction of v is given by the magnitude of the vector            s   *          (   v   )       ≡               t            (     s   ∘   γ     )          (   t   )                 t   =   0       ,                              
     as evaluated by the metric of P. Note that since the metric of P is not assumed to be constant, this magnitude must be evaluated with respect to the metric at s(p). In the language of differential geometry, the vector S * (ν) is called the pushforward of v by s, and its expression in local coordinates is given by 
     
       
           s   * (ν)= J   p ν  (1) 
       
     
     where J p  is the Jacobian matrix of s at the point p. Let g q  denote the matrix for g at qεP with respect to a coordinate system. Then the contrast in I at p in the direction of v is given by the quantity 
     
       
         ( J   p ν) t   g   s ( p )( J   p ν)=ν t ( J   p   t   g   s ( p ) J   p )ν  (2) 
       
     
     Let g p   s =(J p   t g s ( p )J p ), thus g p   s (ν)=ν t g p   s ν. It follows from equation (1) that in a coordinate system the components of g p   s  are given by                  (     g   p   s     )     oj     =       ∑     k   ,   l                (     g   p     )     kl            ∂     s   k         ∂     x   i                ∂     s   l         ∂     x   j                     (   3   )                                
     which is shown in  31  in FIG.  3 . Finally, define χ(p)=g p   s  to be the contrast form of I. Thus the contrast in I at p in the direction of v is given by χ(P)(ν). Once again, in the language of differential geometry, the differential form χ is called the pullback of g by s. From equation (3) χ(P) in  20  is a symmetric matrix with real entries, therefore its eigenvalues are both real and non-negative. Let λ p  denote the largest eigenvalue of χ(P)  21 . Define the absolute contrast in I at p to be equal to {square root over (λ p /n)} (where n is still the dimension of P), and the eigenspace of χ(P) corresponding to λ p  is the direction of maximal contrast at p. Note that this direction does not have a preferred orientation a priori which is why the procedure is performed in FIG.  4 . 
     It is important to see how these definitions reduce in the case where I is a grayscale image and P is given the standard Euclidean metric. Since s maps I to the diagonal of P, then s is of the form (i, i, ,i),              (             i   x          i   y                   i   x          i   y                   i   x          i   y             )           (   4   )                                
     where i:I→P is the intensity map, and s has n components. Using coordinates x, y on I and letting subscripts denote partial differentiation, the Jacobian matrix of s is and therefore              χ   =     n        (           i   x   2             i   x          i   y                   i   x          i   y             i   y   2           )               (   5   )                                
     The eigenvalues of this matrix can readily computed to be 0 and n|∇i| 2 . Thus λ p =|∇i |, and the direction of maximal contrast is the line spanned by ∇i Hence the standard notion of greyscale contrast is recovered. In this case, the direction of maximal contrast can be given the orientation determined by ∇i. For a general multiband image, there is no canonical orientation for the direction of maximal contrast; this constitutes the main difference between multiband and greyscale images, in terms of contrast. 
     It follows from the previous considerations that two images carry the same contrast information if and only if they have the same contrast form. An apropriate measure of contrast difference between two versions of the same image is, therefore, the L 2  norm of the difference of their contrast vector fields. This quantity may be called the integral contrast difference (ICD) between the images. Also consider the pointwise maximum of the squared difference of the contrast vector fields, which is called the maximum contrast difference (MCD). Note that the contrast form of a multiband image will, in general, have two non-zero eigenvalues. Since the contrast form of a grayscale image, shown above, always has one null eigenvalue, the contrast information in a multiband image cannot, in general, be exactly reproduced by a grayscale image. 
     The Contrast Vector Field 
     The definition of contrast given in the previous section is not quite sufficient to tackle the problem of reduction of spectral dimension with optimal contrast. This is so precisely because there is no canonical orientation for the direction of maximal contrast at a given point in a multiband image. This is remedied by introducing such an orientation in a well-defined manner (FIG.  4 ). 
     Let I(p)=dist(0,c(p)), where 0 is the point in P all of whose coordinates are zero, and dist is the geodesic distance function for the metric of P. The function I:I→R is the spectral intensity function  41 . Note that in the case of Euclidean photometric space we simply have I(p)={square root over (Σs i (p) 2 )}. In general, I induces an ordering on P , given by x&gt;y$ if I(x)&gt;I(y), for X,yεP . The function dist could in principle be replaced here by any function φ:P→R whose level sets are closed hypersurfaces which foliate P The spectral intensity defined using φ instead of dist would thus induce a different ordering of the set of colors. 
     Now, construct the contrast vector field V as follows. Let, once again, pεI . Pick an arbitrary non-zero vector w in the direction of maximal contrast at p  42 . If (∇ w I)(p)&gt;0  44  let Vp be the vector with the same direction and orientation as w and with length λ p ,  46 . Otherwise let Vp have orientation opposite that of w, and length λ p ,  45 . If P is given an arbitrary Riemannian metric, this procedure can be achieved by considering the sign of the Riemannian inner product between s * (w) and the outward unit normal to the geodesic sphere of radius I(p) at s(p) instead of the sign of (∇ w I)(p). If a different function φ is chosen, then geodesic sphere&#39; should be replaced by level set of φ′ in the previous sentence. 
     The contrast vetor field V constructed above, encodes the spectral contrast information of I, together with intensity information. It constitutes a bridge between the multiband and greyscale realms. 
     A numerical procedure is implemented for the solution of the problem, and experimental results are displayed, in the following section. 
     Mathematical Formulation 
     In light of the definitions made in the previous section, the statement of the problem is now the following: Given a multiband image s:I→P with contrast vector field V, find the greyscale image whose contrast vector field is closest to V. Equivalently, the function i:I→R is sought whose gradient is closest to V. 
     To find such a function, the equation ∇i=V needs to be solved. However, this equation will in general have no solution, since it follows that V need not be integrable. The new method proposes instead to find the function i for which the following functional is minimized  51 .                  ∫   ∫     I                   ∇   i     -   V          2             x             y             (   6   )                                
     The Euler-Lagrange equation for this functional can be easily found to be 
     
       
         Δ i =div V , on  I   (7) 
       
     
     and the natural Neumann-type boundary condition is 
     
       
         ∇ i·V=n·V , on ∂ I   (8) 
       
     
     where n is the outward unit normal to I  52 . 
     Note that the problems of foreshortening of local contrast due to a global method, such as PCA (FIG.  8 ), are minimized with respect to this local method. 
     Numerical Solution 
     A straightforward iteration scheme to solve equation 7 with boundary condition  8  is presented. All the derivatives needed for the calculation of V and divV, are computed numerically finite differences. 
     Let i pq  denote the value of i at the pixel with coordinates (p,q) in I. Let {overscore (i)} pq  be the average of the values of i over the four pixels neighboring (p,q) (not counting diagonal neighbors)  62 . Lastly, let (divV) pq  be the value of divV at (p,q), computed as described above  62 . Then the standard difference equation for 7 yields the iteration scheme            i   pq     t   +   1       =         i   _     pq     -         ɛ   2     4            (   divV   )     pq           ,                          
       63  where ε is the small displacement used to compute the derivatives by finite differences. 
     The boundary condition  8  translates into 
     
       
           i   p+1,q   −i   p−1,q =2 V   1 , and  (10) 
       
     
     on vertical and horizontal boundary segments, respectively  64 . 
     
       
           i   p,q+1   −i   p,q−1 =2 V   2 ,  (11) 
       
     
     The values for i 0  can be chosen arbitrarily, as the scheme  9  will converge for any choice. Choose i pq   0  to be the average value of the spectral bands at (p,q)  60 . A different choice of initial condition will, in general, yield a different grayscale image, whose contrast also matches that of the original multiband image; it will differ from our solution only by an overall shift in grayscale values. 
     Noisy Data 
     It may be the case that all bands of a multispectral image have comparable resolutions, but still each band has different noise characteristics. This may be due to a number of reasons: different technologies are used for sampling at different wavelengths, penetration of the atmosphere at different wavelengths is not uniform, cloud cover in a satellite image may introduce noise only in the visible range, but not in the infrared, etc. In some of these cases, noise characteristics of the sensor at each band may be known {\ it a priori}. Consider the nxn covariance matrix associated to the sensor is computed (or interpolated) at each point in n-dimensional photometric space, yielding a positive definite bilinear form which can be thought related to a Riemannian metric on photometric space (e.g., the metric coefficients are obtained by taking the inverse of the covariance matrix). This metric encodes the noise characteristics of the sensor in such a way that unit (in the Euclidean norm) tangent vectors in the direction of noisier bands will have shorter lengths than those in the direction of bands of higher fidelity. This metric g is used in equation (3). The overall effect is to have the higher fidelity bands contribute more to the grayscale composite than those which are known to be noisier. 
     A Variation On the Reduction Problem 
     The problem of reduction of spectral dimension with optimal contrast stated above is concerned with the transformation of a multiband image to a single-band image. In essence, an image was found with a one-dimensional photometric space whose contrast matched that of the original image as closely as possible. Now let P and P′ be photometric spaces of dimensions n and m, respectively, with n&gt;m. If s:I→P is a multiband image, it is natural to ask what is the image s′:I→P whose contrast form most closely matches that of s:I→P  72 . This is precisely the problem treated above when m=1. 
     In general, the goal is to maximize the agreement with both eigenvalues 
     
       
           u   i   ·u   j =χ ij , 1 ≦i,j ≦2.  (12) 
       
     
     of χ  71 . Thus find a solution u:I→P′ satisfying where the scalar product is given by the Riemannian metric on P . Once                  ∫   ∫     I            ∑     i   ,     j   =   1       2              (         u   i     ·     u   j       -     χ   ij       )     2     .               (   13   )                                
     again, this system need not have a solution, so a minimizer u for the functional  72  is found: 
     A computation shows that the Euler-Lagrange equations for 13 are 
      [2( u   1   ·u   1 −χ 11 ) u   1 +( u   1   ·u   2 −χ 12 ) u   2 ] 1 +[2( u   2   ·u   2 −χ 22 ) u   2 +( u   1   ·u   2 −χ 12 ) u   1 ] 2 =0. 
     These equations are not as easily tractable as equation  7 . 
     Experimental Results 
     The algorithm was applied to several color images and the output was compared with that obtained by converting the multiband image into grayscale by traditional methods, such as averaging the three color bands, or taking the square root of the sum of the squared color intensities, multiplied by a suitable constant. The shades of color were taken from Ishihara color plates (FIG. 9A) and the pseudo-isochromatic color plates used to test for color blindness. The term pseudo-isochromatic refers to images whose colors have practically indistinguishable intensity values. 
     FIG. 9B illustrates the grey-level intensity results obtained using the present algorithm, which were significantly better than those obtained by traditional methods, when applied to images with pseudo-isochromatic characteristics. The effect on images with high intrinsic contrast was not quite as striking, but the numerical results showed marked improvement as well. 
     As an example of our current multispectral work FIG. 10 shows a comparison of grey level visualization of a 12-band EOSAT multispectral aerial image over a portion of Florida in accordance with the invention, compared with PCA. The greylevel visualization image on the left was produced by a standard method of projecting $12$-band photometric values onto the principal component axis. The greylevel visualization image on the right was produced by the new method which optimally preserves local multispectral image contrast in a greylevel visualization. Some subimage portions have been enlarged in FIG. 10 to more clearly show the vast improvement in local contrast information that is represented by our new visualization technique. Notice the additional detail supplied to an image analyst for identifying the airport runways in the lower subimage and the islands that are identified in the upper subimage by our technique but not adequately represented using principal components analysis. 
     Conclusion 
     The analytic definition of contrast applicable to a general multiband image showed how the present definition agrees with the standard one in the case of a grayscale image. In a multiband image, contrast does not have a canonical orientation, and therefore a partial ordering on the set of colors must be introduced. Using a geometric ordering, a well-defined orientation is assigned to the direction of maximal contrast in a multiband image, and thence a vector field is produced with content comparable to that of the gradient of an intensity function. The problem of reduction of spectral dimension with optimal contrast was stated in terms of this vector field, and a mathematical formulation was obtained. Numerical methods allowed production of an algorithm to implement the solution by means of a convergent iteration scheme. Experimental results showed that the algorithm does indeed produce a solution to the problem, and the formulation is thus confirmed a fortiori.