1 | initial version |
I guess this is the code snippet that generated the error
/** Load a YAML file using OpenCV **/
void Model::load(const std::string path)
{
cv::Mat points3d_mat;
cv::FileStorage storage(path, cv::FileStorage::READ);
storage["points_3d"] >> points3d_mat;
storage["descriptors"] >> descriptors_;
points3d_mat.copyTo(list_points3d_in_);
storage.release();
}
Now the only reason why this would fail with the given exception, is that the FileStorage location is not read correctly and thus the data inside the points3d_mat are not correct.
Could you start by providing an absolute path instead of using the path variable and see if that works?