Login  Register

Re: Part of Magic Wand Roi to Segmented Line

Posted by ard on Jun 13, 2017; 9:50am
URL: http://imagej.273.s1.nabble.com/Part-of-Magic-Wand-Roi-to-Segmented-Line-tp5018868p5018882.html

Thanks Jerome, this got me started.
It took me a while to realise your macro starts to remove points at x[0],y[0] from getSelectionCoordinates(x,y) of the Wand tool ROi coordinates, while we are trying to keep x[n...m], y[n...m] where m not necessarily > n.
I'll be using the shift key to first set (an overlay at) n for x[n],y[n], then m for x[m],y[m] and remove the coordinates not between n and m.

Ard