diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-25 21:35:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-25 21:35:44 +0200 |
commit | c346bb024b2a109debf59774eb96971d32a528ae (patch) | |
tree | 434c3f5289fb1837144e19eaef51d131750bce6d | |
parent | 2bae0bce582f05259f64fb13b364fe6dbd28817a (diff) |
tracker/pt: drop signed/unsigned warning
-rw-r--r-- | tracker-pt/point_extractor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index e3a6b04a..afd9c0eb 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -108,11 +108,11 @@ void PointExtractor::extract_points(cv::Mat& frame, std::vector<PointExtractor:: cv::Scalar(0), cv::Scalar(0), 8); - unsigned m00 = 0; - unsigned m10 = 0; - unsigned m01 = 0; - unsigned cnt = 0; - unsigned vals = 0; + int m00 = 0; + int m10 = 0; + int m01 = 0; + int cnt = 0; + int vals = 0; for (int i=rect.y; i < (rect.y+rect.height); i++) { @@ -122,7 +122,7 @@ void PointExtractor::extract_points(cv::Mat& frame, std::vector<PointExtractor:: { if (ptr_blobs[j] != idx) continue; ptr_blobs[j] = 0; - const unsigned val = ptr_gray[j]; + const int val = int(ptr_gray[j]); m00 += val; m01 += i * val; m10 += j * val; |