Closed dimembermatt closed 5 years ago
Please remove all older versions of your code; that's what git is for! The idea is that only the most recent copy is kept in any given version; to access older versions, instead of having ..._v1, _v2, etc, you can just pull up an older commit. I'm also not sure why there are so many files in the commit; you should avoid committing test results and old tests.
I organized the folders (dbscan
-> vision/dbscan
) and added some optimizations. The profile
function is copied in; this will probably be turned into a submodule or core module later since it's too useful to be kept to just dbscan.
Description
Pull request to merge vision/db_scan with dev. Working version of module DB_SCAN3.py and readme instructions in the main subdirectory.
API Changes
Adds module db_scan with functions
db_scan::output_single
(a colored mask of all identified objects) anddb_scan::output_individual
(a set of masks with each individual object). Internal functions including coloring, separating masks, and db_scan are restricted from the user.Tests
Run tests with
python test_dbscan.py <input> <radius> <density> <options>
:input
is the file to load and run dbscan onradius
is the ball radius to usedensity
is the density threshold for clusteringoptions
can besingle
,separate
,both
, ortime
.Todos
Things that need to be done but aren't critical (that you promise to get done)
Notes
Works as is, robustly, and as of this moment, with no noticeable or life-threatening flaws. Requires an input greyscale image to work properly.