MATLAB Answers

superimposing bw mask on a grayscale image

14 views (last 30 days)
Scrat
Scrat on 10 Sep 2015
Answered: Image Analyst on 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.

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!

Translated by