Overlaying a partially transparent binary over an RGB image?

As the title suggests, I'm trying to overlay a binary mask over an RGB image to verify segmentation. How do I make the binary mask partially transparent so that I can see what's underneath?
Thank you.

1 Comment

It depends on what you are doing. Please post, what "overlay a binary mask" means as Matlab code.

Sign in to comment.

 Accepted Answer

See the example given by the leader of the Image Processing team:

1 Comment

This is the blog to which I referred to find the solution.

Sign in to comment.

More Answers (1)

If you are creating an image object, such as by image() or imagesc() or imshow(), then set the AlphaData property of the overlay image.

Categories

Community Treasure Hunt

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

Start Hunting!