Community
cancel
Showing results for 
Search instead for 
Did you mean: 
thorant
Beginner
101 Views

Clear state FIR filter

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
101 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
101 Views

Hello,

there is comment from our expert:

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

Regards,
Vladimir

Reply