Confusion matrix of multi-class pixel-level image segmentation
computes a confusion matrix from the predicted pixel labels confusionMatrix
= segmentationConfusionMatrix(LPred
,LTruth
)LPred
and
ground truth pixel labels LTruth
.
You can calculate semantic segmentation metrics such as the Jaccard score and
classification accuracy from the confusion matrix by using the evaluateSemanticSegmentation
function.
You can use this function in block-based image processing workflows such as bigimage
. For example, you can perform semantic segmentation and calculate
the confusion matrix for a block in the same call to the apply
function.
dice
| evaluateSemanticSegmentation
| jaccard
| semanticseg
| semanticSegmentationMetrics
| plotconfusion
(Deep Learning Toolbox)