Is your feature request related to a problem? Please describe.
merge_masks.py takes a long time to run in ez_segmenter, especially when running through large datasets (>1000 FoVs) with hundreds of cells / FoV.
Describe the solution you'd like
Reduce merge time by limiting scope of potential cells-to-merge to the area surrounding the object to be merged. Also adding testing for this method.
Describe alternatives you've considered
Pararellization of FoV's also considered but may need to be a separate undertaking.
Additional context
Add any other context or screenshots about the feature request here.
Tested on a brain run with multiple ez object masks.
Pre-updated merge code: top (time to merge = 18+ hrs)
Post-updated merge code: bottom (time to merge: 2+ min)
Is your feature request related to a problem? Please describe. merge_masks.py takes a long time to run in ez_segmenter, especially when running through large datasets (>1000 FoVs) with hundreds of cells / FoV.
Describe the solution you'd like Reduce merge time by limiting scope of potential cells-to-merge to the area surrounding the object to be merged. Also adding testing for this method.
Describe alternatives you've considered Pararellization of FoV's also considered but may need to be a separate undertaking.
Additional context Add any other context or screenshots about the feature request here.