How to create a mask for the image
조회 수: 11 (최근 30일)
이전 댓글 표시
I want to generate a mask for my image.How can I generate it?

The mask image should be like the below picture.

댓글 수: 0
채택된 답변
Matt J
2015년 10월 23일
Mask = (YourImage>threshold);
댓글 수: 2
Ibrahim Usman
2019년 10월 30일
How do you get the matrix dimensions for the image agree with the dimensions of the threshold?
Image Analyst
2019년 10월 30일
You don't. Here, threshold is just a scalar. No dimensions at all really, just a 1-by-1 scalar -- it's not an image with any dimensions. So the "matrix dimensions for the image" do not need to agree with anything, since threshold is a scalar.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Author Block Masks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!