calculate phase angle from output image and input wave
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am working on an acoustic microscope
I have a ricker wave(Mexican hat wave) I am getting back image with amplitudes displaying on each point
I have a 2d image 360x360 This image has been created using the capturing amplitude of the reflected wave.
I want to calculate the phase angle of this image and the coming wave
%Mexican Hat wave%
lb = -5;
ub = 5;
N = 360;
[psi,xval] = mexihat(lb,ub,N);
plot(xval,psi);
image1=meshgrid(xval,psi);
image2 = rgb2gray(imread('coin.jpg'));
f1=fft2(image1)
f2=fft2(image2);
Q=f1*f2;
b=abs(f1)*abs(f2);
Q=Q./b;
angles=angle(Q);
But this is giving me NaN and a black img
How to calc phase angle from input ricker wavelet and a img with amplitudes
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!