From 559bc88345c19fd8b8f73eb726f234ad4158aef1 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Thu, 30 Nov 2023 02:48:28 +0000 Subject: [PATCH] Fix rssi min/max for entire window. --- lib/image_inference_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/image_inference_impl.cc b/lib/image_inference_impl.cc index c1d6ef61..de03e24d 100644 --- a/lib/image_inference_impl.cc +++ b/lib/image_inference_impl.cc @@ -295,8 +295,8 @@ void image_inference_impl::process_items_(size_t c, const input_type *&in) { double points_min, points_max; cv::minMaxLoc(new_rows, &points_min, &points_max); if (points_buffer_->empty()) { - points_min_ = points_min_; - points_max_ = points_max_; + points_min_ = points_min; + points_max_ = points_max; } else { points_min_ = std::min(points_min_, points_min); points_max_ = std::max(points_max_, points_max);