Attached here my cython implementation of the bilateral filter, which is my first cython program. I would ask for the following:
Thanks for the code! I know it will be of use to me. (Do you place any particular license on it?) Zach On Aug 5, 2008, at 9:38 AM, Nadav Horesh wrote:
Attached here my cython implementation of the bilateral filter, which is my first cython program. I would ask for the following:
• Is there any way to speed up the code just by "cosmetic" modifications? • In particular I use the unportable gcc function __builtin_abs: Is there any way to access this in a portable way? • I would like to donate this code to scipy or any other suitable project. What can/should I do to realise it?
Remarks:
The code contains 3 end-user routines: • A pure python implementation: Easy to read and modify --- it can be cut out into a python source code. • A straight forward cython implementation: About 4 times as fast as the python implementation. • An optimised cython implementation earning another factor of 2 in speed (depends on the parameters used). I see this code as a "research grade" that would evolve in the near future, as I am working on a related project, and hopefully following your comments.
Nadav
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion