generateFromImage
R2026bSyntax
Description
Add-On Required: This feature requires the 3D Asset Processing Library for MATLAB add-on.
generates a 3D asset from the image or images specified by meshObj = generateFromImage(trellisObj,images)images, using
the trellis object
trellisObj, and returns the generated 3D asset as a Mesh object,
meshObj.
generates a 3D asset from the region of the image or images meshObj = generateFromImage(trellisObj,images,mask)images
defined by the foreground mask or masks mask. Use this syntax when you
want to specify the foreground region instead of relying on automatic background
removal.
specifies options using one or more name-value arguments in addition to any combination of
input arguments from previous syntaxes. For example,
meshObj = generateFromImage(___,Name=Value)TextureSize=2048 sets the resolution of the
generated texture image to 2048 pixels.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
macOS does not support generating 3D mesh assets from images or text prompts.
Version History
Introduced in R2026b



