Create training data for semantic segmentation from ground truth
[
creates image datastore imds
,pxds
] = pixelLabelTrainingData(gTruth
)imds
and pixel label datastore
pxds
from the specified ground truth. You can combine
the returned datastores into a pixelLabelImageDatastore
and use the trainNetwork
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 pair arguments.imds
,pxds
] = pixelLabelTrainingData(gTruth
,Name,Value
)
If the groundTruth
objects
in gTruth
were created using a video file or a
custom data source, 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 the SamplingFactor
name-value pair
argument