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

Home » Public Forums » archive » 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 #60059 is a reply to message #59986] Thu, 24 April 2008 16:43 Go to previous message
moxament is currently offline  moxament
Messages: 26
Registered: April 2008
Junior Member
On Apr 24, 11:55 am, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> 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

Not exactly but the tvlct helped me, I did not know it. Thank you very
much

MD
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL Workbench Ignoring Breakpoints
Next Topic: Re: Difficult Label_region question

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

Current Time: Fri Oct 10 05:16:31 PDT 2025

Total time taken to generate the page: 0.08385 seconds