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

Home » Public Forums » archive » Re: Difficult Label_region question
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: Difficult Label_region question [message #60068 is a reply to message #59980] Thu, 24 April 2008 10:55 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Apr 24, 6:32 am, moxam...@gmail.com wrote:
> On 24 Áðñ, 02:33, Gaurav <selfishgau...@gmail.com> wrote:
>
>> But, of course, you will benefit greatly by reading about the WHERE
>> function. It will cut a lot of your processing time if you are running
>> loops (as it appears to be from the subscripts in your code).
>
>> Cheers
>> Gaurav
>
> Thank you for the help. Your suggestions are good, but I think you did
> not understand what I wanted exactly. I want to use the label_region
> in order the imnew to contain three segments. The first segment
> contains pixels from the first channel, the second segment contain
> pixels from the second channel, and the third segment contains pixels
> from the third channel. Having used the label_region I can tv the
> imnew by giving one pseudo color to each segment (I do not know how to
> do that as will).
>

Not sure what you want, but is this close?

m = max(im, ind, dimension=3)
band = ind / (300 * 300)

device, decomposed=0

tvlct, 255, 0, 0, 0
tvlct, 0, 255, 0, 1
tvlct, 0, 0, 255, 2

tv, band

Mike
--
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Difficult Label_region question
Next Topic: dlm file not found automatically

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

Current Time: Sat Oct 11 14:03:58 PDT 2025

Total time taken to generate the page: 0.64024 seconds