how to load multiple .dicom files in matlab?

7 visualizzazioni (ultimi 30 giorni)
shivan artosh
shivan artosh il 23 Mar 2020
Modificato: Prateek Rai il 18 Giu 2020
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.!!!!!

Risposte (1)

Prateek Rai
Prateek Rai il 18 Giu 2020
Modificato: Prateek Rai il 18 Giu 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.

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by