ImageJ macro to measure distance between two lines/edges

What a great macro! Thanks for writing it.

Is there a way to make non-random lines? Can there be measurements at a set interval? Say every 25 pixels?

The macro uses spline interpolation to obtain coordinates of points along a line. This way, a small set of a few user-chosen points (coordinates) gets transformed to a much larger set of points, which otherwise would require the user to painfully draw a polyline with many more coordinates. The points in either the user-drawn or interpolated set may not be spaced uniformly (example figure).

So, the macro may be able to perform measurements at a set interval like 25 pixels only approximately and this will require a bit of complex coding… not sure if such a feature will be valuable.