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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.