필터 지우기
필터 지우기

Select dicom image and save it

조회 수: 3 (최근 30일)
KS
KS 2017년 6월 7일
답변: Rik 2017년 6월 7일
Greetings,
How to select dicom images and save the image? Basically Im using uigetfile command to select image. After select the image, I want to read the image.
So this is the code I used:
>> filename = uigetfile('*.*', 'Select file'); >> I=dicomread('filename');
But when I run the code, it gives message
Error using dicomread>getFileDetails (line 1378) File "selectedFile1" not found.
Can someone help me to solve my problem. Thank you in advance.

채택된 답변

Rik
Rik 2017년 6월 7일
You put in the argument as string (with quotes), so Matlab tried to open a file with the exact name filename. Just remove the quotes, and you're golden.
filename = uigetfile('*.*', 'Select file');
I=dicomread(filename);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by