Is there a way to compute the percentage of pixels in this image of a certain colour, whilst ignoring the (dark blue) background in the calculation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I'm trying to get the percentages of different coloured pixels in this image, but haven't found a way to either ignore the background or to ignore it in the percentage calculations. Any help would be appreciated!
0 Kommentare
Akzeptierte Antwort
KSSV
am 11 Feb. 2020
If I is your image.....And your pixel value is n. Use:
idx = I==n ;
YOur idx will be a matrix with 1's and 0's...
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement 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!