labelDefinitionsAtTime
Description
returns the scene label definition names that are applied at the specified timestamp in a
labelNames
= labelDefinitionsAtTime(sceneData
,timestamp
)SceneLabelData
object, sceneData
.
Examples
Get Scene Label Definition Names at Timestamp
Get the scene label definition names that are applied at the first timestamp of a SceneLabelData
object.
Create a SceneLabelData
object. The object has labels for specifying whether a scene is sunny, rainy, urban, or rural. The scene labels are applied at these time ranges.
"sunny"
— 0 to 5 seconds"rainy"
— 6 to 10 seconds"urban"
— 0 to 8 seconds"rural"
— 9 to 10 seconds
labelNames = ["sunny" "rainy" "urban" "rural"]; sunnyData = seconds([0 5]); rainyData = seconds([6 10]); urbanData = seconds([0 8]); ruralData = seconds([9 10]); labelData = {sunnyData rainyData urbanData ruralData}; sceneData = vision.labeler.labeldata.SceneLabelData(labelNames,labelData);
Get the scene labels that are applied at the start of the time range, that is, the first timestamp.
tsStart = 0; labelNamesAtStart = labelDefinitionsAtTime(sceneData,tsStart)
labelNamesAtStart = 1x2 string
"sunny" "urban"
Input Arguments
sceneData
— Scene label data
SceneLabelData
object
Scene label data, specified as a SceneLabelData
object.
timestamp
— Timestamp
duration
scalar
Timestamp, specified as a duration
scalar.
Example: seconds(9.5)
specifies a duration
scalar of 9.5 seconds.
Output Arguments
Version History
Introduced in R2020a
See Also
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)