Robust Estimation of Neural Signals in Calcium Imaging