Borrar filtros
Borrar filtros

how to load multiple .dicom files in matlab?

1 visualización (últimos 30 días)
shivan artosh
shivan artosh el 23 de Mzo. de 2020
Editada: Prateek Rai el 18 de Jun. de 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.!!!!!

Respuestas (1)

Prateek Rai
Prateek Rai el 18 de Jun. de 2020
Editada: Prateek Rai el 18 de Jun. de 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.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by