www.gusucode.com > images 案例代码 matlab源码程序 > images/BurnBinaryImageOntoGrayscaleImageExample.m
%% Burn Binary Image into Grayscale Image % %% % Read grayscale image into the workspace. A = imread('cameraman.tif'); %% % Read binary image into the workspace. BW = imread('text.png'); %% % Burn the binary image into the grayscale image, choosing the color to be % used. B = imoverlay(A,BW,'yellow'); %% % Display the result. figure imshow(B)