Please check wavelength code which it correct or not?
Mostra commenti meno recenti
This image is the wavelength from the video that i calculated only red channel but I'm not sure that the code is correct or not?

redchannel = frame(:, :, 1);
len=length(redchannel);
n=0:len-1;
N=n*fs/(len-1);
F = fft2(redchannel);
F = fftshift(F);
F = abs(F);
F = log(F+1);
F = mat2gray(F);
plot(N,F)
1 Commento
Image Analyst
il 4 Lug 2018
Maybe. It does what you told it to do - plot spatial frequencies for every row. What do you want it to do?
Risposte (1)
kantapon sumontha
il 7 Lug 2018
0 voti
Categorie
Scopri di più su Discrete Fourier and Cosine Transforms in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!