rlancaste / stellarsolver

GNU General Public License v3.0
89 stars 47 forks source link

Optionally reduce the number of detections that are processed before filtering #3

Closed murveit closed 4 years ago

murveit commented 4 years ago

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.