MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / Load

Method Load

libs/MVS/DepthMap.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 return true;
269}
270bool DepthData::Load(const String& fileName, unsigned flags)
271{
272 // serialize in the saved state
273 String imageFileName;
274 IIndexArr IDs;
275 cv::Size imageSize;
276 Camera camera;
277 if (!ImportDepthDataRaw(fileName, imageFileName, IDs, imageSize, camera.K, camera.R, camera.C, dMin, dMax, depthMap, normalMap, confMap, viewsMap, flags))
278 return false;
279 ASSERT(!IDs.empty() && (!IsValid() || IDs.front() == GetView().GetID()));
280 ASSERT(depthMap.size() == imageSize);
281 ASSERT(depthMap.size() == size);
282 return true;
283}
284/*----------------------------------------------------------------*/
285
286

Callers 1

ImportIgnoreMaskMethod · 0.45

Calls 5

frontMethod · 0.80
IsValidFunction · 0.70
emptyMethod · 0.45
GetIDMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected