Skip to content

Commit

Permalink
docs(dust): show how to use the new dust features
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Dec 19, 2024
1 parent c96de05 commit d5bd1ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ labels_out = cc3d.dust(
labels_in, threshold=100,
connectivity=26, in_place=False
)
# Removes objects with >= `threshold` voxels.
labels_out = cc3d.dust(labels_in, threshold=100, invert=True)
# Removes objects with < `threshold[0]` voxels and >= threshold[1]
labels_out = cc3d.dust(labels_in, threshold=[50,100])
# Removes objects with >= `threshold[0]` voxels and < threshold[1]
labels_out = cc3d.dust(labels_in, threshold=[50,100], invert=True)

# Get a labeling of the k largest objects in the image.
# The output will be relabeled from 1 to N.
Expand Down

0 comments on commit d5bd1ac

Please sign in to comment.