From bbf24a1057ed380dbf6911b12375bc1873939e56 Mon Sep 17 00:00:00 2001 From: "simon.fanetti" <simon.fanetti@etu.hesge.ch> Date: Fri, 10 Jul 2020 12:21:57 +0200 Subject: [PATCH] fixe init matrixes in projection --- src/components/projection.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/projection.cpp b/src/components/projection.cpp index be39953..90206c0 100644 --- a/src/components/projection.cpp +++ b/src/components/projection.cpp @@ -51,11 +51,9 @@ void Projection::adjustFrame(cv::Mat_<float> depth, cv::Mat_<cv::Vec3b> src, cv: deprojectMap = cv::Point2i(-1,-1); frameMap = cv::Point2i(-1,-1); - resized_depth = 0.0f; - resized_src = cv::Vec3b(0,0,0); - // resize to match 1:1 ratio with resized_dst, since we'll do later: - // resized_dst[i] = src[i] + // resize to match 1:1 ratio with dst, since we'll do later: + // dst[i] = src[i] cv::resize(src, resized_src, dst.size()); cv::resize(depth, resized_depth, dst.size()); -- GitLab