extract only white pixels from an image

Antworten (1)

Image Analyst
Image Analyst am 28 Dez. 2019
Bearbeitet: Image Analyst am 28 Dez. 2019

0 Stimmen

What value do you consider "white"? Let's say it's 230. Then you can get a binary image
binaryImage = grayImage >= 230;
Now, exactly what does "extract" mean to you? You want to consider all the gray values in the binary image? If so do
maskMean = mean(grayImage(binaryImage));
maskSD = std(grayImage(binaryImage));
maskVar = var(grayImage(binaryImage));

1 Kommentar

Mary Baratzadeh
Mary Baratzadeh am 30 Dez. 2019
excuse me, my mean is calculate the average white pixels of an image

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 28 Dez. 2019

Kommentiert:

am 30 Dez. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by