m10q0011.m

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

M
25
字号
function val = m10Q0011(F00, F11)%------------------------------------------------------------------------------%% Integrates interpolated gridfunction {F00 U F11} times x,% interpolation is assumed piecewise constant.% The result corresponds to a first order moment.%% See also: m10, m10Q1001%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/% Last Revision: February 5, 2002.% Copyright 2002 Stichting CWI, Amsterdam%------------------------------------------------------------------------------[hx, hy] = Q0011gridfdims(F00, F11);Qhxy = 2 * hx * hy;%[F00xcp, F11xcp] = Q0011xcpowp(F00, F11, 1, 0.0);val = sum(sum( F00xcp.*F00 ));clear F00xcp;%val = (val + sum(sum( F11xcp.*F11 ))) * Qhxy; clear F11xcp;        %------------------------------------------------------------------------------

⌨️ 快捷键说明

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