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

📄 imaver.m

📁 matlab code for image fusion used by canga.
💻 M
字号:
function [imageout] = imaver(imagein,template)
%imaver.m, v 1.1 2002/01/22 13:25:40$
%===========================================================================
%               Eduardo Fernandez Canga - University of Bath
%
%                        Copyright (c) 2002
%===========================================================================
%
%                  [imageout] = imaver(imagein,template)
%
%               imagein : input image
%               template: averaging mask size
%
%===========================================================================

if (mod(template,2)==0)
    error(sprintf('Template size must be odd'));
end
tmpsiz=(template-1)/2;
imageaux=impad(imagein,tmpsiz);            %padd the input image to perform 
mask(1:template,1:template)=1/template^2;   %convoultion with the averaging
imageout=conv2(imageaux,mask,'valid');      %mask, select valid area.

⌨️ 快捷键说明

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