Skip to content

Commit

Permalink
[fuseCut] DelaunayGraphCut: fix the order during the insertion of cam…
Browse files Browse the repository at this point in the history
…era's points
  • Loading branch information
dsmtE committed Jul 30, 2020
1 parent 54dc9f2 commit 579fa9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/aliceVision/fuseCut/DelaunayGraphCut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2183,12 +2183,6 @@ void DelaunayGraphCut::createDensePointCloud(Point3d hexah[8], const StaticVecto

float minDist = hexah ? (hexah[0] - hexah[1]).size() / 1000.0f : 0.00001f;

// add points for cam centers
addPointsFromCameraCenters(cams, minDist);

// add 6 points to prevent singularities
addPointsToPreventSingularities(hexah, minDist);

// add points from depth maps
if(depthMapsFuseParams != nullptr)
fuseFromDepthMaps(cams, hexah, *depthMapsFuseParams);
Expand All @@ -2197,6 +2191,12 @@ void DelaunayGraphCut::createDensePointCloud(Point3d hexah[8], const StaticVecto
if(sfmData != nullptr)
addPointsFromSfM(hexah, cams, *sfmData);

// add points for cam centers
addPointsFromCameraCenters(cams, minDist);

// add 6 points to prevent singularities
addPointsToPreventSingularities(hexah, minDist);

const int nGridHelperVolumePointsDim = mp->userParams.get<int>("LargeScale.nGridHelperVolumePointsDim", 10);

// add volume points to prevent singularities
Expand Down

0 comments on commit 579fa9c

Please sign in to comment.