Phase of an image, fft
조회 수: 7 (최근 30일)
이전 댓글 표시
Can anyone please help me find the phase of this image?This is the fourier transform of another image.
댓글 수: 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!