Recommendations for performance optimization
Opened this issue · 1 comments
divertingPan commented
The running time is a bit long when the photo is high-resolution. I try to use numba
then it is greatly boosting.
Example:
from numba import jit
@jit(nopython=True)
def max_filtering(N, I_temp):
pass
@jit(nopython=True)
def min_filtering(N, A):
pass
The running time (only processing, no loading and saving image time) is about 30 sec with numba, and 211 sec without numba, using 2976x3968 image by cellphone camera.
Probably there are some better optimizing methods. I'm not skillful with numba
.
bingo787 commented
too slow