Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

How to extract pixel values of eye from the face?

1 view (last 30 days)
I have done the following so far:
1. Performed background removal of the image.
2. Converted image to grayscale.
3. Performed K-means clustering over the image.
3. Done thresholding, so I get a binary image (with the hair, eyebrows, and eyes black, and some region of the lips/chin, while the rest of the face is white).
4. Connected component labelling over the entire image, and plotted them using the plot function.
Now the final output plots the components for the eyes exactly, but how do I extract the pixel values of these components? Because my program captures images through the video, the number of components is different everytime, and so is their area. So what should I do?
Please help me out! Really urgent!

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!