Login  Register

Adding coordinates of points in ROI manager to array

Posted by KKiek on May 10, 2016; 11:41am
URL: http://imagej.273.s1.nabble.com/Adding-coordinates-of-points-in-ROI-manager-to-array-tp5016382.html

I am new to scripting in ImageJ, and I was wondering if there is a way to add the coordinates of all points in the ROI manager to two arrays (one for x-coordinates and one for y-coordinates). I'm making a macro.

I have been looking at the forums, and only found how to add the coordinates of boudaries. What I have instead are points saved to the ROI manager with the Point tool. I use this to track a bird in a short image sequence.

I thought about using Roi.getCoordinates, but I don't know if that will work.