Replace FFT with a Nearest Neighbor Ransac approach and refactor SkyFit#762
Replace FFT with a Nearest Neighbor Ransac approach and refactor SkyFit#762dvida merged 235 commits intoprereleasefrom
Conversation
markmac99
left a comment
There was a problem hiding this comment.
I'll have to assume the maths is correct as its not an area i'm familiar with. I left a couple of comments in the review.
|
Ok, I think it works. It's slightly more accurate (although this a coarse tool so it doesn't matter) and it's slightly faster. |
|
Would could also just use RANSAC to reduce complexity: https://scikit-image.org/docs/0.25.x/auto_examples/transform/plot_matching.html |
Great suggestion!! It's so much better. 185x faster, perfectly accurate, and 180 less lines of code. |
|
@Cybis320 I commented this on the latest commit, but ImageIO version 2.33 isn't available for Python 3.7 which is the standard on Buster builds. The last version thats compatible with python 3.7 is 2.31.2. See https://pypi.org/project/ImageIO/#history for more. |
|
Latest update resolves the imageio issue, however frustratingly we have a new problem on Python 3.7 - the latest build of bcrypt is only available as a tar.gz file, and to build it requires Rust which is not installed / available for Buster 32bit. To work around that i think we need to install the last-good wheel version on python 3.7 in the requirements. Sigh. |
|
Isn't that a paramiko dependency? We didn't touch that here or in prerelease. Are you running into issues with a new install on Buster? |
|
Quite possibly. I was testing by trying to install the requirements on Buster in a brand new virtualenv, so that i can identify any potential incompatabilities. Existing stations might be ok, as they'd have bcrypt 3.2.0 installed already. So, it should only be a problem if someone has a buster-based system and has to rebuild it to buster. Maybe we just make a note in the README file explaining the potential issue. |
Fix re-detect to skip missing files and show per-frame progress. Unify Find Best Frame into a single dialog, with Auto Fit using the real image when available and only creating a placeholder when needed.
…r long operations Eliminate duplicated auto-fit code path by reusing autoFitAstrometryNet for both image-available and placeholder cases. Add runInBackground helper to run astrometry.net solving in a thread, preventing OS unresponsive warnings. Skip placeholder images in star detection. Add missing time import.
…e .cal files exist
…ratios per-star so missing data doesn't artificially shift brightness. Also correct band name comments (G, BP, RP).
Replace FFT with a Nearest Neighbor Ransac approach and refactor SkyFit
Replace deprecated imreg_dft with scikit-image.