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

Added ability to bypass the manual selection of particles #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coltenelkin
Copy link

@coltenelkin coltenelkin commented Jan 23, 2024

Added two ways to skip the clicking delineation of particles while keeping a multitude (much more kept particles than the pebbleCountsAuto function:

  1. Set the new -skip_manual_clicking command line option to True
  2. When the image pops up to click on and delineate particles, simply type q and hit enter and all of the particles shown onscreen will be accepted.

Also made some modifications to handle greyscale images without throwing an error. Note: the k-means segmentation isn't as good with greyscale, but at least the code doesn't exit with exception any more.

Added two ways to skip the clicking delineation of particles:
1. Set the new -skip_manual_clicking command line option to True
2. When the image pops up to click on and delineate particles, simply type q and hit enter and all of the particles shown onscreen will be accepted.
Added a test for greyscale and a warning to the user that greyscale images may not perform well during k-means segmentation. However, the code no longer errors out.
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.

1 participant