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

Home » Public Forums » archive » how to set density slice color using the IDL new graphic
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: how to set density slice color using the IDL new graphic [message #85921 is a reply to message #85919] Wed, 18 September 2013 06:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
titan writes:

> I'm trying to create a widget where after reading an image it appears
and clicking on a butt from gray scale it would turn in an image with
only 5 colors one fore each class I have in the image.
> the image is a gray scale byte array[600,600] where the pixels have this values=63, 127,191,254,0
>
> I would like to associate a specific color to each of these values
>
>
> with the old graphic system I did in this way:

> If I try to use the same approach with the new graphic it does not work anymore and I'm not able to find a workaround.
>
> I hope my problem is clear..
>
> do you have any suggestions??

I was taking an ENVI class last week when the rain started and the class
had to be aborted half way though. But, we did talk about density
slicing, and I thought this would be a great tool for the Coyote
Library. I don't know how to do this with function graphics, but if you
find you have to resort to direct graphics again, I would suggest doing
this with Value_Locate rather than the Where function. It will be MUCH
faster for you. :-)

http://www.idlcoyote.com/code_tips/partition.html
http://www.idlcoyote.com/code_tips/valuelocate.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Trying to plot geomagnetic coordinates
Next Topic: Extracting plot boundaries

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

Current Time: Fri Oct 10 15:38:19 PDT 2025

Total time taken to generate the page: 0.40275 seconds