Skip to content
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

Add Remove Dust Function #83

Closed
william-silversmith opened this issue Dec 21, 2021 · 2 comments · Fixed by #84
Closed

Add Remove Dust Function #83

william-silversmith opened this issue Dec 21, 2021 · 2 comments · Fixed by #84
Assignees
Labels
feature New feature or request

Comments

@william-silversmith
Copy link
Contributor

william-silversmith commented Dec 21, 2021

This is probably one of the most common uses of cc3d and it's easy to screw it up and make it run slow.

Probably need to support three modes:

  • remove fewer than this number of voxels
  • remove smaller than this percent of the maximum size shape.
  • remove smaller than this percent of the image size (can be done using option 1 and some math)
@william-silversmith william-silversmith added the feature New feature or request label Dec 21, 2021
@william-silversmith
Copy link
Contributor Author

# voxels? thresh > 1 but single voxels would be ambigious and have the opposite action
cc3d.dust(img, threshold=123) 
cc3d.dust(img, threshold=0.3) # fraction? 0 <= thresh <= 1

@william-silversmith william-silversmith linked a pull request Dec 23, 2021 that will close this issue
@william-silversmith william-silversmith self-assigned this Dec 23, 2021
@william-silversmith
Copy link
Contributor Author

All other functions can be achieved with computing image statistics and using the voxel dust function. This was completed in #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant