[Image-SIG] (no subject)

2012-09-30 Thread Chris
ImageView.py has a bug on Unix where if the user has both display and xv installed, a call to image.show() results in the image being shown first with display and then with xv. This is because the show function in the file expects the show method to return 1 if successful, but it doesn't return

Re: [Image-SIG] Opening and saving quality JPEG files

2005-06-23 Thread Chris Cogdon
(which is a bad thing to do). I'm also sending only a \n... the web server will automatically turn all newlines (\n) into NVT-ASCII newlines (\r\n). You don't want an extra \r in there. -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_

Re: [Image-SIG] Something other than .show()

2005-07-02 Thread Chris Barker
to whip up an alternative to show() with wxPython and probably any of the other major toolkits. (GTK, QT, etc.) -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329

Re: [Image-SIG] GUI with Transparency

2005-07-02 Thread Chris Barker
. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED

Re: [Image-SIG] Auto level with PIL?

2005-09-07 Thread Chris Barker
Thanks Stefano, this make sit much more clear what's going on. I'll give this code a try. -chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA

Re: [Image-SIG] PIL and py2app

2005-11-17 Thread Chris Jerdonek
method was the name of the file: Vera.tff. Thanks Bob and everybody for the help, Chris ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] PIL resize with aspect ratio?

2006-01-05 Thread Chris Cogdon
the 'maintain geometry' that 'thumbnail' gives you. -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL ___ Image-SIG maillist - Image-SIG@python.org

Re: [Image-SIG] not finding libraries

2006-07-31 Thread Chris Cogdon
to install the -devel sub-packages. This is generally true when you're compiling against these libraries, and not just using them. -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL

Re: [Image-SIG] not finding libraries

2006-08-03 Thread Chris Cogdon
files, but include files, since it needs those to compile against them. -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL ___ Image-SIG maillist

Re: [Image-SIG] tricky setup for multiple pythons

2006-08-08 Thread Chris Cogdon
needs the include files, not the libraries. Make sure you have the '-devel' versions of the packages for the libraries installed. -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL

Re: [Image-SIG] tricky setup for multiple pythons

2006-08-09 Thread Chris Cogdon
). -- (`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED] . . `; -._)-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] doubles?

2006-08-30 Thread Chris Barker
Ghalib Suleiman wrote: I want to convert my image to doubles, such that each entry in the R,G,B tuple is a double lying in the range [0,1] (this will be then passed onto NumPy for some arithmetic). why not pass the data to numpy, then convert -- that will be a lot easier. -Chris

[Image-SIG] Array to Image to Array

2006-11-06 Thread Chris S
' _imagingtk.c:55: warning: implicit declaration of function 'TkImaging_Init' error: command 'gcc' failed with exit status 1 Any help resolving this issue is appreciated. Thanks, Chris P.S. Sorry if this is double posted. I tried sending from Gmane but when the post didn't appear after several hours

[Image-SIG] Resizing images

2007-02-22 Thread Chris MacKenzie
of the power it gives. My Question is will resizing in PIL reduce the image quality compared to CS2 or will it remain the same as the CS2 output. Thanks in advance Regards best wishes Chris MacKenzie www.sunnyneuk.com/inspiration www.chris-mackenzie.co.uk

Re: [Image-SIG] Image to matrix

2007-06-05 Thread Chris . Barker
= numpy.asarray(PIL_Image) http://effbot.org/zone/pil-changes-116.htm -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

[Image-SIG] Using PIL to merge postscript generated text and png files

2009-03-04 Thread Chris Adams
a response from me urgently, please call or text my mobile, or contact me via Skype (chris.d.adams). --- Chris Adams Stemcel Studios The Hub 5 Torrens Street London EC1V 1NQ email: ch...@stemcel.co.uk web: www.stemcel.co.uk twitter:chris_d_adams skype: chris.d.adams mob: 07974 368 229 tel: 0207

[Image-SIG] PIL vs Numpy in raster calculations

2009-05-26 Thread Chris Ps
Hi, Lately I'm dealing with image statistics with PIL (1.1.6). After I've read that numpy (1.2.1) is very fast, I've also tried this library to make the same calculations. I noticed something I would like your opinion about since I'm not an experienced user. With a 2000x2000 RGB tif image

[Image-SIG] Problem with Image.resize() using nearest-neighbor resampling?

2009-07-14 Thread Chris Ball
], dtype=uint8) Why hasn't each pixel been enlarged to have a side of length 6? The first pixel has been enlarged to have side of length 7, the next length 5, then 7, then 5. Thanks, Chris P.S. I'm using PIL 1.1.6. ___ Image-SIG maillist - Image-SIG

[Image-SIG] TIFF image pyramids and image statistics

2009-08-03 Thread Chris Ps
Hi, I'm trying to calculate the statistics of a tiled tiff file, containing image pyramids, using PIL 1.1.6. The problem is that I have no way to exclude the pyramid levels from the calculations thus the results are not correct. I managed to achieve the required result using GDAL, but it is rather

Re: [Image-SIG] Some issue with easy_install and PIL/Imaging

2009-09-14 Thread Chris Withers
, I've this error : error: Could not find required distribution Imaging. Why ? See above. Now, I add --find-links parameter to easy_install : If you google harder, you'll find there are packagings of PIL that do work with setuptools... Chris -- Simplistix - Content Management, Batch

Re: [Image-SIG] Some issue with easy_install and PIL/Imaging

2009-10-02 Thread Chris Withers
Fredrik Lundh wrote: On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers ch...@simplistix.co.uk wrote: Klein Stéphane wrote: Resume : 1. first question : why PIL package in pypi don't work ? Because Fred Lundh have his package distributions unfortunate names that setuptools doesn't like

[Image-SIG] Image.split broken when image file isn't loaded

2009-12-11 Thread Chris Lamb
; the client workaround of calling Image.load works here too. Patch attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org `- diff -urNad python-imaging-1.1.7.orig/PIL/Image.py python-imaging-1.1.7/PIL/Image.py --- python-imaging-1.1.7.orig/PIL/Image.py

Re: [Image-SIG] Mac support for PIL

2010-05-07 Thread Chris Barker
it with 10.6.3, though. Bill, any chance you could put together a binary installer -- it would be a nice service to the community. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax

Re: [Image-SIG] Installing libjpeg

2010-05-14 Thread Chris Barker
Mark Twenhafel wrote: Try adding print Image.core.__file__ to your script and make sure that the output is what you expect. what was the result of that? At this point, my working hypothesis is that I did not install libjpeg correctly. I'm working on OS X Tiger. What I did was download

[Image-SIG] PIL: TIFF images loaded as 15 bit signed integers

2010-07-05 Thread Chris Mitchell
Hey everyone, I've run into a problem where using: im = Image.open(file) data = im.getdata() results in data having negative values for pixels exceeding 32768. im.mode gives I;16B. I'm thinking maybe the file is really little endian and perhaps this is why I'm getting negative values I'm not

[Image-SIG] PIL: TIFF images loaded as 16 bit signed integers

2010-07-06 Thread Chris Mitchell
I'm running into a problem where my image intensities are being loaded as 16 bit signed integers. The code I'm using to open the tiff file is: im = Image.open(file) self.pixels = np.array([im.getdata()], np.uint16) the filetype is a 16bit TIFF, whose intensities load fine into ImageJ. I load

Re: [Image-SIG] that's enough

2010-07-19 Thread Chris Mitchell
, then take the integral and then the inverse (how you turn a uniform distribution into any distribution you want). Chris On Mon, Jul 19, 2010 at 7:18 PM, Jack Uretsky j...@hep.anl.gov wrote: Hi Chris- In answer to your question, this is a simulation.  The events are program generated; I'm trying

Re: [Image-SIG] that's enough

2010-07-19 Thread Chris Mitchell
): picture = wx.Image(self.image, wx.BITMAP_TYPE_TIF, self.framenum) picture=wx.BitmapFromImage(picture) dc.DrawBitmap(picture,0,0) On Mon, Jul 19, 2010 at 10:33 PM, Jack Uretsky j...@hep.anl.gov wrote: Hi Chris-        Thabks. That's really not the issue here.  My problem

Re: [Image-SIG] PIL: TIFF images loaded as 16 bit signed integers

2010-08-01 Thread Chris Mitchell
...@pythonware.com wrote: 2010/7/6 Chris Mitchell chris.m...@gmail.com: I'm running into a problem where my image intensities are being loaded as 16 bit signed integers.  The code I'm using to open the tiff file is: im = Image.open(file) self.pixels = np.array([im.getdata()], np.uint16

Re: [Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-07 Thread Chris Mitchell
use numpy. This is taken from a data analysis program I wrote for analyzing single molecule fluorescent events. So should be similar to what you want, a white spot of a given intensity surrounded by noise. array being your image stored as a numpy array, threshhold is your value to be greater

Re: [Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-08 Thread Chris Mitchell
This uses numpy, for a centroid algorithm you can do this: data is your array of values within the box ul means upper left of your box xind = ul[1]+np.indices(np.shape(data))[1] yind = ul[0]+np.indices(np.shape(data))[0] x = (xind*data).sum()/float(data.sum()) y =

Re: [Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-10 Thread Chris Barker
/SciPyPackages/Ndimage though perhaps you've solved you problem. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

Re: [Image-SIG] Fwd: PIL 1.1.7 and Python 2.7.1

2011-06-17 Thread Chris Mitchell
It's because the registry is different on 64 bit windows you are running into this problem. It also probably means that what you are trying to install is compiled for a 32 bit os. Chris gohlke has a 64 bit binary built. Google around and you should find his website Jeff Melvaine jeffmelva

Re: [Image-SIG] pil rotate 90 bug ?

2011-08-06 Thread Chris Mitchell
You could load the image into numpy, rotate the array, then read it back out to pil. On Aug 4, 2011 4:39 PM, Edward Cannon cannon...@gmail.com wrote: A possible workaround is to convert the images to some more standard format ie im.convert(rgb). If you need to rotate by multiples of 90 the

Re: [Image-SIG] What is the best way to anti-alias a very large resolution image in PIL

2011-09-14 Thread Chris Mitchell
You can load parts of the image, resize+anti-alias those segments then reconstruct the entire image. You'll have some border effects which you can compensate for by using overlapping boundaries and excluding those boundaries in the reconstruction. Some untested code that is a rough

Re: [Image-SIG] Help installing PIL

2011-09-17 Thread Chris Barker
://www.astro.washington.edu/users/rowen/python/ for python2.7, you want: PIL-1.1.7-python.org-32bit-py2.7-macosx10.3.dmg That is the build for the 32 bit PPC+Intel build of python from python.org. Unless you really need 64 bit, that's the one I recommend. -Chris -- Christopher Barker, Ph.D

[Image-SIG] PIL bug

2011-11-24 Thread Morris, Chris
\ImageShow.py, and around line 99, replace with the following line: return start /wait %s PING 127.0.0.1 -n 5 NUL del /f %s % (file, file) I would like to report this behavior as a bug. -Chris ___ Image-SIG maillist - Image-SIG@python.org http

Re: [Image-SIG] fromarray rotates image

2012-01-31 Thread Chris Barker
, and messier. NOTE: it might have been nicer if the array protocol were used such that the array created was fortran-order, and thus (w,h) in shape, but so it goes. HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR            (206) 526-6959   voice

Re: [Image-SIG] open, show, png, blank

2012-02-09 Thread Chris Mitchell
Hey Nelson, Are you sure this image isn't actually a tiff (Every gel scanner I've ever used outputs tiffs)? Also, is it opening as an 8 bit image or a 16 bit? For a gel scan, it should be a 16 bit image, so you can consider forcing the mode while opening it.. Chris On Tue, Jan 31, 2012 at 1

Re: [Image-SIG] open, show, png, blank

2012-02-09 Thread Chris Mitchell
:40:49PM -0500, Chris Mitchell wrote: For a linear equation, you would want do use this: outJ = outI.point(lambda i:(i-y)*x) I think this should be outJ = outI.point(lambda i:(i-lo)*x), but the point conversion method doesn't deal with these lambda definitions. My definition of y should

Re: [Image-SIG] open, show, png, blank

2012-02-09 Thread Chris Mitchell
From my understanding of what you are trying to do is remap the dynamic range of your image. So in essence you want to set your lowest intensity to 0 and the highest to 256 (given an 8 bit image). The transformation given is non-linear, if you are using this for gel quantification this is a very

Re: [Image-SIG] Help for to do a script

2012-03-19 Thread Chris Barker
-- they will just confuse you. Get a good Python-aware editor -- it will help catch these really simple kinds of syntax errors for you. Good luck, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR            (206) 526-6959   voice 7600 Sand Point Way NE

Re: [Image-SIG] Macinthos PIC files

2012-04-10 Thread Chris Barker
On Tue, Apr 10, 2012 at 1:48 PM, Elmar Werling el...@net4werling.de wrote: Am 10.04.2012 21:46, schrieb Chris Barker: On Tue, Apr 10, 2012 at 12:11 PM, elmar werlingel...@net4werling.de  wrote: I have pictures in Macinthos PIC/PICT format (HDR image (image/x-hdr),see appendix. Can anyone

[Image-SIG] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Hare
into the canvas widget. Either I am not finding a good explanation of how to do this or I am just not understanding what I am finding:-) Any ideas are appreciated! Thanks, Chris ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman

Re: [Image-SIG] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Hare
file The error occurs when trying to open the imageBuffer so I can work with the data in the buffer. What have I missed? On Apr 27, 2012, at 8:21 AM, Charles Cazabon wrote: Chris Hare ch...@labr.net wrote: I am stuck however, in figuring out how to take the string data and converting

Re: [Image-SIG] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Barker
that out just from the data. Depending on your needs, you may in fact want to store the PNG-encoded bytes in the DB, and decode them when you pull them out, using the StringIO strick. HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR

Re: [Image-SIG] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Hare
) Not sure what I got wrong. Based on what I think I understand fro the man pages and some net searches, I think either case should be okay. On Apr 27, 2012, at 9:55 AM, Gareth Rees wrote: Chris Hare wrote: okay - I have an error but I don't understand what I got wrong: self.imageBuffer

[Image-SIG] Initializing a 'P' image

2012-06-19 Thread Chris Barker
... -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR            (206) 526-6959   voice 7600 Sand Point Way NE   (206) 526-6329   fax Seattle, WA  98115       (206) 526-6317   main reception chris.bar...@noaa.gov

Re: [Image-SIG] PIL crashes windows 7 (blue screen)

2013-09-18 Thread Chris Barker
be useful to do to debug. Or, even simpler write a simple batch file or python script that calls another pyton script that grabs thte screen, one grab at a time in one process, but run it a hundreds or times and see what happens. -Chris The behaviour you're describing sounds like a resource

Re: [Image-SIG] Unsubscribe

2013-03-19 Thread Chris Barker - NOAA Federal
-- i.e. marcports and fink locations on OS-X, maybe we should add the homebrew locations as well (though doesn't homebrew use use/local ? I'd think that would already be on the standard list. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR