Skip to content

Commit eaf64a2

Browse files
committed
Test wip
1 parent fc235d7 commit eaf64a2

17 files changed

+16
-21
lines changed

contrib/blender/create_patches.sh

100755100644
File mode changed.

cpplint

100755100644
File mode changed.

src/libmv/correspondence/planar_tracker.cc

100755100644
File mode changed.

src/libmv/correspondence/planar_tracker.h

100755100644
File mode changed.

src/libmv/correspondence/robust_tracker.cc

100755100644
File mode changed.

src/libmv/correspondence/robust_tracker.h

100755100644
File mode changed.

src/libmv/correspondence/tracker.cc

100755100644
File mode changed.

src/libmv/descriptor/descriptor_factory.cc

100755100644
File mode changed.

src/libmv/descriptor/descriptor_factory.h

100755100644
File mode changed.

src/libmv/detector/detector_factory.cc

100755100644
File mode changed.

src/libmv/detector/detector_factory.h

100755100644
File mode changed.

src/libmv_opencv/mvr/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FILE(GLOB MVR_HDRS *.h)
99

1010
ADD_LIBRARY(mvr ${MVR_SRC} ${MVR_HDRS})
1111

12-
TARGET_LINK_LIBRARIES(mvr multiview glog numeric V3D ${OpenCV_LIBS})
12+
TARGET_LINK_LIBRARIES(mvr correspondence multiview glog numeric V3D ${OpenCV_LIBS})
1313

1414
# make the name of debug libraries end in _d.
1515
SET_TARGET_PROPERTIES(mvr PROPERTIES DEBUG_POSTFIX "_d")

src/libmv_opencv/mvr/mvr_test.cc

+15-20
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ using namespace cv;
4646
using namespace std;
4747

4848
using namespace libmv;
49+
using namespace Eigen;
4950
using namespace cv;
51+
5052
//using namespace libmv_opencv;
5153
TEST(Mvr, TestYAML) {
5254
// { //write
@@ -101,6 +103,7 @@ TEST(Mvr, TestYAML) {
101103

102104
// libmv api
103105

106+
// Matching pts
104107
Matches matches;
105108
for (int v = 0; v < nviews; ++v) {
106109
for (int p = 0; p < npts; ++p) {
@@ -109,26 +112,18 @@ TEST(Mvr, TestYAML) {
109112
matches.Insert(v, p, feature);
110113
}
111114
}
112-
// cv::Mat K1 = Mat_<double>::eye(3, 3);
113-
// cv::Mat K2 = Mat_<double>::eye(3, 3);
114-
// libmv::vector<Mat3> K1_libmv, K2_libmv;
115-
//
116-
//// K1_libmv=Matrix::Identitiy<double>(3,3);
117-
// for(int r=0;r<3;++r)
118-
// for(int c=0;c<3;++c)
119-
// K1_libmv(r,c)=0.0;
120-
// K1_libmv(0,0)=1.0;
121-
// K1_libmv(1,1)=1.0;
122-
// K1_libmv(2,2)=1.0;
123-
//
124-
//
125-
// // Set this from data
126-
// Vec2u image_size1(1, 1);
127-
// Vec2u image_size2(1.0, 1.0);
128-
//
129-
// Reconstruction recons;
130-
// InitialReconstructionTwoViews(matches, 0, 1, K1_libmv, K1_libmv,
131-
// image_size1, image_size2, &recons);
115+
116+
// Camera matrices
117+
Eigen::MatrixXf K1_libmv = Eigen::MatrixXf::Identity(3, 3);
118+
Eigen::MatrixXf K2_libmv = Eigen::MatrixXf::Identity(3, 3);
119+
120+
// Image size -- has probs
121+
Vec2u image_size1;
122+
image_size1 << 1, 1;
123+
124+
Reconstruction recons;
125+
InitialReconstructionTwoViews(matches, 0, 1, K1_libmv, K1_libmv,
126+
image_size1, image_size1, &recons);
132127

133128
}
134129
}

src/third_party/glog/src/demangle_unittest.sh

100755100644
File mode changed.

src/third_party/glog/src/logging_striplog_test.sh

100755100644
File mode changed.

src/third_party/glog/src/signalhandler_unittest.sh

100755100644
File mode changed.

src/third_party/glog/src/windows/preprocess.sh

100755100644
File mode changed.

0 commit comments

Comments
 (0)