Answer the question
In order to leave comments, you need to log in
How to draw a thick line on a matrix in Python 3?
skimage suits me for everyone, except that there is no possibility to set the thickness of the lines
>>> from skimage.draw import line
>>> img = np.zeros((10, 10), dtype=np.uint8)
>>> rr, cc = line(1, 1, 8, 8)
>>> img[rr, cc] = 1
Temporarily put a bone in the form of drawing N such lines.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question