How to find out contour/boundary of binary 3D image
8 次查看(过去 30 天)
显示 更早的评论
Hello
I would like to find out the boundary of a 3D MR binary image in matlab. Is there any built in function in matlab to do that.
0 个评论
回答(1 个)
Ahmet Cecen
2016-3-4
No direct built in function that I know off. Use circshift to extract them in N Dimensions. If A is your data and I want to find the boundary as the first pixel inside the phase defined by 1s, do something like:
AX = circshift(A,[1 0 0]);
Xbound = AX-A;
If you do this in a dummy 1 or 2D case you can see what Xbound gives you and convince yourself about what to do with it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!