[Numpy-discussion] how to convert btw rgb and pixel value

Nadav Horesh nadavh at visionsense.com
Mon Nov 5 05:58:45 EST 2007


If the image is in the form of a standard image format (png, bmp,
jpeg...) you can use the PIL library. png file can be read by pylab's
imread function.

   Nadav.

On Sun, 2007-11-04 at 23:37 -0800, devnew at gmail.com wrote:

> hi
> i wish to convert an rgb image into an array of double values..is
> there a method for that in numpy?
> also i want to create an array of doubles into corresponding rgb
> tuples of an image
> can anyone guide me?
> dn
> 
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071105/9cfcfe92/attachment.html>


More information about the NumPy-Discussion mailing list