Create pixel classification layer for semantic segmentation
A pixel classification layer provides a categorical label for each image pixel or voxel.
creates a pixel classification output layer for semantic image segmentation networks. The layer outputs the categorical label for each image pixel or voxel processed by a CNN. The layer automatically ignores undefined pixel labels during training.layer
= pixelClassificationLayer
returns a pixel classification output layer using Name,Value pair arguments to set the optionallayer
= pixelClassificationLayer(Name,Value)Classes
,ClassWeights
, andName
properties by using name-value pairs. You can specify multiple name-value pairs. Enclose each property name in quotes.
For example,pixelClassificationLayer('Name','pixclass')
creates a pixel classification layer with the name'pixclass'
.
layerGraph
(Deep Learning Toolbox)|DAGNetwork
(Deep Learning Toolbox)|dicePixelClassificationLayer
fcnLayers
|segnetLayers
|unetLayers
|trainNetwork
(Deep Learning Toolbox)|semanticseg
|deeplabv3plusLayers
|evaluateSemanticSegmentation