Skip to content

Conversation

@constantinpape
Copy link
Contributor

Additional revision experiments

@constantinpape constantinpape changed the title Add SBD to CryoVesNet evaluation Revision Experiments May 29, 2025
return_predictions: bool = False,
scale: Optional[List[float]] = None,
exclude_boundary: bool = False,
exclude_boundary_vesicles: bool = False,
Copy link
Contributor Author

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:
Copy link
Contributor Author

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
Copy link
Contributor Author

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)

@constantinpape constantinpape merged commit 408b807 into main Jul 10, 2025
3 checks passed
@constantinpape constantinpape deleted the revision branch July 10, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants