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

Home » Public Forums » archive » Re: identify the pixel location of a specific value
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: identify the pixel location of a specific value [message #48980 is a reply to message #48965] Tue, 06 June 2006 06:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
greg michael writes:

> If a is your image, b will be the minimum value, and i the position of
> that value within a.

Actually, the *first* position of the minimum value within a.
The minimum can obviously be represented more than once in an
image. To find *all* the minimum values, you might use the
WHERE function:

indices = Where(a EQ Min(a), count)
Print, 'There are ' + STRTRIM(count,2) + ' minimum values.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: iTool identifiers
Next Topic: Question on call_external

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

Current Time: Fri Oct 10 07:26:24 PDT 2025

Total time taken to generate the page: 0.58035 seconds