Commit 8edb17545ec0f0bb3730cdb2e76e0a400b4ebd68
1 parent
311b5f56
more compile warnings/errors fixes
Showing
2 changed files
with
1 additions
and
3 deletions
openbr/plugins/classification/dlib.cpp
| @@ -2,8 +2,6 @@ | @@ -2,8 +2,6 @@ | ||
| 2 | #include <dlib/opencv.h> | 2 | #include <dlib/opencv.h> |
| 3 | 3 | ||
| 4 | #include "openbr/plugins/openbr_internal.h" | 4 | #include "openbr/plugins/openbr_internal.h" |
| 5 | -#include "openbr/core/qtutils.h" | ||
| 6 | -#include "openbr/core/eigenutils.h" | ||
| 7 | 5 | ||
| 8 | #include <QTemporaryFile> | 6 | #include <QTemporaryFile> |
| 9 | 7 |
openbr/plugins/cluster/meanshift.cpp
| @@ -84,7 +84,7 @@ private: | @@ -84,7 +84,7 @@ private: | ||
| 84 | pow(distance / bandwidth, 2, p); | 84 | pow(distance / bandwidth, 2, p); |
| 85 | exp(-0.5 * p, e); | 85 | exp(-0.5 * p, e); |
| 86 | 86 | ||
| 87 | - return (1.0 / (bandwidth * sqrt(2 * M_PI))) * e; | 87 | + return (1.0 / (bandwidth * sqrt(2 * CV_PI))) * e; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | QList<int> assignClusterID(const QList<Mat> &points) | 90 | QList<int> assignClusterID(const QList<Mat> &points) |