From 8f62f2b38453709daeb38adb7253f553becee793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adriana=20Costas=20Lo=CC=81pez?= Date: Fri, 8 Mar 2024 11:18:50 +0100 Subject: [PATCH] dense: fix new confidence values computation in FilterDepthMap --- libs/MVS/SceneDensify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/MVS/SceneDensify.cpp b/libs/MVS/SceneDensify.cpp index 0c36a2c4a..eeab698be 100644 --- a/libs/MVS/SceneDensify.cpp +++ b/libs/MVS/SceneDensify.cpp @@ -1198,7 +1198,7 @@ bool DepthMapsData::FilterDepthMap(DepthData& depthDataRef, const IIndexArr& idx if (nPosViews >= nMinViewsAdjust && posConf > negConf && ISINSIDE(avgDepth/=posConf, depthDataRef.dMin, depthDataRef.dMax)) { // consider this pixel an inlier newDepthMap(xRef) = avgDepth; - newConfMap(xRef) = posConf - negConf; + newConfMap(xRef) = (posConf - negConf)/(nPosViews + nNegViews + 1); } else { // consider this pixel an outlier DiscardDepth: