Re: How to obtain pixel location [message #62832] |
Sat, 11 October 2008 11:05 |
frankosuna
Messages: 31 Registered: February 2008
|
Member |
|
|
I was able to do it with the WHERE function. However, I'm trying to
computer the area under the curve for a saturn ring but some edge
detected pixels have the same x value. Is there a way I could compute
the area in some other way?
|
|
|
Re: How to obtain pixel location [message #62833 is a reply to message #62832] |
Sat, 11 October 2008 10:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
frankosuna writes:
> I need to get the pixel locations where the pixels equal a certain
> value. I need an x and y value for them. Is there any easy and
> efficient way to do this? I'm working with 1024x1024 images
The WHERE function comes to mind. Perhaps combined with
ARRAY_INDICES if you need the column and row values.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|