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

Home » Public Forums » archive » Re: Segmentation in ENVI
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: Segmentation in ENVI [message #62430 is a reply to message #62429] Wed, 10 September 2008 09:46 Go to previous messageGo to previous message
guillermo.castilla.ca is currently offline  guillermo.castilla.ca
Messages: 27
Registered: September 2008
Junior Member
Mort,

This involves several calls to Label_Region, but perhaps is easier
than Pal's suggestion (and will work also for a 8-neighborhood, by
including the /all kw in the call):

lmig = LABEL_REGION(climg EQ cl[0],/ULONG)
FOR i = 1, n - 1 DO BEGIN
mxlb = MAX(limg)
climgi = climg EQ cl[i]
limg = TEMPORARY(limg) + (LABEL_REGION(climgi, /ULONG) +
climgi*maxlb)
ENDFOR

Where climg is your classified image and cl is an array of n elements
containing the (numeric) labels of your classes. You might need to
zero the frame of your image before doing this.

Cheers

Guillermo

>> Hi Mort,
>
>> Try LABEL_REGION in IDL.
>> basically does a similar thing, only asks for a n-dimensional image
>> array as input. so you can separate your classification map to a 3D
>> cube with as many classes you have (including 'Unclassified') and feed
>> that to label_region as the data argument.
>
>> Tal
>
> Sounds good. Many thanks, Tal.
>
> Mort
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL is not accurate enough!
Next Topic: Undefined variables in structures

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

Current Time: Sun Oct 12 17:12:14 PDT 2025

Total time taken to generate the page: 0.32103 seconds