C++ OpenCV get Bounding Box From Vector Of Points -



C++ OpenCV get Bounding Box From Vector Of Points -

i have vector of points drawed self :

std::vector<cvpoint> shape1 = paintshape(0);

now need bounding box object (points) around shape ,

i have searched web answeres every topic talking recognizing border of object within whol image file , making bounding box.

in case different ,

thanks !

get boundingrect points:

#include "opencv2/imgproc/imgproc.hpp" // please utilize stuff cv:: namespace, not outdated cv* std::vector<cv::point> shape1 = paintshape(0); cv::rect r = cv::boundingrect(shape1);

c++ opencv

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -