Title: Theory and Applications of Smart Cameras