Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Clear state FIR filter

thorant
Beginner
115 Views
Hi

Im using the IPP FIR filter functions. I initialize a filter using FIRInitAlloc. The first time I use the filter it works fine. The second time it igves just garbage. why?
My code is quite simple and looks like this:

st = ippsFIR_32f_I(tmpfi,length,fir_state);
check_err(st);
st = ippsFIR_32f_I(tmpfr,length,fir_state);
check_err(st);

The first call gives correct results, the second only garbage.

Do I need to reset the filter between each time?
I Have initialized my filter this way:

ippsFIRInitAlloc_32f(&fir_state,fir_taps,num_taps,0);

I have not specified a delay line, does that matter?

Thanks

Thor Andreas Tangen
0 Kudos
2 Replies
thorant
Beginner
115 Views
An update on the issue; If I reset the delay line between each filtering to zero, everything works fine. But is this supposed to be necesary?

Thanks

Thor Andreas Tangen
Vladimir_Dudnik
Employee
115 Views

Hello,

there is comment from our expert:

Yes,it is necessarytouse ippsSetDelayLine() ifyou want to start from clear list.

Regards,
Vladimir

Reply