Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Maximum thickness of polylines

I would like to draw a polyline with thiness bigger than 255, but this assert won't allow me to do that.

https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/drawing.cpp#L1860

CV_Assert( pts && npts && ncontours >= 0 &&
           0 <= thickness && thickness <= 255 &&
           0 <= shift && shift <= XY_SHIFT );

After removing this assertion and recompiling OpenCV, drawing polyline with thickness bigger than 255 is possible and seems to be working very good. Is there any specific reason why is this limited to 255 by default?