m01.m

来自「用matlab实现图像融合」· M 代码 · 共 18 行

M
18
字号
function val = m01(F)%------------------------------------------------------------------------------%% Integrates interpolated gridfunction F times y,% interpolation is assumed piecewise constant.% The result corresponds to a first order moment.%% See also: m00, m10, mupq%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/% Last Revision: November 27, 2000.% Copyright 2000 Stichting CWI, Amsterdam%------------------------------------------------------------------------------[hx, hy] = gridfdims(F);val=sum(sum( ycpowp(F, 1, 0.0).*F ))*(hx*hy);%------------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?