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

Home » Public Forums » archive » read pixels
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
read pixels [message #23336] Tue, 16 January 2001 07:57 Go to next message
bcohen is currently offline  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 Go to previous message
Kelly Dean is currently offline  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 Go to previous message
graftons is currently offline  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 Go to previous message
Kelly Dean is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: replace array's elemets
Next Topic: Re: running IDL without the DE

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

Current Time: Wed Oct 08 14:00:58 PDT 2025

Total time taken to generate the page: 0.00662 seconds