/* -----Original Message----- From: Herbie Sent: Monday, January 6, 2020 9:08 AM To: IMAGEJ@LIST.NIH.GOV Subject: Re: Feature request: make line selection tool show dx/dy here is a macro that may help: */ macro "straightLineParams [l]" { h=getHeight()-1; while (is("line")) { getLine(x1, y1, x2, y2, lineWidth); s=(y1-y2)/(x2-x1); c=round(h-y1-s*x1); showStatus("slope="+s+"; y-intercept="+c); } } /* notes by MC: This could be converted to angle readout. Instead of checking for ROI type for closed polygons, use this: is("area") Returns true if the current image has an area selection. Requires 1.52m. */