How to get phase angle of a image and validate? MATLAB

What is the difference between phase and phase spectrum?

I have a 2d image 360x360 This image has been created using capturing amplitude of the reflected wave.

I want to calculate the phase angle of this image

My attempt:

img=imread('coin.jpg');
f1=fft2(img);
f1=log(1+fftshift(f1));
phase1=angle(f1);  
imshow(phase1); 
imshow(rad2deg(phase1));

But I'm not sure I'm correct or not?

How to validate this?

enter image description here enter image description here



Read more here: https://stackoverflow.com/questions/66325186/how-to-get-phase-angle-of-a-image-and-validate-matlab

Content Attribution

This content was originally published by Rohit gupta at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: