Commit 4de05477 authored by katharina.loeffler's avatar katharina.loeffler
Browse files

catch case no object segmented in frame

parent a6c3ba3c
......@@ -74,7 +74,8 @@ class MultiCellTracker:
segmentation, mask_indices = self.config.get_segmentation_masks(time)
# initialize tracklets
for m_id, mask in mask_indices.items():
for m_id in mask_indices.index.values:
mask = mask_indices[m_id]
m = np.array(mask)
box_shape = np.max(m, axis=-1) - np.min(m, axis=-1) + 1
box_shape = [max(a, b) for a, b in zip(box_shape, self.config.roi_box_size)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment