| 268 | return true; |
| 269 | } |
| 270 | bool 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 |