Overlay binary image on RGB image

18 views (last 30 days)
SBakc
SBakc on 26 Sep 2019
Moved: DGM on 12 Jun 2024
I would like to overlay the white regions of a binary image onto an RGB image. Is this possible? What about overlaying the black regions?
  1 Comment
SATYA VENKATA TEJASWI DODDA
Moved: DGM on 12 Jun 2024
Can anyone tell me the puprpose of image overlaying

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Sep 2019
Edited: KALYAN ACHARJYA on 26 Sep 2019
Is this?
RGB_image=imread('image_test.jpg');
subplot(311);imshow(RGB_image);
bw_image=im2bw(rgb2gray(RGB_image));
subplot(312);imshow(bw_image);
result=imfuse(RGB_image,bw_image);
subplot(313);imshow(result);
Detail documentation here

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!