Overlay binary image image on contrast stretched image to get the final result
1 次查看(过去 30 天)
显示 更早的评论
I have to create a function which should take as input the contrast stretched image and the refined binary mask. The output should be the overlay image.Can anyone help?
0 个评论
采纳的回答
Image Analyst
2020-5-25
Try imoverlay:
% Read in image.
grayImage = imread('cameraman.tif');
% Read a binary image into the workspace.
BW = imread('text.png');
% Burn the binary image into the grayscale image, specifying the color to be used for the binary mask.
rgbImage = imoverlay(grayImage, BW, 'yellow');
% Display the result.
imshow(rgbImage)
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!