www.gusucode.com > vision 源码程序 matlab案例代码 > vision/BlendTwoImagesExample.m
%% Blend Two Images %% % Display the two images. % Copyright 2015 The MathWorks, Inc. I1 = im2single(imread('blobs.png')); I2 = im2single(imread('circles.png')); subplot(1,2,1); imshow(I1); subplot(1,2,2); imshow(I2); %% % Blend the two images and display the result. halphablend = vision.AlphaBlender; J = step(halphablend,I1,I2); figure; imshow(J);