checkLabelDefinition
Class: lidar.labeler.AutomationAlgorithm
Namespace: lidar.labeler
Description
In the Lidar Labeler app, the checkLabelDefinition
method checks whether each label
defined in the ROI Labels and Scene Labels
panes is valid. The method restricts an automation algorithm to use only relevant
labels. For example, a label definition of type Cuboid
cannot be used
to mark a lane boundary.
Clients of AutomationAlgorithm
must implement this
method.
returns isValid
= checkLabelDefinition(algObj
,labelDef
)true
for valid label definitions and
false
for invalid definitions for the automation
algorithm provided by algObj
. labelDef
is a structure containing all the label definitions in the ROI
Labels and Scene Labels panes. Definitions
that return false
are disabled during automation.
Examples
Input Arguments
Output Arguments
Tips
To access the selected label definitions, use the SelectedLabelDefinitions property of the automation algorithm. In the Lidar Labeler app, the selected label definitions are highlighted in yellow in the ROI Labels and Scene Labels panes on the left.
Version History
Introduced in R2022a