-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Labels
Description
I would like to construct a cv::plot::Plot2d
based on a STL std::map
which is basically a std::list
of std::pair<X,Y>
which is similar to cv::Point
. I guess supporting a std::list
/std::vector
/std::iterable
/cv::Mat
of cv::Point
is crucial, since plotting points is what you normally do. Further, when you do plotting, you always need those pairs (btw: it implicitly ensures there is an equal number of x and y coordinates). Currently, you store both vectors separately - probably because you can easily handle the case when the user only supplies y coordinates.
Should I write a conversion to two std::vector
? Or would it be a better idea to rewrite internal storage?
@nmoutinho Maybe you can have a look?
Edit: clarified the question.