Programmable Vision Sensors with On-chip Real-time Image Processing