conBoundaries: Detects internal and external boundaries of connected...

Description Usage Arguments Note Examples

Description

Detects internal and external boundaries of connected components in a logical matrix

Usage

1

Arguments

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)

Note

This function calls conLabel inside it

Examples

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)

ra125/concomp documentation built on May 26, 2019, 8:51 p.m.