Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: pollyfillv,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 5594 of 6456
Post > Topic >>

Re: pollyfillv, area of a blob, etc...

by pgrigis@[EMAIL PROTECTED] Apr 4, 2008 at 07:18 AM

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
 




 7 Posts in Topic:
pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-02 23:16:04 
Re: pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-02 23:38:44 
Re: pollyfillv, area of a blob, etc...
David Fanning <news@[E  2008-04-03 08:16:33 
Re: pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-03 16:08:07 
Re: pollyfillv, area of a blob, etc...
James Kuyper <jameskuy  2008-04-04 11:03:20 
Re: pollyfillv, area of a blob, etc...
David Fanning <news@[E  2008-04-04 06:31:24 
Re: pollyfillv, area of a blob, etc...
pgrigis@[EMAIL PROTECTED]  2008-04-04 07:18:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 20:23:14 CST 2008.