MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Importing gif, tiff... (etc) as an array


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] ====


  • Prev by Date: Re: FindRoot problem
  • Next by Date: programming competition
  • Previous by thread: Importing gif, tiff... (etc) as an array
  • Next by thread: Re: Importing gif, tiff... (etc) as an array