rlancaste / stellarsolver

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

Fix sky background bug, remove partition margin, skip detections overlapping the edge #66

Closed murveit closed 3 years ago

murveit commented 3 years ago

The returned Background structure (containing sky background values like the brightness and number of stars detected) had a bug in its values, due to the partitioned computation. This is fixed here.

Also, removed the margin (partitions were separated by 15 pixels in an attempt to avoid duplicate star detections). Instead I used the SEP flag SEP_OBJ_TRUNC which detects when a star overlaps the edge, and those detections are not used. This reduces the number of stars not detected without causing duplicates.