pixelLabelTrainingData
Create training data for semantic segmentation from ground truth
Syntax
Description
[
creates image datastoreimds
,pxds
] = pixelLabelTrainingData(gTruth
)imds
and pixel label datastorepxds
from the specified ground truth. You can combine the returned datastores into apixelLabelImageDatastore
and use thetrainNetwork
(Deep Learning Toolbox)function to train deep learning segmentation networks. You can also use these datastores with theevaluateSemanticSegmentation
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 theComputer Vision Toolbox Preferencesdialog box.
[
returns image and pixel label datastores with additional options specified by one or more name-value pair 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
See Also
Apps
Functions
objectDetectorTrainingData
|semanticseg
|evaluateSemanticSegmentation
|trainNetwork
(Deep Learning Toolbox)