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

Home » Public Forums » archive » 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 #67557 is a reply to message #67512] Fri, 31 July 2009 07:30 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Jul 31, 3:45 am, mark nolan <marknolan2...@gmail.com> wrote:
> On Jul 31, 9:13 am, mark nolan <marknolan2...@gmail.com> wrote:
>
>
>
>> On Jul 30, 11:53 pm, Gianguido <gianguido.cia...@gmail.com> wrote:
>
>>> On Jul 30, 4:27 am, mark nolan <marknolan2...@gmail.com> wrote:
>
>>>> hi everyone!
>
>>>> 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.
>
>>>> thanks and GOD bless!
>
>>>> mark
>
>>> is array_indices what you are looking for? how about using these free
>>> particle tracking procedures:http://www.physics.emory.edu/~weeks/idl/
>
>>> G
>
>> hey, ill try that, actually i dnt know that function, this would be my
>> first
>> time (iam new at idl).
>
>> thanks alot G and David!
>
>> GOD bless!
>> mark- Hide quoted text -
>
>> - Show quoted text -
>
> i dnt know how you do it guys but your just briliant! the
> array_indices work!! whooh!! thanks alot!
>
> GOD bless and continue to be a blessing!
>
> Cheers,
> mark


Just not to let any wrong impression by readers
of this thread, the mod and / method does indeed
work and delivers the same result as array_indices!

a=bytarr(123,777);create test
array
ind=43527L ;create test index

print,ind mod 123,ind / 123
108 353
print,array_indices(a,ind)
108 353

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: SCALE3.pro isn't doing it's job
Next Topic: workbench stops responding

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

Current Time: Fri Oct 10 10:24:33 PDT 2025

Total time taken to generate the page: 0.00555 seconds