| 285 | } |
| 286 | |
| 287 | void 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 | |
| 302 | void mergeNormalMapTiles(int rc, const mvsUtils::MultiViewParams& mp, int scale, int step, const std::string& name) |
| 303 | { |