|
Hello!
I have an image with lines on it (it is a time/distance kymograph of moving particles). Moving particles look like "stairs" because it is a stop-and-go type of movement. I trace these movement using "Segmented Line" and then add them to ROI manager.
I need to extract all coordinates of each of points the these segmented lines (once I've added them all to the ROI manager). Based on my searches here, I've patched together this macro (see below). Unfortunately, when I run it, it only gives me the coordinates for the first line only, even though there are other lines on the ROI manager list. Please help?
------------------------------------------------
for(i=0; i<roiManager("count"); i++) {
roiManager("select", i);
getSelectionCoordinates(x, y);
for (i=0; i<x.length; i++)
print(i+" "+x[i]+" "+y[i]);
}
------------------------------------------------
Disclaimer: I am not a programmer, nor do I have any experience with programming. If you reply, please keep that in mind. I do have some limited user experience on how to record and run a macro in ImageJ.
|