Main Content

Semantic Segmentation

Semantic image segmentation

Semantic segmentation associates each pixel of an image with a class label, such as flower, person, road, sky, or car. Use the Image Labeler and the Video Labeler apps to interactively label pixels and export the label data for training a neural network.

Input image of a seascape, then a series of cubes representing a deep learning network and a semantic segmented output image of the input.

Apps

Image LabelerLabel images for computer vision applications
Video LabelerLabel video for computer vision applications

Functions

expand all

combineCombine data from multiple datastores (Since R2019a)
countEachLabelCount occurrence of pixel or box labels
groundTruthGround truth label data
imageDatastoreDatastore for image data
pixelLabelDatastoreDatastore for pixel label data
pixelLabelTrainingDataCreate training data for semantic segmentation from ground truth
balancePixelLabelsBalance pixel labels by oversampling block locations in large images (Since R2020a)
imwarpApply geometric transformation to image
imcropCrop image
imresizeResize image
transformTransform datastore (Since R2019a)
randomAffine2dCreate randomized 2-D affine transformation (Since R2019b)
randomWindow2dRandomly select rectangular region in image (Since R2021a)
centerCropWindow2dCreate rectangular center cropping window (Since R2019b)
deeplabv3plusLayersCreate DeepLab v3+ convolutional neural network for semantic image segmentation (Since R2019b)
dicePixelClassificationLayerCreate pixel classification layer using generalized Dice loss for semantic segmentation (Since R2019b)
fcnLayersCreate fully convolutional network layers for semantic segmentation
pixelClassificationLayerCreate pixel classification layer for semantic segmentation
segnetLayersCreate SegNet layers for semantic segmentation
unetLayersCreate U-Net layers for semantic segmentation
unet3dLayersCreate 3-D U-Net layers for semantic segmentation of volumetric images (Since R2019b)
focalCrossEntropyCompute focal cross-entropy loss (Since R2020b)
semanticsegSemantic image segmentation using deep learning
labeloverlayOverlay label matrix regions on 2-D image
volshowDisplay volume
insertObjectMask Insert masks in image or video stream (Since R2020b)
evaluateSemanticSegmentationEvaluate semantic segmentation data set against ground truth
bfscoreContour matching score for image segmentation
diceSørensen-Dice similarity coefficient for image segmentation
generalizedDiceGeneralized Sørensen-Dice similarity coefficient for image segmentation (Since R2021a)
jaccardJaccard similarity coefficient for image segmentation
segmentationConfusionMatrixConfusion matrix of multi-class pixel-level image segmentation (Since R2020b)
semanticSegmentationMetricsSemantic segmentation quality metrics

Topics

Get Started

Create Training Data for Semantic Segmentation