summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-10 16:20:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-10 16:20:39 +0100
commit30658e31df61825c862dc4b5400f9124dd3b6c2b (patch)
tree37105bbe54e60c43f3c1e2325f742e91e199a3e0
parent0f27debd9940e03f7126195b28b95b54cd073fbe (diff)
fix build
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r--FTNoIR_Tracker_PT/pt_video_widget.cpp2
-rw-r--r--ftnoir_tracker_aruco/ar_video_widget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_PT/pt_video_widget.cpp b/FTNoIR_Tracker_PT/pt_video_widget.cpp
index c73fa780..d0fc8d42 100644
--- a/FTNoIR_Tracker_PT/pt_video_widget.cpp
+++ b/FTNoIR_Tracker_PT/pt_video_widget.cpp
@@ -51,7 +51,7 @@ void PTVideoWidget::update_and_repaint()
for (int x = 0; x < _frame.cols; x++)
{
const auto& elt = _frame.at<Vec3b>(y, x);
- const cv::Scalar elt2 = elt;
+ const cv::Scalar elt2 = static_cast<cv::Scalar>(elt);
data[y * pitch + x * 3 + 0] = elt2.val[2];
data[y * pitch + x * 3 + 1] = elt2.val[1];
data[y * pitch + x * 3 + 2] = elt2.val[0];
diff --git a/ftnoir_tracker_aruco/ar_video_widget.cpp b/ftnoir_tracker_aruco/ar_video_widget.cpp
index b0d78fe2..645ea3a9 100644
--- a/ftnoir_tracker_aruco/ar_video_widget.cpp
+++ b/ftnoir_tracker_aruco/ar_video_widget.cpp
@@ -30,7 +30,7 @@ void ArucoVideoWidget::update_and_repaint()
for (int x = 0; x < _frame.cols; x++)
{
const auto& elt = _frame.at<cv::Vec3b>(y, x);
- const cv::Scalar elt2 = elt;
+ const cv::Scalar elt2 = static_cast<cv::Scalar>(elt);
data[y * pitch + x * 3 + 0] = elt2.val[2];
data[y * pitch + x * 3 + 1] = elt2.val[1];
data[y * pitch + x * 3 + 2] = elt2.val[0];