Re: [Numpy-discussion] display numpy array as image

2007-12-03 Thread Stefan van der Walt
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

Re: [Numpy-discussion] display numpy array as image

2007-12-03 Thread Zachary Pincus
Hi Stéfan, Thanks -- I hadn't realized matplotlib's user-interaction abilities were that sophisticated! I'll definitely give that route a shot. Zach On Dec 3, 2007, at 9:46 AM, Stefan van der Walt wrote: Hi Zach Attached is some code for removing radial distortion from images. It shows

Re: [Numpy-discussion] display numpy array as image (Giorgio F. Gilestro)

2007-12-01 Thread Hans Meine
On Freitag 30 November 2007, Joe Harrington wrote: I was misinformed about the status of numdisplay's pages. The package is available as both part of stsci_python and independently, and its (up-to-date) home page is here: http://stsdas.stsci.edu/numdisplay/ I had a look at ds9/numdisplay,

Re: [Numpy-discussion] display numpy array as image (Giorgio F. Gilestro)

2007-11-30 Thread Joe Harrington
I was misinformed about the status of numdisplay's pages. The package is available as both part of stsci_python and independently, and its (up-to-date) home page is here: http://stsdas.stsci.edu/numdisplay/ Googling numdisplay finds that page. My apologies to those inconvenienced by my prior

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Giorgio F. Gilestro
I am not sure I got what you mean but I am using PIL to convert arrays to images and viceversa see http://mail.python.org/pipermail/image-sig/2006-September/004099.html I embed bmps using wxpython. Zachary Pincus wrote: Hello all, I'm curious if people have experience with / preferences for

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Angus McMorland
On 30/11/2007, Zachary Pincus [EMAIL PROTECTED] wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. I'm not sure if you're after anything specific, but a very convenient way to show 2-D arrays on screen is

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Joshua Lippai
On Nov 29, 2007 2:32 PM, Zachary Pincus [EMAIL PROTECTED] wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. Pyglet looks relatively easy -- you can feed an image buffer object with a string or a ctypes pointer.

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Christopher Barker
Zachary Pincus wrote: wxPython looks pretty easy too, as there are facilities for getting pixels from a buffer. Does anyone have any experience with these? some. Are there ways of allowing a numpy array and a wxPython image to point to the same memory? yup. You can build a wxImage

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Robert Kern
Zachary Pincus wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. Pyglet looks relatively easy -- you can feed an image buffer object with a string or a ctypes pointer. I presume getting a string from an

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Zachary Pincus
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

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Joe Harrington
If you want to explore the array interactively, blink images, mess with colormaps using the mouse, rescale the image values, mark regions, add labels, look at dynamic plots of rows and columns, etc., get the ds9 image viewer and the xpa programs that come with it that allow it to communicate with