Skip to content

Commit

Permalink
fix(detected_object_validation): fix shadowVariable (autowarefoundati…
Browse files Browse the repository at this point in the history
…on#7935)

fix:shadowVariable

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored and Ariiees committed Jul 22, 2024
1 parent 26af438 commit a4dda76
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ void OccupancyGridBasedValidator::showDebugImage(
auto mask = getMask(ros_occ_grid, object);
const float mean = mask ? cv::mean(occ_grid, mask.value())[0] * 0.01 : 1.0;
if (mean_threshold_ < mean) {
auto mask = getMask(ros_occ_grid, object, passed_objects_image);
if (mask) passed_objects_image = mask.value();
auto passed_mask = getMask(ros_occ_grid, object, passed_objects_image);
if (passed_mask) passed_objects_image = passed_mask.value();
} else {
auto mask = getMask(ros_occ_grid, object, removed_objects_image);
if (mask) removed_objects_image = mask.value();
auto removed_mask = getMask(ros_occ_grid, object, removed_objects_image);
if (removed_mask) removed_objects_image = removed_mask.value();
}
}
}
Expand Down

0 comments on commit a4dda76

Please sign in to comment.