Learn R Programming

ggbrain (version 0.9.0)

flood_fill: This function flood fills a binary image with TRUE for any value of FALSE

Description

This function flood fills a binary image with TRUE for any value of FALSE

Value

Nothing. The matrix im is modified in place (by reference)

Arguments

im

A boolean matrix reference representing a binary image

x

the starting x position for fill

y

the starting y position for fill

r

the number of rows in im

c

the number of columns in im

Author

Michael Hallquist

Details

This is an internal function used by geom_outline to clean up outlines