From a343603e718344f989843726fef301cef34ce248 Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Wed, 22 Apr 2020 15:21:40 +0200 Subject: [PATCH] Fix warnings: unused variables --- src/examples/ptg_camera.cpp | 4 ++-- src/firewirecamera.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/examples/ptg_camera.cpp b/src/examples/ptg_camera.cpp index d4a946c..bead0d4 100755 --- a/src/examples/ptg_camera.cpp +++ b/src/examples/ptg_camera.cpp @@ -24,8 +24,8 @@ int main(int argc, char *argv[]) char *image=NULL; std::string new_frame,filename; std::stringstream text; - uint64_t guid=0x0000b09d01006b6fb5; -// uint64_t guid=0x00B09D01007D6D85LL; + //uint64_t guid=0x0000b09d01006b6fb5; + //uint64_t guid=0x00B09D01007D6D85LL; std::list<std::string> events; try diff --git a/src/firewirecamera.cpp b/src/firewirecamera.cpp index e5441f1..d86d104 100644 --- a/src/firewirecamera.cpp +++ b/src/firewirecamera.cpp @@ -1615,7 +1615,7 @@ void CFirewireCamera::get_image(cv::Mat &image) } char *image_raw=NULL; this->get_image(&image_raw); - cv::Mat image2 = cv::Mat(this->height,this->width,CV_8UC3,image_raw); + cv::Mat image2 = cv::Mat(this->height,this->width,type,image_raw); //this can be avoided returning the Mat with the user allocated image data //but then user is responsible to free both structures with //delete[] image->data; -- GitLab