The output from getNeighborhoodInMask
gets reordered
to match that which R uses for array to indices.
reorder_neigh_indices(indices, img.dim)
indices | Indices from |
---|---|
img.dim | Image dimension from which neighborhood was taken |
List of new indices, the ordering, and a binary array which has a 1 where the indices are located