How to save the makeline information (coordinates) in Fiji (imageJ) which comes from the user

239 Views Asked by At

I have a macro in Fiji where I am using the waitForUser("For creating the plot", "Make a line along the diameter of the cell and press OK") code and I want to save the coordinates of the line drawn by user, can someone please help as to how this can be done?

1

There are 1 best solutions below

1
Herbie On
getSelectionCoordinates( x, y );
print( "start: x="+x[0]+"; y="+y[0] );
print( "end: x="+x[1]+"; y="+y[1] );