-
Notifications
You must be signed in to change notification settings - Fork 3
Revision Experiments #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revision Experiments #121
Conversation
| return_predictions: bool = False, | ||
| scale: Optional[List[float]] = None, | ||
| exclude_boundary: bool = False, | ||
| exclude_boundary_vesicles: bool = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be added to doc string (I will take care of this in a follow up PR)
|
|
||
| if exclude_boundary: | ||
| seg = filter_border_objects(seg) | ||
| if exclude_boundary_vesicles: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should think about the case exclude_boundary and exclude_boundary_vesicles. I don't think it makes sense (will take care of this in a follow-up PR)
| # Apply relabeling using a temp array (to avoid large ints in-place) | ||
| new_seg = np.zeros_like(seg, dtype=np.int32) | ||
| for old_label, new_label in label_map.items(): | ||
| new_seg[seg == old_label] = new_label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with skimage.segmentation.label_sequential (I will take care of this in a follow up PR)
Additional revision experiments