Number of pixels in a threshold image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Laura Paletto
am 5 Sep. 2017
Beantwortet: Guillaume
am 5 Sep. 2017
I would like to calculate the number of pixels in an image but for the threshold region only. I acquired two channels image (let's say green and red channels). The red channel shows quite lots of background therefore I threshold the image to show me only the pixels between a certain range. Now I'd like to know if there is a way to calculate how many pixel in the threshold, how many pixel in the image in that range.
Thank you
0 Kommentare
Akzeptierte Antwort
Guillaume
am 5 Sep. 2017
It's trivial to do:
pixelcount = nnz(yourimage > yourthreshold)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!