help for find the phase value of image using MATLAB coding

조회 수: 1 (최근 30일)
moiz shaikh
moiz shaikh 2020년 11월 3일
댓글: moiz shaikh 2020년 11월 4일
i want to find the phase value of image and i need the code for that can any help me please?

답변 (3개)

Subhadeep Koley
Subhadeep Koley 2020년 11월 3일
Hi Moiz, if you are looking for Fourier phase of an image then the below code might help.
% Read the image
img = imread('pout.tif');
img = im2double(img);
% Calculate Fourier phase map
phaseMap = rescale(angle(fft2(img)));
% Visualize results
figure
subplot(1, 2, 1)
imshow(img)
title('Original image')
subplot(1, 2, 2)
imshow(phaseMap)
title('Fourier phase map')
  댓글 수: 8
moiz shaikh
moiz shaikh 2020년 11월 4일
above is the graph which i want but this gives not correct value

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


moiz shaikh
moiz shaikh 2020년 11월 4일
and sir your code is not working it gives error

moiz shaikh
moiz shaikh 2020년 11월 4일
sir i need phase angle and its plot on graph can you help me?

Community Treasure Hunt

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

Start Hunting!

Translated by