MATLAB Answers

help for find the phase value of image using MATLAB coding

6 views (last 30 days)
moiz shaikh
moiz shaikh on 3 Nov 2020
Commented: moiz shaikh on 4 Nov 2020
i want to find the phase value of image and i need the code for that can any help me please?

  0 Comments

Sign in to comment.

Answers (3)

Subhadeep Koley
Subhadeep Koley on 3 Nov 2020
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 Comments

Show 5 older comments
moiz shaikh
moiz shaikh on 4 Nov 2020
above is the graph which i want but this gives not correct value

Sign in to comment.


moiz shaikh
moiz shaikh on 4 Nov 2020
and sir your code is not working it gives error

  0 Comments

Sign in to comment.


moiz shaikh
moiz shaikh on 4 Nov 2020
sir i need phase angle and its plot on graph can you help me?

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!