vector <vector <Point2f> > to Mat? [closed]
I've got vector of vectors of Point2f's. I need to:
- subtract a predefined point from all of them with opposite sign
- calculate element-wise L2 norm of each result point
- find minimal norm indexes then
I'm confused and stuck with cv:Mat and std::vector. What is the best way to store and process my data...?
Couldn't you, please, suggest an easy and simple way to perform actions listed above?
Thanks in advance.
you can't make a proper Mat from that, since all the row-vecs have different size. also, 2. and 3. don't exist for cv::Mat.
bite the apple and iterate the vectors.