On Apr 24, 6:32=A0am, moxam...@[EMAIL PROTECTED]
wrote:
> On 24 =C1=F0=F1, 02:33, Gaurav <selfishgau...@[EMAIL PROTECTED]
> 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 =3D max(im, ind, dimension=3D3)
band =3D ind / (300 * 300)
device, decomposed=3D0
tvlct, 255, 0, 0, 0
tvlct, 0, 255, 0, 1
tvlct, 0, 0, 255, 2
tv, band
Mike
--
Tech-X Cor****ation
Software Developer II


|