Remove isolated voxels or clusters of a given size or smaller
im (ND-array) – The binary image from which voxels are to be removed.
size (scalar) – The threshold size of clusters to trim. As clusters with this many voxels or fewer will be trimmed. The default is 1 so only single voxels are removed.
im – A copy of
imwith clusters of voxels smaller than the given
- Return type
Click here to view online example.