202209-03 使用c++实现OpenCV绘制旋转矩形图形 目录功能函数测试代码测试效果 功能函数//绘制旋转矩形voidDrawRotatedRect(cv::Matmask,constcv::RotatedRect&rotatedrect,constcv::Scalar&color,intthickness,intlineType){//提取旋转矩形的四个角点cv::Point2fps[4];rotatedrect.points(ps);//构建轮廓线std::vector<std::vector<cv::Point>>tmpContours;//创建一个InputArrayOfArrays类型的点集std::vector<cv::Point>contours;for... 继续阅读 >