Overlay binary image image on contrast stretched image to get the final result

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Mayo de 2020
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)
  1 comentario
Mit desai
Mit desai el 26 de Mayo de 2020
Yeah thanks man i think this is as good as my code which i figured later because imoverlay doesnt work in octave which i am using. But this however does the same task!!
Cheers!!
in1=imread('enhanced.jpg');
in2=imread('refinedpicture.jpg');
var1=uint8(in1);
var2=uint8(in2);
figure;
output=imadd(var1,var2);
imshow(output);

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by