Display as red specific cells of binary image

Hello,
i have a binary image which i display with imshow function of matlab. After that i edit that array at specific cells and i want to display those cells as red with a later imshow call.
How can i do that

 Respuesta aceptada

OCDER
OCDER el 18 de Jul. de 2018
ImBW = rand(100)>0.5; %binary image
ImROI = zeros(100, 'logical'); %area you want to show as red
ImROI(25:50, 25:50) = 1; %just creating a random area to show as red
figure(1)
imshow(ImBW)
figure(2)
imshow(im2double(cat(3, ImROI|ImBW, ImBW, ImBW)))

Más respuestas (0)

Categorías

Más información sobre Display Image en Centro de ayuda y File Exchange.

Preguntada:

el 18 de Jul. de 2018

Comentada:

el 18 de Jul. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by