Sampling and Signal Estimation in Computational Optical Sensors