[Image-SIG] Re: Obtaining image data in numarray
Chuck Bass
cbass233 at yahoo.com
Fri Jul 11 13:31:31 EDT 2003
After doing more searching I was able to find a reference to PIL in
numarray docs and found that both numarray and PIL support
to/fromstring methods. With these methods I was able to convert images
into numarrays and back using grayscale and RGB images (no luck with
monochrome images yet,it appears that there are a few bits left over
when data isn't a multiple of 8).
Chuck
>
> I need to look at the image data in an array form (ideally using
> numarray). With PIL I could loop over the data and stuff x,y's into
> a
> numarray but the speed would be glacial large images.
>
> It looks like PythonMagick has a direct way to get to numpy arrays
> but
> not numarrays.
>
> Any idea's or pointers. I could tackle the C coding to make this
> work
> assuming that the DOD of linking with PIL code and Numarray isn't too
> esoteric.
>
> Chuck Bass
> Metron Systems
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
More information about the Image-SIG
mailing list