Operator to find in connected components (3D). Background is assumed to have pixel value <= 0, foreground has pixel value > 0.
The operator extends the sequential component labeling algorithm described in W. Burger and M. Burge, Digital image processing: an algorithmic introduction using Java, 2008, Springer-Verlag New York Inc to 3D.
Input image:
Input image with connected components.
Diagonal neighborhood:
Flag if diagonally neighboring of pixels are considered to be connected (26-neighborhood). If true 26-neighborhood is assumed for foreground pixels otherwise 6-neighborhood.
Create label image:
If true an image is created where connected components are drawn with gray value according to their ID.
Create color image:
If true an image is created where connected components are drawn in random colors.
Resulting regions:
The set of regions representing the connected components found.
Label image:
The label image (MTBImageType.MTB_INT) that is created if Create label image=true.
Color image:
The color image (MTBImageType.MTB_RGB) that is created if Create color image=true.