-
Notifications
You must be signed in to change notification settings - Fork 58
Replace FFT with a Nearest Neighbor Ransac approach #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: prerelease
Are you sure you want to change the base?
Conversation
markmac99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
|
|
Can you try doing it on the same image? Half a mag of difference in the photometric calibration should be investigated, unless the clouds interfered with the first fit. |
|
Same commit, manual platepar vs automatic platepar? |
|
Right, we want to see that the automated photometry fit compares well to the manual fit on the same data. There was previously a bug that caused issues with the automated photometry, I want to confirm that everything is 100% ok now. |
…ter of distortion parameters
I'm not seeing the issue on my side. Could you post a full screenshot with the distortion params? |
|
The distortion params should't affect the centroids as that is only done in the x/y space. I'll try to take a look on my end. |
|
I tried to replicate on a Mac and Ubuntu with and without display scaling, in manual reduction mode or not, the centroids are always perfect. Are you measuring FF files or something else? |
|
Right, I see the behavior you describe from master using this branch even with a wide aperture. I really want to reproduce though. |
|
And you seeing the same on regular stars or just on meteors - is it a moving object issue somehow? |
|
You can take any FF file with a meteor to test. I only noticed it in manual reduction, haven't tried it in stars. This was perhaps not noticed because most often star centroids snap to the extracted positions (green circles). |
|
Ok, found the issue when in manual reduction in frame picking mode and picking fast moving objects. It should be fixed now. |
|
It works, thanks! |
…and add UI feedback for satellite track computation.
…ead (intensity/amplitude swap)


















Replace deprecated imreg_dft with scikit-image.