Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Can anyone suggest a java library to perform forward and backward Fourier transform on images? Either RGB or gray-scale or binary , that doesn't matter since I've converted the image to all these ;)

I do searched but most of the image processing libraries like marvin, JAI etc don't have Fourier transform. So I thought anyone who have done this earlier could suggest me one

share|improve this question
1  
What do you mean by "good"? Can you add some criteria with which to evaluate libraries? –  Anna Lear Dec 20 '11 at 7:03
    
@AnnaLear As of now, I would appreciate anything! ;) I dint thought the word good will do any harm ;) –  COD3BOY Dec 20 '11 at 7:05
    
@AnnaLear btw, removed good ;) –  COD3BOY Dec 20 '11 at 7:06
    
Well, the point to Anna's comment wasn't removing the word itself, but: Can you add some criteria with which to evaluate libraries?. If you are just looking for any library, without any specific parameters, did you try searching first? –  Yannis Rizos Dec 20 '11 at 7:26
    
@YannisRizos I do searched but most of the image processing libraries don't have Fourier transform. So I thought anyone who 've done this earlier could suggest me one :) I do understand Anna but I'd appreciate anything, that's why I removed the word good ;) –  COD3BOY Dec 20 '11 at 7:30

2 Answers 2

JTransforms is probably the fastest Java FFT library around. It's a generic (not particularly "image") DFT (and DCT and DST and DHT) transformer and works on double[] arrays so you would need to implement the image -> double[] -> image transforms yourself though.

share|improve this answer

JAI (Java Advanced Imaging API) has classes DFTDescriptor and IDFTDescriptor which seem to match.

  • API docs for DFTDescriptor describe it as follows:

    ...The "DFT" operation computes the discrete Fourier transform of an image.

  • for inverse transform, there is IDFTDescriptor:

    ...The "IDFT" operation computes the inverse discrete Fourier transform of an image.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.