How to create a mask for the image

9 次查看(过去 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