In this post, instructions are given to construct a periodogram essentially from scratch. How would one write the inverse function? I want to generate a periodogram, do some manipulations, and then invert it back to 'normal' grayscale space as an approach to filtering the original image, which will help with further analysis. This can be done in imageJ using their built in "FFT" and "inverse FFT" functions. I'd like to do it in Mathematica!
Asked
Active
Viewed 83 times
1
Periodogramcomputes the square of the Fourier transform (the Fourier spectrum), you are losing some phase information, and so you can't take the inverse. So, you can't usePeriodogram. But you can useFourierandInverseFourier, since those are essentially FFTs in Mathematica. (Or, at least they're discrete Fourier transforms. I assume that they are implemented as fast FT's, but I'm not sure. – march Oct 09 '23 at 18:16Periodogram? Have you looked intoSpectrogramandInverseSpectrogram(and the SpectrogramArray forms of these functions) ? Because that would solve the problem for you if you're okay with a short-time-fourier transform rather than the whole time domain. – flinty Oct 09 '23 at 20:08Periodogrammake it easy to identify the features I'm looking for... essentially two white dots positioned at an angle near the center (with proper thresholding). – user94773 Oct 09 '23 at 22:18Periodogramis just the absolute square ofFourier, though, so you can just useFourierinstead and take the (log of the) absolute square to visualize it. Then, do whatever manipulations you need to do on the FT's data, then transform back. I guess I'm not sure exactly what the issue is. – march Oct 10 '23 at 03:04