generate_coords: Matrix of Neighbourhood to Coordinates

Description Usage Arguments Examples

View source: R/nhapply_manipulation.R

Description

The function takes an odd 2D matrix as input. Non zero fields are used and value saved. Output is a list of a coordinates matrix and a weights matrix.

Usage

1

Arguments

mat

input is type matrix with odd no. of rows/columns, element in middle is pixel.

Examples

1
co <- generate_coords(matrix(sample(0:1, 9, rep = TRUE), ncol = 3))

Tobiaspk/RPackage_nhapply documentation built on Feb. 19, 2021, 12:13 a.m.