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
Post a Comment