actually i want to get a value which can be used to decide the state of eyes.
i am trying to do it by
newIm2= im2bw(eyeImage,0.4);
B = bwboundaries(newIm2,8,'noholes');
L= length(B);
after this comparing "L"... as it would be different for eye open and closed state.
but the above algorithm is not working. please help