Re: macro to grade and digitize xrays
Posted by
Cammer, Michael on
Jul 12, 2013; 8:20pm
URL: http://imagej.273.s1.nabble.com/macro-to-grade-and-digitize-xrays-tp5003970p5003971.html
Does this help?
for (i=0; i<5; i++) {
do {
getCursorLoc(x, y, z, flag);
} while (flag&16==0);
print ("Point # "+(i+1)+" clicked at "+x+", "+y);
wait(250);
} //i
Regards,
Michael C.
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of J.J. Trey Crisco
Sent: Friday, July 12, 2013 3:39 PM
To:
[hidden email]
Subject: macro to grade and digitize xrays
I have gone through all the help I can find, but still stuck! I have x-rays images from over 100 subjects. I am trying to create a macro that I can send to various scorers. I have successfully created code that will sort and identify images and presents dialog boxes for scores. Now, I want them to simply digitize 5 points on one of the uploaded images. I want this to occur in the macro so I can save scores and xy coordinates.
How do you have the user digitize 5 points in the macro when prompted then collect the xy data?
I try getCursorLoc, but its a continuous stream before the user clicks the points. I tried setting point and multipoint, create a dialog, but it doesn't allow the dialog to remain open while digitizing? This must be so simple but I am missing something
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html