Description Usage Arguments Details Value
Turns the image object into a logical image (pixset) of blobs of pixels of the same color
1 2 |
img |
- the cimg imager object |
stencil |
- a stencil dataframe which defines the neighbourhood we use. Must have a dx and dy columns, like for the imager package |
cr_n |
- if set, the stencil becomes a "n x n" cross (+) neighbourhood, centered at current pixel. Should be an odd number. |
... |
- unused arguments |
Each pixel maps to TRUE if every pixel in the stencil neighbourhood is the same color, otherwise it becomes FALSE.
Some erosion will happen because of the square neighbourhood
A pixset where every pixel is TRUE if the neighbourhood is of the same color as the pixel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.