2D DFT of an image?

A

Alex Young

Hi all,

What's the easiest way to get the 2D DFT of an image? I can take care
of zero- or mean-padding via RMagick easily enough, and I presume
ImageMagick uses the DFT internally to implement convolutions, but I
can't see any easy way to get at the frequency data itself... Am I
missing something, or am I going to have to marshall the pixel data from
RMagick to NArray (or gsl, or...) manually? In that case, what's the
most efficient path?

I presume this is something that others deal with on a daily basis, but
I've never had to tackle it from Ruby before.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,089
Members
47,689
Latest member
kilaocrhtbfnr

Latest Threads

Top