how to load multiple .dicom files in matlab?
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Prateek Rai
2020-6-18
编辑:Prateek Rai
2020-6-18
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!