summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-02 08:20:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-02 09:34:17 +0200
commitf2faf7acf4445fef2a149ebbdecb569a2d119d94 (patch)
tree6629ba211a70a54a0ab82f6c4f4de08504072951 /tracker-pt/module
parent66e75860d0c54baa39ed789442b09b96eeebe2e6 (diff)
nothing important
Diffstat (limited to 'tracker-pt/module')
-rw-r--r--tracker-pt/module/frame.cpp7
-rw-r--r--tracker-pt/module/point_extractor.cpp2
2 files changed, 3 insertions, 6 deletions
diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp
index f54c2e36..6734edf6 100644
--- a/tracker-pt/module/frame.cpp
+++ b/tracker-pt/module/frame.cpp
@@ -2,9 +2,6 @@
#include "compat/math.hpp"
-#include <cstring>
-#include <tuple>
-
#include <opencv2/imgproc.hpp>
using namespace pt_module;
@@ -16,7 +13,7 @@ Preview& Preview::operator=(const pt_frame& frame_)
if (frame.channels() != 3)
{
- once_only(qDebug() << "tracker/pt: camera frame depth: 3 !=" << frame.channels());
+ eval_once(qDebug() << "tracker/pt: camera frame depth: 3 !=" << frame.channels());
return *this;
}
@@ -42,7 +39,7 @@ QImage Preview::get_bitmap()
if (stride < 64 || stride < frame_out.cols * 4)
{
- once_only(qDebug() << "bad stride" << stride
+ eval_once(qDebug() << "bad stride" << stride
<< "for bitmap size" << frame_copy.cols << frame_copy.rows);
return QImage();
}
diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp
index 1208da4e..00248029 100644
--- a/tracker-pt/module/point_extractor.cpp
+++ b/tracker-pt/module/point_extractor.cpp
@@ -147,7 +147,7 @@ void PointExtractor::color_to_grayscale(const cv::Mat& frame, cv::Mat1b& output)
break;
}
default:
- once_only(qDebug() << "wrong pt_color_type enum value" << int(s.blob_color));
+ eval_once(qDebug() << "wrong pt_color_type enum value" << int(s.blob_color));
/*FALLTHROUGH*/
case pt_color_natural:
cv::cvtColor(frame, output, cv::COLOR_BGR2GRAY);