remove_small_objects | R Documentation |
Remove connected regions/objects smaller than a specified size
remove_small_objects(image, size = 50, output_mask = FALSE)
image |
binary image (instance of |
size |
Optional. Defaults to 50 units.
Exclude any objects smaller than this size. Units default to units of
the input |
output_mask |
Optional. Logical value to indicate whether a mask of objects should
be returned. If |
labelled image (im
object) or mask containing only
connected components > size
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.