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

[sfm] rmse: bug fix if there is no data at all #1043

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

fabiencastan
Copy link
Member

No description provided.

@fabiencastan fabiencastan added this to the 2.5.0 milestone May 25, 2021
simogasp
simogasp previously approved these changes May 26, 2021
@@ -31,6 +31,8 @@ double RMSE(const sfmData::SfMData& sfmData)
vec.push_back(residual(1));
}
}
if(vec.empty())
return 0.0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe -1.0 so we know that there is a problem?

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.

2 participants