# Patent

## Title
Method for transmitting spectrum information

## Abstract

A method for transmitting spectrum information is provided. The method includes: sampling a first video of a scene by a first sampling device and sampling a spectrum video of a sampling point in the scene by a second sampling device, and processing the spectrum video to obtain a spectrum information of the sampling point; calculating estimated transmission ratio coefficients of the spectrum video according to color integral curves of the first sampling device; estimating a location of the sampling point in each frame of the first video; and transmitting the spectrum information of the sampling point to a plurality of scene points in the first video according to the estimated transmission ratio coefficients and the location of the sampling point in each frame of the spectrum video through a trilateral filtering algorithm.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
The present application claims priority from Chinese Patent Application No. 201310182438.1 filed with State Intellectual Property Office, P.R.C. on May 16, 2013, the disclosure of which is hereby incorporated herein by reference.
FIELD
Embodiments of the present disclosure generally relate to an image processing technology field, more particularly, to a method for transmitting spectrum information.
BACKGROUND OF THE INVENTION
Although the imaging technology based on color channels meets the imaging requirements of the human vision system, spectrum information of the scene is lost during the integrating process of the scene light spectrum in the camera sensors. The lost information is the key property for reflecting the physical characteristics of the light source and the scene, and thus it is important to solve the problem of sampling the spectrum information of the scene. Starting from this, many researches on sampling the spectrum information have been performed.
The spectrum technology and the optical imaging technology are two widely used technologies. The spectrum technology mainly adopts the physical characteristics of the light (such as the dispersion and the diffraction) and the band-pass characteristics of the filter for the spectrum domain to transform a single beam of light into a plurality of light, each of which has a single spectrum. After the light is separated in the spectrum dimension, the light intensities in different spectral bands can be detected independently by the light sensor, such that the spectrum information of the detected light can be sampled. On the other hand, with the rapid development of the sensor technology, the imaging technology based on the CCD (Charge Coupled Device) electric coupler becomes mature gradually. The CCD electric coupler can directly capture the light and transform the optical signal to the analog current signal, and the image can be obtained conveniently after amplifying and analog-to-digital converting the analog current signal. Recently, researchers combine the imaging technology with the spectrum technology to sample the scene both in the spatial dimension and in the spectral dimension, thus prompting the development of the hyper spectral sampling based on the imaging technology.
The color (red, green and blue) channel intensities of each pixel in the conventional image are replaced with a vector having intensity information of the light at different wavelengths, and thus the hyper spectrum image of the scene with a high resolution is a data block. In addition of the two spatial dimensions x and y, a spectrum dimension A is added into the spectrum data of the scene. With reference to the fact that the spectral resolution of the scene is determined by the number and continuity of the spectrum channels, the related sampling methods are classified into the multi-spectrum sampling and the hyper spectrum sampling (generally, the multi-spectrum sampling covers the infrared region and has a small number of narrow spectrum channels, however, the hyper spectrum sampling refers to the continuous and multichannel sampling in the visible range). Recently, the hyper spectrum imaging of the scene at a single time cannot meet the requirements of the research and application, and thus the hyper spectrum video sampling technology with a high resolution has been developed continuously. The sampled data expended from the spatial dimension to the spectrum dimension, and further to the time dimension. In other words, in addition of the spatial dimensions x, y and the spectrum dimension λ, a time dimension t is added into the spectrum data. Thus, the spectrum data of the dynamic scene can be captured and recorded in real time.
Due to a high dimension of the hyper spectrum video with the high resolution itself, it is hard to directly capture the hyper spectrum video with the high resolution. Thus, there is a need to propose a method for sampling the spectrum video information with the high resolution.
BRIEF SUMMARY OF THE INVENTION
Embodiments of the present disclosure seek to solve at least one of the problems existing in the prior art to at least some extent.
For this, an objective of the present disclosure is to provide a method for transmitting spectrum information.
According to embodiments of the present disclosure, a method for transmitting spectrum information is provided.
The method includes: sampling a first video of a scene by a first sampling device and sampling a spectrum video of a sampling point in the scene by a second sampling device, and processing the spectrum video to obtain a spectrum information of the sampling point; calculating estimated transmission ratio coefficients of the spectrum video according to color integral curves of the first sampling device; estimating a location of the sampling point in each frame of the first video; and transmitting the spectrum information of the sampling point to a plurality of scene points in the first video according to the estimated transmission ratio coefficients and the location of the sampling point in each frame of the spectrum video through a trilateral filtering algorithm.
In some embodiments, transmitting the spectrum information of the sampling point to a plurality of scene points in the first video includes: transmitting the spectrum information in a spatial domain, a time domain and a color domain respectively.
In some embodiments, the method further includes setting parameters for filters used in the trilateral filtering algorithm.
In some embodiments, the parameters include a spatial distance, a time difference and a color difference.
In some embodiments, the estimated transmission ratio coefficients include an estimated transmission ratio coefficient in a spectrum red-channel, an estimated transmission ratio coefficient in a spectrum green-channel and an estimated transmission ratio coefficient in a spectrum blue-channel.
In some embodiments, the first sampling device is a RGB camera and the second sampling device is a sampling device based on masking-out and dispersion.
In some embodiments, the first video has a high spatial resolution and a low spectral resolution, and the spectrum video has a low spatial resolution and a high spectral resolution.
In some embodiments, the estimated transmission ratio coefficients are calculated according to following formulas:



  
    
      w
      λ
      r
    
    =
    
      
        response
        λ
        r
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      g
    
    =
    
      
        response
        λ
        g
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      b
    
    =
    
      
        response
        λ
        b
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  



where, responseλr is a strength value of a red integral curve of the RGB camera at a spectral wavelength λ, responseλg is a strength value of a green integral curve of the RGB camera at the spectral wavelength λ, responseλb is a strength value of a blue integral curve of the RGB camera at the spectral wavelength λ, wλr is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum red-channel, wλg is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum green-channel, and wλb is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum blue-channel.

With the method according to embodiments of the present disclosure, the spectrum information of the sampling point is transmitted to the scene with a high resolution through the trilateral filtering algorithm, thus obtaining a video with a high spatial resolution and a high spectral resolution.
Additional aspects and advantages of embodiments of present disclosure will be given in part in the following descriptions, become apparent in part from the following descriptions, or be learned from the practice of the embodiments of the present disclosure.



BRIEF DESCRIPTION OF THE DRAWINGS
These and other aspects and advantages of embodiments of the present disclosure will become apparent and more readily appreciated from the following descriptions made with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for transmitting spectrum information according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of estimated transmission ratio coefficients of the spectrum video according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a spatial domain transmission according to an embodiment of the present disclosure; and
FIG. 4 is a schematic diagram of a time domain transmission according to an embodiment of the present disclosure;



DETAILED DESCRIPTION
Reference will be made in detail to embodiments of the present disclosure. The same or similar elements and the elements having same or similar functions are denoted by like reference numerals throughout the descriptions. The embodiments described herein with reference to drawings are explanatory, illustrative, and used to generally understand the present disclosure. The embodiments shall not be construed to limit the present disclosure.
FIG. 1 is a flow chart of a method for transmitting spectrum information of an embodiment of the present disclosure. As shown in FIG. 1, the method for transmitting spectrum information includes the following steps.
At step 101, a first video of a scene is sampled by a first sampling device and a spectrum video of a sampling point in the scene is sampled by a second sampling device, and then the spectrum video is further processed to obtain spectrum information of the sampling point.
Specifically, in some embodiment of the present disclosure, the first video of the scene is sampled by a RGB camera and has a high spatial resolution (such as 1024×768) and a low spectral resolution (such as only RGB channels). The spectrum video of the sampling point in the scene is sampled by a sampling device based on masking-out and dispersion and has a low spatial resolution (such as less than one thousand) and a high spectral resolution (such as 61 channels).
In one embodiment of the present disclosure, a scene light of the first video of the scene is gathered and transmitted by an imaging objective device to form a transmitted light, and the scene light is spatially sampled by a sampling mask device. The transmitted light is illuminated on a prism beam-splitting device behind the imaging subjective device to be dispersed into a plurality of spectrums having different wavelengths, and then the plurality of spectrums are imaged by a camera behind the prism beam-splitting device to form the image to be calibrated. Subsequently, the sampling point of the image are calibrated and corrected by a spectrum sampling and calibrating device to obtain the spectrum information of the sampling point in the first video of the scene. Then, the spectrum information of the sampling point is calibrated in the spectrum video of the scene to achieve the calibration of the spectrum information of the sampling point.
At step 102, estimated transmission ratio coefficients of the spectrum video are calculated according to color integral curves of the first sampling device. The estimated transmission ratio coefficients include an estimated transmission ratio coefficient in a spectrum red-channel, an estimated transmission ratio coefficient in a spectrum green-channel and an estimated transmission ratio coefficient in a spectrum blue-channel.
In an embodiment of the present disclosure, the estimated transmission ratio coefficients are calculated according to following formulas:



  
    
      w
      λ
      r
    
    =
    
      
        response
        λ
        r
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      g
    
    =
    
      
        response
        λ
        g
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      b
    
    =
    
      
        response
        λ
        b
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  



where, responseλr is a strength value of a red integral curve of the RGB camera at a spectral wavelength λ, responseλg is a strength value of a green integral curve of the RGB camera at the spectral wavelength λ, responseλb is a strength value of a blue integral curve of the RGB camera at the spectral wavelength λ, wλr is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum red-channel, wλg is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum green-channel, and wλb is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum blue-channel. FIG. 2 shows estimated transmission ratio coefficients of the spectrum video according to an embodiment of the present disclosure.

At step 103, a location of the sampling point in each frame of the first video is estimated.
Specifically, since the spectrum video is obtained from capturing a dynamic scene, the location of the sampling point is required to be estimated when the spectrum information is transmitted to the video frames at different time. In one embodiment of the present disclosure, an optical flow method is used to estimate the location of the sampling point. The optical flow refers to a manifestation of the relative motion between the observer and the scene in the visual scene. Specifically, the relative motion of objects in space results in a corresponding change of a gray level distribution of the image, and a manifestation of a motion field of the object in an image sequence is the optical flow field, i.e., an instantaneous velocity field of a pixel in a plan gray level image. The Lucas-Kanade method is a commonly used optical flow method. In some embodiments of the present disclosure, the Lucas-Kanade method is adopted to estimate the inter-frame motion of the sampling point, such that the location of the sampling point in each frame of the first video can be estimated.
At step 104, the spectrum information of the sampling point is transmitted to a plurality of scene points in the first video according to the estimated transmission ratio coefficients and the location of the sampling point in each frame of the spectrum video through a trilateral filtering algorithm.
Specifically, the spectrum information of the sampling point is transmitted in the spatial domain, the time domain and the color domain according to the estimated transmission ratio coefficients and the location of the sampling point in each frame of the spectrum video. Furthermore, before transmitting the spectrum information of the sampling point to a plurality of scene points in the first video, parameters for filters used in the trilateral filtering algorithm are set, in which the parameters include a spatial distance, a time difference and a color difference.
In one embodiment of the present disclosure, the spectrum information is transmitted to the spectrum video according to the spectrum consistency between adjacent pixels, the relevance between the estimated transmission ratio coefficients of the spectrum video and the spectrum, the spectrum time continuity between adjacent video frames and the continuity of the spectrum information in the spatial domain, the time domain and the color domain. Parameters for each filter used in the trilateral filtering algorithm can be changed according to different requirements of the spatial domain, the time domain and the color domain.
FIG. 3 is a schematic diagram of a spatial domain transmission according to an embodiment of the present disclosure. FIG. 4 is a schematic diagram of a time domain transmission according to an embodiment of the present disclosure. As shown in FIGS. 3 and 4, the method for transmitting spectrum information based on the trilateral filtering algorithm can be presented by the following formulas:



  
    
      
        ρ
        k
        C
      
      =
      
        
          C
          ij
        
        
          C
          k
        
      
    
    ,
    
      C
      ∈
      
        {
        
          R
          ,
          G
          ,
          B
        
        }
      
    
  




  
    
      
        ms
        ij
      
      =
      
        
          ∑
          
            C
            ∈
            
              {
              
                R
                ,
                G
                ,
                B
              
              }
            
          
        
        ⁢
        
          
            
              ∑
              
                k
                ∈
                Neigh
              
            
            ⁢
            
              
                
                  G
                  
                    σ
                    r
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    C
                  
                  )
                
              
              ·
              
                
                  G
                  
                    σ
                    s
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    xy
                  
                  )
                
              
              ·
              
                
                  G
                  
                    σ
                    t
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    t
                  
                  )
                
              
              ·
              
                ρ
                k
                C
              
              ·
              
                ms
                k
                C
              
            
          
          
            
              ∑
              
                k
                ∈
                Neigh
              
            
            ⁢
            
              
                
                  G
                  
                    σ
                    r
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    C
                  
                  )
                
              
              ·
              
                
                  G
                  
                    σ
                    s
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    xy
                  
                  )
                
              
              ·
              
                
                  G
                  
                    σ
                    t
                  
                
                ⁡
                
                  (
                  
                    d
                    k
                    t
                  
                  )
                
              
            
          
        
      
    
    ,
    
      

    
    ⁢
    
      C
      ∈
      
        {
        
          R
          ,
          G
          ,
          B
        
        }
      
    
  



Where, msij is a spectrum value of the pixel having a spatial coordinate (i, j); Gσ( ) is a Gaussian kernel function having a mean value 0 and a variance σ, σr is the variance of the Gaussian kernel function in the color domain, σs is the variance of the Gaussian kernel function in the spatial domain, σt is the variance of the Gaussian kernel function in the time domain, Neigh is a range of the sampling point k, and may contain sampling points having a spatial distance no more than 3σr away from the objective point (i, j) and a time distance no more than 3σt away from the objective point (i, j) according to characteristics of the Gaussian function (thus simplifying the calculation), dkC is a distance in the color domain between the objective point (i, j) and the sampling point k, dkxy is a distance in the spatial domain between the objective point (i, j) and the sampling point k, dkt is a distance in the time domain between the objective point (i, j) and the sampling point k, ρkC is a spectrum difference between different pixels, mskC is a value of the spectrum information of the sampling point transmitted in the red, green or blue channel and the calculation formula of the mskC is: mskC=msk{circle around (x)}wλC, Cε{R,G,B}, where wλC is an estimated transmission ratio coefficient of the spectrum sub-channel.
With the method according to embodiments of the present disclosure, the spectrum information of the sampling point is transmitted to the scene with a high resolution through the trilateral filtering algorithm, thus obtaining a video with a high spatial resolution and a high spectral resolution.
Reference throughout this specification to an embodiment,” “some embodiments,” “one embodiment”, “another example,” “an example,” “a specific example,” or “some examples,” means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Thus, the appearances of the phrases such as “in some embodiments,” “in one embodiment”, “in an embodiment”, “in another example,” “in an example,” “in a specific example,” or “in some examples,” in various places throughout this specification are not necessarily referring to the same embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
Although explanatory embodiments have been shown and described, it would be appreciated by those skilled in the art that the above embodiments can not be construed to limit the present disclosure, and changes, alternatives, and modifications can be made in the embodiments without departing from spirit, principles and scope of the present disclosure.

## Claims

1. A method for transmitting spectrum information, comprising:
sampling a first video of a scene by a first sampling device and sampling a spectrum video of a sampling point in the scene by a second sampling device, and processing the spectrum video to obtain spectrum information of the sampling point;
calculating estimated transmission ratio coefficients of the spectrum video according to color integral curves of the first sampling device;
estimating a location of the sampling point in each frame of the first video; and
transmitting the spectrum information of the sampling point to a plurality of scene points in the first video according to the estimated transmission ratio coefficients and the location of the sampling point in each frame of the spectrum video through a trilateral filtering algorithm.

2. The method according to claim 1, wherein transmitting the spectrum information of the sampling point to a plurality of scene points in the first video comprises:
transmitting the spectrum information in a spatial domain, a time domain and a color domain respectively.

3. The method according to claim 1, further comprising:
setting parameters for filters used in the trilateral filtering algorithm.

4. The method according to claim 3, wherein the parameters comprise a spatial distance, a time difference and a color difference.

5. The method according to claim 1, wherein the estimated transmission ratio coefficients comprise an estimated transmission ratio coefficient in a spectrum red-channel, an estimated transmission ratio coefficient in a spectrum green-channel and an estimated transmission ratio coefficient in a spectrum blue-channel.

6. The method according to claim 1, wherein the first sampling device is a RGB camera and the second sampling device is a sampling device based on masking-out and dispersion.

7. The method according to claim 1, wherein the first video has a high spatial resolution and a low spectral resolution, and the spectrum video has a low spatial resolution and a high spectral resolution.

8. The method according to claim 5, wherein the estimated transmission ratio coefficients are calculated according to following formulas:



  
    
      w
      λ
      r
    
    =
    
      
        response
        λ
        r
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      g
    
    =
    
      
        response
        λ
        g
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  




  
    
      w
      λ
      b
    
    =
    
      
        response
        λ
        b
      
      
        
          response
          λ
          r
        
        +
        
          response
          λ
          g
        
        +
        
          response
          λ
          b
        
      
    
  


where, responseλr is a strength value of a red integral curve of the RGB camera at a spectral wavelength λ, responseλg is a strength value of a green integral curve of the RGB camera at the spectral wavelength λ, responseλb is a strength value of a blue integral curve of the RGB camera at the spectral wavelength λ, wλr is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum red-channel, wλg is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum green-channel, and wλb is the estimated transmission ratio coefficient at the spectral wavelength λ when the spectrum information is transmitted in the spectrum blue-channel.