collecting points with "cursor" procedure for several classes [message #43504] |
Mon, 18 April 2005 08:55 |
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
|
|
|