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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -