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 #67509 is a reply to message #67507] Thu, 30 July 2009 06:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mark nolan writes:

> can anyone check if this is correct way to convert pixel value to x
> and y position (iam trying
> to write a simple tracking code in IDL):
>
> y = pixel_value/width_picture
> x = pixel_value mod width_picture
>
> i really have time on the x,it gives a wrong result. i think i got the
> y coordinate correctly.

I don't think this question can be answered from the way
you have asked it. (At least I would have to make WAY
too many assumptions to feel comfortable answering it.)
What, exactly, are you trying to do?

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.")
[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: Fri Oct 10 21:16:59 PDT 2025

Total time taken to generate the page: 0.79870 seconds