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

Home » Public Forums » archive » pollyfillv, area of a blob, etc...
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: pollyfillv, area of a blob, etc... [message #59646 is a reply to message #59581] Fri, 04 April 2008 07:18 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
JP wrote:
> G'day everyone,
>
> I need to create a mask of pixels contained within a polygon. I tried
> with POLYFILLV, but the problem I have is that my polygons are small
> compared to the pixel size and in some cases there are no pixel
> centers within my polygon and POLYFILLV returns -1.
>
> I found the discussions about this, including "POLYFILLV weirdness",
> "Area of a Blob", etc. For my particular application it doesn't really
> matter the criteria I use for selecting the pixels, but at least I
> need to get the array indices for the pixels that "touch" each
> polygon.

Then you just need to add to the mask all pixels that contain at least
one vertex and you will have solved your problem with small polygons.

Paolo

>
> By the way, ENVI's vector to ROI procedure is probably using
> POLYFILLV as well and I don't get any ROI out of those small
> polygons.
>
> Any help will be very much appreciated.
>
> JP
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Curl, Gradient and Divergence
Next Topic: Does the ENVI_SVM_DOIT function have memory leak problem?

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

Current Time: Thu Oct 09 11:00:45 PDT 2025

Total time taken to generate the page: 1.04090 seconds