Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 21, 2024
1 parent 71b1af0 commit 9f54d41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f54d41

Please sign in to comment.