How can I find intersection between edge and lines?
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158339/image.png)
Dear Experts, I'm trying to find intersection between the lines and edge. I generated the lines separately to can find the nearest edge to the center. My final goal is the coordination of the edges which intersect the lines. Any body has a solution for this? This is my code (Xcenter and Ycenter were determined): Iedge = edge(BWc,'canny'); theta=[0:0.1:2*pi]; x=fix(Xcenter+10*cos(theta)); y=fix(Ycenter+10*sin(theta)); line(x,y) but I don't know what I should do to find the intersections.
0 个评论
回答(2 个)
Image Analyst
2016-11-24
Please read Steve's blog on the subject: http://blogs.mathworks.com/steve/2016/04/12/intersecting-curves-that-dont-intersect/
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!