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

📄 div.m

📁 image denoising toolbox in matlab
💻 M
字号:
function fd = div(Px,Py, options)% div - divergence (backward difference)%%	fd = div(Px,Py, options);%	fd = div(P, options);%%   options.bound = 'per' or 'sym'%%	Copyright (c) 2007 Gabriel Peyreif size(Px,3)>1	if nargin>1		options = Py;        clear Py;	end	Py = Px(:,:,2);	Px = Px(:,:,1);endoptions.null = 0;if isfield(options, 'bound')    bound = options.bound;else    bound = 'sym';endif strcmp(bound, 'sym')    fx = Px-Px([1 1:end-1],:);    fy = Py-Py(:,[1 1:end-1]);    fd = fx+fy;else    fx = Px-Px([end 1:end-1],:);    fy = Py-Py(:,[end 1:end-1]);    fd = fx+fy;end

⌨️ 快捷键说明

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