How to find out contour/boundary of binary 3D image

2 Ansichten (letzte 30 Tage)
hosse
hosse am 3 Mär. 2016
Beantwortet: Ahmet Cecen am 4 Mär. 2016
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.

Antworten (1)

Ahmet Cecen
Ahmet Cecen am 4 Mär. 2016
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.

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by