find nerest point B(x,y,z) on the outersurface of the head to A (x,y,z)
1 ビュー (過去 30 日間)
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 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.