diff options
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r-- | FTNoIR_Tracker_PT/pt_video_widget.cpp | 2 |
1 files changed, 1 insertions, 1 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];
|