Skip to content

Commit

Permalink
texture: fix data costs in TRWS energy (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
humanbeingZ authored Oct 12, 2022
1 parent 75b4d80 commit 1d3df16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/MVS/SceneTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ bool MeshTexture::FaceViewSelection(float fOutlierThreshold, float fRatioDataSmo
TRWSInference& inference = inferences[components[f]];
if (inference.IsEmpty())
continue;
D.MemsetValue(MaxEnergy);
// invisible faces are given a data cost 3 times the edge costs
// 3 as each face can have at most 3 edges
D.MemsetValue(MaxEnergy * 3);
const FaceDataArr& faceDatas = facesDatas[f];
FOREACHPTR(pFaceData, faceDatas) {
const FaceData& faceData = *pFaceData;
Expand Down

0 comments on commit 1d3df16

Please sign in to comment.