ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[Image-SIG] Re: Obtaining image data in numarray
by Chuck Bass other posts by this author
Jul 11 2003 7:31PM messages near this date
Re: [Image-SIG] Image.eval problem with math.sqrt | [Image-SIG] Obtaining image data in numarray (Chuck Bass)
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

_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved