MATLAB: Find the intersecting points

curve fittingimage analysis

How can I calculate the intersecting points (red circled) from the following image?

Best Answer

If you have the image in hand.
  1. Get the locations/ positions i.e (x,y) for both the regions using logical indexing.
  2. Get the boundary of both the regions using boundary.
  3. Use InterX from the link: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections?focused=5165138&tab=function
If you have points (x,y) straight away follow from step 2 in the above.