How to create a mask for the image
8 ビュー (過去 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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!