checkLabelDefinition
Class: vision.labeler.AutomationAlgorithm
Namespace: vision.labeler
Validate label definition
Description
In the labeling apps, 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
Rectangle
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 labeling apps, the selected label definitions are highlighted in yellow in the ROI Labels and Scene Labels panes on the left.
Version History
Introduced in R2017a
See Also
labelType
| vision.labeler.AutomationAlgorithm
| checkSignalType
| checkSetup