📄 generatebackground.m
字号:
% Generate a sinusoidally correlated background:
backsize = framesize+50; % Make the background bigger than the frame so when it
% drifts there are new pixels available to drift into.
xygrid = (1:backsize)/backsize;
B=2*sin(2*pi*xygrid).^2'*cos(2*pi*xygrid).^2;
psd = fft2(B);
psd = real(psd.*conj(psd));
background = B + 0.5*randn(backsize); % Add a specular gaussian white sequence to the structure with
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -