- find_disconnected_voxels(im, conn=None)¶
Identifies all voxels that are not connected to the edge of the image.
im (ndarray) – A Boolean image, with
Truevalues indicating the phase for which disconnected voxels are sought.
conn (int) – For 2D the options are 4 and 8 for square and diagonal neighbors, while for the 3D the options are 6 and 26, similarily for square and diagonal neighbors. The default is the maximum option.
image – An ndarray the same size as
im, with True values indicating voxels of the phase of interest (i.e. True values in the original image) that are not connected to the outer edges.
- Return type
This function is just a convenient wrapper around the
Click here to view online example.