bpurinton / PebbleCounts

PebbleCounts: grain-sizing algorithm for gravel-bed river imagery
GNU General Public License v3.0
11 stars 9 forks source link

Added ability to bypass the manual selection of particles #14

Open coltenelkin opened 5 months ago

coltenelkin commented 5 months ago

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.