필터 지우기
필터 지우기

Phase of an Image

조회 수: 9 (최근 30일)
Arya Gopan
Arya Gopan 2020년 12월 19일
댓글: Image Analyst 2020년 12월 19일
Can anyon helpme in finding thenphase of this image

채택된 답변

Image Analyst
Image Analyst 2020년 12월 19일
편집: Image Analyst 2020년 12월 19일
No, not unless you can get the original gray scale image. You can't do it from a pseudocolored image. If you have the gray scale image, do this
  1. subtract the mean: grayImage = double(grayImage) - mean2(grayImage);
  2. take the fft2: FT = fft2(grayImage)
Something like:
grayImage = imread('cameraman.tif');
subplot(2, 2, 1);
imshow(grayImage, []);
title('Original Image', 'FontSize', 20);
grayImage = double(grayImage) - mean2(grayImage);
% Take the FFT.
FT = fft2(grayImage);
% Display the phase image.
subplot(2, 2, 2);
imagImage = imag(FT);
imshow(log(imagImage), [])
title('Imaginary part of FT Image', 'FontSize', 20);
% Display the magnitude image.
subplot(2, 2, 3);
realImage = real(FT);
imshow(log(realImage), [])
title('Real Part of FT Image', 'FontSize', 20);
  댓글 수: 3
Arya Gopan
Arya Gopan 2020년 12월 19일
Image Analyst
Image Analyst 2020년 12월 19일
I would have expected to see stronger peaks near the upper left corner and upper right corner due to the strong periodic oscillation (or a pair of peaks near the middle if you use fftshift() to translate the origin to the middle of the image). Perhaps it's not noticeable because we used log to display it. Try displaying without log.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by