A
A
ADRian2016-01-17 15:14:30
Python
ADRian, 2016-01-17 15:14:30

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

1 answer(s)
N
nirvimel, 2016-01-17
@ADR

  • cv2 can do that .
  • Not so difficult to manually write, if that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question