| 60 | } |
| 61 | |
| 62 | void writeFloat2Map(int rc, |
| 63 | const mvsUtils::MultiViewParams& mp, |
| 64 | const mvsUtils::TileParams& tileParams, |
| 65 | const ROI& roi, |
| 66 | const CudaHostMemoryHeap<float2, 2>& in_map_hmh, |
| 67 | const mvsUtils::EFileType fileTypeX, |
| 68 | const mvsUtils::EFileType fileTypeY, |
| 69 | int scale, |
| 70 | int step, |
| 71 | const std::string& name) |
| 72 | { |
| 73 | const std::string customSuffix = (name.empty()) ? "" : "_" + name; |
| 74 | const int scaleStep = scale * step; |
| 75 | |
| 76 | image::Image<float> mapX; |
| 77 | image::Image<float> mapY; |
| 78 | |
| 79 | copyFloat2Map(mapX, mapY, in_map_hmh, roi, scaleStep); |
| 80 | |
| 81 | mvsUtils::writeMap(rc, mp, fileTypeX, tileParams, roi, mapX, scale, step, customSuffix); |
| 82 | mvsUtils::writeMap(rc, mp, fileTypeY, tileParams, roi, mapY, scale, step, customSuffix); |
| 83 | } |
| 84 | |
| 85 | void writeFloat2Map(int rc, |
| 86 | const mvsUtils::MultiViewParams& mp, |
no test coverage detected