Accepting vector<Point2d> instead of vector<Point> (for consistency and convenience) (Feature #2574)


Added by Michael Burdinov over 12 years ago. Updated over 9 years ago.


Status:Open Start date:2012-11-27
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:core
Target version:-
Difficulty: Pull request:

Description

Point can be initialized from Point2d. As a result functions that require Point as input, are also accepting Point2d. But if function requires vector<Point> than vector<Point2d> won't be accepted (in drawContours for example). As a result I need to create and fill vector<Point> before each call to those functions. It would be better if functions that require vector<Point> as input will also accept vector<Point2d>.


History

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4457

Also available in: Atom PDF