From 745d8757f9baea50c0dde045fae031b8d68e07a3 Mon Sep 17 00:00:00 2001 From: Stephane Rigaud Date: Thu, 17 Oct 2024 14:14:45 +0200 Subject: [PATCH] fix: statistic now take label as second param --- clic/src/tier4/centroids_of_labels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clic/src/tier4/centroids_of_labels.cpp b/clic/src/tier4/centroids_of_labels.cpp index 0a543939..0c8931c6 100644 --- a/clic/src/tier4/centroids_of_labels.cpp +++ b/clic/src/tier4/centroids_of_labels.cpp @@ -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"];