fill_from_edge | R Documentation |
This function finds holes by flood filling TRUE into a 2D binary image, starting from the edge
im |
A boolean matrix representing a binary image |
nedges |
An integer specifying how many starting points along the edge to use for filling TRUE. The starts are northwest (1), southwest (2), southeast (3), and northeast (4). The compute time increases with the number of starts. |
This is an internal function used by geom_outline to clean up outlines
A matrix of the same size as im
containing the number of neighboring pixels
Michael Hallquist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.