Skip to content
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

Made ncc threshold adjustable #280

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Made ncc threshold adjustable #280

merged 1 commit into from
Sep 9, 2022

Conversation

njbradley
Copy link
Contributor

This is a follow up from my question at #279, I put in a parameter in the stitch_images function to adjust the threshold manually. It isn't ready for merging yet, I haven't run the automated tests or written any tests for it, but in my usage it has worked well.

I am also not sure if exposing this value could cause other errors, (ie setting it to zero or very low values, or other edge cases).

Let me know what changes I should make!

@yfukai yfukai self-requested a review September 1, 2022 00:36
@yfukai
Copy link
Owner

yfukai commented Sep 1, 2022

Hi @njbradley, thanks a lot for this contribution! I'm very happy 🥳

I haven't run the automated tests or written any tests for it, but in my usage it has worked well.

The tests are working at least on GitHub CI. Would you mind adding a test showing that changing this value actually changes the stitching result? (a failing data changes to succeed, or a succeeding data changes to fail. If you're OK with that you could add your data for test).

I am also not sure if exposing this value could cause other errors, (ie setting it to zero or very low values, or other edge cases).

At this point, I think we can make it the user's responsibility to adjust this value in a good range. I hope at some point I can make this a bit organized with validations and structured errors with pydantic or so (like for https://github.com/yfukai/laptrack ).

@yfukai yfukai merged commit f42c6ae into yfukai:master Sep 9, 2022
@yfukai
Copy link
Owner

yfukai commented Sep 9, 2022

Merged as it looks OK, I'll add the tests later, thanks @njbradley for your contribution!

@njbradley
Copy link
Contributor Author

Oh thanks, I had forgotten about adding those tests! I'm glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants