Counting Black pixels in Matlab

Status
Not open for further replies.

whu_Esle

Newbie level 1
Joined
Dec 27, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Hi everyone,

I need some help with counting the number of black pixels there are in the circle encompassing the pupil.



Can someone please help me?

Thank you very much!
 

Hi;
Apply a threshold to test each pixel (ie 10/255). If pixel value is smaller than threshold, increase counter.
But in this way probably you can count also some black pixels around the eyelash (any other black random or single pixels).
So you can do some testings using neighbor pixels.
ie if pixel next, above and below to tested pixel, is also below the defined threshold then accept it as black.
I hope you got my point.
Good luck.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…