Re: Write array as QuickTime
- To: mathgroup at smc.vnet.net
- Subject: [mg16885] Re: Write array as QuickTime
- From: Jens-Peer Kuska <v-jkuska>
- Date: Mon, 5 Apr 1999 02:24:23 -0400
- Organization: Wolfram Research, Inc.
- References: <7e1bel$b9g@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I can't help You with QuickTime but there is the free TIFFlib used by Image Magic and XV. If your MoviePlayer supports Portable Network Graphics than my PNG package http://www.mpae.gwdg.de/~kuska/mcpng.html can write RasterArrays[] directly with out any modification Regards Jens Andrew Watson wrote: > > I would like to write a 3D array of numbers (range: 0-255) to a QuickTime > file as a grayscale movie. > My current approach is: > 1) write out each frame as a PGM file using my own PGMWrite function. > 2) convert each PGM frame to TIFF using GraphicConverter (shareware). > 3) read all TIFF frames into a movie using MoviePlayer (a QuickTime > application). > > Any shortcuts here would help. For example, a mma program to directly write > TIFF files. > Note that the Display function will not help as it first renders the array > as a graphic, with various undocumented transformations (scale, grayscale). > I want the movie to have exactly the number of pixels as there area values > in my array, and with the exact same graylevels. My current procedure, > though clumsy, achieves this. > > Regards, > > Andrew B. Watson > MS 262-2 > NASA Ames Research Center > Moffett Field, CA 94035-1000 > (650) 604-5419 (650) 604-0255 fax > abwatson at mail.arc.nasa.gov http://vision.arc.nasa.gov/