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

Home » Public Forums » archive » color pixel by index
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
color pixel by index [message #55958] Mon, 24 September 2007 12:46
rpertaub@gmail.com is currently offline  rpertaub@gmail.com
Messages: 43
Registered: January 2007
Member
hi,
i think this is a fairly easy problem to which i dunno the answer.
Here goes:

I have 3 images, and used where function 3 times to find 3 specific
characterizations.
mask1=where(image ge thresh1)
mask2=where(image2 ge thresh2)
mask 3=where(image3 ge thresh3)

Now I have 3 sets of indices of pixels of my interest.

I want to use image 4 and color pixels indices 1 red, indices 2= blue,
indices 3=green.

image[indices1]=red
image[indices2]=blue
image[indices3]=green

How do I do that?

Thanks
rp
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Faster way to convert a string array of dates to julian dates
Next Topic: ITK and IDL interface

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

Current Time: Fri Oct 10 15:53:49 PDT 2025

Total time taken to generate the page: 0.66682 seconds