Skip to content

Commit

Permalink
Code cleanup openMVG#719
Browse files Browse the repository at this point in the history
- compilation fix
  • Loading branch information
pmoulon committed Dec 31, 2016
1 parent 863f624 commit e54ff59
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions src/openMVG/matching/metric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include "openMVG/matching/metric_hamming.hpp"
#include "openMVG/numeric/accumulator_trait.hpp"

#ifdef OPENMVG_USE_SSE
#include <xmmintrin.h>
#endif

#include <cstddef>
#include <iostream>
Expand Down Expand Up @@ -76,8 +79,6 @@ struct L2_Vectorized

namespace optim_ss2{

#include <xmmintrin.h>

/// Union to switch between SSE and float array
union sseRegisterHelper
{
Expand Down
16 changes: 8 additions & 8 deletions src/openMVG/multiview/rotation_averaging_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ TEST ( rotation_averaging, RotationLeastSquare_3_Camera)
using namespace std;

//--
// Setup 3 camera that have a relative orientation of 120
// Setup 3 camera that have a relative orientation of 120 degree
// Set Z axis as UP Vector for the rotation
// They are in the same plane and looking in O={0,0,0}
//--
const Mat3 R01 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R12 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R20 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R01 = RotationAroundZ(2.*M_PI/3.0); //120 degree
const Mat3 R12 = RotationAroundZ(2.*M_PI/3.0); //120 degree
const Mat3 R20 = RotationAroundZ(2.*M_PI/3.0); //120 degree

std::vector<RelativeRotation > vec_relativeRotEstimate;
vec_relativeRotEstimate.push_back( RelativeRotation(0,1, R01));
Expand Down Expand Up @@ -162,13 +162,13 @@ TEST ( rotation_averaging, RefineRotationsAvgL1IRLS_SimpleTriplet)
using namespace std;

//--
// Setup 3 camera that have a relative orientation of 120
// Setup 3 camera that have a relative orientation of 120 degree
// Set Z axis as UP Vector for the rotation
// They are in the same plane and looking in O={0,0,0}
//--
const Mat3 R01 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R12 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R20 = RotationAroundZ(2.*M_PI/3.0); //120
const Mat3 R01 = RotationAroundZ(2.*M_PI/3.0); //120 degree
const Mat3 R12 = RotationAroundZ(2.*M_PI/3.0); //120 degree
const Mat3 R20 = RotationAroundZ(2.*M_PI/3.0); //120 degree

// Setup the relative motions (relative rotations)
RelativeRotations vec_relativeRotEstimate;
Expand Down
6 changes: 3 additions & 3 deletions src/openMVG/sfm/sfm_view_priors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef OPENMVG_SFM_SFM_VIEW_PRIOS_HPP
#define OPENMVG_SFM_SFM_VIEW_PRIOS_HPP
#ifndef OPENMVG_SFM_SFM_VIEW_PRIORS_HPP
#define OPENMVG_SFM_SFM_VIEW_PRIORS_HPP

#include "openMVG/geometry/pose3.hpp"

Expand Down Expand Up @@ -195,4 +195,4 @@ struct ViewPriors : public View
CEREAL_REGISTER_TYPE_WITH_NAME( openMVG::sfm::ViewPriors, "view_priors" );
CEREAL_REGISTER_POLYMORPHIC_RELATION(openMVG::sfm::View, openMVG::sfm::ViewPriors);

#endif // OPENMVG_SFM_SFM_VIEW_PRIOS_HPP
#endif // OPENMVG_SFM_SFM_VIEW_PRIORS_HPP
3 changes: 2 additions & 1 deletion src/openMVG/stl/dynamic_bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define OPENMVG_STL_DYNAMIC_BITSET_HPP

#include <cassert>
#include <cstddef>
#include <limits>
#include <vector>

Expand Down Expand Up @@ -111,4 +112,4 @@ namespace stl
};
} // namespace stl

#endif // OPENMVG_STL_DYNAMIC_BITSET_HPP
#endif // OPENMVG_STL_DYNAMIC_BITSET_HPP

0 comments on commit e54ff59

Please sign in to comment.