callback_active_contour.m.svn-base

来自「fast marching method」· SVN-BASE 代码 · 共 19 行

SVN-BASE
19
字号
function y = callback_active_contour(x, options)% callback_active_contour - callback for conjugate gradient%   %   y = callback_active_contour(x, options);%%   Copytight (c) 2007 Gabriel Peyre% norm of gradientdt = options.dt;n = options.n;d = options.d;x = reshape(x,n,n);y = divgrad( divgrad(x,options)./repmat(d,[1 1 2]),options );if isempty(options.E)    y = x(:) - dt * d(:) .* y(:);else    y = x(:) - dt * options.E(:) .* d(:) .* y(:);end

⌨️ 快捷键说明

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