Locate only within specific ROI
Closed this issue · 2 comments
PabloAu commented
Hi,
It would be really useful to have an optional Polygon input to the function trackpy.locate, so that the particles are only localized within a certain ROI. Right now, I am localizing all the particles in the image and then filtering them using shapely and geopandas libraries, but this takes a lot of processing time.
If something like already exists or there is a better alternative, please let me know.
Thanks,
Pablo.
nkeim commented
Have you tried masking the image before processing? That is usually a large speed up. You could also experiment with the brightness threshold and the number of iterations for position refinement; those tend to have a large effect on how much effort is spent on spurious particles.
On Apr 15, 2024, at 8:37 AM, Pablo Aurelio Gómez García ***@***.***> wrote:
Hi,
It would be really useful to have an optional Polygon input to the function trackpy.locate, so that the particles are only localized within a certain ROI. Right now, I am localizing all the particles in the image and then filtering them using shapely and geopandas libraries, but this takes a lot of processing time.
If something like already exists or there is a better alternative, please let me know.
Thanks,
Pablo.
—
Reply to this email directly, view it on GitHub<#760>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAWY23NPPJH3I32DI5FV6MLY5PCZXAVCNFSM6AAAAABGHIVCFKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DGNJXGUYDEMA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>