diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-09 07:30:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-09 07:31:43 +0100 |
commit | 839d5207517c86885c14bdf018f5599a4ca97a5b (patch) | |
tree | 91b206117de0f7ef9693fa8724fd99de3863dd85 /ftnoir_tracker_aruco | |
parent | ff04681a70ad5f3f8984aee465b4c20b648779be (diff) |
no need for ref here
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index db3d695c..f00c8bfc 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -238,7 +238,7 @@ void Tracker::run() { detector.setMinMaxSize(std::max(0.01, size_min * grayscale.cols / last_roi.width), std::min(1.0, size_max * grayscale.cols / last_roi.width)); - auto& m = markers.at(0); + auto m = markers.at(0); for (int i = 0; i < 4; i++) { auto& p = m.at(i); @@ -279,7 +279,7 @@ void Tracker::run() cv::putText(frame, buf, cv::Point(10, 54), cv::FONT_HERSHEY_PLAIN, scale, cv::Scalar(80, 255, 0), scale); if (markers.size() == 1 && markers[0].size() == 4) { - const auto& m = static_cast<std::vector<cv::Point2f>>(markers.at(0)); + const auto m = static_cast<std::vector<cv::Point2f>>(markers.at(0)); cv::cornerSubPix(grayscale, m, cv::Size(5, 5), cv::Size(-1, -1), |