Abstract:
A change degree deriving apparatus includes a receiving unit and a deriving unit. The receiving unit is configured to receive first image data of an object including an achromatic color and a first color and reference image data of the object. The first image data relates to the first color. The reference image data serves as a reference. The deriving unit is configured to derive a change degree of the object from a first difference based on the first image data and the reference image data received by the receiving unit. The first difference is a difference between the first image data and the reference image data, which occurs at a chromatic color portion when a portion corresponding to the achromatic color is set as a reference.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2016-092705 filed May 2, 2016. 
       BACKGROUND 
     Technical Field 
       [0002]    The present invention relates to a change degree deriving apparatus, a change degree deriving method and a non-transitory computer readable medium. 
       SUMMARY 
       [0003]    According to an aspect of the invention, a change degree deriving apparatus includes a receiving unit and a deriving unit. The receiving unit is configured to receive first image data of an object including an achromatic color and a first color and reference image data of the object. The first image data relates to the first color. The reference image data serves as a reference. The deriving unit is configured to derive a change degree of the object from a first difference based on the first image data and the reference image data received by the receiving unit. The first difference is a difference between the first image data and the reference image data, which occurs at a chromatic color portion when a portion corresponding to the achromatic color is set as a reference. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0004]    Exemplary embodiments of the present invention will be described in detail based on the following figures, wherein: 
           [0005]      FIG. 1  is a diagram illustrating a deterioration measuring system according to an exemplary embodiment of the present invention; 
           [0006]      FIG. 2  is a block diagram illustrating hardware of a deterioration measuring apparatus according to the exemplary embodiment of the present invention; 
           [0007]      FIG. 3  is a flowchart illustrating a processing flow for a new product state by the deterioration measuring apparatus according to the exemplary embodiment of the present invention; 
           [0008]      FIG. 4  is a flowchart illustrating a processing flow for an aged state by the deterioration measuring apparatus according to the exemplary embodiment of the present invention; 
           [0009]      FIG. 5  is an image diagram of an extracted signboard in the exemplary embodiment of the present invention; 
           [0010]      FIGS. 6A to 6C  are graphs illustrating R, G, and B histograms generated in the new product state in the exemplary embodiment of the present invention; 
           [0011]      FIG. 7  is a graph illustrating uncorrected red histograms generated in the new product state and the aged state in the exemplary embodiment of the present invention; and 
           [0012]      FIGS. 8A to 8C  are graphs illustrating corrected R, G, and B histograms generated in the new product state and the aged state in the exemplary embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0013]    Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. 
         [0014]      FIG. 1  is a diagram illustrating a change degree derivation system according to an exemplary embodiment of the present invention. Hereinafter, description will be made assuming that a deterioration of an object is measured, and the term “change degree derivation” is replaced by a term “deterioration measurement” in the description. 
         [0015]    An object  10  for which a deterioration measurement is to be performed is, for example, a signboard, and is provided at a place where a direct measurement is difficult (such as a high place). The object  10  includes, for example, a translucent body, and includes, for example, a white portion  12  which is an example of an achromatic color, a red portion  14 , a green portion  16 , and a blue portion  17 . In addition, the object  10  includes a light source (e.g., a white LED) disposed therein, and light emitted from the light source is adapted to transmit through the object  10 . 
         [0016]    An image capturing apparatus  18  may be a digital camera, a smartphone, a tablet PC, or the like, and captures the object  10  and surroundings of the object  10 . 
         [0017]    A deterioration measuring apparatus  20 , which is, for example, a personal computer, is configured to receive the image data obtained by capturing the object  10  using the image capturing apparatus  18 , and process the image data. 
         [0018]      FIG. 2  is a block diagram illustrating the deterioration measuring apparatus  20 . 
         [0019]    The deterioration measuring apparatus  20  includes a CPU  22 , a memory  24 , an input interface  26 , and an output interface  28 , which are connected through a control bus  30 . 
         [0020]    The CPU  22  executes a predetermined processing based on a control program stored in the memory  24 . An input apparatus  32  is connected to the input interface  26 . Examples of the input apparatus  32  include a connector that is directly connected to the above described image capturing apparatus  18  for input and an apparatus that inputs in wireless manner through a communication. Also, an output apparatus  34  is connected to the output interface  28 . The output apparatus  34  is a display or a printer, through which a result such as processed data is output. 
         [0021]    Hereinafter, description will be made on a deterioration measuring method of the object  10  using the deterioration measuring apparatus  20 . 
         [0022]    Generally speaking, a deterioration rate varies depending on colors. For example, it is considered that a yellow color changes over time, decolors due to light (primarily ultraviolet rays), and most rapidly deteriorates. The exemplary embodiment intends to measure a deterioration of the object  10  using the fact that a deterioration rate varies depending on colors. Achromatic colors also deteriorate in a strict sense. However, the inventors pursue intensive studies, notice that the achromatic colors less deteriorate as compared to chromatic colors, and conceive that deterioration determination is made based on device-dependent captured data without using a known color body (body whose color is known). Especially, in the present exemplary embodiment, a color change caused by capture conditions or environment light is corrected by using an achromatic portion of the object as a substitute for a known color body, and a change degree of a target color on the object is measured. 
         [0023]      FIG. 3  is a flowchart illustrating a processing flow for a new product state by the deterioration measuring apparatus  20 . 
         [0024]    First, in step S 10 , image data of the object  10  in the new product state and its surroundings which are captured by the image capturing apparatus  18  are received. 
         [0025]    In the following step S 12 , a signboard which is the object  10  is extracted. When the object  10  is captured, for example, at night, the object  10  has a brightness that is different from that of the surroundings. Thus, a portion having a high brightness may be extracted. 
         [0026]    In the following step S 14 , a distortion of the object  10  is corrected. In the correction of the distortion, for example, an exact original image of the object  10  is compared to the captured image of the object  10 , and the image of the object  10  is subjected to, for example, affine transformation so as to overlap the original image. 
         [0027]    In the following step S 16 , the resolution of the image of the object  10  corrected in step S 14  is reduced to a predetermined resolution. Meanwhile, depending on a utilization form, the resolution may not be adjusted or conversely, a process of increasing the resolution may be performed. 
         [0028]    In the following step S 18 , a histogram of a tone (lightness) is generated for each of R, G, and B. That is, for each color, the number of pixels belonging to each tone is counted, and the histograms illustrated in  FIGS. 6A to 6C  are generated. 
         [0029]    In the following step S 20 , the histograms generated in step S 18  are stored in the memory  24 , and then the process is ended. 
         [0030]      FIG. 4  is a flowchart illustrating a processing flow for the aged state by the deterioration measuring apparatus  20 . 
         [0031]    The processes in steps S 30 , S 32 , S 34 , S 36  and S 38  are the same as those in steps S 10  to S 18  in the above described processing flow for the new product state. 
         [0032]    In the following step S 40 , the histograms of the new product state, which is stored in the memory  24 , are read. Then, in the following step S 42 , as illustrated in  FIG. 7 , the histograms of the new product state and the histograms of the aged state are compared with each other. 
         [0033]    Here, the new product state and the aged state are different from each other in capturing environment. Thus, if the both histograms are simply compared with each other, the deterioration measurement may be inaccurate. 
         [0034]    Therefore, in the following step S 44 , as illustrated in  FIGS. 8A to 8C , a tone correction is performed such that the histograms of the new product state and the aged state are matched with each other by using white peak positions (at which lightness values are large) of the histograms as a reference. A comparison between the histograms corrected as described above is illustrated in  FIGS. 8A to 8C . 
         [0035]    In the exemplary embodiment, the tone correction is performed based on the white color. Alternatively, the tone correction may be performed based on any of other achromatic colors (for example, black or gray (having small lightness values)). 
         [0036]    As can be seen from  FIGS. 8A to 8C , green and red are larger in a deviation amount of a peak between the new product state and the aged state than blue. 
         [0037]    In the following step S 46 , a deterioration degree is calculated by using a peak deviation amount (l B ) of blue, and a peak deviation amount (l G ) or (l R ) of green or red as expressed in Equations (1) or (2) below. The obtained peak deviation amounts (l G ), (l R ), and (l B ) of green, red, and blue increase as the deterioration of the object progresses. Thus, at least one of the peak deviation amounts (l G ), (l R ), and (l B ) is used as the deterioration degree. Here, it is proper to use a deviation amount of red or green containing a component of yellow that relatively easily deteriorates. 
         [0038]    Also, since green contains a yellow component in a larger amount than red, the calculation may be made by Equation (1). 
         [0039]    Also, as expressed in Equation (3), an average of deviation amounts of red and green which contain the yellow component in a relatively large amount may be compared to a deviation amount blue that contains the yellow component in a relatively small amount. 
         [0000]    
       
         
           
             
               
                 
                   
                     Deterioration 
                      
                     
                         
                     
                      
                     degree 
                   
                   = 
                   
                     
                       Peak 
                        
                       
                         
                             
                         
                          
                         
                             
                         
                       
                        
                       deviation 
                        
                       
                           
                       
                        
                       
                         amount 
                          
                         
                           ( 
                           
                              
                             G 
                           
                           ) 
                         
                       
                     
                     
                       Peak 
                        
                       
                         
                             
                         
                          
                         
                             
                         
                       
                        
                       deviation 
                        
                       
                           
                       
                        
                       
                         amount 
                          
                         
                           ( 
                           
                              
                             B 
                           
                           ) 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   1 
                   ) 
                 
               
             
             
               
                 
                   
                     Deterioration 
                      
                     
                         
                     
                      
                     degree 
                   
                   = 
                   
                     
                       Peak 
                        
                       
                         
                             
                         
                          
                         
                             
                         
                       
                        
                       deviation 
                        
                       
                           
                       
                        
                       
                         amount 
                          
                         
                           ( 
                           
                              
                             R 
                           
                           ) 
                         
                       
                     
                     
                       Peak 
                        
                       
                         
                             
                         
                          
                         
                             
                         
                       
                        
                       deviation 
                        
                       
                           
                       
                        
                       
                         amount 
                          
                         
                           ( 
                           
                              
                             B 
                           
                           ) 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
             
               
                 
                   
                     Deterioration 
                      
                     
                         
                     
                      
                     degree 
                   
                   = 
                   
                     
                       
                         
                           
                             
                               Peak 
                                
                               
                                 
                                     
                                 
                                  
                                 
                                     
                                 
                               
                                
                               deviation 
                                
                               
                                   
                               
                                
                               
                                 amount 
                                  
                                 
                                   ( 
                                   
                                      
                                     R 
                                   
                                   ) 
                                 
                               
                             
                             + 
                           
                         
                       
                       
                         
                           
                             Peak 
                              
                             
                               
                                   
                               
                                
                               
                                   
                               
                             
                              
                             deviation 
                              
                             
                                 
                             
                              
                             
                               amount 
                                
                               
                                 ( 
                                 
                                    
                                   G 
                                 
                                 ) 
                               
                             
                           
                         
                       
                     
                     
                       Peak 
                        
                       
                         
                             
                         
                          
                         
                             
                         
                       
                        
                       deviation 
                        
                       
                           
                       
                        
                       
                         amount 
                          
                         
                           ( 
                           
                              
                             B 
                           
                           ) 
                         
                       
                       × 
                       2 
                     
                   
                 
               
               
                 
                   ( 
                   3 
                   ) 
                 
               
             
           
         
       
     
         [0040]    Then, in the following step S 48 , the deterioration degree is output to the output apparatus  34 , and the process is ended. As the deterioration degree, the data calculated in step S 46  may be output as it is. Alternatively, when the deterioration degree exceeds a threshold, a message indicating that repairing is needed may be displayed, or a deterioration level, e.g., level  1 , level  2  or the like may be displayed. 
         [0041]    Meanwhile, in the exemplary embodiment, the deterioration measuring apparatus  20  is implemented by a personal computer, but the present invention is not limited thereto. For example, the image capturing apparatus  18  may have all or a part of the functions of the deterioration measuring apparatus  20 . 
         [0042]    The foregoing description of the exemplary embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, thereby enabling others skilled in the art to understand the invention for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.