Skip to content

Commit

Permalink
logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bensondaled committed May 31, 2017
1 parent 9747327 commit d45211f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyfluo/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ def remove_overlaps(roi, dff, overlap_thresh=.5, debug=False, **similarity_kw):
keeper = np.ones(len(roi)).astype(bool)
keeper[remove] = False
roi_new = roi[keeper]
keeper_new = keeper[keeper]

roi_new = roi_new.as3d()
keeper = keeper[np.any(roi_new, axis=(1,2))]
keeper = keeper_new[np.any(roi_new, axis=(1,2))]
roi_new = roi_new[np.any(roi_new,axis=(1,2))]

return roi_new,keeper
Expand Down

0 comments on commit d45211f

Please sign in to comment.