Re: Request for help with Image color space conversion

2008-01-06 Thread caca
> > ...where the image data is loaded into a numpy array > (1600x1200x3)... One comment: that is a big array, too big for the cache memory. I know that in these cases it makes a difference how many times the slices of the array are loaded and unloaded from RAM onto cache. One issue is that a 2D a

Re: Request for help with Image color space conversion

2008-01-05 Thread Robert Kern
ttest wrote: >> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of >> scalars. Only minor modifications are necessary. >> >> -- >> Robert Kern > > Thanks! I'll try and see if a newcomer like me can get his head > around the array-centric modifications to colorsys. If yo

Re: Request for help with Image color space conversion

2008-01-05 Thread ttest
> Reimplement colorsys.rgb_to_hsv() such that it operates on arrays instead of > scalars. Only minor modifications are necessary. > > -- > Robert Kern Thanks! I'll try and see if a newcomer like me can get his head around the array-centric modifications to colorsys. -- http://mail.python.org/mai

Re: Request for help with Image color space conversion

2008-01-04 Thread Robert Kern
ttest wrote: > Hello, > > I'm working on an image processing project using the Python Imaging > Library along with numpy. Right now, I'm trying to build a speedy > script for converting whole images between the RGB and the HSV (a.k.a. > HSB) color spaces. Unfortunately, the code I've made so far

Request for help with Image color space conversion

2008-01-04 Thread ttest
Hello, I'm working on an image processing project using the Python Imaging Library along with numpy. Right now, I'm trying to build a speedy script for converting whole images between the RGB and the HSV (a.k.a. HSB) color spaces. Unfortunately, the code I've made so far runs dreadfully slow wit