comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Help needed to create image frames from dataset (mpeg movie)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Help needed to create image frames from dataset (mpeg movie) [message #64548 is a reply to message #64526] Tue, 06 January 2009 09:17 Go to previous messageGo to previous message
Kim is currently offline  Kim
Messages: 19
Registered: January 2009
Junior Member
On Jan 6, 8:06 am, "Jean H." <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
>> Hi,
>
>> I think you misunderstood my question.
>> I already read David's link. Like you said, that was the first thing
>> that popped up.
>> My question was not how to make mpeg movies, but how to make the
>> matrix for each individual image frame, or the 3d data matrix.
>> The above (x, y, t) is not in a matrix format, I wanted something like
>
>> At T=1sec,
>
>> in 4x4 matrix of x and y,
>
>> 0 0 1 0
>> 1 0 0 1
>> 0 0 1 0
>> 0 1 0 0
>
>> Which corresponds to (2, 0), (0, 1), (3, 1), (2, 2), (1, 3) in x and y
>> coordinates.
>> Unfortunately, y coordinates I have are not in integer, but rather
>> double precision, and I have hundreds of data set.
>> So, I was hoping whether there is a quick way to create matrix out of
>> the given data sets.
>
> So, what should be the pixel size?
> If it is unitary, there is no problem:
>
> image = bytarr(Xsize,Ysize)
> image[x,y] = 1
>
> If you don't want to have the value 1, but rather the number of times a
> point fell in this pixel, use histogram instead (hist_2d). Moreover, you
> can specify the bin size!
>
> Jean

Thanks for all the help.
This might work after all. ^^
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Documentation time
Next Topic: ENVI ROI colors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:46:30 PDT 2025

Total time taken to generate the page: 0.24119 seconds