Login  Register

Re: X&Y location of intersecting lines

Posted by Gabriel Landini on Aug 27, 2014; 1:15pm
URL: http://imagej.273.s1.nabble.com/X-Y-location-of-intersecting-lines-tp5009362p5009377.html

On Wednesday 27 Aug 2014 04:41:58 TLowe wrote:
> <http://imagej.1557.x6.nabble.com/file/n5009376/Untitled.jpg>

This seems to find the intersectionpn that image:

run("8-bit");
run("Invert");
run("Minimum...", "radius=4");
run("Gaussian Blur...", "sigma=6");
run("Find Maxima...", "noise=10 output=[Point Selection]");
getSelectionCoordinates(x,y);
print(x[0],y[0]);

You might have to adjust some of parameters above (radius and sigma) depending
if the line thickness is always the same.
Perhaps converting to 32-bit instead of 8-bit is better, not sure.

Hope it helps.
Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html