1 | initial version |
Since keypoints are stored in a vector<KeyPoint>
, you can simply make a vector of those elements and push back the data each iteration.
// outside loop
vector< vector<KeyPoint> > container;
// in the loop you do
vector<KeyPoint> keypoints;
detector.detect( vImg[i], keypoints );
container.push_back(keypoints);