Skip to content

Commit

Permalink
fix: statistic now take label as second param
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Oct 17, 2024
1 parent 5ea536d commit 745d875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clic/src/tier4/centroids_of_labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ centroids_of_labels_func(const Device::Pointer & device,
cle::StatisticsMap props;
if (include_background)
{
props = tier3::statistics_of_background_and_labelled_pixels_func(device, label_image, nullptr);
props = tier3::statistics_of_background_and_labelled_pixels_func(device, label_image, label_image);
}
else
{
props = tier3::statistics_of_labelled_pixels_func(device, label_image, nullptr);
props = tier3::statistics_of_labelled_pixels_func(device, label_image, label_image);
}
auto centroid_x = props["centroid_x"];
auto centroid_y = props["centroid_y"];
Expand Down

0 comments on commit 745d875

Please sign in to comment.