mapanything
R2026bCreate pretrained MapAnything model for 3-D scene reconstruction from images
Since R2026b
Description
Add-On Required: This feature requires the Computer Vision Toolbox Model for MapAnything Network add-on.
Use the mapanything object to create a pretrained MapAnything
model for 3-D scene reconstruction from images. MapAnything is a feed-forward transformer
model that combines visual understanding with geometric reasoning to reconstruct 3-D scenes
from multi-view images in true metric scale. Unlike traditional structure-from-motion methods
that require all the images used in a reconstruction to come from the same calibrated camera,
the MapAnything model can process images from different cameras or heterogeneous sources. The
model can operate on images alone, but can optionally leverage additional geometric inputs
such as camera intrinsic parameters, camera poses, or depth maps to improve reconstruction
accuracy. MapAnything processes image sequences automatically, handling large data sets
through block-based processing with automatic alignment. You can use the model to generate
camera poses, estimate camera intrinsic parameters, produce depth maps, and create dense 3-D
point clouds without first performing manual feature extraction or traditional
structure-from-motion preprocessing.
Creation
Description
creates a pretrained MapAnything model object maObj = mapanything(imds)maObj from the images
in the image datastore imds. To perform 3-D reconstruction of the
images in the image datastore after creating the object, use the reconstruct
object function.
sets writable properties using one or more name-value arguments. For example,
maObj = mapanything(imds,Name=Value)IsPoseMetricScale=true specifies to use metric scale information from
the input camera poses during reconstruction.
Input Arguments
Name-Value Arguments
Properties
Object Functions
reconstruct | Reconstruct 3-D scene using MapAnything model |
releaseGPUMemory | Release GPU memory allocated to MapAnything model |
Examples
References
[1] Keetha, Nikhil, Norman Müller, Johannes Schönberger, Lorenzo Porzi, Yuchen Zhang, Tobias Fischer, Arno Knapitsch, et al. “MapAnything: Universal Feed-Forward Metric 3D Reconstruction.” Preprint, arXiv, 2025. https://doi.org/10.48550/arXiv.2509.13414.
Version History
Introduced in R2026b
