我有两张图片。在其中一张图片中,我的眼睛位于中间位置,而在另一张图片中,它位于左侧。如何确定我的眼睛是在左边还是在右边?
我正在使用 MATLAB。这有什么功能吗?
我有两张图片。在其中一张图片中,我的眼睛位于中间位置,而在另一张图片中,它位于左侧。如何确定我的眼睛是在左边还是在右边?
我正在使用 MATLAB。这有什么功能吗?
这听起来像是在 MATLAB 中实现的眼动追踪,这是一个相当流行的研究课题。
如果您想要更详细的答案,请回答以下问题:
如果您愿意在一个图像中选择眼睛,您可以使用模板匹配在其他图像中找到它(例如,您可以在视频的第一帧中标记它,然后在所有其他帧中找到它)。
查看matlab中的normxcor2函数: http ://www.nd.edu/~hpcc/solaris8_usr_local/src/matlab6.1/help/toolbox/images/normxcorr2.html
这种技术对于恒定的光照变化是稳健的,但如果眼睛的外观在您从中获取模板的图像和您正在搜索的图像之间发生显着变化,则将失败。
If you are going to search for the eye in a lot of frames (for example, eye tracking from a webcam) then you should look at stronger techniques such as the Kalman Filter or the Particle Filter (aka Condensation Filter in computer vision)
By using Color Distance Maps, the skin and non skin area can be differentiated and thus the non skin area contains the iris. From the iris, the whole eye could be detected. Hope it works.
You should also have a look at Eye Ball Detection in MATLAB , they have detected eyes first and then detected the EyeBall.