Skip to content
Snippets Groups Projects
Commit c82fb8ce authored by s214735's avatar s214735
Browse files

More changes

parent 72a3ad9d
No related branches found
No related tags found
1 merge request!144Docstrings
......@@ -2,4 +2,7 @@
The `qim3d` library aims to ease the creation of ML models for volumetric images
::: qim3d.ml.models._unet
\ No newline at end of file
::: qim3d.ml.models
options:
members:
- UNet
\ No newline at end of file
......@@ -61,10 +61,10 @@ def segmentation(
```python
import qim3d
cmap_bright = qim3d.viz.colormaps.objects(num_labels=100, style = 'bright', first_color_background=True, background_color="black", min_dist=0.7)
cmap_soft = qim3d.viz.colormaps.objects(num_labels=100, style = 'soft', first_color_background=True, background_color="black", min_dist=0.2)
cmap_earth = qim3d.viz.colormaps.objects(num_labels=100, style = 'earth', first_color_background=True, background_color="black", min_dist=0.8)
cmap_ocean = qim3d.viz.colormaps.objects(num_labels=100, style = 'ocean', first_color_background=True, background_color="black", min_dist=0.9)
cmap_bright = qim3d.viz.colormaps.segmentation(num_labels=100, style = 'bright', first_color_background=True, background_color="black", min_dist=0.7)
cmap_soft = qim3d.viz.colormaps.segmentation(num_labels=100, style = 'soft', first_color_background=True, background_color="black", min_dist=0.2)
cmap_earth = qim3d.viz.colormaps.segmentation(num_labels=100, style = 'earth', first_color_background=True, background_color="black", min_dist=0.8)
cmap_ocean = qim3d.viz.colormaps.segmentation(num_labels=100, style = 'ocean', first_color_background=True, background_color="black", min_dist=0.9)
display(cmap_bright)
display(cmap_soft)
......@@ -77,11 +77,11 @@ def segmentation(
import qim3d
vol = qim3d.examples.cement_128x128x128
binary = qim3d.processing.filters.gaussian(vol, sigma = 2) < 60
labeled_volume, num_labels = qim3d.processing.operations.watershed(binary)
binary = qim3d.filters.gaussian(vol, sigma = 2) < 60
labeled_volume, num_labels = qim3d.segmentation.watershed(binary)
cmap = qim3d.viz.colormaps.objects(num_labels, style = 'bright')
qim3d.viz.slicer(labeled_volume, axis = 1, cmap=cmap)
cmap = qim3d.viz.colormaps.segmentation(num_labels, style = 'bright')
qim3d.viz.slicer(labeled_volume, slice_axis = 1, color_map=cmap)
```
![colormap objects](assets/screenshots/viz-colormaps-objects.gif)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment