Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fourier Transform on Android

Tags:

android

fft

Are there any Android's API's, that implement the Fourier Transform using the device's DSP? Or are there any API's that permit using the device's DSP?

Thanks.

like image 702
Chris Avatar asked Jul 22 '26 04:07

Chris


2 Answers

No, there is no public API for performing hardware accelerated FFT.

You can optimize native code by targeting the armeabi-v7a ABI in order to use the FPU. That's very useful for floating point FFT.

See CPU-ARCH-ABIS in the docs/ directory of the Android NDK.

like image 101
olivierg Avatar answered Jul 23 '26 18:07

olivierg


Sorry this is a bit late, but if you want to calculate the Fourier transform in Android for a real or complex number you are better off using either jTransfrom or libgdx.FFT. libgdx uses KissFFT backend, not quite sure what jTransform uses.

Check out this example on how to implement libgdx:

http://www.digiphd.com/android-java-simple-fft-libgdx/

Hope this helps.

like image 28
digiphd Avatar answered Jul 23 '26 16:07

digiphd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!