Skip to content

Commit 395db9e

Browse files
committed
Fix sign() macro redefinition compile-time error
1 parent eada220 commit 395db9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/tracking/include/opencv2/tracking/onlineMIL.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ namespace cv
5454
//TODO based on the original implementation
5555
//http://vision.ucsd.edu/~bbabenko/project_miltrack.shtml
5656

57-
#define sign(s) ((s > 0 ) ? 1 : ((s<0) ? -1 : 0))
58-
5957
class ClfOnlineStump;
6058

6159
class CV_EXPORTS ClfMilBoost

modules/tracking/src/onlineMIL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
#include "precomp.hpp"
4343
#include "opencv2/tracking/onlineMIL.hpp"
4444

45+
#define sign(s) ((s > 0 ) ? 1 : ((s<0) ? -1 : 0))
46+
4547
template<class T> class SortableElementRev
4648
{
4749
public:

0 commit comments

Comments
 (0)