how to load multiple .dicom files in matlab?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
this is my code and i want to operate with .dicom files not an images (.jpeg, png). how can i change it ?
acually i need a code for classifiction on medical image.
net=alexnet
imds = imageDatastore('D:\lung dataset-Labeled', ...
'IncludeSubfolders',true, ...
'LabelSource','foldernames');
[imdsTrain,imdsValidation] = splitEachLabel(imds,0.7);
%===================================================
augmenter = imageDataAugmenter( ...
'RandRotation',[-20,20], ...
'RandXReflection',1,...
'RandYReflection',1,...
'RandXTranslation',[-3 3], ...
'RandYTranslation',[-3 3]);
%augimdsTrain = augmentedImageDatastore([224 224],imdsTrain,'DataAugmentation',augmenter);
%augimdsValidation = augmentedImageDatastore([224 224],imdsValidation,'DataAugmentation',augmenter);
augimdsTrain = augmentedImageDatastore([227 227],imdsTrain);
augimdsValidation = augmentedImageDatastore([227 227],imdsValidation);
.
.
.
uncompleted code.!!!!!
0 commentaires
Réponses (1)
Prateek Rai
le 18 Juin 2020
Modifié(e) : Prateek Rai
le 18 Juin 2020
As per my understanding, you are able to construct a classification code for operating on images but not able to operate with dicom files. To read dicom files you can use “dicomread” function available in MATLAB (Image Processing Toolbox).
You can refer to the following MATLAB documentation link for more information on how to use dicomread function to read dicom files.
0 commentaires
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!