Description Usage Arguments Note Examples
Detects internal and external boundaries of connected components in a logical matrix
1 | conBoundaries(x,N=4)
|
x |
A logical matrix in which boundaries are to be detected |
N |
Number specifying whether to use 4 or 8 neighborhood connectivity (Can only be 4 or 8. Default is 4) |
This function calls conLabel inside it
1 2 3 4 5 | x=matrix(c(1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,0,1,1,0,1,1,1,0,0,0,0,0),byrow=TRUE,nrow=8)
conBoundaries(x)
conBoundaries(x,4)
conBoundaries(x,8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.