Multi-functional vision sensor