Login  Register

Re: importing and displaying previous point selections

Posted by Wayne Rasband on Sep 26, 2007; 10:13pm
URL: http://imagej.273.s1.nabble.com/importing-and-displaying-previous-point-selections-tp3698318p3698319.html

Here is macro code that displays a set of point measurements on an
image. Un-comment the 7th line to draw the points on the image.

   n = nResults;
   x = newArray(n);
   y = newArray(n);
   for (i=0; i<n; i++) {
       x[i] = getResult("X", i);
       y[i] = getResult("Y", i);
       //fillOval(x[i]-1, y[i]-1, 3, 3);
   }
   makeSelection("point", x, y);

-wayne

On Sep 26, 2007, at 3:24 PM, david kysela wrote:

> Is there some way to display previous point selections on an image?
> I've
> figured out how to save previous results and import them into a results
> window, but I cannot seem to display these measurements on the image.
> Thanks in advance for any suggestions.
>
> --Dave
> _________________________________________________________________
> Discover the new Windows Vista
> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE