From 97d146bccb4a033b8537ab56a61f5a0a084b11e1 Mon Sep 17 00:00:00 2001 From: Stephane Rigaud Date: Mon, 4 Dec 2023 14:58:04 +0100 Subject: [PATCH] fix: add fill --- clic/src/tier3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clic/src/tier3.cpp b/clic/src/tier3.cpp index bb9c13ef..d824908d 100644 --- a/clic/src/tier3.cpp +++ b/clic/src/tier3.cpp @@ -142,6 +142,7 @@ flag_existing_labels_func(const Device::Pointer & device, const Array::Pointer & { auto max = tier2::maximum_of_all_pixels_func(device, src); tier0::create_vector(src, dst, max + 1, dType::UINT32); + dst->fill(0); const KernelInfo kernel = { "flag_existing_labels", kernel::flag_existing_labels }; const ParameterList params = { { "src", src }, { "dst", dst } }; const RangeArray range = { src->width(), src->height(), src->depth() };