Login  Register

Re: How to count points within a specified area?

Posted by Rocco D'Antuono on Jan 19, 2014; 9:16am
URL: http://imagej.273.s1.nabble.com/How-to-count-points-within-a-specified-area-tp5006175p5006178.html

Hi, suppose you have the points saved in different ROI; in this case you can just select the Area ROI and use "selectionContains(x, y)" function looping on each point: count the times you get "true" value and you get the result.

P.S. In order to loop on each point, first you would need to store (x,y) coordinates in two array

Regards,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/