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

Home » Public Forums » archive » Re: Polygon filling oddities
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: Polygon filling oddities [message #26936] Thu, 04 October 2001 05:01 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> I guess POLYFILLV and IDLanROI are intended for dealing with regions of
> interest on images and it is anticipated that the vertices of the ROI will
> be in the positive quarter-plane. But I don't see any reason why they
> shouldn't be able to work with negative vertex coordinates.
>
> So is what I've found a bug or a feature? Can others reproduce my results?
> (I've been using IDL 5.4.)

I can reproduce your results. But I can also
get the PolyFillV code to work by making this
change:

p = polyfillv(0 > x < (!D.X_Size-1), 0 > y < (!D.Y_Size-1), 500, 500)

Although, I do notice a small problem in
the very corner of the image. There is always
a pixel or two that is not filled properly.
I'm not sure whether your problem is a bug
or not, but I'm sure *this* is. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: findfile on unix bug - help
Next Topic: Can you drag and drop a Windows file into a Draw Widget?

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

Current Time: Thu Oct 09 22:49:23 PDT 2025

Total time taken to generate the page: 1.59611 seconds