Add line thickness for draw module functions

Maik Riechert neothemachine at googlemail.com
Fri Sep 12 10:44:14 EDT 2014


I found a suitable work-around for me now, using matplotlib. Basically
preparing the figure and loading the image into it such that it can be
saved again in native resolution. Also, drawing things is in native image
coordinates: https://gist.github.com/neothemachine/ec1d11172d4edf8221af

Cheers
Maik

2014-09-12 13:52 GMT+02:00 Maik Riechert <neothemachine at googlemail.com>:

> Sorry for the spam. One more question: Which library would you recommend
> in the meantime for drawing circles and (poly)lines with thickness on top
> of an image? Is pillow my best bet or is there something more lightweight?
>
> Cheers
> Maik
>
> 2014-09-12 11:29 GMT+02:00 Maik Riechert <neothemachine at googlemail.com>:
>
>> Phil, would using mpl mean that you actually manually have to create a
>> figure etc.? Or would this happen behind the scenes and the current
>> skimage.draw API is kept? My use case is drawing around 1000 circles on a
>> 4000x3000 image, and it has to be quite fast (on-demand rendering).
>>
>> Cheers
>> Maik
>>
>> 2014-09-11 20:10 GMT+02:00 Phil Elson <pelson.pub at gmail.com>:
>>
>>> I'm currently out in the sticks in rural New York state with only my
>>> phone for connectivity, so can't help too much right now, but I was going
>>> to spin off a thread here about a possible interface for overlaying mpl
>>> figues (including axes) on an image (the result would always be RGBA). Of
>>> course this would include anything that mpl can draw, such as anti-aliased
>>> lines and text (through freetype) of arbitrary thickness.
>>>
>>> I actually managed to pull all the components together on my 4hr train
>>> ride to the airport the other day, so I  really just need to package it up
>>> into a nice interface.
>>>
>>> I should be able to provide more details on Tuesday.
>>>
>>> Cheers,
>>>
>>> Phil
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "scikit-image" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/scikit-image/94M63REkxcE/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> scikit-image+unsubscribe at googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20140912/149e103b/attachment.html>


More information about the scikit-image mailing list