Phase of an image, fft

5 views (last 30 days)
Arya Gopan
Arya Gopan on 6 Mar 2021
Commented: Image Analyst on 9 Mar 2021
Can anyone please help me find the phase of this image?This is the fourier transform of another image.

Answers (1)

Image Analyst
Image Analyst on 6 Mar 2021
No. You cannot get the phase of a Fourier transform from only the magnitude of the Fourier Transform.
And of course getting the phase of "this" image from the transform of a different "another" image is completely out of the question.
  6 Comments
Arya Gopan
Arya Gopan on 9 Mar 2021
Sir my project work is based on measuring the temperature profile of a canle flame. For that I use Mach Zender interferometer and I got 2 images using CCD Camera. one of the burnt candle alone and the other with a background with candle. Now I have to find the phase of the image for which I would crop both the images so as to get a lobule having max intensity. Then I would take the ifft of both the images.Now they have asked me to find the phase by eliminating the background intensity that is by subtracting them. How shall I do it?
Image Analyst
Image Analyst on 9 Mar 2021
You can call imabsdiff with the background image and the flame image. But you cannot use that as your final answer. Why not? Because in the flame itself, it's obscuring the background. The background in the actual flame is not visible and so subtracting it there would not make any sense. So what you can do is to threshold the difference image and create a mask where the difference is less than some value.
mask = imabsdiff(refImage, testImage) < 5; % Or whatever.
Then subtract only within the mask area:
testImage(mask) = testImage(mask) - refImage(mask);
or probably better, just set it to zero there since that's what you're attempting to do anyway.
testImage(mask) = 0;

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!