FUNCTION REFERENCE
worldToSubscript
Row and column subscripts of the pixels nearest to world points.
Row and column subscripts of the pixels nearest to world points.
Syntax
[I, J] = worldToSubscript(R, xWorld, yWorld)I comes from y and J from x: the intrinsic coordinates rounded half away from zero. Points outside the world limits give NaN; a point on the far border belongs to the last row or column.
Example
[I, J] = worldToSubscript(imref2d([2 3]), [1 3.4 9], [2 1 1]) % [2 1 NaN], [1 3 NaN]Differences from MATLAB: imref3d is not supported yet. MATLAB does not publish how a point on the far border rounds; MatRust keeps it in the image.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.