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

Home » Public Forums » archive » Re: Raster to Vector outlines- Classification Image
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: Raster to Vector outlines- Classification Image [message #69529] Sat, 23 January 2010 11:05 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Am 23.01.2010 15:50, schrieb Robin Wilson:
> Hi,
>
> I've got a classification image consisting of various polygons, each of
> a different value (integers, from 1 to about 59,000!). I'd like to
> display all of the boundaries of these polygons on the image, either in
> an EVF file or just as an ROI with pixels for each of the boundaries so
> I can overlay it on the image.
>
> I've tried using RTV_DOIT, but that extracts each boundary to a separate
> EVF file. I've written a routine to stitch together all these EVF files,
> but the creation of 1000 of the EVF files using RTV_DOIT takes quite a
> while - and the 59,000 polygons I have is only for a small image!
>
> Does anyone know of any better way to do this? It can be using an ENVI
> procedure or a built-in IDL function, or a simple way to write some IDL
> code to do this.
>
> Best regards,
>
> Robin Wilson
> University of Southampton

You can try this:

boundaries = classimage*0
boundaries[where( (classimage-shift(classimage,1,0) ne 0) $
or (classimage-shift(classimage,0,1) ne 0) )] = 1


Mort
[Message index]
 
Read Message
Read Message
Previous Topic: Raster to Vector outlines- Classification Image
Next Topic: PAYPAL payment wholesale BRAND shoes,clothing,watch,handbag,jean,ugg boot,t-shirt,jersey,eyeglass,belt,wallet and so on

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

Current Time: Wed Oct 08 19:12:09 PDT 2025

Total time taken to generate the page: 0.00438 seconds