segmentAnythingAerialLidar
Perform semantic segmentation of aerial lidar data using pretrained Segment Anything Model (SAM)
Since R2024b
Description
The segmentAnythingAerialLidar
object creates a Segment
Anything Model (SAM) to segment objects in an aerial lidar point cloud using visual
prompts.
The segmentAnythingAerialLidar
object enables you to semantically
segment objects in aerial lidar point cloud data without retraining the model. The object
builds upon the segmentAnythingModel
object, which configures a pretrained SAM for image
segmentation.
After creating the segmentAnythingAerialLidar
object, follow these
steps to segment objects in the point cloud data:
Extract feature embeddings of the point cloud data by using the
extractEmbeddings
object function. The function converts the point cloud data into a bird’s-eye-view (BEV) image, and then extracts the feature embeddings of the BEV image using the SAM encoder.Segment objects by using the
segmentObjectsFromEmbeddings
object function. The function first segments objects from the extracted feature embeddings of the BEV image using the SAM decoder. Then, the function converts the generated 2-D object masks of the BEV image to 3-D object masks for the point cloud data.
For information on using SAM for image segmentation, see Get Started with Segment Anything Model for Image Segmentation.
Creation
Description
creates a
pretrained Segment Anything Model. Use this model to segment objects in aerial lidar point
clouds using visual prompts. sam
= segmentAnythingAerialLidar
Note
This functionality requires Deep Learning Toolbox™ and the Image Processing Toolbox™ Model for Segment Anything Model support package. You can download and install the Image Processing Toolbox Model for Segment Anything Model from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Object Functions
extractEmbeddings | Extract feature embeddings of lidar point cloud from Segment Anything Model (SAM) encoder |
segmentObjectsFromEmbeddings | Segment objects in lidar point cloud using Segment Anything Model (SAM) feature embeddings |
Examples
Version History
Introduced in R2024b