checkLabelDefinition
Class:vision.labeler.AutomationAlgorithm
Package:vision.labeler
Validate label definition
Description
In the labeling apps, thecheckLabelDefinition
method checks whether each label defined in theROI LabelsandScene Labelspanes is valid. The method restricts an automation algorithm to use only relevant labels. For example, a label definition of typeRectangle
cannot be used to mark a lane boundary.
Clients ofAutomationAlgorithm
must implement this method.
returnsisValid
= checkLabelDefinition(algObj
,labelDef
)true
for valid label definitions andfalse
for invalid definitions for the automation algorithm provided byalgObj
.labelDef
is a structure containing all the label definitions in theROI LabelsandScene Labelspanes. Definitions that returnfalse
are disabled during automation.
Examples
Input Arguments
Output Arguments
Tips
To access the selected label definitions, use theSelectedLabelDefinitionsproperty of the automation algorithm. In the labeling apps, the selected label definitions are highlighted in yellow in theROI LabelsandScene Labelspanes on the left.
Version History
Introduced in R2017a