How to overlay a mask on an image with zero transperancy?
Show older comments
I am trying to overly this mask:

Onto this bw image:

Using this code:
maskedRgbImage1 = bsxfun(@times, bw, cast(mask, 'like', bw));
The output is like this:

But I want the red mask to completely overlap the black part, like this:

How can I do that?
1 Comment
Simon Chan
on 6 Mar 2022
Notice that the size of the attached images are not the same.
Accepted Answer
More Answers (0)
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
