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

📄 deriv1.m

📁 sfrmat is a Matlab function that provides a spatial frequency response* (SFR) from a digital image f
💻 M
字号:
function  [b] = deriv1(a, nlin, npix, fil)% [b] = deriv1(a, nlin, npix, fil)   First derivative of array%  Computes first derivative via FIR (1xn) filter%  Edge effects are suppressed and vector size is preserved%  Filter is applied in the npix direction only%   a   = (nlin, npix) data array%   fil = array of filter coefficients, eg [[-0.5 0.5]%   b   = output (nlin, npix) data array% Peter Burns 5 Aug. 2002% Copyright (c) International Imaging Industry Association b = zeros(nlin, npix); nn = length(fil); for i=1:nlin;  temp = conv(fil, a(i,:));  b(i, nn:npix) = temp(nn:npix);    %ignore edge effects, preserve size  b(i, nn-1) = b(i, nn); end

⌨️ 快捷键说明

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