In the Semantic Segmentation Using Deep Learning tutorial how can I create my own datasets

Hi,
As the title suggests, I want to replicate the work done here: https://uk.mathworks.com/help/vision/examples/semantic-segmentation-using-deep-learning.html
I am unsure of the best way to make my own dataset to fit this model. I have all of the input images I need, but I don't know the best way to quickly label (color) them in the same fashion.
Is there an efficient way to do this for several hundred files?

回答(2 个)

1. Use Matlab image labeler and label all your input images.
2. Export the pixel labels using "to file" option. Then, you can see "PixelLabelData" folder with blank .png images. They are not blank and you can use imagesc to view them.
3. Convert all the images in PixelLabelData folder to RGB images using label2rgb command, now you have a dataset similar to this example.

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by