[Numpy-discussion] display numpy array as image

Zachary Pincus zpincus@stanford....
Thu Nov 29 22:59:05 CST 2007


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


On Nov 29, 2007, at 9:03 PM, Joe Harrington wrote:

> 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 other programs:
>
> ftp://sao-ftp.harvard.edu/pub/rd/ds9
> http://hea-www.harvard.edu/RD/ds9/index.html
>
> Then get the Python numdisplay package, which uses xpa.  You have  
> to get
> numdisplay from inside the stsci_python package:
>
> http://www.stsci.edu/resources/software_hardware/pyraf/stsci_python/ 
> current/download
>
> Just grab the numdisplay directory from within that.  Older  
> versions of
> numdisplay are standalone but don't work perfectly.  Beware, there are
> outdated web sites about numdisplay on the stsci site.  Don't google!
>
> Run ds9 before you load numdisplay.  Then you can send your python
> arrays to a real interactive data viewer at will.  There are even
> mechanisms to define physical coordinates mapped from the image
> coordinates.
>
> --jh--
>
>



More information about the Numpy-discussion mailing list