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

Home » Public Forums » archive » Color conversions
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: Color Conversion [message #80946 is a reply to message #61247] Fri, 20 July 2012 09:53 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marc writes:

> I am currently working with a 3D array defined by (longitude, latitude, color), with the color dimension being of size 3 representing an RGB color scale. This, however, is causing me some problems since I need to scale the color value to the value that it actually represents on the (longitude, latitude) grid for later conversion, and so I ultimately want a 2D array with the RGB color scale converted to a color index scale from 0 to 255, with 0 as black and 255 as white.
Any thoughts or suggestions on how to go about doing this process?
>

http://www.idlcoyote.com/ip_tips/color2gray.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 thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: question about trigrid?
Next Topic: plot

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

Current Time: Fri Oct 10 15:02:23 PDT 2025

Total time taken to generate the page: 1.12230 seconds