Skip to content

Commit

Permalink
Bug fix (from inspirit) for collecting too many correspondences
Browse files Browse the repository at this point in the history
Change-Id: Ief430bde02ac6b58524636189e46112116e0ec0e
  • Loading branch information
sweeneychris committed Jul 22, 2015
1 parent 27db36f commit cb0e76a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theia/sfm/estimators/estimate_homography.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class HomographyEstimator
// Estimates candidate relative poses from correspondences.
bool EstimateModel(const std::vector<FeatureCorrespondence>& correspondences,
std::vector<Eigen::Matrix3d>* homography) const {
std::vector<Eigen::Vector2d> image1_points(5), image2_points(5);
for (int i = 0; i < 5; i++) {
std::vector<Eigen::Vector2d> image1_points(4), image2_points(4);
for (int i = 0; i < 4; i++) {
image1_points[i] = correspondences[i].feature1;
image2_points[i] = correspondences[i].feature2;
}
Expand Down

0 comments on commit cb0e76a

Please sign in to comment.