FUNCTION REFERENCE
imref2d.worldToSubscript
Convert world coordinates to rounded 1-based row and column subscripts.
Convert world coordinates to rounded 1-based row and column subscripts.
Syntax
[I, J] = worldToSubscript(R, xWorld, yWorld)Syntax
[I, J] = R.worldToSubscript(xWorld, yWorld)Maps world (x, y) coordinates to integer pixel subscripts (row I, column J), returning NaN for out-of-bounds points.
Example
R = imref2d([10 10]); [I, J] = R.worldToSubscript(3, 2); % I = 2, J = 3Differences from MATLAB: None.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.