📄 genrs.m
字号:
function [R,S]=genRS(N,r)
%generates matrices R and S for the calculation of image
%moments based on Fluss and Tuk's method described in
%"On the Calculation of Moments"
%N-expected image size
%r-maximum index of moments needed
pm=r+1;
R1=ones(pm,1)*linspace(1,N,N);
R2=linspace(0,r,pm)'*ones(1,N);
R=R1.^R2;
S=R*triu(ones(N));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -