# Patent

## Title
Color degradation compensation method

## Abstract

A color degradation compensation method includes the steps as follows. Two images are captured by an image capturing device, wherein the two images have an overlapped area. A semi-Gaussian model is constructed. At least one position in the overlapped area is selected and color values of a plurality of points in the position on each of the two images are read, wherein the points of each image are corresponded to the same position in the overlapped area. A degradation standard deviation of the two color values is calculated by the semi-Gaussian model. The color values of the two images are calibrated to compensated color values through the semi-Gaussian model again in accordance with the degradation standard deviation.

## Background
RELATED APPLICATIONS
The application claims priority to Taiwan Application Serial Number 102136795, filed on Oct. 11, 2013, which is herein incorporated by reference.
BACKGROUND
1. Technical Field
The present disclosure relates to a color degradation compensation method, especially relates to a color degradation compensation method for a microscope image.
2. Description of Related Art
An image capturing device such as a microscope, a digital camera or a digital recorder essentially includes an optical lens assembly and an analog/digital converter (ex. CMOS or CCD senor). When a light is irradiated to an object, the light emitted from the object is captured by the image capturing device, and is transformed by the analog/digital converter so as to form a digital image readable by an electronic device. The light irradiated to the object is usually a white light, which is composed of several kinds of color lights. In a color system, three primary colors red, green and blue are utilized for generating different colors. However, different color lights have different optical characteristics such as wavelength or refractive index, etc. When different color lights pass through the optical lens assembly, chromatic dispersion will be occurred due to different focusing of each of the color lights, and the chromatic dispersion will form a chromatic aberration (color degradation) of the image. The chromatic aberration of the image will lead to obvious color shift between the edge area and the center area of the image. For example, a purple fringe occurred on the digital camera image; or a color shift between an edge and a center of the microscope image.
For solving the chromatic aberration of the image, conventionally, a hardware calibrating method or a software calibrating method is proposed.
In the hardware calibrating method, physical parameters such as curve radius, distance and shape of each lens element are modified for reducing the chromatic aberration. In the software calibrating method, an image processing procedure is utilized for calibrating the color values of each point of the image for reducing the chromatic aberration.
In the aforementioned calibrating methods, the hardware calibrating method requires high precision adjustments on each lens element of the optical lens assembly, thus a complicated process is produced, and a manufacturing cost is high. In the software calibrating method, although several image calibration software have been provided, however, different algorithms of each of the image calibration software leads to different calibrating effect.
SUMMARY
According to one aspect of the present disclosure, a color degradation compensation method is provided. The color degradation compensation method includes the steps as follows. Two images are captured by an image capturing device, wherein the two images have an overlapped area. A calculating procedure is constructed. At least one position in the overlapped area is selected and color values of a plurality of points in the position on each of the two images are read, wherein the points of each image are corresponded to the same position in the overlapped area. A ratio of the two color values is calculated. A degradation standard deviation of the two color values is calculated by the calculating procedure. The color values of the two images are calibrated to compensated color values through the calculating procedure in accordance with the degradation standard deviation.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the invention as claimed.



BRIEF DESCRIPTION OF THE DRAWINGS
The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
FIG. 1 is a flow chart showing a color degradation compensation method according to one embodiment of the present disclosure;
FIG. 2 is a schematic view showing an application of the color degradation compensation method of FIG. 1;
FIG. 3 shows two adjacent images (a) and (b) captured by the microscope without applying the color degradation compensation method of the present disclosure;
FIG. 4 shows the image (a) and the image (b) calibrated by the color degradation compensation method; and
FIG. 5 is a comparison of the image (a) and the image (b) before and after applying the color degradation compensation method of the present disclosure.



DETAILED DESCRIPTION
Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
The present disclosure provides a color degradation compensation method for an image. Two images are captured by an image capturing device, wherein the two images have an overlapped area. Points of each image are selected, wherein the points are corresponded to the same position in the overlapped area, then color values of the points on each of the images are read. A ratio of the two colors is calculated, and a semi-Gaussian model is applied to obtain a degradation standard deviation of each color value. The semi-Gaussian model is applied again, and compensated color values of the two images can be obtained. The color values of the two images can be calibrated to correct color values in accordance with the degradation standard deviation of each color value.
FIG. 1 is a flow chart showing a color degradation compensation method according to one embodiment of the present disclosure. The color degradation compensation method is applied on images captured b an image capturing device. The color degradation compensation method includes the following steps:
S101, two images are captured by an image capturing device;
S102, a calculating procedure is constructed, wherein the calculating procedure can be a semi-Gaussian model;
S103, at least one position in the overlapped area is selected, and color values of the points on each of the images are read;
S104, a ratio of two color values of the two images is calculated;
S105, a degradation standard division of the two color values is calculated by the semi-Gaussian model; and
S106, the color values of the two images are calibrated to compensated color values by the semi-Gaussian model in accordance with the degradation standard division.
In S101, the two images have an overlapped area, and the image capturing device can be a microscope, a digital camera, a digital recorder or a scanner. Moreover, the two images can be two adjacent images from one object or two adjacent images from any two objects. In one example of this embodiment, the color degradation compensation method of the present disclosure is especially suitable for the images captured by a microscope.
In S103, the points are corresponded to the same position in the overlapped area. Moreover, the color degradation compensation method can be applied to various color systems. According to an example, a color system utilizes three primary colors red, green and blue (RGB system) can be applied. In the RGB system, color values from 0 to 255 are used for representing different colors, and each color can be recorded as 8 bit. Therefore, each color has 256 brightness levels, and multiplication of the three colors can represent 167777216 brightness levels, which is called 24 bit true color. According to another example, a CMYK system can be applied. In the CMYK system, cyan, magenta, yellow and black are four basic colors. Each color in the CMYK system can be represented by color values 0 to 1. The color degradation compensation method of the present disclosure can also be applied to other color system, which is not limited to the foregoing color systems.
For better understanding the color degradation compensation method of the present disclosure, a semi-Gaussian model is used for descripting the color degradation compensation method of the present disclosure.
First, assume that a color degradation of an image can be expressed as a semi-Gaussian model. The semi-Gaussian model can be expanded as follows:




  
    
      
        
          Gau
          ⁡
          
            (
            
              X
              ,
              σ
            
            )
          
        
        =
        
          A
          ⁢
          
            
          
          ⁢
          
            exp
            ⁡
            
              (
              
                -
                
                  
                    
                      
                      
                        X
                        -
                        C
                      
                      
                    
                    2
                  
                  
                    2
                    ⁢
                    
                      σ
                      2
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        1
        )
      
    
  




where X is a coordinate value of any points in the overlapped area; A is a maximum color value, referred to a white color; C is a coordinate value of the center point of the image; and ∥X-C∥ is a distance between X and C. When X is located at C, Gau(X, σ) is equal to A.

The aforementioned formula shows that the color degradation between center area and edge area of art image.
FIG. 2 is a schematic view showing an application of the color degradation compensation method of FIG. 1. In FIG. 2, the semi-Gaussian model is applied to two images I1 and I2. The two images I1 and I2 have an overlapped area S. C1 and C2 are the coordinate values of center points of images I1 and I2 respectively. X1i and X2i are coordinate values of any points of the same position (overlapped points) corresponded to images I1 and I2 in the overlapped area S. A distance between X1i and C1 can be not equal to a distance between X2i and C2. O1i and O2i are the color values of the points X1i and X2i on the images I1 and I2 respectively. O1iR·O1iG and O1iB is color value of red color portion, green color portion and blue color portion of O1i, respectively. A correlation between images I1 and I2 can be expanded as follows:




  
    
      
        
          
            
              
                
                  
                    
                      ∏
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        O
                        
                          1
                          ⁢
                          i
                        
                        R
                      
                      
                        O
                        
                          2
                          ⁢
                          i
                        
                        R
                      
                    
                  
                  =
                  
                  ⁢
                  
                    
                      ∏
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        Gau
                        ⁡
                        
                          (
                          
                            
                              X
                              
                                1
                                ⁢
                                i
                              
                            
                            ,
                            
                              σ
                              R
                            
                          
                          )
                        
                      
                      
                        Gau
                        ⁡
                        
                          (
                          
                            
                              X
                              
                                2
                                ⁢
                                i
                              
                            
                            ,
                            
                              σ
                              R
                            
                          
                          )
                        
                      
                    
                  
                
              
            
            
              
                
                  =
                  
                  ⁢
                  
                    exp
                    (
                    
                      -
                      
                        
                          
                            
                              ∑
                              
                                i
                                =
                                1
                              
                              N
                            
                            ⁢
                            
                              
                                
                                
                                  
                                    X
                                    
                                      1
                                      ⁢
                                      i
                                    
                                  
                                  -
                                  
                                    C
                                    i
                                  
                                
                                
                              
                              2
                            
                          
                          -
                          
                            
                              ∑
                              
                                i
                                =
                                1
                              
                              N
                            
                            ⁢
                            
                              
                                
                                
                                  
                                    X
                                    
                                      2
                                      ⁢
                                      i
                                    
                                  
                                  -
                                  
                                    C
                                    i
                                  
                                
                                
                              
                              2
                            
                          
                        
                        
                          2
                          ⁢
                          
                            σ
                            R
                            2
                          
                        
                      
                    
                    )
                  
                
              
            
          
          ⁢
          
            

          
          ⁢
          
            
          
          ⁢
          
            
              And
              ⁢
              
                
              
              ⁢
              then
            
            ,
          
        
        ⁢
        
          
        
      
    
    
      
        
          
            
              (
              2
              )
            
          
        
        
          
            
              (
              3
              )
            
          
        
      
    
  
  
    
      
        
          σ
          R
        
        =
        
          
            
              
                -
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    N
                  
                  ⁢
                  
                    
                      
                      
                        
                          X
                          
                            1
                            ⁢
                            i
                          
                        
                        -
                        
                          C
                          1
                        
                      
                      
                    
                    2
                  
                
              
              +
              
                
                  ∑
                  
                    i
                    =
                    1
                  
                  N
                
                ⁢
                
                  
                    
                    
                      
                        X
                        
                          2
                          ⁢
                          i
                        
                      
                      -
                      
                        C
                        2
                      
                    
                    
                  
                  2
                
              
            
            
              2
              ·
              
                log
                ⁡
                
                  (
                  
                    
                      ∏
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        O
                        
                          1
                          ⁢
                          i
                        
                        R
                      
                      
                        O
                        
                          2
                          ⁢
                          i
                        
                        R
                      
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        4
        )
      
    
  




where N is a number of all points in the overlapped area S of the two images I1 and I2; σR is a degradation standard division of the red color portion. The degradation standard division of the other color portions can also be expanded as follows:





  
    
      
        
          
            
              σ
              G
            
            =
            
              
                
                  
                    -
                    
                      
                        ∑
                        
                          i
                          =
                          1
                        
                        N
                      
                      ⁢
                      
                        
                          
                          
                            
                              X
                              
                                1
                                ⁢
                                i
                              
                            
                            -
                            
                              C
                              1
                            
                          
                          
                        
                        2
                      
                    
                  
                  +
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              2
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            2
                          
                        
                        
                      
                      2
                    
                  
                
                
                  2
                  ·
                  
                    log
                    ⁡
                    
                      (
                      
                        
                          ∏
                          
                            i
                            =
                            1
                          
                          N
                        
                        ⁢
                        
                          
                        
                        ⁢
                        
                          
                            O
                            
                              1
                              ⁢
                              i
                            
                            G
                          
                          
                            O
                            
                              2
                              ⁢
                              i
                            
                            G
                          
                        
                      
                      )
                    
                  
                
              
            
          
          ⁢
          
            

          
          ⁢
          
            And
            ,
          
        
        ⁢
        
          
        
      
    
    
      
        (
        5
        )
      
    
  
  
    
      
        
          σ
          R
        
        =
        
          
            
              
                -
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    N
                  
                  ⁢
                  
                    
                      
                      
                        
                          X
                          
                            1
                            ⁢
                            i
                          
                        
                        -
                        
                          C
                          1
                        
                      
                      
                    
                    2
                  
                
              
              +
              
                
                  ∑
                  
                    i
                    =
                    1
                  
                  N
                
                ⁢
                
                  
                    
                    
                      
                        X
                        
                          2
                          ⁢
                          i
                        
                      
                      -
                      
                        C
                        2
                      
                    
                    
                  
                  2
                
              
            
            
              2
              ·
              
                log
                ⁡
                
                  (
                  
                    
                      ∏
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        O
                        
                          1
                          ⁢
                          i
                        
                        R
                      
                      
                        O
                        
                          2
                          ⁢
                          i
                        
                        R
                      
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        6
        )
      
    
  




For reducing the influence of noise, all points corresponded to all positions in the overlapped area S are used for calculating σR·σG and σB.
Then, according to σR·σG and σB, the semi-Gaussian model is applied again, and compensated color values of all points (including non-overlapped area) on the image Ii (i=1, 2) can be calibrated. Therefore, the color degradation can be eliminated by introducing the degradation standard divisions σR·σG and σB to the semi-Gaussian model. The calculation can be expanded as follows:




  
    
      
        
          
            O
            ^
          
          ij
          R
        
        =
        
          
            O
            ij
            R
          
          /
          
            exp
            ⁡
            
              (
              
                -
                
                  
                    
                      
                      
                        
                          Y
                          ij
                        
                        -
                        
                          C
                          i
                        
                      
                      
                    
                    2
                  
                  
                    2
                    ⁢
                    
                      
                        (
                        
                          σ
                          R
                        
                        )
                      
                      2
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        7
        )
      
    
  
  
    
      
        
          
            O
            ^
          
          ij
          G
        
        =
        
          
            O
            ij
            G
          
          /
          
            exp
            ⁡
            
              (
              
                -
                
                  
                    
                      
                      
                        
                          Y
                          ij
                        
                        -
                        
                          C
                          i
                        
                      
                      
                    
                    2
                  
                  
                    2
                    ⁢
                    
                      
                        (
                        
                          σ
                          G
                        
                        )
                      
                      2
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        8
        )
      
    
  
  
    
      
        
          
            O
            ^
          
          ij
          B
        
        =
        
          
            O
            ij
            B
          
          /
          
            exp
            ⁡
            
              (
              
                -
                
                  
                    
                      
                      
                        
                          Y
                          ij
                        
                        -
                        
                          C
                          i
                        
                      
                      
                    
                    2
                  
                  
                    2
                    ⁢
                    
                      
                        (
                        
                          σ
                          B
                        
                        )
                      
                      2
                    
                  
                
              
              )
            
          
        
      
    
    
      
        (
        9
        )
      
    
  




where OijR is a color value of red color portion of the point Yij on the image Ii (before calibration); ÔijR is an compensated color value of the red color portion calibrated from OijR in accordance with σR; and j is an points on image Ii ( including non-overlapped area) Similarly, the compensated color values of the green color portion and the blue color portion can also be calibrated by the same method. Finally, after combining the compensated red color portion, green color portion and blue color portion, two full-colored images with compensated color values can be obtained.

From above, a semi-Gaussian model for descripting color degradation of an mage is constructed. By capturing two images having an overlapped area S from an image capturing device, the semi-Gaussian model is used for obtaining the degradation standard division of the colors in accordance with the ratio of the two color values of each image. The semi-Gaussian model is also used for obtaining the compensated color value of the two images in accordance with the degradation standard division. Therefore, correct color values of the two images can be obtained.
The color degradation compensation method of the present disclosure can easily be programmed to computer software, and can be applied on an image capturing device combined with a computer system. It is not necessary to perform complicated adjustment on the hardware of the image capturing device, by an image processing software utilizing color degradation method of the present disclosure; the color degradation of the two images can be compensated easily and efficiently.
Please refer to the attached files. FIG. 3 to FIG. 5 is comparison pictures of two images applying and without applying the color degradation compensation method of the present disclosure. In FIG. 3, an image (a) and an image (b) are two adjacent images captured by the microscope without applying the color degradation compensation method. It is clearly shown that both the image (a) and the image (b) have serious color degradation. The image (a) is degraded to blue color; and the image (b) is degraded to red color.
In FIG. 4, the image (a) and the image (b) are calibrated by the color degradation compensation method. In FIG. 4, it is shown that the color degradation of the two images (a) and (b) are effectively compensated. Correct color of the images (a) and (b) are obtained. In FIG. 5, a comparison of the image (a) and the image (b) before and after applying the color degradation compensation method of the present disclosure is showed respectively, it is obvious that the image (a) and the image (b) have great improvement on the color degradation after applying the color degradation compensation method of the present disclosure.
Although the present invention has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.

## Claims

1. A color degradation compensation method for an image, comprising:
capturing two images by only an image capturing device, wherein the two images have an overlapped area;
constructing, by a processor, a semi-Gaussian model, wherein the semi-Gaussian model is represent as:





  
    
      Gau
      ⁡
      
        (
        
          X
          ,
          σ
        
        )
      
    
    =
    
      A
      ⁢
      
        
      
      ⁢
      
        exp
        ⁡
        
          (
          
            -
            
              
                
                  
                  
                    X
                    -
                    C
                  
                  
                
                2
              
              
                2
                ⁢
                
                  σ
                  2
                
              
            
          
          )
        
      
    
  
  ;



where X is a coordinate value of any points in the overlapped area; A is a maximum color value, referred to a white color; C is a coordinate value of the center point of the image; and ∥X−C∥ is a distance between X and C;
applying, by a processor, the semi-Gaussian model to the two images, wherein a correlation between the two images is represented as:





  
    
      
        
          
            
              ∏
              
                i
                =
                1
              
              N
            
            ⁢
            
              
                O
                
                  1
                  ⁢
                  
                    
                  
                  ⁢
                  i
                
                R
              
              
                O
                
                  2
                  ⁢
                  
                    
                  
                  ⁢
                  i
                
                R
              
            
          
          =
          
          ⁢
          
            
              ∏
              
                i
                =
                1
              
              N
            
            ⁢
            
              
                Gau
                ⁡
                
                  (
                  
                    
                      X
                      
                        1
                        ⁢
                        
                          
                        
                        ⁢
                        i
                      
                    
                    ,
                    
                      σ
                      R
                    
                  
                  )
                
              
              
                Gau
                ⁡
                
                  (
                  
                    
                      X
                      
                        2
                        ⁢
                        
                          
                        
                        ⁢
                        i
                      
                    
                    ,
                    
                      σ
                      R
                    
                  
                  )
                
              
            
          
        
        ;
        and
      
    
  
  
    
      
        
          =
          
          ⁢
          
            exp
            (
            
              -
              
                
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              1
                              ⁢
                              
                                
                              
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            1
                          
                        
                        
                      
                      2
                    
                  
                  -
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              2
                              ⁢
                              
                                
                              
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            2
                          
                        
                        
                      
                      2
                    
                  
                
                
                  2
                  ⁢
                  
                    σ
                    R
                    2
                  
                
              
            
            )
          
        
        ;
      
    
  



where C1 and C2 are the coordinate values of center points of the two images respectively: X1i and X2i are coordinate values of any points of the same position (overlapped points) corresponded to the two images respectively in the overlapped area S; O1i and O2i are the color values of the points X1i and X2i on the two images respectively; and O1iR and O2iR are color values of red color portion of O1i and O2i respectively;
calculating, by a processor, a degradation standard division of a red color portion, a degradation standard division of a green color portion and a degradation standard division of a blue color portion respectively, wherein the degradation standard division of each color portion is represented as:





  
    
      
        
          
            σ
            R
          
          =
          
          ⁢
          
            
              
                
                  -
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              1
                              ⁢
                              
                                
                              
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            1
                          
                        
                        
                      
                      2
                    
                  
                
                +
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    N
                  
                  ⁢
                  
                    
                      
                      
                        
                          X
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                        
                        -
                        
                          C
                          2
                        
                      
                      
                    
                    2
                  
                
              
              
                2
                ·
                
                  log
                  ⁡
                  
                    (
                    
                      
                        ∏
                        
                          i
                          =
                          1
                        
                        N
                      
                      ⁢
                      
                        
                          O
                          
                            1
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          R
                        
                        
                          O
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          R
                        
                      
                    
                    )
                  
                
              
            
          
        
        ;
      
    
  
  
    
      
        
          
            σ
            G
          
          =
          
          ⁢
          
            
              
                
                  -
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              1
                              ⁢
                              
                                
                              
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            1
                          
                        
                        
                      
                      2
                    
                  
                
                +
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    N
                  
                  ⁢
                  
                    
                      
                      
                        
                          X
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                        
                        -
                        
                          C
                          2
                        
                      
                      
                    
                    2
                  
                
              
              
                2
                ·
                
                  log
                  ⁡
                  
                    (
                    
                      
                        ∏
                        
                          i
                          =
                          1
                        
                        N
                      
                      ⁢
                      
                        
                          O
                          
                            1
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          G
                        
                        
                          O
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          G
                        
                      
                    
                    )
                  
                
              
            
          
        
        ;
        and
      
    
  
  
    
      
        
          
            σ
            B
          
          =
          
          ⁢
          
            
              
                
                  -
                  
                    
                      ∑
                      
                        i
                        =
                        1
                      
                      N
                    
                    ⁢
                    
                      
                        
                        
                          
                            X
                            
                              1
                              ⁢
                              
                                
                              
                              ⁢
                              i
                            
                          
                          -
                          
                            C
                            1
                          
                        
                        
                      
                      2
                    
                  
                
                +
                
                  
                    ∑
                    
                      i
                      =
                      1
                    
                    N
                  
                  ⁢
                  
                    
                      
                      
                        
                          X
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                        
                        -
                        
                          C
                          2
                        
                      
                      
                    
                    2
                  
                
              
              
                2
                ·
                
                  log
                  ⁡
                  
                    (
                    
                      
                        ∏
                        
                          i
                          =
                          1
                        
                        N
                      
                      ⁢
                      
                        
                          O
                          
                            1
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          B
                        
                        
                          O
                          
                            2
                            ⁢
                            
                              
                            
                            ⁢
                            i
                          
                          B
                        
                      
                    
                    )
                  
                
              
            
          
        
        ;
      
    
  



where O1iR, O1iG and O1iB are color values of the red color portion, the green color portion and the blue color portion of O1i respectively; O2iR, O2iG and O2iB are color values of the red color portion, the green color portion and the blue color portion of O2i respectively; σR,σG and σB are the degradation standard divisions of each color;
eliminating, by a processor, color degradation of all points on the overlapped area and a non-overlapped area of each of the two images by applying σR, σG and σB to the semi-Gaussian model again, wherein compensated color values is generated by the following relationship:





  
    
      
        
          
            
              O
              ^
            
            
              i
              ⁢
              
                
              
              ⁢
              j
            
            R
          
          =
          
          ⁢
          
            
              O
              
                i
                ⁢
                
                  
                
                ⁢
                j
              
              R
            
            /
            
              exp
              ⁡
              
                (
                
                  -
                  
                    
                      
                        
                        
                          
                            Y
                            
                              i
                              ⁢
                              
                                
                              
                              ⁢
                              j
                            
                          
                          -
                          
                            C
                            i
                          
                        
                        
                      
                      2
                    
                    
                      2
                      ⁢
                      
                        
                          (
                          
                            σ
                            R
                          
                          )
                        
                        2
                      
                    
                  
                
                )
              
            
          
        
        ;
      
    
  
  
    
      
        
          
            
              O
              ^
            
            
              i
              ⁢
              
                
              
              ⁢
              j
            
            G
          
          =
          
          ⁢
          
            
              O
              
                i
                ⁢
                
                  
                
                ⁢
                j
              
              G
            
            /
            
              exp
              ⁡
              
                (
                
                  -
                  
                    
                      
                        
                        
                          
                            Y
                            
                              i
                              ⁢
                              
                                
                              
                              ⁢
                              j
                            
                          
                          -
                          
                            C
                            i
                          
                        
                        
                      
                      2
                    
                    
                      2
                      ⁢
                      
                        
                          (
                          
                            σ
                            G
                          
                          )
                        
                        2
                      
                    
                  
                
                )
              
            
          
        
        ;
        and
      
    
  
  
    
      
        
          
            
              O
              ^
            
            
              i
              ⁢
              
                
              
              ⁢
              j
            
            B
          
          =
          
          ⁢
          
            
              O
              
                i
                ⁢
                
                  
                
                ⁢
                j
              
              B
            
            /
            
              exp
              ⁡
              
                (
                
                  -
                  
                    
                      
                        
                        
                          
                            Y
                            
                              i
                              ⁢
                              
                                
                              
                              ⁢
                              j
                            
                          
                          -
                          
                            C
                            i
                          
                        
                        
                      
                      2
                    
                    
                      2
                      ⁢
                      
                        
                          (
                          
                            σ
                            B
                          
                          )
                        
                        2
                      
                    
                  
                
                )
              
            
          
        
        ;
      
    
  



where OijR, OijG and OijB are color values of the red color portion, the green color portion and the blue color portion of the point Yij on the image II (before calibration); ÔijR, ÔijG and ÔijB are compensated color values of the red color portion, the green color portion and the blue color portion calibrated from OijR, OijG and OijB in accordance with σR, σG and σB (after calibration); j is any points on the image Ii (including the overlapped area and the non-overlapped area); and N is a number of all points in the overlapped area S of the two images I1 and I2; and
compositing ÔijR, ÔijG, and ÔijB and obtaining two compensated images I1 and I2.

2. The color degradation compensation method of claim 1, wherein the color values of the positions in the overlapped area and outside of the overlapped area of the two images are calibrated to the compensated color values.

3. The color degradation compensation method of claim 1, wherein the color values are corresponded to a red color, a green color or a blue color.

4. The color degradation compensation method of claim 1, wherein the color values corresponded to a cyan color, a magenta color, a yellow color or a black color.

5. The color degradation compensation method of claim 1, wherein the image capturing device is a microscope.

6. The color degradation compensation method of claim 1, wherein the image capturing device is a digital camera or a digital recorder.

7. The color degradation compensation method of claim 1, wherein a distance from the points corresponded to the same position in the overlapped area on each of the two images to the center of each of the two images are different.

8. The color degradation compensation method of claim 1, wherein the two images are two adjacent images from one object or two adjacent images from any two objects.