extract only white pixels from an image
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I extract mean and variance of only white pixels of an image?
0 Kommentare
Antworten (1)
Image Analyst
am 28 Dez. 2019
Bearbeitet: Image Analyst
am 28 Dez. 2019
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));
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!