read pixels [message #23336] |
Tue, 16 January 2001 07:57  |
bcohen
Messages: 15 Registered: January 1996
|
Junior Member |
|
|
Hi, I'm using IDL 5.3 on a Mac with OS8.1. I'm trying to display a tif
and interactively get the x,y of a coordinate I choose with the cursor.
Ideally, I'd like my program to read my click-on x and y into variables.
RDPIX doesn't recognize my cmd-click as a right mouse button so I can
never get out of it. David's READ_PIXEL program doesn't display the
coordinates, though it displays the image in a nice widget. Any
suggestions on what I am doing wrong or other programs
to do this task? Thanks!
--
Barbara Cohen
University of Tennessee
bcohen@utk.edu
|
|
|
Re: read pixel [message #35157 is a reply to message #23336] |
Sat, 17 May 2003 21:57  |
Kelly Dean
Messages: 92 Registered: March 1997
|
Member |
|
|
I have limited experience myself with ENVI. It sounds like a simple
task for ENVI to do. Visit ENVI-L, someone there maybe able to help you.
However, it is easy to do with IDL as well, but requires the use of
WIDGET_DRAW.
Kelly
|
|
|
Re: read pixel [message #35166 is a reply to message #23336] |
Sat, 17 May 2003 01:51  |
graftons
Messages: 5 Registered: April 2003
|
Junior Member |
|
|
Kelly Dean <krdean@lamar.colostate.edu> wrote in message news:<3EC5DA0B.9030703@lamar.colostate.edu>...
> You'll have to enter the world of widget building to solve this problem.
>
> The WIDGET_DRAW can be setup to create the scrollbars and return the
> cursor motion events. The PRO _event section can be used to capture the
> x and y values, which are plotted into a WIDGET_LABEL, WIDGET_TEXT or
> saved into an array.
Hi :-)
thank you for your answer!
I would ask you if is it he only thing I can do to solve this problem?
is it not possible read from standard envi display?
thank you very much
Roberto
|
|
|
Re: read pixel [message #35167 is a reply to message #23336] |
Fri, 16 May 2003 23:43  |
Kelly Dean
Messages: 92 Registered: March 1997
|
Member |
|
|
You'll have to enter the world of widget building to solve this problem.
The WIDGET_DRAW can be setup to create the scrollbars and return the
cursor motion events. The PRO _event section can be used to capture the
x and y values, which are plotted into a WIDGET_LABEL, WIDGET_TEXT or
saved into an array.
For a screen example, visit the CIRA's IDL apps page -
http://www.cira.colostate.edu/special/csuidl/Ck_Met.htm
Sorry, CIRA does not release source code, but you'll see that it can
be done.
Kelly Dean
CSU/ATS
Roberto wrote:
> Hi
> I must to get information about some pixel and store these in array.
> To do this with idl I simply write:
> for i=1, 10 do begin
> TV, img
> cursor, x,y
> print, x,y, img(x,y)
> array = [[array],[x,y,img(x,y)]]
> endfor
>
> But I must use very large image so I would read pixel location using
> standard ENVI display (scroll, image and zoom windows). I don't know what is
> the right procedure, I am very inexperienced.
> Do you know if this is possible? How could I do? Or do you know some web
> guide?
> Thanks in advance
> Roberto Spedale
> Politecnico di Torino
|
|
|