Imported from https://github.com/zhousam/Joint-Multi-frame-Detection-and-Segmentation-for-Multi-cell-Tracking