Package: vision.labeler.loading
Superclasses: matlab.mixin.Heterogeneous
Interface for loading signal data into Ground Truth Labeler app
The vision.labeler.loading.MultiSignalSource
class creates an interface for
loading signals from a data source into the Ground
Truth Labeler app. The data source can be a file format or any custom source.
The interface created using this class enables you to customize the panel for loading custom data sources in the Add/Remove Signal dialog box of the app. The figure shows a sample loading panel.
The class also provides an interface to read frames from loaded signals. The app renders these frames for labeling.
To define a custom class to load a data source into the app, follow these steps.
Create a class that inherits from the
vision.labeler.loading.MultiSignalSource
class. The class definition
must have this format, where
is the name of your
custom data source
class.customSourceClass
classdef customSourceClass < vision.labeler.loading.MultiSignalSource
Save the class to this folder, where
is the full path to your
MATLAB® installation folder as returned by the matlabroot
matlabroot
function.
<matlabroot>\toolbox\vision\vision\+vision\+labeler\+loading
Alternatively, create a +vision/+labeler/+loading
folder
structure, add these folders to the MATLAB search path, and save the class to the
+vision/+labeler/+loading
folder. The Ground Truth
Labeler app recognizes data source classes in folders with this path
only.
Define the class properties and methods required to load the data source into the app. This table shows the predefined custom classes that you can use as starting points for defining these properties and methods.
Class | Data Source Loaded by Class | Command to View Class Source Code |
---|---|---|
vision.labeler.loading.VideoSource | Video file | edit vision.labeler.loading.VideoSource |
vision.labeler.loading.ImageSequenceSource | Image sequence folder | edit vision.labeler.loading.ImageSequenceSource |
vision.labeler.loading.VelodyneLidarSource | Velodyne® packet capture (PCAP) file | edit vision.labeler.loading.VelodyneLidarSource |
vision.labeler.loading.RosbagSource | Rosbag file | edit vision.labeler.loading.RosbagSource |
vision.labeler.loading.PointCloudSequenceSource | Point cloud sequence folder | edit vision.labeler.loading.PointCloudSequenceSource |
vision.labeler.loading.CustomImageSource | Custom image format | edit vision.labeler.loading.CustomImageSource |
For an explanation of the required properties and methods used for defining a custom data source class, see the Create Class for Loading Custom Ground Truth Data Sources example.
The vision.labeler.loading.MultiSignalSource
class is a handle
class.
driving.connector.Connector
| vision.labeler.AutomationAlgorithm
(Computer Vision Toolbox)