pixelLabelTrainingData
Create training data for semantic segmentation from ground truth
Syntax
Description
[
creates image datastore imds
,pxds
] = pixelLabelTrainingData(gTruth
)imds
and pixel label datastore
pxds
from the specified ground truth. You can combine
the returned datastores using the combine
function and use the trainnet
(Deep Learning Toolbox) function to train deep learning segmentation networks.
You can also use these datastores with the evaluateSemanticSegmentation
function to evaluate the result
from deep learning or classical segmentation methods.
This function supports parallel computing using multiple MATLAB® workers. Enable parallel computing using the Computer Vision Toolbox Preferences dialog box.
[
returns image and pixel label datastores with additional options specified by
one or more name-value arguments.imds
,pxds
] = pixelLabelTrainingData(gTruth
,Name,Value
)
If the
groundTruth
objects ingTruth
were created using a video file, a custom data source, or animageDatastore
with different custom read functions, then you can specify any combination of name-value pair arguments.If the
groundTruth
objects were created from an image collection or image sequence data source, then you can specify only theSamplingFactor
name-value pair argument
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2018a
See Also
Apps
Functions
objectDetectorTrainingData
|semanticseg
|evaluateSemanticSegmentation
|trainnet
(Deep Learning Toolbox)