opencv PolyLine
opencv PolyLine
static void PolyLine( Mat& img, const Point2l* v, int count, bool is_closed, const void* color, int thickness, int line_type, int shift ) { if( !v || count <= 0 ) return; int i = is_closed ? count - 1 : 0; int flags = 2 + !is_closed; Point2l p0; CV_Assert( 0 <= shift && shift <= XY_SHIFT && thickness >= 0 ); p0 = v[i]; for( i = !is_closed; i < count; i++ ) { Point2l p = v[i]; ThickLine( img, p0, p, color, thickness, line_type, flags, shift ); p0 = p; flags = 2; } }
##################################
QQ 3087438119