Skip to content

Commit

Permalink
Merge pull request #738 from alicevision/fix/meshing
Browse files Browse the repository at this point in the history
[meshing] fix load of depth maps without metadata
  • Loading branch information
fabiencastan authored Feb 4, 2020
2 parents e9476f2 + 095512e commit 2e3293d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/aliceVision/mvsUtils/MultiViewParams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,11 @@ StaticVector<int> MultiViewParams::findCamsWhichIntersectsHexahedron(const Point
const float maxDepth = metadata.get_float("AliceVision:maxDepth", -1);

if(minDepth == -1 && maxDepth == -1)
throw std::runtime_error(std::string("Cannot find min / max depth metadata in image: ") + getImagePath(rc));

{
ALICEVISION_LOG_WARNING("Cannot find min / max depth metadata in image: " << getImagePath(rc) << ". Assumes that all images should be used.");
tcams.push_back(rc);
}
else
{
Point3d rchex[8];
getCamHexahedron(CArr.at(rc), iCamArr.at(rc), getWidth(rc), getHeight(rc), minDepth, maxDepth, rchex);
Expand Down

0 comments on commit 2e3293d

Please sign in to comment.