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

Home » Public Forums » archive » optimization question: a faster way to PIXMAP?
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: optimization question: a faster way to PIXMAP? [message #20675 is a reply to message #20579] Fri, 14 July 2000 00:00 Go to previous message
wrb1000 is currently offline  wrb1000
Messages: 9
Registered: January 1999
Junior Member
Hi Dennis,

I actually encountered a different problem and am currently using the
solution that you hinted at. I read Randall's hint and I don't think
it applies to me as I am summing multiple samples of a waveform to
create a color-coded plot of a waveform. Here's a cut-and-paste of
some of the code I used. It's highly abbreviated, but will give you an
idea of have the Zbuffer works and will let you develop your own test
case. It aint super speedy (uses TVRD), but it works just fine.

intensity_array = uintarr(540, 459) ; image array
current_clip = !P.CLIP ; Copy current clipping boundaries

set_plot, 'z'
DEVICE, Z_BUFFERING = 0
device, set_resolution = [540,459]
!P.CLIP = current_clip ; Make Z-buffer clip same boundaries

; Setup new color table for Z-buffer image
table = intarr(256)
table[1] = 255
tvlct, table, table, table

FOR i = <1st plot>, <2nd plot>, incr DO BEGIN
plots, x_data, y_data, color = 1
intensity_array = temporary(intensity_array) + tvrd()
ENDFOR

device, /close
set_plot, 'win'


The 'intensity_array' now contains your summed data.
Hope this helps,

Bill B.

--
"They don't think it be like it is, but it do."

Oscar Gamble, NY Yankees


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Link IDL to ORACLE Pro*FORTRAN
Next Topic: assignment inside boolean expression

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

Current Time: Sat Oct 11 10:44:21 PDT 2025

Total time taken to generate the page: 0.24100 seconds