Description Usage Arguments Details Value See Also Examples
Fills a bounded area within a numeric matrix with a given number (color).
1 | seedfill(z, x=1, y=1, fcol=0, bcol=1, tol=1e-6)
|
z |
a matrix containing an image (double precision values are possible). |
x, y |
start coordinates of the filled area. |
fcol |
numeric value of the fill color. |
bcol |
numeric value of the border value. |
tol |
numeric value of border color tolerance. |
The function implements a basic color fill algorithm for use in image manipulation or cellular automata.
A matrix with the same structure as z
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Loading required package: deSolve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.