Ask Your Question
0

What is: vector<vector<Point2f> > imagePoints;

asked 2014-10-09 23:04:20 -0600

maxdoom gravatar image

updated 2018-09-29 19:39:11 -0600

Hi there,

I am trying to understand the following Structure: vector<vector<Point2f> > imagePoints; What is a vector in OpenCV, I the documentation there was nothing under Basic Structures and so on. So i figured it must be the standard c++ vector. So I have an one-dimensional array filled with one-dimensional arrays but what does Point2f mean?

Thanks in Advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-10 00:32:59 -0600

Siegfried gravatar image

You are right, the structure is a standard vector containing a standard vector of cv::Point2f. And cv::Point2f is a 2D point with data type float. OpenCV has a template class for 2D points (see here). For convenience there are some aliases

typedef Point_<float> Point2f;
typedef Point_<int> Point2i;
typedef Point2i Point;
typedef Point_<double> Point2d;
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-09 23:04:20 -0600

Seen: 6,463 times

Last updated: Oct 10 '14