On 8/29/2010 12:50 PM, P Kishor wrote: > Someone please explain the following to me. From > http://search.cpan.org/~chm/PDL-2.4.7/IO/Pnm/Pic.pm#wmpeg > > "wmpeg > > Write an image sequence ((3,x,y,n) piddle) as an MPEG animation. > > $anim->wmpeg("GreatAnimation.mpg"); > Writes a stack of rgb images as an mpeg movie. Expects a 4-D pdl of > type byte as input. First dim has to be 3 since it is interpreted as > interlaced RGB.
The above is what you need. > I have the following > > Info: PDL: Float D [252,189,100] This is what you have. Looks like you need float->[r,g,b] conversion which is basically a lookup table (a.k.a. LUT). See this discussion on the list from the archives on one way to to the conversion: http://mailman.jach.hawaii.edu/pipermail/pdl-porters/2006-December/000643.html > I want to write out 100 images 252x189 pixels wide, both as 100 > separate images as well as a movie of 100 frames. Can I use wmpeg for > the movie part? How? Yes. Cheers, Chris _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
