ppwwyyxx / OpenPano

Automatic Panorama Stitching From Scratch
MIT License
1.86k stars 553 forks source link

Is there any ideas on optimizing the gaussian blur (faster convolution)? #53

Closed ghost closed 6 years ago

ghost commented 6 years ago

I tried to implement gaussian blur with cuda for reducing the runtime of gaussian blur when applying multiband blender for rendering the image, but I found that the syntax between cuda and c++11 could not be compatible when compiling the program.

Is there any ideas on how to do the faster convolution for gaussian blur? Such as the less time complexity of the algorithm? Using OpenMP? Or Multithreading with pthread, etc?

Thanks.

ppwwyyxx commented 6 years ago

The cheapest thing to do would be to rewrite the current blurring code with AVX.

Multi threading won't help because the program is already multi threaded at a higher level.