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
(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_
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
.
-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
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
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
the 'maintain geometry' that
'thumbnail' gives you.
--
(`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED]
. . `; -._)-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
___
Image-SIG maillist - Image-SIG@python.org
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
files, but include files, since it
needs those to compile against them.
--
(`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED]
. . `; -._)-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
___
Image-SIG maillist
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
).
--
(`-/)_.-'``-._Chris Cogdon [EMAIL PROTECTED]
. . `; -._)-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
___
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig
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
'
_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
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
= 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
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
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
], 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
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
, 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
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
; 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
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
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
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
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
, 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
):
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
...@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
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
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 =
/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
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
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
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
://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
\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
, 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
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
: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
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
-- 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
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
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
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
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
)
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
...
-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
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
-- 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
50 matches
Mail list logo