Patent ID: 11967051
Assignee: ARASHI VISION INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. The non-transitory computer-readable storage medium according to claim 7,
wherein the calculating the gradient information of a coordinate (u,v) of a pixel comprises:
calculating the horizontal forward gradient information gx with a formula (1):, g
            x
          
          ⁡
          
            (
            
              u
              ,
              v
            
            )
          
        
        =
        
          {
          
            
              
                
                  
                    
                      
                        I
                        ⁡
                        
                          (
                          
                            
                              u
                              +
                              1
                            
                            ,
                            v
                          
                          )
                        
                      
                      -
                      
                        I
                        ⁡
                        
                          (
                          
                            u
                            ,
                            v
                          
                          )
                        
                      
                    
                    ⁢
                    
                      
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    <
                    
                      Width
                      -
                      1
                    
                  
                
              
              
                
                  
                    0
                    ⁢
                    
                      
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    =
                    
                      Width
                      -
                      1
                    
                  
                
              
            
            ;
          
        
      
    
    
      
        (
        1
        )
      
    
  

calculating the vertical forward gradient information gy with a formula (2):, g
            y
          
          ⁡
          
            (
            
              u
              ,
              v
            
            )
          
        
        =
        
          {
          
            
              
                
                  
                    
                      
                        I
                        ⁡
                        
                          (
                          
                            u
                            ,
                            
                              v
                              +
                              1
                            
                          
                          )
                        
                      
                      -
                      
                        I
                        ⁡
                        
                          (
                          
                            u
                            ,
                            v
                          
                          )
                        
                      
                    
                    ⁢
                    
                      
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    <
                    
                      Height
                      ⁢
                      
                        
                      
                      -
                      1
                    
                  
                
              
              
                
                  
                    0
                    ⁢
                    
                      
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    =
                    
                      Height
                      ⁢
                      
                        
                      
                      -
                      1
                    
                  
                
              
            
            ;
          
        
      
    
    
      
        (
        2
        )
      
    
  

calculating the horizontal backward gradient information gxb with a formula (3):, g
            x
            b
          
          ⁡
          
            (
            
              u
              ,
              v
            
            )
          
        
        =
        
          {
          
            
              
                
                  
                    
                      g
                      x
                    
                    ⁡
                    
                      (
                      
                        
                          u
                          -
                          1
                        
                        ,
                        v
                      
                      )
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    >
                    0
                  
                
              
              
                
                  0
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      u
                    
                    =
                    0
                  
                
              
            
            ;
          
        
      
    
    
      
        (
        3
        )
      
    
  

calculating the vertical backward gradient information gyb with a formula (4):, g
            y
            b
          
          ⁡
          
            (
            
              u
              ,
              v
            
            )
          
        
        =
        
          {
          
            
              
                
                  
                    
                      g
                      y
                    
                    ⁡
                    
                      (
                      
                        u
                        ,
                        
                          v
                          -
                          1
                        
                      
                      )
                    
                  
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      v
                    
                    >
                    0
                  
                
              
              
                
                  0
                
                
                  
                    
                      if
                      ⁢
                      
                        
                      
                      ⁢
                      v
                    
                    =
                    0
                  
                
              
            
            ;
          
        
      
    
    
      
        (
        4
        )
      
    
  

wherein, (u,v) is the coordinate of the pixel, I is a pixel value, g is the gradient information of the pixel, Width is a width of an image, and Height is a height of an image.