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

Home » Public Forums » archive » Re: Newbie question (w/colorful points)...
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: Newbie question (w/colorful points)... [message #23318 is a reply to message #23299] Wed, 17 January 2001 06:12 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
RandyStack (randystack@aol.com) writes:

> I've got a a set of 8192-element 1d arrays that I need to plot. Each point has
> an X & Y value as well as a color (the unique color for each of the 8192 points
> is specified with hue, luminance and saturation values). My question is this:
> What's the best and/or fastest and/or easiest way to plot these values over a
> 512x512 2d grid with 24-bit color? Again, each point has a unique color (and,
> if necessary, I can convert the HLS array into RGB)...I just need to end up
> with a 512x512 3-plane (RGB) matrix for further processing. Just started using
> IDL, so thanks for any assistance and direction y'all can provide...

I'd convert the color HLS array to RGB, for sure.
As to the fastest way to create the array, I'm
not sure I can decipher how a 8192 vector
relates to a 512x512 array. (Except to note
that 8192/512 = 16.) If you can reform the
vector into a 61x512 array, then some kind of
array sub-scripting of the larger 512x512 array
will surely work.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filling an array
Next Topic: Tiltmeter

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

Current Time: Fri Oct 10 06:19:36 PDT 2025

Total time taken to generate the page: 1.36210 seconds