Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to extract pixel values of eye from the face?

1 次查看(过去 30 天)
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!

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by