How to create a mask for the image

8 ビュー (過去 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 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by