Skip to content

Commit

Permalink
dense: unify confidence between [0,1] for FilterDepthMap() too
Browse files Browse the repository at this point in the history
(cherry picked from commit a4b0802450cff65dbedd044aa54158ca4eb43a32)
  • Loading branch information
cdcseacave committed Sep 23, 2024
1 parent b0b04bb commit efce2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/MVS/SceneDensify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,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) = 1.f - MINF(((negConf+0.2f) * nPosViews) / (posConf * MAXF(nNegViews,1u)), 1.f);
} else {
// consider this pixel an outlier
DiscardDepth:
Expand Down

0 comments on commit efce2f6

Please sign in to comment.