groundTruthMultiSensor
R2026bDescription
The groundTruthMultiSensor object contains
information about the ground truth data source, label definitions, and marked label
annotations for multiple sensors. The source of the signals can be a video, image sequence,
lidar point cloud, or any other custom format containing multiple signals. You can export or
import a groundTruthMultiSensor object from the Multi-Sensor
Labeler app.
You can use groundTruthMultiSensor objects to generate
training data for deep learning applications. The approach depends on the signal type and
task.
| Task | Signal Type | Approach |
|---|---|---|
| 3-D Semantic Segmentation | Point Cloud | Use semanticPointLabelTrainingData directly with the
groundTruthMultiSensor object. |
| 3-D Object Detection | Point Cloud | Use pointCloudObjectDetectorTrainingData directly with the
groundTruthMultiSensor object. |
| 2-D Object Detection, Semantic Segmentation, Instance Segmentation | Image | Use gatherLabelData and writeFrames to extract label data and image frames, then manually
create datastores for training. |
For details on generating training data, see Export Multi-Sensor Ground Truth and Create Training Data.
Creation
To export a groundTruthMultiSensor object from the
Multi-Sensor Labeler app, on the app toolstrip, select Export Labels > To Workspace. The app exports the object to the MATLAB® workspace. To create a groundTruthMultiSensor object
programmatically, use the groundTruthMultiSensor function (described
here).
Description
returns an object containing ground truth labels that can be imported into the
Multi-Sensor Labeler app.gTruth = groundTruthMultiSensor(dataSources,labelDefs,roiData,sceneData)
dataSourcesspecifies the sources of the ground truth data and sets theDataSourceproperty.labelDefsspecifies the label, sublabel, and attribute definitions of the ground truth data and sets theLabelDefinitionsproperty.roiDataspecifies the identifying information, position, and timestamps for the marked region of interest (ROI) labels and sets theROILabelDataproperty.sceneDataspecifies the identifying information and timestamps for marked scene labels and sets theSceneLabelDataproperty.
Properties
Object Functions
selectLabelsByLabelName | Select multi-sensor ground truth by label name |
selectLabelsByLabelType | Select multi-sensor ground truth by label type |
selectLabelsByGroupName | Select multi-sensor ground truth by label group name |
selectLabelsBySignalName | Select multi-sensor ground truth by signal name |
selectLabelsBySignalType | Select multi-sensor ground truth labels by signal type |
gatherLabelData | Gather time-synchronized label data from ground truth |
writeFrames | Write signal frames for multi-sensor ground truth data to disk |
changeFilePaths | Change file paths in multi-sensor ground truth data |
Examples
Tips
groundTruthMultiSensorobjects with video-based data sources rely on the video reading capabilities of your operating system. AgroundTruthMultiSensorobject created using video data sources remains consistent only for the same platform that was used to create it. To create a platform-independentgroundTruthMultiSensorobject, convert the videos into sequences of images and include the associated timestamps with the image sequences.To create a
groundTruthMultiSensorobject containing ROI label data but no scene label data, specify theSceneLabelDataproperty as an empty array. To create this array, at the MATLAB command prompt, enter this code.sceneData = vision.labeler.labeldata.SceneLabelData.empty
Version History
Introduced in R2026b
See Also
Apps
Objects
labelDefinitionCreatorMultiSensor|labelType(Computer Vision Toolbox) |attributeType(Computer Vision Toolbox)