Convert world coordinates to row, column and plane subscripts.
Converts world coordinates to row, column and plane subscripts of an image associated with the spatial referencing object r. A point located at (xWorld(i), yWorld(i), zWorld(i)) world coordinates maps to row, column and plane subscripts i(i), j(i), k(i) respectively. Note the reversed order of the first two dimensions. If the point falls outside the bounds of the image, all of its subscripts are NaN.
See also: imref2d, imref3d, worldToIntrinsic.
Package: image