Is there a better straight-line drawing function? [closed]

asked 2018-08-04 22:25:04 -0600

DanyAlejandro gravatar image

Hi!

I need to draw a line between 2 points. The cv::line() function that comes with OpenCV has a lot of issues (unable to draw even line thickness greater than 2, unable to draw very long lines, terrible at drawing diagonals at precise angles, etc.).

Is there a better line drawing function?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-16 16:00:06.729538

Comments

If you can come up with something better, make a pull request and give back to the community.

Der Luftmensch gravatar imageDer Luftmensch ( 2018-08-05 08:17:50 -0600 )edit

Yes, I already wrote a simple function that at least respects thickness, but it's so simple Im sure someone smarter already came up with something much better.

DanyAlejandro gravatar imageDanyAlejandro ( 2018-08-05 12:58:10 -0600 )edit