Re: [Numpy-discussion] RGB - HSV in numpy?

2011-08-22 Thread Ralf Gommers
On Mon, Aug 22, 2011 at 5:39 AM, He Shiming heshim...@gmail.com wrote: On Sat, Aug 20, 2011 at 4:17 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: Thanks, I'll check it out. -- Best regards, He Shiming Hi again. Project scikits.image appeared to be difficult to

Re: [Numpy-discussion] RGB - HSV in numpy?

2011-08-22 Thread He Shiming
On Mon, Aug 22, 2011 at 2:21 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: You can use this file standalone without installing scikits.image: https://github.com/stefanv/scikits.image/blob/master/scikits/image/color/colorconv.py Ralf ___

Re: [Numpy-discussion] RGB - HSV in numpy?

2011-08-21 Thread He Shiming
On Sat, Aug 20, 2011 at 4:17 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: Thanks, I'll check it out. -- Best regards, He Shiming Hi again. Project scikits.image appeared to be difficult to install under ubuntu. It complains about something related to OpenCV, and I didn't see

[Numpy-discussion] RGB - HSV in numpy?

2011-08-20 Thread He Shiming
Hi, I'm wondering how to do RGB - HSV conversion in numpy. I found a couple solutions through stackoverflow, but somehow they can't be used in my array format. I understand the concept of conversion, but I'm not that familiar with numpy. My source buffer format is 'RGBA' sequence. I can take it

Re: [Numpy-discussion] RGB - HSV in numpy?

2011-08-20 Thread David Warde-Farley
On 2011-08-20, at 4:01 AM, He Shiming wrote: Hi, I'm wondering how to do RGB - HSV conversion in numpy. I found a couple solutions through stackoverflow, but somehow they can't be used in my array format. I understand the concept of conversion, but I'm not that familiar with numpy. My

Re: [Numpy-discussion] RGB - HSV in numpy?

2011-08-20 Thread He Shiming
On Sat, Aug 20, 2011 at 4:17 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: There are functions for this available in scikits.image: http://stefanv.github.com/scikits.image/api/scikits.image.color.html Although you may need to reshape it with reshape(arr, (width, height, 4)) or