help for find the phase value of image using MATLAB coding

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 日

0 投票

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 日
and sir how to plot it in a graph?
Subhadeep Koley
Subhadeep Koley 2020 年 11 月 4 日
I've already displayed the phase image using imshow(). Can you elaborate what kind of graph you're looking for?
Subhadeep Koley
Subhadeep Koley 2020 年 11 月 4 日
Moiz, can you post the error message, which you're encountering?
moiz shaikh
moiz shaikh 2020 年 11 月 4 日
sir i need phase angle of image and plot it in graph simply
moiz shaikh
moiz shaikh 2020 年 11 月 4 日
Dear sir
now there is no error but i want desired output
Subhadeep Koley
Subhadeep Koley 2020 年 11 月 4 日
Can you provide an example image of your "desired output"?
moiz shaikh
moiz shaikh 2020 年 11 月 4 日
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 日

0 投票

and sir your code is not working it gives error
moiz shaikh
moiz shaikh 2020 年 11 月 4 日

0 投票

sir i need phase angle and its plot on graph can you help me?

質問済み:

2020 年 11 月 3 日

コメント済み:

2020 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by