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

Home » Public Forums » archive » Re: Q: How to scroll image quickly in IDL 2.4.0?
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: Q: How to scroll image quickly in IDL 2.4.0? [message #929] Fri, 12 March 1993 10:17 Go to previous message
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
In article <1nq3cgINNbed@rave.larc.nasa.gov> mayor@vaxine.larc.nasa.gov writes:
>
> Does anybody know how to move (slide) an image (or a portion of the image)
> around in a window without using the TV command in IDL 2.4.0?
>
> We want to develop a display where new real-time image data enters on the
> right side and old image data scrolls to the left. This can be done by
> building a loop that shifts the whole image array, replaces the profile
> on the right and reTVs the whole image to the window, but of course it
> takes a lot of time. We hope there is a way to just move the data in the
> window by a certain amount without having to shift and reTV whole image.
>

As far as I know, there is no way to pan and scan a TVed image on a
device that does not support that feature in hardware. I do have a suggestion
that might increase the speed of what you are doing. Create a pixmap window
(or you could do this with an array in memory) equal in size to the portion of
the display where the image scrolling will take place (I assume this might be
specified by the box defined by !P.CLIP). Initially the pixmap will be empty.
As profiles come in add them one by one to the right side of the pixmap and use
DEVICE,COPY=... to place the partial image in the display area. Continue this
until the pixmap becomes full. When you are ready to start scrolling the
image, do so in the following manner. Simply reset a pointer (use the math
function MOD) to the first profile in the pixmap (this is now the oldest
profile) and overwrite it with the new data. Then use DEVICE,COPY=... twice to
place the image in the display area in two pieces (Right most portion of the
pixmap goes into the lefthand portion of the display and the leftside of the
pixmap goes to the right). Increment the pointer by one and continue this
process indefinitly (resetting to the beginning each time you reach the end of
the pixmap). This eliminates the need to move each profile one step to the
left in an array and uses DEVICE,COPY=... which is very fast for imaging.

Any further questions ask via email.

--
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
Internet: zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681-0001
Packet: ko4lw@wb0tax.va.usa
[Message index]
 
Read Message
Read Message
Previous Topic: Q: How to scroll image quickly in IDL 2.4.0?
Next Topic: Re: QUESTION: special characters in postscript output

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

Current Time: Wed Oct 08 21:38:43 PDT 2025

Total time taken to generate the page: 0.16035 seconds