// ListSelectionCoordinates.txt // This macro lists the coordinates of the points // that define the current selection, the length // of the line segments that connect the points // and the average segment length. Works with // all selection types except for straight lines. // Works with multi-point selections, a // feature added in ImageJ 1.33g. if (selectionType==-1) exit("Selection required"); getSelectionCoordinates(x, y); getPixelSize(unit, pixelWidth, pixelHeight); run("Clear Results"); count = 0; n = x.length; for (i=0; i0) setResult("Length", n, sumLength/count); updateResults();