Input image file for 2D DFT Processing

Hi all,

I want to input a 2D black & white digital image (jpeg) into my C++ program for 2D DFT analysis, which ultimately I will be applying a high or low pass filter to and then restoring the image using inverse DFT.

I'm having no problems applying the mathematics, however, I haven't the slightest clue how to input an image and acquire its x, y, and f(x,y) values.
There are many, many image libraries to help you do this. Many of them will happily load the image into a class object for you and then let you interrogate pixel values on an (x,y) basis. Here are some:

CIMG
DevIL
ImageMagick++
libjpeg
Freeimage

There are more. Do some googling, maybe dig out the example code pages, and pick the one you like.
Thanks much!
Topic archived. No new replies allowed.