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

📄 xcpowp.m

📁 用matlab实现图像融合
💻 M
字号:
function xcp = xcpowp(F, p, c)%------------------------------------------------------------------------------%% This function computes the gridfunction xcp of size F with values (x-c)^p at% its gridpoints. Piecewise constant approximation is assumed.%%   Orientation%%         x%     o---->%     |%   y |%     v%    % % Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/% Last Revision: November 27, 2000.% Copyright 1999-2000 Stichting CWI, Amsterdam%------------------------------------------------------------------------------if isempty(F)  error(' xcpowp - gridfunction is empty ')else  [n, m] = size(F);  if p == 0    xcp = ones(n,m);  else      [hx, dummy1, lx, dummy2] = gridfdims(F);    xfirst =  0 + hx/2 - c;    xlast  = lx - hx/2 - c;    lineofxcp = linspace(xfirst, xlast, m);    xcp = lineofxcp(ones(1,n),:);   % Tony's trick    if p ~= 1      xcp = xcp.^p;    end  endend  %------------------------------------------------------------------------------

⌨️ 快捷键说明

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