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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.