opencv - Save vector <DMatch> in FileStorage -
i want write vector<dmatch>
in file. checked it’s possible write vector of classes keypoints, mat, etc, it’s not possible it. knows how can it? section of code following:
mat imdescriptors; vector<keypoints> imkeypoints; filestorage fs(name, cv::filestorage::write); fs <<” c” << "{"; fs << "descriptors" << imdescriptors; fs << "keypoints" << imkeypoints; fs << “}”;
it works ok, when add code element:
vector<dmatch> good_matches; fs << “goodmatches” << good_matches;
i following error:
c:\opencv248\build\include\opencv2\core\operations.hpp(2713): error c2665: 'cv::write' : of 9 overloads convert argument types.
Comments
Post a Comment