groundTruthDataSource
Object for storing ground truth data sources
Description
The groundTruthDataSource
object defines the
source of ground truth data. Use this object to specify a data source for the groundTruth
object. To label the data source, load the
groundTruthDataSource
object into a labeling app.
The Image Labeler supports data sources for collections of images.
The Video Labeler supports data sources for videos and image sequences. This app also supports custom data sources.
Creation
Syntax
Description
Image Datastore Source
returns a ground truth data source object for an gtSource
= groundTruthDataSource(imds
)imageDatastore
specified by
imds
.
Collection of Images Source
returns a ground truth data source object for a collection of images
specified by gtSource
= groundTruthDataSource(imageFiles
)imageFiles
. Images must be in a file
format readable by imread
.
Video File Source
returns a ground truth data source object for a video file specified by
gtSource
= groundTruthDataSource(videoName
)videoName
. Videos must be in a file format readable
by VideoReader
.
Video as a Sequence of Images Source
returns a ground truth data source object for an image sequence located in
the folder specified by gtSource
= groundTruthDataSource(imageSeqFolder
)imageSeqFolder
.
returns a ground truth data source object for an image sequence with a
corresponding timestamp for each image contained in the specified folder.
gtSource
= groundTruthDataSource(imageSeqFolder
,timestamps
)timestamps
sets the TimeStamps
property.
Custom Data Source
returns a ground truth data source object by using the custom reader
function handle, gtSource
= groundTruthDataSource(sourceName
,readerFcn
,timestamps
)readerFcn
.
sourceName
sets the Source
property and
timestamps
set the TimeStamps
property. The custom reader function loads an
image from sourceName
that corresponds to the current
timestamp specified in the duration
vector
timestamps
.
Input Arguments
Properties
Examples
Tips
groundTruth
objects for video-basedgroundTruthDataSource
objects rely on the video reading capabilities of your operating system. AgroundTruth
object created using a video data source remains consistent only for the same platform that was used to create it. To create a platform-specificgroundTruth
object, convert the video into a sequence of images.
Version History
Introduced in R2017a
See Also
Apps
- Ground Truth Labeler (Automated Driving Toolbox) | Image Labeler | Video Labeler