| clear_border | R Documentation |
Clear connect regions of a binary image that touch either the edges of the image or edges in specified binary mask (or window).
clear_border(image, win = NULL, r = image$xstep * 2, output_mask = FALSE)
image |
binary image (instance of |
win |
Optional.
Window/mask that defines edges (instance of |
r |
Optional. Radius of morphological erosion operation to use to define the edge. This will determine the 'thickness' of the edge. Defaults to 2px. |
output_mask |
Optional. Logical value to indicate whether a mask of objects should
be returned. If |
labelled image (im object) or mask excluding any
connected components that touch the border of the win.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.