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

Switching to squared sampson point-line error #792

Merged
merged 5 commits into from
Jun 21, 2021

Conversation

ayushbaid
Copy link
Contributor

The squared sampson error is the first order approximation of the gold-standard reprojection error.

This is a work-in-progress PR, and I'll see if the switch actually improves performance. I will clean up the PR and add more documentation if we want to merge this.

@ProfFan
Copy link
Collaborator

ProfFan commented Jun 21, 2021

Wait, is this a WIP PR? @akshay-krishnan @ayushbaid ?

@ProfFan
Copy link
Collaborator

ProfFan commented Jun 21, 2021

Also this is a breaking PR.

@akshay-krishnan
Copy link
Contributor

Fan, yes this a WIP PR. We merged a portion of it in another PR. I am not sure how Ayush wants to proceed with this, I think we will open a new PR if we want to merge the remaining changes.

@ProfFan
Copy link
Collaborator

ProfFan commented Jun 22, 2021

Yeah what I mean is that this will change how old code behaves or not?

@dellaert
Copy link
Member

It seems this was merged in develop, not in another branch, so Fan questions are pertinent :-) Phan, why do you say this is a breaking PR? CI seems to work.

@ProfFan
Copy link
Collaborator

ProfFan commented Jun 22, 2021

@dellaert Because

double EssentialMatrix::error(const Vector3& vA, const Vector3& vB, 
                              OptionalJacobian<1, 5> HE,
                              OptionalJacobian<1, 3> HvA,
                              OptionalJacobian<1, 3> HvB) const {

signature has changed, and

*HE = 2 * sampson_error * (numerator_H / denominator -
         algebraic_error * denominator_H / (denominator * denominator));

The first Jacobian has changed as well.

@akshay-krishnan
Copy link
Contributor

Fan, those changes have not been merged into develop. Here is the error() method in EssentialMatrix.cpp at develop.
Ayush, merged some commits from this branch feature/sampson-epipolar-error into feature/essential-mat-with-approx-k which is what #753 used. But I removed those changes in this commit before merging #753.

So git will say that this PR has been merged since its commits went into #753 but I removed most of the changes in those commits later on.

@ProfFan
Copy link
Collaborator

ProfFan commented Jun 23, 2021

@akshay-krishnan I see, thanks :)

@varunagrawal varunagrawal deleted the feature/sampson-epipolar-error branch October 22, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip This is still a work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants