资源简介
红外与可见光图像自适应融合的MATLAB源代码
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dany Simard %
% dany.simard@gmail.com %
% CHUM Universit?de Montr閍l Qu閎ec %
% Visualization tool for 2D image fusion %
% Version 1.0 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function DispFusion(Im1Im2)
if nargin==0
Im1=zeros(4);
Im2=zeros(4);
elseif nargin==1
if ~isempty(Im1)
Im2=zeros(size(Im1));
else
Im1=zeros(4);
Im2=zeros(4);
end
elseif nargin>1
if isempty(Im2) && isempty(Im1)
Im1=zeros(4);
Im2=zeros(4);
elseif isempty(Im2)
Im2=zeros(size(Im1));
elseif isempty(Im1)
Im1=zeros(size(Im2));
end
if size(Im1)~=size(Im2)
error(‘Two images with the same size are needed!!‘)
end
end
handles=guidata(DisplayFusionGUI);
handles.Im1=Im1;
handles.Im2=Im2;
DisplayFusionGUI(‘Afficher‘handles.figure1[]handles);
guidata(handles.figure1handles);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4187 2007-01-05 16:32 DisplayFusionGUI.fig
文件 9578 2007-01-08 18:36 DisplayFusionGUI.m
文件 1221 2007-01-05 17:01 DispFusion.m
评论
共有 条评论