powered by
Find 1D index given n-dimensional indices
c_sub2ind(dims, indices)
numeric vector of linear indices into the array
Integer dimensions of the array (usually 3d)
Nx3 integer matrix of pixel coordinates