pixelClassificationLayer
(To be removed) Create pixel classification layer for semantic segmentation
The pixelClassificationLayer
object will be removed in a future
release. Use the trainnet
(Deep Learning Toolbox)
function and specify the loss using the crossentropy
(Deep Learning Toolbox) function. For more information, see Version History.
Description
A pixel classification layer provides a categorical label for each image pixel or voxel.
Creation
Description
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 one or more name-value
arguments to set the optional layer
= pixelClassificationLayer(Name=Value)Classes
, ClassWeights
, and Name
. For
example, pixelClassificationLayer(Name="pixclass")
creates a
pixel classification layer with the name pixclass
.
Properties
Examples
Extended Capabilities
Version History
Introduced in R2017bSee Also
dlnetwork
(Deep Learning Toolbox) | crossentropy
(Deep Learning Toolbox) | trainnet
(Deep Learning Toolbox) | semanticseg
| evaluateSemanticSegmentation
Topics
- Getting Started with Semantic Segmentation Using Deep Learning
- Deep Learning in MATLAB (Deep Learning Toolbox)
- Specify Layers of Convolutional Neural Network (Deep Learning Toolbox)