Re: Couting from point selection
Posted by
Jerome Mutterer-3 on
Mar 23, 2011; 2:35pm
URL: http://imagej.273.s1.nabble.com/Couting-from-point-selection-tp3685315p3685317.html
Andrew,
You can use:
getSelectionCoordinates(x, y);
print (x.length);
Sincerely,
Jerome
On Wed, Mar 23, 2011 at 3:24 PM, Andrew Bell <
[hidden email]> wrote:
> Is there a way to get just the number of points selected using the point
> selection tool?
>
> Currently using the exisiting settings I can get can measurements of
> individual points in the Results window, or(/and) have the points added to
> the ROI manager, but what I would like is a total count of how many there
> are in the window. I know I could just take a look at the Results window and
> see the point number there, but I would like to add this into a macro where
> the user selects a number of varrying points in the image, and it is the
> number per image I would like.
>
> Any suggestions are welcome.
>
> With regards,
>
> Andrew
>