Re: Importing gif, tiff... (etc) as an array
- To: mathgroup at smc.vnet.net
- Subject: [mg4878] Re: Importing gif, tiff... (etc) as an array
- From: Mark Evans <evans at gte.net>
- Date: Thu, 26 Sep 1996 22:42:29 -0400
- Organization: None
- Sender: owner-wri-mathgroup at wolfram.com
Adriano Barenco wrote: > > Dear Newsgroup, > > apologies if this is a faq. I would like to be able to import in MMA > pictures. Ideally I am looking for a function that reads in a file and > return an Array of integer. The size of the array should match the size > of the picture and the integer could represent the levels of gray of the > corresponding pixel. > > Any help appreciated. > > Adriano Barenco > barenco at physics.ox.ac.uk I have code that does this for Photoshop "raw" format. I don't recall whether it includes the byte-swapping that is required for PC's (the code runs on a big-endian Mac). If your picture depth is one byte per pixel, it doesn't matter. Let me know by direct e-mail if you are interested. I would also be curious to talk to you about your application, since I have done work in image processing. Mark Evans evans at gte.net ==== [MESSAGE SEPARATOR] ====