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

Home » Public Forums » archive » help with cgDrawVectors in write_gif procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
help with cgDrawVectors in write_gif procedure [message #91079] Tue, 02 June 2015 08:03 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I created the following procedure to overplot vectors on the images.

PRO vectors_overlaid, Image, VX, VY, name

dims_i_need = Size(Dindgen(20,20), /Dimensions)
pos_x = Rebin(Findgen(dims_i_need[0]), dims_i_need[0], dims_i_need[1])
pos_y = Rebin(Reform(Findgen(dims_i_need[1]), 1, dims_i_need[1]), dims_i_need[0], dims_i_need[1])


cgDisplay, 500, 550
cgimage, image
cgDrawVectors, Vx, Vy, pos_x, pos_y,VECCOLORS='yellow', /ORDERED, overplot = 1

Then looping over the time point:

for i=0L,N-1 do begin
vecotrs_overlaid, Reform(Image[i,*,*]), reform(VX[i,*,*]),reform(VY[i,*,*]),('+strtrim(i)+').jpeg')
endfor


Instead of exporting jpegs I want to export gif format instead. I used the write_gif before but I used only images. Now I want to overplot the vectors on the images. Does anyone knows how to use the cgDrawVectors in write_gif procedure?

Many Thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vertical text orientation?
Next Topic: Pure IDL interface for video cameras -- linux only

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

Current Time: Wed Oct 08 15:37:06 PDT 2025

Total time taken to generate the page: 0.00463 seconds