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

Home » Public Forums » archive » ENVI: procedure to get X, Y of pixel in displayed image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
ENVI: procedure to get X, Y of pixel in displayed image [message #52089] Wed, 27 December 2006 03:08
aberte@gmail.com is currently offline  aberte@gmail.com
Messages: 8
Registered: December 2006
Junior Member
Hi,
i'm getting troubled with writing a procedure to get x,y (so: y = the
line of the image (row) and x = the sample (column)) coordinates of a
pixel of a displayed image. I'm trying to do this with cursor, but
while debugging I don't have the results I want.

I'm using

cursor, x, y, 4, /DATA

I saw that with
cursor, x, y, 4, /DEVICE
I get integers instead of floats.

I would to like what I'm doing wrong.
Also, I would to know if somebody have written a procedure to get
coordinates and value of a pixel by clicking on it on the display.

Thank you.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: XVOLUME in batch?
Next Topic: stderr and unix exit status of IDL runtime applications

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

Current Time: Wed Oct 08 18:41:25 PDT 2025

Total time taken to generate the page: 0.00453 seconds