From f0e31aadfe5d3510cabc97f8f3c34a232d40edbf Mon Sep 17 00:00:00 2001 From: almarouk <72821992+almarouk@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:14:05 +0200 Subject: [PATCH] [mvsUtils] fix writing metadata for filtered depthmaps --- src/aliceVision/mvsUtils/mapIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliceVision/mvsUtils/mapIO.cpp b/src/aliceVision/mvsUtils/mapIO.cpp index c2e51bbc72..7aaeb2fac1 100644 --- a/src/aliceVision/mvsUtils/mapIO.cpp +++ b/src/aliceVision/mvsUtils/mapIO.cpp @@ -477,7 +477,7 @@ void writeMapToFileOrTile(int rc, } // min/max/nb depth metadata (for depth map only) - if(fileType == EFileType::depthMap) + if((fileType == EFileType::depthMap) || (fileType == EFileType::depthMapFiltered)) { const int nbDepthValues = std::count_if(in_map.data(), in_map.data() + in_map.size(), [](float v) { return v > 0.0f; }); float maxDepth = -1.0f;