Convert a 3D coordinate from an image to a linear vector index Equivalent to sub2ind from MATLAB(R) Does not perform error checking for bounds

coord2ind(coord, dimI)

Arguments

coord

vector of 3D coordinates

dimI

vector of image dimensions