Re: Image Processing in Java
Have you tried googling for it? There are libraries available which perform FFT already (most notably, FFTW which has Java wrappers).
Re: Image Processing in Java
Yeah the tutorials assume you have the real and imaginary part of the image, whereas I just have one 2d array of the pixel values.
Also, a quick question though its somewhat off the java topic, if you wanted to get say, the face from an image and you have 2 images where the faces are different sizes, any ideas how to scale these so they are the same size for fft?
Re: Image Processing in Java
ps i am using the fft to then get the magnitude of the images so i can compare them
Re: Image Processing in Java
So why not set the imaginary parts to 0?
You can scale an image by using a BufferedImage, then using an affine transformation. See: java - How to scale a BufferedImage - Stack Overflow
Re: Image Processing in Java
Thanks for the buffered image link, but with regard the imaginary parts of the image is this not specific to the image each time? As I'm going to be comparing the images to find out who's in the picture won't the imaginary part have to be that for the image?
Re: Image Processing in Java
Image Processing in Java
I just got around to this post… it’s funny because I am also quite interested in this question. I've done some reserch on it and read a lot on guides. However, I still can't find any good articles talking about it.