Please check wavelength code which it correct or not?

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

Maybe. It does what you told it to do - plot spatial frequencies for every row. What do you want it to do?

댓글을 달려면 로그인하십시오.

답변 (1개)

kantapon sumontha
kantapon sumontha 2018년 7월 7일

0 개 추천

what i want to do is to find image wavelength

질문:

2018년 7월 4일

답변:

2018년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by