Function feature_transform
Source pub fn feature_transform(
binary: &ArrayBase<ViewRepr<&i32>, Dim<[usize; 2]>>,
) -> Result<ArrayBase<OwnedRepr<(usize, usize)>, Dim<[usize; 2]>>, SpatialError>
Expand description
Compute feature transform (indices of nearest features)
Returns the coordinates of the nearest feature point for each pixel.
§Arguments
binary - Binary input array
§Returns
- Array of (row, col) indices of nearest features