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

📄 im_unif.m

📁 这是模式识别方面的电子书籍
💻 M
字号:
%IM_UNIF Uniform filter of images stored in a dataset/datafile%%	B = IM_UNIF(A,SX,SY)%	B = A*IM_UNIF([],SX,SY)%% INPUT%   A     Dataset with object images dataset (possibly multi-band)%   SX    Desired horizontal width for filter, default SX = 3%   SY    Desired vertical width for filter, default SY = SX%% OUTPUT%   B     Dataset/datafile with Gaussian filtered images%% SEE ALSO% DATASETS, DATAFILES, IM_GAUSSF, FILTIM% Copyright: R.P.W. Duin, r.p.w.duin@prtools.org% Faculty EWI, Delft University of Technology% P.O. Box 5031, 2600 GA Delft, The Netherlandsfunction b = im_gauss(a,sx,sy)	prtrace(mfilename);	  if nargin < 3, sy = []; end	if nargin < 2 | isempty(sx), sx = 3; end  if isempty(sy), sy = sx; end	  if (sx<1 | sy<1)    error('Filter width should be at least 1')  end  if nargin < 1 | isempty(a)    b = mapping(mfilename,'fixed',{sx,sy});    b = setname(b,'Uniform filter');	elseif isa(a,'dataset') % allows datafiles too		isobjim(a);    b = filtim(a,mfilename,{sx,sy});  elseif isa(a,'double')  % here we have a single image    rx = round(sx);    fx = [1:rx]/rx;    ry = round(sy);    fy = [1:ry]/ry;    b = conv2(fy,fx,a,'same');	end	return

⌨️ 快捷键说明

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