@@ -61,6 +61,10 @@ using namespace cv;
61
61
using namespace cv ::sfm;
62
62
using namespace libmv ;
63
63
64
+ using namespace google ;
65
+
66
+ namespace gflags {}
67
+ using namespace gflags ;
64
68
65
69
// //////////////////////////////////////
66
70
// Based on 'libmv_capi' (blender API)
@@ -84,26 +88,26 @@ void libmv_initLogging(const char* argv0) {
84
88
// Make it so FATAL messages are always print into console.
85
89
char severity_fatal[32 ];
86
90
snprintf (severity_fatal, sizeof (severity_fatal), " %d" ,
87
- google:: GLOG_FATAL);
91
+ GLOG_FATAL);
88
92
89
- google:: InitGoogleLogging (argv0);
90
- google:: SetCommandLineOption (" logtostderr" , " 1" );
91
- google:: SetCommandLineOption (" v" , " 0" );
92
- google:: SetCommandLineOption (" stderrthreshold" , severity_fatal);
93
- google:: SetCommandLineOption (" minloglevel" , severity_fatal);
93
+ InitGoogleLogging (argv0);
94
+ SetCommandLineOption (" logtostderr" , " 1" );
95
+ SetCommandLineOption (" v" , " 0" );
96
+ SetCommandLineOption (" stderrthreshold" , severity_fatal);
97
+ SetCommandLineOption (" minloglevel" , severity_fatal);
94
98
}
95
99
96
100
void libmv_startDebugLogging (void ) {
97
- google:: SetCommandLineOption (" logtostderr" , " 1" );
98
- google:: SetCommandLineOption (" v" , " 2" );
99
- google:: SetCommandLineOption (" stderrthreshold" , " 1" );
100
- google:: SetCommandLineOption (" minloglevel" , " 0" );
101
+ SetCommandLineOption (" logtostderr" , " 1" );
102
+ SetCommandLineOption (" v" , " 2" );
103
+ SetCommandLineOption (" stderrthreshold" , " 1" );
104
+ SetCommandLineOption (" minloglevel" , " 0" );
101
105
}
102
106
103
107
void libmv_setLoggingVerbosity (int verbosity) {
104
108
char val[10 ];
105
109
snprintf (val, sizeof (val), " %d" , verbosity);
106
- google:: SetCommandLineOption (" v" , val);
110
+ SetCommandLineOption (" v" , val);
107
111
}
108
112
109
113
0 commit comments