⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genrs.m

📁 fast calculation of image moments based on Fluss and Tuk s method described in "On the Calculat
💻 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 + -