Image processing and contour differentiation
5 次查看(过去 30 天)
显示 更早的评论
I have the following image and would like to differentiate the upper extrusions from the lower ones, and would like the code to detect their total number displayed, differentitate them as a different color and find an average of all of their lenghts.
1 个评论
Walter Roberson
2023-4-12
This appears to me to be something that should be posted as part of https://www.mathworks.com/matlabcentral/answers/1945729-image-processing-and-contour-detection?s_tid=srchtitle
回答(1 个)
Bjorn Gustavsson
2023-4-12
This seems to be a problem where you could use the file exchange submission: distance2curve. Just brute-force loop over every point along the red curve and for each point find the closest point on the blue curve. Then you have to identify the local peaks in that array of differences.
If that is not the solution you might have to specify why it isn't.
HTH
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!