initialize - Initialize state for algorithm execution (optional) - MATLAB (original) (raw)
Class: vision.labeler.AutomationAlgorithm
Namespace: vision.labeler
Initialize state for algorithm execution (optional)
Syntax
Description
The initialize
method initializes the state of the automation algorithm before the automation algorithm runs.
Clients of AutomationAlgorithm
can optionally implement this method.
initialize([algObj](#bvk3y1h-1%5Fsep%5Fshared-automationalgorithms-algobj),[frame](#bvk3y1h-1-I))
initializes the state of the algObj
automation algorithm using the first frame in the time range of the data being labeled.
Clients of AutomationAlgorithm
must implement this user-defined method.
initialize([algObj](#bvk3y1h-1%5Fsep%5Fshared-automationalgorithms-algobj),[frame](#bvk3y1h-1-I),[labelsToAutomate](#bvk3y1h-1%5Fsep%5Fshared-automationalgorithms-labelstoautomate))
additionally provides a table, labelsToAutomate
, that contains labels selected for the automation algorithm to use for labeling. This syntax does not support pixel label automation. In addition, this syntax is available only for time-dependent (temporal) automation algorithms. The Ground Truth Labeler (Automated Driving Toolbox) (requires Automated Driving Toolbox™) and Video Labeler apps support temporal algorithms but the Image Labeler does not. For more information on these types of algorithms, see Temporal Automation Algorithms.
Input Arguments
Frame corresponding to the start of time range, specified as a numeric matrix for Image
signals or a pointCloud object forPointCloud
signals.
Version History
Introduced in R2017a