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

Home » Public Forums » archive » collecting points with "cursor" procedure for several classes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
collecting points with "cursor" procedure for several classes [message #43504] Mon, 18 April 2005 08:55
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Hello,

Does someone has an idea on how to collect samples for several classes with
the CURSOR procedure ?
The problem is using a loop of the type while...

For example, if I have 3 targets of interest and I want to collect several
points for each target, I can think about the following pseudo-code:
number_of_targets = 3
tvscl, image
for i=0, number_of_targets-1 do begin
while (not finish cliking) do begin
cursor, x,y, device
xyouts, x, y, '+', /device
endwhile
endfor

I am interested in keeping only pixels coordinates of samples.
I know how to do it with xroi procedure but this one allows only to collect
polygons.

If the image is displayed, for one class, I would like to click on several
samples and stop by clicking the right button of the mouse.
This right-click would be the stop condition of the while loop.
But how to code this ?

Thank you very much

Fran�ois Leduc
DRDC Valcartier
[Message index]
 
Read Message
Previous Topic: Re: tvimage, imcontour and ps dimensions
Next Topic: Re: collecting points with "cursor" procedure for several classes

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

Current Time: Thu Oct 09 09:17:58 PDT 2025

Total time taken to generate the page: 0.43439 seconds