How to create a mask for the image

조회 수: 11 (최근 30일)
kiruthika r
kiruthika r 2015년 10월 23일
댓글: Image Analyst 2019년 10월 30일
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일
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개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by