Object for storing ground truth data sources
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.
returns a ground truth data source object for an gtSource
= groundTruthDataSource(imds
)imageDatastore
specified by
imds
.
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
.
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
.
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.
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
.
groundTruth
objects for
video-based groundTruthDataSource
objects rely on the video
reading capabilities of your operating system. A groundTruth
object created using a video data source remains consistent only for the same
platform that was used to create it. To create a platform-specific
groundTruth
object, convert the video into a sequence of
images.