superimposing bw mask on a grayscale image

3 Ansichten (letzte 30 Tage)
Scrat
Scrat am 10 Sep. 2015
Beantwortet: Image Analyst am 10 Sep. 2015
I have a bw image which i obtained by modifying a grayscale image. Now i want to use the bw image as a mask on the grayscale image so that all the other parts except for the white part of the mask in the greayscale image vanishes. i have tried multiplying the images but all i get is bw image with some outer noise around the border.

Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Sep. 2015
Try this:
grayImage(~mask) = 0;

Weitere Antworten (0)

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by