Phase of an image, fft
5 次查看(过去 30 天)
显示 更早的评论
Can anyone please help me find the phase of this image?This is the fourier transform of another image.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541146/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/541146/image.jpeg)
0 个评论
回答(1 个)
Image Analyst
2021-3-6
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 个评论
Image Analyst
2021-3-9
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;
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!