Conversation
not on individual correspondences
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
===========================================
- Coverage 100.00% 99.30% -0.70%
===========================================
Files 5 4 -1
Lines 68 143 +75
===========================================
+ Hits 68 142 +74
- Misses 0 1 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
In fact I think using |
|
Thanks for the fix, Chris. Will keep the inverse transform as requested |
|
I ran a test over the dataset which previously gave trouble using a line like this: @time res_all = [align_frame(img_from, img_to)[1] for img_from in eachslice(gray, dims=3)]and it seems that the alignment was good. I did not do any quantitative comparison, but there was no fail. But I think you can merge the ransac-2 code. |
icweaver
left a comment
There was a problem hiding this comment.
Thanks, Chris! Just left a very brief suggestion/question for the point_map bit
I also finished merging your ransac.jl notebook into the original docs/notebook.jl Pluto notebook + cleaned up a few visualization things. Here's an html preview: https://pluto.land/n/8p4z2gqc
I haven't done a deep dive on the tests, but the initial passing tests makes me inclined to just save extra exploration of this + maybe how we generate test star fields for a separate PR
Entries of `correspondences` are unique triangles but those trianges can have stars in common so we end up with duplications in the `point_map` so we just filter for unique entries.
| warp(img_from, tfm, axes(img_to)), | ||
| (; | ||
| point_map, | ||
| tfm, |
There was a problem hiding this comment.
@icweaver should we actually be returning fwd_tfm here for consistency? That would give the from -> to transformation which is what we give in point_map so the two would match in convention. Really tfm is only needed for the warp call since it requires the to -> from transformation.
I noticed in your pluto notebook you have to take the inverse of the returned tfm in order to compare to the original transformation matrix which feels like one extra step maybe you shouldn't have to take.
There was a problem hiding this comment.
Agreed, this was bothering me a bit too. Making the switch in the notebook and src/warp.jl is straightforward enough, but it seems like some care will need to be taken to update the tests. Happy to make the change, just wanted to make sure I was understanding the implications first before making any substantial changes to your tests
There was a problem hiding this comment.
I guess just sprinkling some inv should be enough
Closes #3. This is an alternate approach which I think should work better than #28 as that implementation did some things wrong (see #28 (comment)).