Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

find nerest point B(x,y,z) on the outersurface of the head to A (x,y,z)

조회 수: 2 (최근 30일)
zawaiter
zawaiter 2013년 4월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
hi experts , i have a questions i asked before but still cant solve it and hope you can help me.
i succesfuly formed a 3d image of a head from a bunch of 2d slices. i have a point say A(x,y,z). this point could be within the head or outside the head surface in the zeros area. i wish to find the nearest point say(B(x,y,z))to A(x,y,z) on the surface of the brain.

답변 (1개)

Image Analyst
Image Analyst 2013년 4월 13일
Can't you just have 3 for loops and get every distance and check? Otherwise you can try to set that point and set all the points in the head, and then call bwdist(), then scan that distance transform, but that might take more time than just doing it yourself directly with the Pythagorean theorem.
  댓글 수: 8
zawaiter
zawaiter 2013년 4월 16일
i dont have binary image but i think i can do it using your previouse help.but then the pixels that are part of the object will be both surface and within object voxels right? not only surface.
Image Analyst
Image Analyst 2013년 4월 16일
Well threshold it or something. If you want to know how close some arbitrary point is to the surface, you obviously have to know what pixels are part of your object and what pixels are part of the background, or air.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by