Image processing and contour differentiation

조회 수: 4 (최근 30일)
KATHAN BHAVSAR
KATHAN BHAVSAR 2023년 4월 12일
답변: Bjorn Gustavsson 2023년 4월 12일
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개)

Bjorn Gustavsson
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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by