Objective-C Peak Detection Acceleration Circuit

I'm not a math guru here, so I want to ask anyone familiar with Digital Signal Processing how to best identify real-time peaks. I get about 30 frames / values ​​per second, and I tried to implement a slope algorithm to detect peaks, it worked fine, about 80% of cases, but it really is not good enough :(.

From what I was looking for, I should use fast Fourier transform, but I don’t know how to start with it, maybe I’m missing a general idea of ​​how I should use FFT in this case.

In iOS, we have this amazing Accelerate framework that should help me make FFT stuff, but until I get a general idea, it is almost useless to me.

Can someone enlighten me somehow by pointing me in the right direction :-)?

Thank you very much, and Happy New Year!

+1
source share
1 answer

Thus, you get a float array of camera illumination values ​​generated every second, which contains 30 samples. Do you want to know what is the peak value per second? Or sometime? To calculate the maximum value in a vector using acceleration, you can use the function vDSP_maxv.

? , , , . vDSP_vmax, .

, , :

, , - 0 vDSP_nzcros.

+2

All Articles