User Defined Image files

조회 수: 3 (최근 30일)
Jessica Reimer
Jessica Reimer 2017년 4월 5일
댓글: Jessica Reimer 2017년 4월 10일
I am trying to write a code that allows the user to upload multiple image files, then displays those images in their own figures.
For uploading files I have:
[PCMR_Lumen_Files,Pathname,index]=uigetfile('*.ima','open files','MultiSelect','on')
And for displaying a specific file I have:
info = dicominfo('PCMR_Lumen_Data_Set1_0001.IMA');
magnitude_1 = dicomread(info);
imshow(magnitude_1);
imcontrast
But I don't know how to use them together or if I need to use a different dicom-() function.

채택된 답변

Image Analyst
Image Analyst 2017년 4월 5일
dicomread() takes a single filename, not a cell array of multiple filenames. So you'd have to put it into a for loop where you call it once for each image file name.
  댓글 수: 1
Jessica Reimer
Jessica Reimer 2017년 4월 10일
Thank you very much!

댓글을 달려면 로그인하십시오.

추가 답변 (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