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

Home » Public Forums » archive » Re: pixel value to x and y position
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: pixel value to x and y position [message #67503 is a reply to message #67502] Thu, 30 July 2009 08:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mark nolan writes:

> i have a multi tiff file, pictures of a moving bead. we would
> like to track the movement of the bead. we first subtract
> background, then clean it up by setting up threshold and then
> i used the morph_open. finally we label the regions and
> descriminate our bead from others (by area matching). we then
> call the pixels that are in those regions. using the formula
> above we calculate the x and y for each pixel and then average
> it (i.e. total(x)/num_of_pixels). the y seems to be ok however
> we have weird results for the x. please help me!!

I don't know what "call the pixels" means, but if
you mean "identify the indices of the pixels in the
region of interest" with something like the WHERE function,
then I don't see any reason why you would have to know
the columns and rows. But, if you did, you could use
ARRAY_INDICES to obtain them.

Cheers,

David

--
David Fanning, Ph.D.
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
Previous Topic: Re: oplot with colours
Next Topic: Question about the installation of IDL AACGM DLM

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

Current Time: Sat Oct 11 06:56:41 PDT 2025

Total time taken to generate the page: 1.68199 seconds