How to overlay binary mask over a gray scale image with controlled transparency
조회 수: 7 (최근 30일)
이전 댓글 표시
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.

댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 5월 6일
편집: Ameer Hamza
2020년 5월 6일
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
Or see Jan's answer here to fuse two images with transparency: https://www.mathworks.com/matlabcentral/answers/348438-controlling-the-transparency-of-the-overlay-image
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!