From 024c5210c41a3da09aad64d16c0993966f9b4c03 Mon Sep 17 00:00:00 2001 From: Max SCHMELLER Date: Thu, 16 Jan 2025 15:06:10 +0900 Subject: [PATCH] chore(downsample_mask): remove `.` before the exported mask's suffix Signed-off-by: Max SCHMELLER --- .../nebula_decoders_common/point_filters/downsample_mask.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp index f14420af..bc6ed40a 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_common/point_filters/downsample_mask.hpp @@ -109,7 +109,8 @@ class DownsampleMaskFilter if (export_dithered_mask) { std::filesystem::path out_path{filename}; - out_path = out_path.replace_extension("_dithered.png"); + out_path = out_path.replace_filename( + out_path.stem().string() + "_dithered" + out_path.extension().string()); try { dithered.write(out_path);