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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.