pmeerw's blog

Thu, 06 Sep 2007

Pyrex rocks - 25x speedup

Pyrex allows to mix Python and C data types (type specialization), and compiles it into a C extension for Python.

I adapted/transformed/re-wrote part of the motion estimation routine within my motion-compensated temporal filtering (MCTF) package to Pyrex. It simply computes the sum of absolute difference (SAD) between blocks of two video frames.

posted at: 01:16 | path: /academic/MCTF | permanent link

Made with PyBlosxom