replaces connected components adjacent to the border in a binary image image with background pixels.
replaces components adjacent to the border in a label matrix m with .
- DeleteBorderComponents by default treats all pixels surrounding a given pixel as adjacent. A given pixel has eight adjacent pixels in 2D and 26 adjacent pixels in 3D.
- The option setting CornerNeighbors->False treats only the pixels in the coordinate directions as adjacent, which would include four pixels in 2D and six pixels in 3D.
New in 8 | Last modified in 9