

|
 |
| Programming > Idl-pvware > Re: pollyfillv,... |
|
| << 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:
|
JP <guerschman@[EMAIL |
2008-04-02 23:16:04 |
|
JP <guerschman@[EMAIL |
2008-04-02 23:38:44 |
|
David Fanning <news@[E |
2008-04-03 08:16:33 |
|
JP <guerschman@[EMAIL |
2008-04-03 16:08:07 |
|
James Kuyper <jameskuy |
2008-04-04 11:03:20 |
|
David Fanning <news@[E |
2008-04-04 06:31:24 |
|
pgrigis@[EMAIL PROTECTED] |
2008-04-04 07:18:51 |
|
Post A Reply:

|
|
|
|