Smooth region values over an adjacency graph
Source:R/smooth_region_field_laplacian.R
smooth_region_field_laplacian.RdSmooth region values over an adjacency graph
Arguments
- region_id_mat
matrix of region identifiers.
- region_values
named numeric vector or data frame with
region_idandvalue.- outside_ids
unused compatibility placeholder for non-region values.
- adjacency
neighborhood definition:
"rook"or"queen".- lambda
smoothing strength.
- keep_na_outside
logical; keep non-region pixels as
NA.