如何在matlab中加载多个.dicom文件吗?

4视图(30天)
shivan artosh
shivan artosh 2020年3月23日
编辑: Prateek拉伊 2020年6月18日
这是我的代码,我想经营.dicom文件不是一个图像(jpeg, png)。我怎么能改变它吗?
说我需要一个代码classifiction医学图像。
网= alexnet
imd = imageDatastore (D: \肺dataset-Labeled,…
“IncludeSubfolders”,真的,…
“LabelSource”、“foldernames”);
[imdsTrain, imdsValidation] = splitEachLabel (imd, 0.7);
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
增量= imageDataAugmenter (…
“RandRotation”, -20年,20,…
“RandXReflection”, 1,…
“RandYReflection”, 1,…
“RandXTranslation”, [3 3],……
“RandYTranslation”, [3 3]);
% augimdsTrain = augmentedImageDatastore ((224 224)、imdsTrain DataAugmentation,增压器);
% augimdsValidation = augmentedImageDatastore ((224 224)、imdsValidation DataAugmentation,增压器);
augimdsTrain = augmentedImageDatastore ([227 - 227], imdsTrain);
augimdsValidation = augmentedImageDatastore ([227 - 227], imdsValidation);
未完成的代码。! ! ! ! !

答案(1)

Prateek拉伊
Prateek拉伊 2020年6月18日
编辑:Prateek拉伊 2020年6月18日
根据我的理解,你可以构造一个分类代码操作但无法操作dicom图像文件。读取dicom文件可以使用“ dicomread ”功能可以在MATLAB的图像处理工具箱。
你可以参考下面的MATLAB文档链接的更多信息关于如何使用dicomread函数读取dicom文件。