Skip to content

Create plot based on STL map #954

@darkdragon-001

Description

@darkdragon-001

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions