Reputation: 61
I am new to FFT, DCT and the like. Recently I was looking into the documentation for the vDSP library from Apple and was unable to find a DCT implementation. I was wondering if anyone knows of a way to calculate the DCT using one of the FFT functions provided in vDSP?
A bit of context. I am building an image processing implementation from a graphics paper I've been reading. They mentioned using DCT after performing some image sampling.
I'd really like to take advantage of the vDSP speed if at all possible.
Upvotes: 1
Views: 902
Reputation: 9980
OK, turns out my results were off because I was using floats in stead of doubles....
So I managed to do 1D DCT on iOS on the vDSP. I'm not sure if it's the right way, but it gives me the same results as jtransform, which is good enough for me :).
And I know this question was old, but it might just help someone else searching for this.
https://gist.github.com/2140473
Upvotes: 1