フィルターのクリア

imageDatastore for deep learning

2 ビュー (過去 30 日間)
Shuichi Obuchi
Shuichi Obuchi 2021 年 9 月 9 日
回答済み: Megan Mancuso 2021 年 12 月 8 日
Does someone help the way to set multipe labels at Labels property?
If I have several medical images with multiple diagnosis, what should I put to .Labels.
I would like to know the format of .Labels for multiple labels.

回答 (1 件)

Megan Mancuso
Megan Mancuso 2021 年 12 月 8 日
Hi Shuichi,
Check out this Documentation Page for more information about creating image datastores for image classification: https://www.mathworks.com/help/deeplearning/ug/create-and-explore-datastore-for-image-classification.html
One potential solution is to store your images in a folder containing subfolders for each class (i.e. diagnosis) in your data set. The name of each subfolder should match the desired label for the class. Store all images corresponding to a each class in the correct subdirectory. Then in MATLAB, when you create the imageDatastore object, specify the IncludeSubfolders name-value argument as true and the LabelSource name-value argument as "foldernames". This will label each image in the datastore with the name of the subfolder it is in. The labels will be visible in the Labels property.

カテゴリ

Help Center および File ExchangeAI for Signals についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by