필터 지우기
필터 지우기

Getting points back from convexhull/trisurf, or 'how to find the closest point on a 3d surface to a given point.

조회 수: 3 (최근 30일)
I'm trying to find the outside surface of a 3D matrix (an MRI of the scalp), The matrix contains all the points of the scalp and I need to be able to calculate the distance to the outside surface from a given internal coordinate.
If I use a delaunay triangulation and create a convexhull of those points I can successfully visualize just the outside surface, but I'm not sure how to a) get those points back in the true coordinate system/b) get the closest point on the surface of the formed convex hull to a given coordinate. Figuring out a) is not necessary if I can directly find b). If there's another way and this makes no sense at all, I'm open to suggestion. TIA
% rcv, or [r c v] is a 75,120 x 3 matrix
DT = delaunayTriangulation([r c v]);
[K,~] = convexHull(DT);
trisurf(K,DT.Points(:,1),DT.Points(:,2),DT.Points(:,3))
  댓글 수: 2
John D'Errico
John D'Errico 2024년 1월 30일
Note that a delaunay triangulation (and therefore a convex hull) for the surface of a skull is probably a poor approximation.
Cameron
Cameron 2024년 2월 1일
with the amount of points I have it's very close to exact as an approximation, if you have another suggested method I'm open to it.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2024년 1월 30일

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by