Re: Still getting trouble with ROI's [message #37898 is a reply to message #37886] |
Mon, 02 February 2004 09:59   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Bruce Bowler writes:
> Based on the fact that xy is the result of a "where", I'd assume that the
> single number returned is the "1 dimensional index that would result if
> the 2 dimensional array were addressed at X,Y".
>
> If I weren't so tired from partying after the Pat's won last night I'd
> tell you how to turn that back into 2 dimensions, but my brain is toast
> right now. I'm sure either a Panthers fan, someone on the left coast or
> someone who doesn't care about the Pat's or the Panthers can help...
I'm a big Janet Jackson fan (or at least NOW I am!),
but I'm pretty sure this won't work. The problem is
that the WHERE function (or, actually, POLYFILLV in
this case) doesn't return *ordered* indices. So you
can't really use the indices to "draw" anything.
But even if you could, I think Nuno needs the outline,
not the indices inside the outline. He's just using
the wrong tool for the job, I think.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
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
|
|
|