Maximum thickness of polylines

asked 2015-04-10 07:43:09 -0500

kzm gravatar image

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

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?

edit retag flag offensive close merge delete



@kzm I do not know to answer your question, but why don't you try to make a pull/bugfix/feature request explaining the case. I am sure you will get an answer from the devs, and maybe indeed it is a bug and then you will have the opportunity to to provide a bugfix ;-).

theodore gravatar imagetheodore ( 2015-04-10 12:43:00 -0500 )edit