stencilxgridfrvc.m

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

M
26
字号
function F = stencilxgridfRVC(G, Stencil, center)%------------------------------------------------------------------------------% Multiplies gridfunction G with Stencil.% Excess area is filled by Vertex-Centered (VC) Reflection across boundaries.%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/% Last Revision: June 26, 2000.% Copyright 1999-2002 Stichting CWI, Amsterdam.%------------------------------------------------------------------------------o=[0 0];if ~all(size(o) == size(center))  error(' stencilxgridfRVC - unexpected dimensions of center ')endF=zeros(size(G));[n, m] = size(Stencil);for i=1:n   for j=1:m      sij = Stencil(i,j);      if sij ~= 0           F = F + rayxgridfRVC(G, ([i j] - center), sij);      end   endend   %------------------------------------------------------------------------------

⌨️ 快捷键说明

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