Binary segmentation in 3d

bwlabel3d(img)

Arguments

img

A 3d array. x is considered as a binary image, whose pixels of value 0 are considered as background ones and other pixels as foreground ones.

Value

A grayscale 3d array, containing the labeled version of x.

Author

Fabian Scheipl, Volker Schmid