Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

vector <vector <point2f=""> > to Mat?

I've got vector of vectors of Point2f's. I need to:

  1. subtract a predefined point from all of them with opposite sign
  2. calculate element-wise L2 norm of each result point
  3. find minimal norm indexes then

I'm confused and stuck with cv:Mat and std::vector.

Couldn't you, please, suggest an easy and simple way to perform actions listed above?

Thanks in advance.

vector <vector <point2f=""> > to Mat?

I've got vector of vectors of Point2f's. I need to:

  1. subtract a predefined point from all of them with opposite sign
  2. calculate element-wise L2 norm of each result pointpoint
  3. find minimal norm indexes then

I'm confused and stuck with cv:Mat and std::vector.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.

vector <vector <point2f=""> > to Mat?

I've got vector of vectors of Point2f's. I need to:

  1. subtract a predefined point from all of them with opposite sign
  2. calculate element-wise L2 norm of each result point
  3. 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.