Skip to content
Discussion options

You must be logged in to vote

Hi! First of all, thank you for showing interest in zignal.
While researching this I found (and fixed 77fea30) a bug in the draw_line implementation, so please use zignal 0.4.1 (just released).

I had no idea skimage.draw.line had such a feature, it's very versatile and cool!

There's no direct support in zignal (the Python bindings only allow you to work with RGBA images, because they can easily be optimized with SIMD operations, as 4 u8 can be seen as just a u32).
However, you can do it with one extra line:

Basic Line Drawing (skimage.draw.line → zignal DrawMode.FAST)

# scikit-image
from skimage import draw
canvas = np.zeros((100, 100), dtype=bool)
rr, cc = draw.line(10, 10, 90, 90)
canvas[

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ogencoglu
Comment options

Answer selected by ogencoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #90 on August 06, 2025 12:40.