From 91587a4e7f431c29076336a5faac5fab19e2cd53 Mon Sep 17 00:00:00 2001 From: jvallve <jvallve@iri.upc.edu> Date: Wed, 30 Mar 2022 11:01:02 +0200 Subject: [PATCH] taking cv::mat const ref in frame constructor --- src/common_class/frame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common_class/frame.h b/src/common_class/frame.h index d68822e..936bae3 100644 --- a/src/common_class/frame.h +++ b/src/common_class/frame.h @@ -48,7 +48,7 @@ public: /** * \brief Constructor */ - Frame(const cv::Mat _img, const int& _id = 0, const KeyPointVector _kps = KeyPointVector(), const cv::Mat _desc = cv::Mat()) : + Frame(const cv::Mat& _img, const int& _id = 0, const KeyPointVector _kps = KeyPointVector(), const cv::Mat _desc = cv::Mat()) : id_(_id), img_(_img), kps_(_kps), -- GitLab