How to create a mask for the image

9 Ansichten (letzte 30 Tage)
kiruthika r
kiruthika r am 23 Okt. 2015
Kommentiert: Image Analyst am 30 Okt. 2019
I want to generate a mask for my image.How can I generate it?
The mask image should be like the below picture.

Akzeptierte Antwort

Matt J
Matt J am 23 Okt. 2015
Mask = (YourImage>threshold);
  2 Kommentare
Ibrahim Usman
Ibrahim Usman am 30 Okt. 2019
How do you get the matrix dimensions for the image agree with the dimensions of the threshold?
Image Analyst
Image Analyst am 30 Okt. 2019
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by