Determining the slope between relevant 2d objects
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello all, included I have my post processed image where I've done a lot of things to it, but basically got it to this post watershed state where the edges are quite segmented.
The idea here is I want to take the slope of the objects, then be able to draw some sort of conclusion from it. For example, if I were to draw a slope along the right side set of objects, would I get a regular gradual slope, or something more like a spline curve?
Main questions:
1. How do I extract the x-y coordinates from those identified objects?
2. Is it possible to draw a 'best fit line' of sorts between the right hand objects (ignoring the ones on the left?)
Thanks!
댓글 수: 1
답변 (1개)
Image Analyst
2018년 6월 30일
Why not take the points and use poly2mask() to create a solid binary image mask from them?
Then you can call bwperim() or bwboundaries() to get the boundary/outline coordinates for every adjacent pixel.
댓글 수: 2
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!