Convert the pixel subscripts that define the ROI into world coordinates. By default, sub2world converts the coordinates at the finest resolution level.
worldRegion = sub2world(bim,imagePixelSubs);
Convert the world coordinates of the ROI to pixel subscripts of the mask.
Blocked image, specified as a blockedImage object.
Pixel subscripts, specified as a K-by-N
integer-valued vector, where K is the number of pixels.
N is equal to or less than the number of dimensions of the blocked
image bim. For example, you can exclude a color channel from the
conversion by specifying the pixel subscripts with one less dimension than the blocked
image.
Resolution level, specified as a positive integer that is less than or equal to the
number of resolution levels of bim.
You can now specify the pixel subscripts in a lower dimensionality than the
dimensionality of the blocked image bim. The function returns the world
coordinates with the same dimensionality as the pixel subscripts.