From 9f54d41fd74655b9cc51b0685518b99b44887a2d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Apr 2024 14:46:14 +0200 Subject: [PATCH] Fixed bug --- src/detector.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detector.cpp b/src/detector.cpp index dd15e49..2e7de7c 100644 --- a/src/detector.cpp +++ b/src/detector.cpp @@ -672,10 +672,9 @@ class UVDARDetector : public nodelet::Nodelet{ /* VisualizationThread() //{ */ void VisualizationThread([[maybe_unused]] const ros::TimerEvent& te) { if (initialized_){ - + cv::Mat visualization_image; if(_adaptive_threshold_){ int image_index = 0; - cv::Mat visualization_image; cv::Mat white_background = cv::Mat::ones(images_current_[image_index].size(),images_current_[image_index].type()) * 255; uvda_[image_index]->generateVisualizationAdaptive(white_background,visualization_image,adaptive_detected_points_[image_index]); //publishVisualizationImage(visualization_image);