フィルターのクリア

How can I create a pixel labelled image for Semantic Segmentation?

1 回表示 (過去 30 日間)
Ryan Rizzo
Ryan Rizzo 2018 年 11 月 22 日
編集済み: Ryan Rizzo 2018 年 11 月 22 日
I am following the Semantic Segmentation Examples tutorial by MathWorks.
I understand that I can load pixel labeled images
pxDir = fullfile(dataDir,'buildingPixelLabels');
Define the class names.
classNames = ["sky" "grass" "building" "sidewalk"];
Define the label ID for each class name.
pixelLabelID = [1 2 3 4];
and create a pixelLabelDatastore.
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
But, how do I create a custom pixel labelled imagematlab where every pixel value represents the categorical label of that pixel?
I would then proceed by writing:
pxDir = fullfile(dataDir,'myCustomPixelLabels');
If I understood correctly, `imageDatastore` holds the actual image and not the pixel labels for that image.

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by