make_brush | R Documentation |
Generates brushes of various sizes and shapes that can be used as structuring
elements. See EBImage::makeBrush()
.
make_brush(size, shape = "disc", ...)
size |
A numeric containing the size of the brush in pixels. This should be an odd number; even numbers are rounded to the next odd one. |
shape |
A character vector indicating the shape of the brush. Can be
|
... |
Further arguments passed on to |
A 2D matrix of 0s and 1s containing the desired brush.
make_brush(size = 51) |> image()
make_brush(size = 51, shape = "diamond") |> image()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.