From f7d6fb084f772193f3c65a67ffb2e422ff29c6d6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Apr 2024 14:54:27 +0200 Subject: [PATCH] Fixed bug --- src/detector.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/detector.cpp b/src/detector.cpp index 2e7de7c..1e48d89 100644 --- a/src/detector.cpp +++ b/src/detector.cpp @@ -678,10 +678,8 @@ class UVDARDetector : public nodelet::Nodelet{ 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); - } - else{ - generateVisualization(image_visualization_); - } + + //generateVisualization(image_visualization_); if ((visualization_image.cols != 0) && (visualization_image.rows != 0)){ if (_publish_visualization_){