How to overlay binary mask over a gray scale image with controlled transparency

7 vues (au cours des 30 derniers jours)
Yu Li
Yu Li le 6 Mai 2020
Modifié(e) : Ameer Hamza le 6 Mai 2020
I have some cellular image, I generated a binary mask based on the time lapse result. Now I want to "burn" the mask to the original grey scale image with transparency so that I can check if the mask makes sense. The original image is a double precison, I used imoverlay(nomalize(A,'range'), Mask, [0.3 1 0.3]). My issue is that I cannot see anything underneath the mask. I there any way to make the maks transparent? Thanks.

Réponses (1)

Ameer Hamza
Ameer Hamza le 6 Mai 2020
Modifié(e) : Ameer Hamza le 6 Mai 2020
See the example in this newsletter to see how to overlay image with transparency: https://www.mathworks.com/company/newsletters/articles/image-overlay-using-transparency.html

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by