Hello! I found a very strange question! I only add #include <opencv2/opencv.hpp> in texrecon.cpp, and I haven't used any functions about opencv yet. It would influence the result of solver.optimize(solution, ctr) in "view_selection.cpp". I found it can call optimize( std::vector<_iv_st<COSTTYPE, SIMDWIDTH>>& solution,const mapMAP_control& control_flow) in mapmap/source/mapmap.impl.h. And I add a print log message. Like this:
When I don't add#include <opencv2/opencv.hpp> , result of texturing is good. Like this:
And the log message:
m_num_nodes: 198131
Optimizing:
Time[s] Energy
first print
0 175136
second print
0 173408
control_flow.use_spanning_tree: 1
check_termin
old_objective: 173408
obj: 171636
third print
0 171636
control_flow.use_spanning_tree: 1
check_termin
old_objective: 171636
obj: 170673
third print
0 170672
control_flow.use_spanning_tree: 1
check_termin
old_objective: 170673
obj: 170211
third print
1 170211
control_flow.use_spanning_tree: 1
check_termin
old_objective: 170211
obj: 169933
third print
1 169932
control_flow.use_spanning_tree: 1
check_termin
old_objective: 169933
obj: 169738
third print
1 169737
forth print
1 169678
control_flow.use_spanning_tree: 1
check_termin
old_objective: 169738
obj: 169586
third print
1 169586
control_flow.use_spanning_tree: 1
fifth print
2 169527
fifth print
2 169480
fifth print
2 169435
fifth print
2 169401
fifth print
2 169367
6008 faces have not been seen
When I add#include <opencv2/opencv.hpp> , result of texturing is bad. Like this:
The log message:
m_num_nodes: 198131
Optimizing:
Time[s] Energy
first print
0 163685
second print
0 163685
control_flow.use_spanning_tree: 1
check_termin
old_objective: 163686
obj: 163668
third print
0 163668
control_flow.use_spanning_tree: 1
check_termin
old_objective: 163668
obj: 163661
third print
0 163660
control_flow.use_spanning_tree: 1
check_termin
old_objective: 163661
obj: 163671
fifth print
1 163670
fifth print
1 163670
fifth print
1 163670
fifth print
1 163670
fifth print
1 163670
6008 faces have not been seen
Comparison of the two log information, I found that it reduce the number of optimization iterations when add #include <opencv2/opencv.hpp>, and it doesn't jump into
I don't know why the head file <opencv2/opencv.hpp> can influence the optimize( std::vector<_iv_st<COSTTYPE, SIMDWIDTH>>& solution,const mapMAP_control& control_flow) in mapmap/source/mapmap.impl.h. Who can explain the reason? Thank you!
Hello! I found a very strange question! I only add #include <opencv2/opencv.hpp> in texrecon.cpp, and I haven't used any functions about opencv yet. It would influence the result of solver.optimize(solution, ctr) in "view_selection.cpp". I found it can call optimize( std::vector<_iv_st<COSTTYPE, SIMDWIDTH>>& solution,const mapMAP_control& control_flow) in mapmap/source/mapmap.impl.h. And I add a print log message. Like this:
When I don't add #include <opencv2/opencv.hpp> , result of texturing is good. Like this:
And the log message:
When I add #include <opencv2/opencv.hpp> , result of texturing is bad. Like this:
The log message:
Comparison of the two log information, I found that it reduce the number of optimization iterations when add #include <opencv2/opencv.hpp>, and it doesn't jump into
I don't know why the head file <opencv2/opencv.hpp> can influence the optimize( std::vector<_iv_st<COSTTYPE, SIMDWIDTH>>& solution,const mapMAP_control& control_flow) in mapmap/source/mapmap.impl.h. Who can explain the reason? Thank you!