Yet another optimisation for the gaussian filter. This adds a compile
time option to use floats instead of integers. Performance comparison is: (performance is in numbers of samples output by oprofile. Less is better) sigma old version (integers) integers floats 2.0 556889 466435 (-17%) 481293 (-13%) 4.0 902749 (core maxed out) 732755 (-19%) 716070 (-21%) I'll have to check why relative performance gain depends on sigma when comparing the the float and integer versions. I'll aslo add another module (most likely named fastgaussianblur.c) based on Frederick M. Waltz and John W. V. Miller's "An efficient algorithm for Gaussian blur using finite-state machines" article. This seems to be way faster (but it's doesn't allow as much granularity in the gaussian's choice and it adds an error compared to this module).
Showing
Please register or sign in to comment