• shimat's avatar
    Merge pull request #11035 from shimat:refactoring_decolor · 5bf7f09a
    shimat authored
    Refactor decolor (#11035)
    
    * decolor: modernize deprecated headers (math.h -> cmath)
    
    * refactor contrast_preserve.cpp
    
    * refactor contrast_preserve.hpp (add static/const)
    
    * refactor contrast_preserve.hpp (join assignment and declaration)
    
    * refactor contrast_preserve.hpp (format)
    
    * refactor test_decolor.cpp (indent)
    
    * refactor contrast_preserve.hpp (const)
    
    * contrast_preserve.hpp : optimize by minMaxLoc
    
    * fix trailing-whitespace
    
    * fix warning C4267 on VC++ x64
    (conversion from 'size_t' to 'int', possible loss of data)
    
    * use cvRound instead of round_num
    
    * decrease indentation of test_decolor.cpp
    
    * remove pow() to optimize
    
    * remove redundant Mat initialization
    5bf7f09a
contrast_preserve.cpp 5.53 KB