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 Kommentar

SATYA VENKATA TEJASWI DODDA
SATYA VENKATA TEJASWI DODDA am 16 Jun. 2021
Verschoben: DGM am 12 Jun. 2024
Can anyone tell me the puprpose of image overlaying

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 26 Sep. 2019
Bearbeitet: KALYAN ACHARJYA am 26 Sep. 2019

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Gefragt:

am 26 Sep. 2019

Verschoben:

DGM
am 12 Jun. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by