How to create a mask for the image
5 次查看(过去 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!