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

Home » Public Forums » archive » Re: 3D array imaging with different colors
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: 3D array imaging with different colors [message #83427 is a reply to message #83347] Fri, 01 March 2013 06:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tackmeister@gmail.com writes:

> If I understand your first post correctly, by using a 3D array in the
> image function I define the colors directly by their RGB channel, so
> if I want to get a different color output I'd have to manipulate RGB
> channel seperately and change it to the color I want? Is there a way
> you could suggest me to do this automatically so I get the result I'd
> like?

If you just want to change the background color. Find all the pixels
that have zeros in all three color channels and change the value of
these pixels to 255 in each color channel. Do the opposite to change
white pixels to black.

I doubt this will be satisfying to you, because normally in a "mixing"
situation like this, there will be a lot of pixels that are "almost"
black (e.g., [0,1,4]). These will not be found and won't be changed.

I think it will be easier in your situation to just learn to love black
backgrounds. You will sleep better at night. :-)

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
Read Message
Previous Topic: Re: IDLgrPolygon unexpected result
Next Topic: 3D array imaging with different colors

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

Current Time: Fri Oct 10 04:16:09 PDT 2025

Total time taken to generate the page: 0.48222 seconds