hi, everybody here,
I am a newbie to python. I encounter a problem that how to convert
an array of numarray to pil object. For example, the data in an image
is extracted using Image.getdata, then the data are converted into an
array in numarray. But when the array is needed to convert to the
Thanks. But some problems remain.
I have known using Image.tostring/fromstring and
numarray.tostring/fromstring can do the job. But when confronting
multi-spectral images, e.g., RGB color images, I don't know how to do
it. Could you give some advices on that?
You wrote "In [14]: img = Image.fromb
In Python interactive mode, is there some function acting like 'clear'
command in bash? Could somebody here give some advice?
Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
Sorry, I make the mistakes. I have known how to use to/fromstring
method to interface between PIL and Numarray.
And your code does work.
Another question. Just like the code you provide, is it possible to
directly load image data from PIL to Numarray array without use of
to/fromstring method?
Thank you very much. I have tested it under Cygwin, and that works. But
it fails under Windows Python Shell Mode.
--
http://mail.python.org/mailman/listinfo/python-list
I am writing the code involved in numerical computation. When I need a
float epsilon similar to FLT_EPS in C, eps in matlab, I fail to find
the equivalent in python. Could somebody here can give me some advices?
--
http://mail.python.org/mailman/listinfo/python-list
I have tested it under windows python console, and it works.
Thank you very much.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much.
I have searched in python's documentation, and I am sure that python
doesn't provide an epsilon.
--
http://mail.python.org/mailman/listinfo/python-list
According to pp 134 of "C: A Reference Manual", it's better to use
eps*2 in your code.
--
http://mail.python.org/mailman/listinfo/python-list
PAMELA DAVID
www.alphasearch.gr --
http://mail.python.org/mailman/listinfo/python-list
10 matches
Mail list logo