I want to generate a mask for my image.How can I generate it?
The mask image should be like the below picture.

 채택된 답변

Matt J
Matt J 2015년 10월 23일

0 개 추천

Mask = (YourImage>threshold);

댓글 수: 2

Ibrahim Usman
Ibrahim Usman 2019년 10월 30일
How do you get the matrix dimensions for the image agree with the dimensions of the threshold?
Image Analyst
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개)

태그

질문:

2015년 10월 23일

댓글:

2019년 10월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by