R/edges.R

Defines functions edges

Documented in edges

edges <-
function(plants, width) {
# Expand or contract window, to handle edge effects
    if(width < 0)
        return(plants[erosion(as.owin(plants), -width)])
    if(width > 0)
        return(periodify(plants)[dilation(as.owin(plants), width)])
    return(plants)
}

Try the siplab package in your browser

Any scripts or data that you put into this service are public.

siplab documentation built on March 18, 2022, 6:53 p.m.