Next generation of ROI detection for calcium imaging