Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

pupil.jpg


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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top