File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 42
42
// * Anatoly Baksheev, Itseez Inc. myname.mysurname <> mycompany.com
43
43
//
44
44
//M*/
45
+ #include " opencv2/ts.hpp"
45
46
46
- #ifdef __GNUC__
47
- # pragma GCC diagnostic ignored "-Wmissing-declarations"
48
- # if defined __clang__ || defined __APPLE__
49
- # pragma GCC diagnostic ignored "-Wmissing-prototypes"
50
- # pragma GCC diagnostic ignored "-Wextra"
51
- # endif
52
- #endif
53
-
54
- #ifndef __OPENCV_TEST_PRECOMP_HPP__
55
- #define __OPENCV_TEST_PRECOMP_HPP__
56
-
57
- #include < opencv2/core/version.hpp>
58
47
#include < opencv2/viz/vizcore.hpp>
59
48
60
- namespace cv
61
- {
62
- Mat imread (const String& filename, int flags = 1 );
63
- }
64
-
65
- #if CV_MAJOR_VERSION < 3
66
- #include " opencv2/ts/ts.hpp"
67
- #else
68
- #include " opencv2/ts.hpp"
69
- #endif
70
-
71
49
#include < iostream>
72
50
#include < fstream>
73
51
#include < string>
@@ -108,5 +86,3 @@ namespace cv
108
86
return 0.114 * chs[0 ] + 0.58 * chs[1 ] + 0.3 * chs[2 ];
109
87
}
110
88
}
111
-
112
- #endif
Original file line number Diff line number Diff line change 3
3
using namespace cv ;
4
4
using namespace std ;
5
5
6
- void tutorial2 ()
6
+ static void tutorial2 ()
7
7
{
8
8
// / Create a window
9
9
viz::Viz3d myWindow (" Coordinate Frame" );
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ using namespace std;
6
6
/* *
7
7
* @function main
8
8
*/
9
- void tutorial3 (bool camera_pov)
9
+ static void tutorial3 (bool camera_pov)
10
10
{
11
11
// / Create a window
12
12
viz::Viz3d myWindow (" Coordinate Frame" );
You can’t perform that action at this time.
0 commit comments