• mschoeneck's avatar
    Merge pull request #8694 from mschoeneck:Canny · 4a4d94f2
    mschoeneck authored
    Parallelize Canny with custom gradient (#8694)
    
    * New Canny implementation. Restructuring code in parallelCanny class. Align mag buffer and map.
    
    * Fix warnings.
    
    * Missing SIMD check added.
    
    * Replaced local trailingZeros in contours.cpp. Use alignSize in canny.cpp
    
    * Fix warnings in alignSize and allocate just minimum extra columns.
    
    * Fix another warning in map.create.
    
    * Exchange for loop by do loop to avoid double check at the beginning.
    Define extra SIMD CANNY_CHECK to avoid unnecessary continue.
    4a4d94f2
contours.cpp 60.4 KB