smooth_borders: smoother borders

Description Usage Arguments Details Value Note Examples

View source: R/boundaries.R

Description

let a field decrease linearly towards its edges

Usage

1

Arguments

x

a real matrix

r

a positive integer

Details

Values within the field are linearly reduced from their original value to the field minimum, starting r pixels away from the edge. This enforces truely periodic boundaries and removes sharp edges.

Value

a matrix of the same dimensions as x

Note

r must not be larger than min( dim(x) )/2.

Examples

1

dualtrees documentation built on March 13, 2020, 1:42 a.m.