Adaptive Sensing and Processing for Some Computer Vision Problems