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

Home » Public Forums » archive » IDL Average Value Graphs
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: IDL Average Value Graphs [message #61506 is a reply to message #61413] Thu, 17 July 2008 12:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
andybohn@gmail.com writes:

> When I ran POLYFILLV on a triangle, it returned just a 1d array of all
> the pixels in the triangle. I just wish it had an argument that
> returns a 2d array (the x and y coordinates of all of the pixels in
> the polygon). It's simple to convert back, but it's just a little
> inconvenient. Not a big deal.

I am still not understanding why you have to convert
anything. These are the indices of the image that are
inside the triangle. Why can't you use them directly?

I *believe* (although I am not 100% certain about this)
that a pixel is considered "inside" the polygon if the
lower-left corner of the pixel is inside. I don't recall
the details now, but I do know there is a difference
between POLYFILLV and what, for example, comes back
from IDLanROI, which I think uses the center of the pixel.

This goes back too many years. I may have made a note
about this in my FIND_BOUNDARY program, because it came
up when I was working on that project.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Something Has Changed
Next Topic: QHULL/VORONOI question

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

Current Time: Sun Nov 30 11:41:53 PST 2025

Total time taken to generate the page: 1.91833 seconds