2014-04-04 04:03 AM
Hey,
Does anybody know a DSP-Function for a medianfilter? with filterlength of 5 points. At the moment I have written the filter with for-loops, and it is too slow for my application. Thank you, Michael #m2014-04-04 04:39 AM
The DSP lib for F4 parts (from ST's website) contains a bunch of DSP-like functions, presumably also a filter implementation you can use.
At the moment I have written the filter with for-loops, and it is too slow for my application.How about cranking up optimization level ? As an example, a FFT implementation I tried on a F407 took 10ms with -O0, and 2,4ms with -O3.
2014-04-04 07:05 AM
Do you make use of the DSP instruction set for the M4 core? Depending on your resolution you can do SIMD for 8 and 16 bit values, and there are MAC type instructions. If you are doing floating point and can use single precision there's the FPU instruction set too.
Jack Peacock