使用Matlab进行图像融合

时间:2015-11-23 10:00:53

标签: image matlab fusion

我想使用这个例子融合两个图像:

http://www.mathworks.com/help/wavelet/examples/image-fusion.html?prodcode=WA&language=en

我写了这个:

X1 = imread('G:\an1.jpg');
 X2 = imread('G:\an2.jpg');
 XFUSmean = wfusimg(X1,X2,'db2',1,'mean','mean');
 XFUSmaxmin = wfusimg(X1,X2,'db2',1,'max','min');
 myColorMap = jet(256);
 colormap(myColorMap);
 subplot(221), image(X1), axis square, title('Mask')
subplot(222), image(X2), axis square, title('Bust')
subplot(223), image(XFUSmean), axis square,
title('Synthesized image, mean-mean')
subplot(224), image(XFUSmaxmin), axis square,
title('Synthesized image, max-min')

但我收到一个错误: 使用图像时出错 TrueColor CData包含超出范围0.0< = value< = 1.0

的元素

0 个答案:

没有答案