Skip to content

Commit

Permalink
Merge pull request #153 from anarkiwi/hotfix
Browse files Browse the repository at this point in the history
Fix rssi min/max for entire window.
  • Loading branch information
anarkiwi authored Nov 30, 2023
2 parents 7febd58 + 559bc88 commit 0ac9ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/image_inference_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ac9ea4

Please sign in to comment.