Implemented 3D connected components as wrapper class for scipy.ndimage.label
All threads resolved!
All threads resolved!
Ticket: https://www.notion.so/qim-dtu/3D-connected-components-ca5c410fef49444eac7c6efd0b56ead4?pvs=4
I have made a simple plot functions that takes the ConnectedComponents object and extracts the connected_components volume.
However I don't know if it is necessary as the user could do this manually.
def plot_connected_components(connected_components: ConnectedComponents, **kwargs):
""" Plots connected components from the ConnectedComponents class as 2d slices.
Args:
connected_components (ConnectedComponents): The connected components class from the qim3d.utils.connected_components module.
**kwargs: Additional keyword arguments to pass to qim3d.viz.img.slice_viz.
Returns:
matplotlib.pyplot: the 3D plot of the connected components.
"""
fig = slice_viz(connected_components.connected_components, **kwargs)
return fig
Merge request reports
Activity
requested review from @fima
assigned to @s204159
- Resolved by s204159
- Resolved by s204159
- Resolved by s204159
- Resolved by s204159
added 29 commits
-
5277a48a...75cb18fe - 27 commits from branch
main
- d0439a81 - merged with main and solved conflicts
- 7d7c2ba6 - removing cache files
-
5277a48a...75cb18fe - 27 commits from branch
mentioned in commit e14ba9f7
Please register or sign in to reply