Rob, Here is a speedup I added to KStars.
FWIW, it shouldn't have any effect on your code unless you set params.initialKeep.
Feel free to rename.
The idea is that after sep_extract, it sorts the detections by the oval size, and only performs the "expensive processing", e.g. sep_flux_radius, on the top params.initialKeep detections when sorted by that oval size.
I defaulted it to a large number, so it doesn't have impact, but for my work will set it to, eg. a few hundred or less. So I get that many detections, then get their real HFRs etc, and return the desired number of those.
Rob, Here is a speedup I added to KStars. FWIW, it shouldn't have any effect on your code unless you set params.initialKeep. Feel free to rename. The idea is that after sep_extract, it sorts the detections by the oval size, and only performs the "expensive processing", e.g. sep_flux_radius, on the top params.initialKeep detections when sorted by that oval size.
I defaulted it to a large number, so it doesn't have impact, but for my work will set it to, eg. a few hundred or less. So I get that many detections, then get their real HFRs etc, and return the desired number of those.