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

Home » Public Forums » archive » tvrd failure on v5 on win95
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
tvrd failure on v5 on win95 [message #9112] Tue, 03 June 1997 00:00 Go to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
ok I just wasted about 4 hours on the following problem on idlv5,
windows95 and pentium.

Basically, tvrd is not returning the image. Here is a piece of code:

surfdata = shift(dist(20),10,10)
surfdata = bytscl(exp(-(surfdata/5)^2))



loadct,25 ;,ncolo=100
shade_surf,surfdata,shades=surfdata
clr_surf = tvrd()

loadct,0
end

(some of you may recognize it as part of Struan's surface plotting
tutorial).

_depending_ on the color table loaded with LOADCT (I tried 6 and 25),
clr_surf contains a severely defficient image. Do a tv,clr_surf, and you
will get either only the axes drawn (for color table 25) or a surface
image but with colors that do not correspond to the original (for color
table 6)

If you look at the histogram of the image you will see that only few of
the 255 available values are used (two for color table 25 and several
for table 6).

I tried playing with device,decomposed=x, retaining done by IDL, but to
no avail. I also tried not using the top 20 colors (as this is used by
windows), but this did not help much.

Any clues?

Tia,


--
Mirko Vukovic, Ph.D 3075 Hansen Way M/S K-109
Varian Associates Palo Alto, CA, 94304
415/424-4969 mirko.vukovic@varian.grc.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL signal processing procedures
Next Topic: Re: Gradient of an Image in IDL

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

Current Time: Fri Oct 10 10:17:39 PDT 2025

Total time taken to generate the page: 0.64174 seconds