필터 지우기
필터 지우기

How to get a region from points

조회 수: 3 (최근 30일)
Hg
Hg 2015년 10월 21일
답변: Walter Roberson 2015년 10월 21일
Below is a scatter plot from array that I get using boundary(). How can I get a region so that I can use regionprops() to find the centroid, orientation etc.

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 21일
You could dilate the image repeatedly until the boundary closed (at which point there would be only one blob) and then erode it again maintaining continuity; see bwmorph() for useful functions.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by