Error using dicomread-unable to resolve the name

3 ビュー (過去 30 日間)
Ahuva Friedman
Ahuva Friedman 2020 年 6 月 18 日
回答済み: Divya Gaddipati 2020 年 12 月 31 日
How can I read DICOM files that are on the path?
For example, I have a DICOM image which I know is on the path because it comes up when I search dir ('b*.dcm'). It is under the following directory:
C:\Users\Ahuva\OneDrive\Documents\MATLAB\Examples\R2019a\matlab\ReadACollectionOrSequenceOfSpreadsheetFilesExample\dicom_images\matlab\examples\sample_data\DICOM\digest_article\brain_001.dcm
However when I use
dicomread ('C:\Users\Ahuva\OneDrive\Documents\MATLAB\Examples\R2019a\matlab\ReadACollectionOrSequenceOfSpreadsheetFilesExample\dicom_images\matlab\examples\sample_data\DICOM\digest_article\brain_001.dcm')
I get the error message
Unable to resolve the name images.internal.dicom.getFileDetails.

回答 (1 件)

Divya Gaddipati
Divya Gaddipati 2020 年 12 月 31 日
Hi,
Can you try using dicominfo first and then read using the extracted info?
info = dicominfo(fullpath);
I = dicomread(info);
This would probably work.

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by