[Numpy-discussion] display numpy array as image
Stefan van der Walt
stefan at sun.ac.za
Mon Dec 3 09:46:58 EST 2007
Hi Zach
Attached is some code for removing radial distortion from images. It
shows how to draw lines based on user input using matplotlib. It is
not suited for a big application, but useful for demonstrations.
Try it on
http://mentat.za.net/results/window.jpg
Regards
Stéfan
On Thu, Nov 29, 2007 at 11:59:05PM -0500, Zachary Pincus wrote:
> Thanks for the suggestions, everyone! All very informative and most
> helpful.
>
> For what it's worth, here's my application: I'm building a tool for
> image processing which needs some manual input in a few places (e.g.
> user draws a few lines). The images are greyscale images with 12-14
> bits of dynamic range (from a microscope), so I need to have some
> basic brightness/contrast/gamma controls, as well as allowing basic
> drawing on the image to get the needed user input. It looks like GL
> or wx will be best suited here, I think? (I presume that python/numpy/
> [GL|wx] can keep up with things like dragging a slider to change
> brightness/contrast/other LUT changes, as long as I code reasonably.)
>
> Anyhow, thanks for all the input,
>
> Zach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: radial.py
Type: text/x-python
Size: 6683 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071203/0fbfd725/attachment.py>
More information about the NumPy-Discussion
mailing list