MCPcopy Create free account
hub / github.com/alicevision/AliceVision / resetDepthSimMap

Function resetDepthSimMap

src/aliceVision/depthMap/depthMapUtils.cpp:287–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287void resetDepthSimMap(CudaHostMemoryHeap<float2, 2>& inout_depthSimMap_hmh, float depth, float sim)
288{
289 const CudaSize<2>& depthSimMapSize = inout_depthSimMap_hmh.getSize();
290
291 for (size_t x = 0; x < depthSimMapSize.x(); ++x)
292 {
293 for (size_t y = 0; y < depthSimMapSize.y(); ++y)
294 {
295 float2& depthSim_hmh = inout_depthSimMap_hmh(x, y);
296 depthSim_hmh.x = depth;
297 depthSim_hmh.y = sim;
298 }
299 }
300}
301
302void mergeNormalMapTiles(int rc, const mvsUtils::MultiViewParams& mp, int scale, int step, const std::string& name)
303{

Callers 1

computeMethod · 0.70

Calls 3

getSizeMethod · 0.45
xMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected