Login  Register

Re: Intersection point(s) of two roi's.

Posted by Gabriel Landini on Sep 15, 2010; 9:56pm
URL: http://imagej.273.s1.nabble.com/Intersection-point-s-of-two-roi-s-tp3686903p3686908.html

On Wednesday 15 September 2010 22:04:57 Ved Sharma wrote:
> Thanks for your replies. Jerome's methods works better but the problem is:
> 1. If the roi (both line and oval) thickness is 1, then sometimes there is
> no intersection point.
>
> 2. If the roi (line and/or oval) thickness is >1, then mostly I get
> multiple points for one true intersection point

Maybe you need to do something like this using the paramters that define the
line and the circle/ellipse:

http://mathworld.wolfram.com/Circle-LineIntersection.html
or
http://en.allexperts.com/q/Geometry-2060/Line-Ellipse-Intersection.htm

ROIs are discrete, so no-points or multiple points results should be expected.

Cheers
G.